@licklist/design 0.58.6-dev.9 → 0.58.7
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/bitbucket-pipelines.yml +8 -0
- package/dist/assets/iframe/calendar.svg +2 -2
- package/dist/assets/iframe/calendar.svg.js +1 -1
- package/dist/assets/iframe/ticket.svg +2 -2
- package/dist/assets/iframe/ticket.svg.js +1 -1
- package/dist/calendar/Calendar.d.ts +1 -1
- package/dist/calendar/Calendar.d.ts.map +1 -1
- package/dist/calendar/Calendar.js +1 -1
- package/dist/calendar/components/CalendarButtons/CalendarButtons.js +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +2 -2
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.js +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.d.ts +1 -2
- package/dist/iframe/event/event-card/IframeEventCard.d.ts.map +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.js +1 -1
- package/dist/iframe/event/event-venue-map/IframeEventVenueMap.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +2 -2
- 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 +2 -4
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.js +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/SummaryTotal/components/SummaryTotalBlock.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts +2 -4
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +0 -4
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
- package/dist/iframe/page/components/PageBody/constants.d.ts +0 -1
- package/dist/iframe/page/components/PageBody/constants.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/constants.js +1 -1
- package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.js +1 -1
- package/dist/iframe/payment/order-items-table/OrderItemsTable.js +1 -1
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +1 -1
- package/dist/iframe/payment/payment-form/PaymentForm.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.js +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/product-set/card/ProductSetCard.d.ts +1 -2
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +1 -1
- package/dist/product-set/control/ProductSetControl.d.ts +1 -2
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +1 -1
- package/dist/product-set/control/TutorialGifCard.d.ts +1 -2
- package/dist/product-set/control/TutorialGifCard.d.ts.map +1 -1
- package/dist/product-set/control/TutorialGifCard.js +1 -1
- package/dist/product-set/form/ProductCategoriesControl.d.ts +1 -2
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +1 -1
- package/dist/product-set/form/ProductSetForm.d.ts +2 -7
- 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 +1 -2
- 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 +1 -2
- 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/SubProductsControl.d.ts +1 -2
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +1 -1
- package/dist/product-set/form/VenueMapsControl.js +1 -1
- package/dist/product-set/hooks/useSortableTreeFunctions.d.ts +1 -2
- package/dist/product-set/hooks/useSortableTreeFunctions.d.ts.map +1 -1
- package/dist/product-set/hooks/useSortableTreeFunctions.js +1 -1
- package/dist/product-set/item/CreateProductSetItem.d.ts +1 -2
- package/dist/product-set/item/CreateProductSetItem.d.ts.map +1 -1
- package/dist/product-set/item/CreateProductSetItem.js +1 -1
- package/dist/product-set/product/ProductControl.d.ts +1 -3
- 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 +2 -4
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts.map +1 -1
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.js +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts +0 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.d.ts +1 -3
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.js +1 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +0 -2
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +1 -1
- package/dist/sales/notes/NotesTableRow.js +1 -1
- package/dist/setting/dashboard/snippets/card/SnippetCard.js +1 -1
- package/dist/snippet/snippet-template/control/PropertyControl.d.ts +1 -3
- package/dist/snippet/snippet-template/control/PropertyControl.d.ts.map +1 -1
- package/dist/snippet/snippet-template/control/PropertyControl.js +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +1 -1
- package/dist/sortable-list/SortableList.d.ts +1 -2
- package/dist/sortable-list/SortableList.d.ts.map +1 -1
- package/dist/sortable-list/SortableList.js +1 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts +1 -3
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +1 -1
- package/dist/static/manual-date-picker/ManualDatePicker.js +1 -1
- package/dist/static/manual-date-picker/constants/index.d.ts +1 -4
- package/dist/static/manual-date-picker/constants/index.d.ts.map +1 -1
- package/dist/static/manual-date-picker/constants/index.js +1 -1
- package/dist/static/manual-date-picker/utils/index.d.ts +0 -4
- package/dist/static/manual-date-picker/utils/index.d.ts.map +1 -1
- package/dist/static/manual-date-picker/utils/index.js +1 -1
- package/dist/striped-static-table/StripedStaticTable.js +1 -1
- package/dist/styles/iframe-events/Card.scss +8 -24
- package/dist/styles/iframe-events/PoweredBy.scss +2 -2
- package/dist/styles/iframe-order-process/IframeOrderProcess.scss +20 -57
- package/dist/styles/iframe-page/Page.scss +0 -1
- package/dist/styles/iframe-page/PageBody.scss +12 -34
- package/dist/styles/iframe-page/PageHeader.scss +39 -41
- package/dist/styles/product-set/EditVenueMapSetModal.scss +1 -1
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +2 -125
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/venue-map-sets/form/components/VenueMapImageControl.js +1 -1
- package/jest.config.js +29 -0
- package/package.json +35 -10
- package/src/assets/iframe/calendar.svg +2 -2
- package/src/assets/iframe/ticket.svg +2 -2
- package/src/calendar/Calendar.stories.tsx +0 -23
- package/src/calendar/Calendar.tsx +5 -5
- package/src/calendar/components/CalendarDates/CalendarDates.tsx +5 -0
- package/src/iframe/event/event-card/IframeEventCard.stories.tsx +0 -1
- package/src/iframe/event/event-card/IframeEventCard.tsx +8 -7
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.stories.tsx +0 -9
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +7 -58
- package/src/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.tsx +0 -8
- package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.tsx +4 -4
- package/src/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.tsx +10 -63
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +0 -4
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +1 -1
- package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +1 -3
- package/src/iframe/page/components/PageBody/constants.ts +0 -2
- package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +0 -10
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +6 -6
- package/src/iframe/payment/payment-page/PaymentPage.stories.tsx +6 -546
- package/src/iframe/payment/payment-page/PaymentPage.tsx +29 -38
- package/src/iframe/ryft/RyftPaymentForm.tsx +5 -11
- package/src/product-set/card/ProductSetCard.tsx +1 -12
- package/src/product-set/control/ProductSetControl.tsx +24 -46
- package/src/product-set/control/TutorialGifCard.tsx +3 -11
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -12
- package/src/product-set/form/ProductSetForm.tsx +1 -10
- package/src/product-set/form/ProductsControl.tsx +0 -10
- package/src/product-set/form/StepsControl.tsx +2 -8
- package/src/product-set/form/SubProductsControl.tsx +0 -3
- package/src/product-set/hooks/useSortableTreeFunctions.ts +0 -6
- package/src/product-set/item/CreateProductSetItem.tsx +0 -3
- package/src/product-set/product/ProductControl.tsx +15 -48
- package/src/product-set/product/fixed-duration-fields/FixedDurationOptions.tsx +2 -8
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +3 -4
- package/src/product-set/product-category/ProductCategoryControl.tsx +50 -116
- package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +18 -4
- package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +1 -4
- package/src/sales/booking/results/BookingResults.stories.tsx +2 -3
- package/src/sales/booking/results/components/ResultCard.tsx +5 -2
- package/src/snippet/snippet-template/control/PropertyControl.tsx +2 -6
- package/src/sortable-list/SortableList.tsx +0 -3
- package/src/sortable-tree/SortableTreeItem.tsx +0 -6
- package/src/static/manual-date-picker/ManualDatePicker.tsx +3 -3
- package/src/static/manual-date-picker/constants/index.ts +2 -6
- package/src/static/manual-date-picker/utils/index.ts +0 -11
- package/src/static/switch/BooleanSwitch.tsx +1 -1
- package/src/styles/iframe-events/Card.scss +8 -24
- package/src/styles/iframe-events/PoweredBy.scss +2 -2
- package/src/styles/iframe-order-process/IframeOrderProcess.scss +20 -57
- package/src/styles/iframe-page/Page.scss +0 -1
- package/src/styles/iframe-page/PageBody.scss +12 -34
- package/src/styles/iframe-page/PageHeader.scss +39 -41
- package/src/styles/product-set/EditVenueMapSetModal.scss +1 -1
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +2 -125
- package/src/styles/sales/BookingResults.scss +1 -1
- package/tests/Auth/Authorizer.test.tsx +194 -0
- package/tests/Auth/Layout/UserNavDropDown.test.tsx +43 -0
- package/tests/Auth/Layout/UserNavDropDownToggle.test.tsx +33 -0
- package/tests/Auth/Login/LoginComponent.test.tsx +246 -0
- package/tests/Auth/Login/LoginFormComponent.test.tsx +182 -0
- package/tests/Auth/Register/RegisterComponent.test.tsx +285 -0
- package/tests/Auth/Register/RegisterFormComponent.test.tsx +170 -0
- package/tests/Auth/Settings/Dashboard/IpInput.test.tsx +130 -0
- package/tests/Auth/Social/SocialCallbackComponent.test.tsx +133 -0
- package/tests/Auth/Social/SocialFormComponent.test.tsx +118 -0
- package/tests/FileUpload/FileUpload.test.tsx +42 -0
- package/tests/Notification/EmailTemplate.test.tsx +82 -0
- package/tests/ProductSet/ProductSetPopover.test.tsx +40 -0
- package/tests/Report/Report.test.tsx +48 -0
- package/tests/Sales/Coupon.test.tsx +51 -0
- package/tests/Sales/SalesAndVIews.test.tsx +63 -0
- package/tests/SnippetTemplates/SnippetTemplates.test.tsx +56 -0
- package/tests/Table/FilterHelperComponent.test.tsx +88 -0
- package/tests/Table/PaginationHelperComponent.test.tsx +109 -0
- package/tests/Table/PerPageHelperComponent.test.tsx +34 -0
- package/tests/Table/TableHelperComponent.test.tsx +295 -0
- package/tests/TipTapEditor/TipTapEditor.test.tsx +28 -0
- package/tests/__mock__/hooks/useAuthApi.ts +13 -0
- package/tests/__mock__/hooks/useAuthMock.ts +13 -0
- package/tests/__mock__/hooks/useFormMock.ts +27 -0
- package/tests/__mock__/hooks/useNotificationMock.ts +13 -0
- package/tests/__mock__/hooks/useQueryMock.ts +16 -0
- package/tests/__mock__/hooks/useSocialApiMock.ts +20 -0
- package/tests/__mock__/hooks/useTranslationMock.ts +17 -0
- package/tests/__mock__/hooks/useUserApiMock.ts +18 -0
- package/tests/__mock__/hooks/useUserMock.ts +13 -0
- package/tests/__mock__/styleMock.js +1 -0
- package/tests/__mock__/windowMock.ts +5 -0
- package/tests/packages/react-query.tsx +28 -0
- package/tests/setupTests.ts +10 -0
- package/dist/iframe/ryft/utils/ryft-form.d.ts +0 -5
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +0 -1
- package/dist/iframe/ryft/utils/ryft-form.js +0 -1
- package/dist/product-set/control/DateInput.d.ts +0 -17
- package/dist/product-set/control/DateInput.d.ts.map +0 -1
- package/dist/product-set/control/DateInput.js +0 -1
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts +0 -11
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts.map +0 -1
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.js +0 -1
- package/dist/recurring-date-picker-input/DatePickerInput.d.ts +0 -19
- package/dist/recurring-date-picker-input/DatePickerInput.d.ts.map +0 -1
- package/dist/recurring-date-picker-input/DatePickerInput.js +0 -1
- package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.d.ts +0 -15
- package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.d.ts.map +0 -1
- package/dist/recurring-date-picker-input/RecurrenceAndFrequencyInput.js +0 -1
- package/src/iframe/ryft/utils/ryft-form.ts +0 -47
- package/src/product-set/control/DateInput.tsx +0 -313
- package/src/product-set/control/ProductSetRecurrenceOverridesControl.tsx +0 -63
- package/src/recurring-date-picker-input/DatePickerInput.tsx +0 -93
- package/src/recurring-date-picker-input/RecurrenceAndFrequencyInput.tsx +0 -136
|
@@ -12,6 +12,7 @@ import { TIME_FORMAT } from "@licklist/core/dist/Config";
|
|
|
12
12
|
import * as Config from "@licklist/core/dist/Config";
|
|
13
13
|
import { formatDateStringForEvent } from "@licklist/plugins/dist/utils/formatDate";
|
|
14
14
|
import { getOrderSourceTitle } from "@licklist/plugins/dist/utils/sourceTitle";
|
|
15
|
+
|
|
15
16
|
import Icon from "../../../../static/Icon";
|
|
16
17
|
|
|
17
18
|
export type ResultCardProps = {
|
|
@@ -21,6 +22,8 @@ export type ResultCardProps = {
|
|
|
21
22
|
onCardClick?: (id: number) => void;
|
|
22
23
|
};
|
|
23
24
|
|
|
25
|
+
// @TODO integrate when API will be available
|
|
26
|
+
// activity and staff keys
|
|
24
27
|
export const ResultCard = ({
|
|
25
28
|
order,
|
|
26
29
|
className,
|
|
@@ -38,10 +41,10 @@ export const ResultCard = ({
|
|
|
38
41
|
startDate,
|
|
39
42
|
products,
|
|
40
43
|
source,
|
|
44
|
+
totalAmount,
|
|
41
45
|
event,
|
|
42
46
|
menu,
|
|
43
47
|
remainingToPay,
|
|
44
|
-
paidAmount,
|
|
45
48
|
} = order;
|
|
46
49
|
|
|
47
50
|
const productList = products.map((product) => product.name)?.join(", ") || "";
|
|
@@ -105,7 +108,7 @@ export const ResultCard = ({
|
|
|
105
108
|
)}
|
|
106
109
|
<p>
|
|
107
110
|
{t("paidAmount")}:{" "}
|
|
108
|
-
{formatNumber(
|
|
111
|
+
{formatNumber(totalAmount, {
|
|
109
112
|
style: "currency",
|
|
110
113
|
currency: Config.Currency.GBP,
|
|
111
114
|
})}
|
|
@@ -24,16 +24,12 @@ export interface PropertyControlProps<T> {
|
|
|
24
24
|
item: Path<T>;
|
|
25
25
|
label: string;
|
|
26
26
|
isDisabled?: boolean;
|
|
27
|
-
defaultColors?: Array<string>;
|
|
28
|
-
isRequired?: boolean;
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
export function PropertyControl<T>({
|
|
32
30
|
item,
|
|
33
31
|
label,
|
|
34
32
|
isDisabled = false,
|
|
35
|
-
defaultColors,
|
|
36
|
-
isRequired = true,
|
|
37
33
|
}: PropertyControlProps<T>) {
|
|
38
34
|
const { t } = useTranslation(["Validation"]);
|
|
39
35
|
|
|
@@ -66,7 +62,7 @@ export function PropertyControl<T>({
|
|
|
66
62
|
<Form.Control
|
|
67
63
|
{...register(item, {
|
|
68
64
|
required: {
|
|
69
|
-
value:
|
|
65
|
+
value: true,
|
|
70
66
|
message: t("Validation:fieldRequired", {
|
|
71
67
|
attribute: label,
|
|
72
68
|
}),
|
|
@@ -99,7 +95,7 @@ export function PropertyControl<T>({
|
|
|
99
95
|
setValue(item, color.hex);
|
|
100
96
|
toggleIsActive();
|
|
101
97
|
}}
|
|
102
|
-
colors={
|
|
98
|
+
colors={DEFAULT_COLORS}
|
|
103
99
|
/>
|
|
104
100
|
</div>
|
|
105
101
|
)}
|
|
@@ -33,7 +33,6 @@ type SortableListProps<T> = {
|
|
|
33
33
|
renderItemContent: (args: RenderItemContentArgs<T>) => ReactNode;
|
|
34
34
|
setItems?: Dispatch<SetStateAction<SortableItem<T>[]>>;
|
|
35
35
|
isExpandNewItem?: boolean;
|
|
36
|
-
isOverrides?: boolean;
|
|
37
36
|
};
|
|
38
37
|
|
|
39
38
|
export const SORTABLE_ID_KEY = "_sortableId";
|
|
@@ -45,7 +44,6 @@ export function SortableList<T>({
|
|
|
45
44
|
renderItemContent,
|
|
46
45
|
setItems,
|
|
47
46
|
isExpandNewItem = false,
|
|
48
|
-
isOverrides = false,
|
|
49
47
|
}: SortableListProps<T>) {
|
|
50
48
|
const [sortedItems, setSortedItems] = useState(items);
|
|
51
49
|
|
|
@@ -99,7 +97,6 @@ export function SortableList<T>({
|
|
|
99
97
|
);
|
|
100
98
|
|
|
101
99
|
function handleDragEnd(event) {
|
|
102
|
-
if (isOverrides) return;
|
|
103
100
|
const { active, over } = event;
|
|
104
101
|
|
|
105
102
|
if (active.id !== over.id) {
|
|
@@ -52,8 +52,6 @@ export interface SortableTreeItemProps {
|
|
|
52
52
|
className: string;
|
|
53
53
|
};
|
|
54
54
|
setIsExpanded?: () => void;
|
|
55
|
-
isOverride?: boolean;
|
|
56
|
-
isProduct?: boolean;
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
export function SortableTreeItem({
|
|
@@ -80,8 +78,6 @@ export function SortableTreeItem({
|
|
|
80
78
|
edit,
|
|
81
79
|
secondaryBadge,
|
|
82
80
|
setIsExpanded,
|
|
83
|
-
isOverride,
|
|
84
|
-
isProduct = false,
|
|
85
81
|
}: SortableTreeItemProps) {
|
|
86
82
|
const [expanded, setExpanded] = useState(isExpanded);
|
|
87
83
|
const [isModalVisible, setIsModalVisible] = useState(isNewAdded);
|
|
@@ -102,7 +98,6 @@ export function SortableTreeItem({
|
|
|
102
98
|
transform: dragTransform,
|
|
103
99
|
} = useDraggable({
|
|
104
100
|
id,
|
|
105
|
-
disabled: isOverride,
|
|
106
101
|
});
|
|
107
102
|
|
|
108
103
|
const onHandleExpand = useCallback(
|
|
@@ -150,7 +145,6 @@ export function SortableTreeItem({
|
|
|
150
145
|
};
|
|
151
146
|
|
|
152
147
|
const onEdit = (e) => {
|
|
153
|
-
if (isOverride && !isProduct) return;
|
|
154
148
|
e.stopPropagation();
|
|
155
149
|
if (edit && !isModalVisible) edit();
|
|
156
150
|
setIsModalVisible(true);
|
|
@@ -61,9 +61,9 @@ export const ManualDatePicker = ({
|
|
|
61
61
|
disabled={isDisabled}
|
|
62
62
|
>
|
|
63
63
|
<option value="">{t("Design:monthShort")}</option>
|
|
64
|
-
{MONTHS_ARRAY.map((
|
|
65
|
-
<option key={
|
|
66
|
-
{
|
|
64
|
+
{MONTHS_ARRAY.map((key) => (
|
|
65
|
+
<option key={key} value={key}>
|
|
66
|
+
{key}
|
|
67
67
|
</option>
|
|
68
68
|
))}
|
|
69
69
|
</Form.Control>
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
generateDatesArray,
|
|
3
|
-
generateMonthsOptionsArray,
|
|
4
|
-
generateYearsArray,
|
|
5
|
-
} from "../utils";
|
|
1
|
+
import { generateDatesArray, generateYearsArray } from "../utils";
|
|
6
2
|
|
|
7
3
|
export const DAYS_ARRAY = generateDatesArray(1, 31, 1);
|
|
8
|
-
export const MONTHS_ARRAY =
|
|
4
|
+
export const MONTHS_ARRAY = generateDatesArray(1, 12, 1);
|
|
9
5
|
export const YEARS_ARRAY = generateYearsArray();
|
|
@@ -4,17 +4,6 @@ export const generateDatesArray = (start: number, end: number, step: number) =>
|
|
|
4
4
|
(_, index) => 1 + index * step
|
|
5
5
|
);
|
|
6
6
|
|
|
7
|
-
export const generateMonthsOptionsArray = () =>
|
|
8
|
-
Array.from({ length: 12 }, (_, index) => {
|
|
9
|
-
const value = index + 1;
|
|
10
|
-
let key = String(value);
|
|
11
|
-
if (value < 10) {
|
|
12
|
-
key = `0${key}`;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return { key, value };
|
|
16
|
-
});
|
|
17
|
-
|
|
18
7
|
export const generateYearsArray = () => {
|
|
19
8
|
const currentYear = new Date().getFullYear();
|
|
20
9
|
const ageBackYear = currentYear - 100;
|
|
@@ -23,7 +23,7 @@ export function BooleanSwitch({
|
|
|
23
23
|
const { t } = useTranslation("Design");
|
|
24
24
|
|
|
25
25
|
const options: SelectItem[] = [
|
|
26
|
-
{ id: 1, value: firstValueTitle ??
|
|
26
|
+
{ id: 1, value: firstValueTitle ?? t("yes") },
|
|
27
27
|
{ id: 0, value: secondValueTitle ?? t("no") },
|
|
28
28
|
];
|
|
29
29
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@import "../snippet-templates/snippetVariables";
|
|
2
|
-
@import "../themes//bookedit/variables";
|
|
3
2
|
|
|
4
3
|
.iframe-event-card {
|
|
5
4
|
position: relative;
|
|
@@ -19,27 +18,12 @@
|
|
|
19
18
|
background-size: cover;
|
|
20
19
|
background-position: center;
|
|
21
20
|
cursor: pointer;
|
|
21
|
+
border: 1px solid transparent;
|
|
22
22
|
border-radius: 0.5rem;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.card-body {
|
|
26
|
-
padding: 0.5rem 0 0.875rem
|
|
27
|
-
|
|
28
|
-
@include media-breakpoint-down(sm) {
|
|
29
|
-
padding: 1rem 0;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&__info-icon {
|
|
34
|
-
position: absolute;
|
|
35
|
-
right: 1rem;
|
|
36
|
-
top: 1rem;
|
|
37
|
-
background-color: "#ffffff";
|
|
38
|
-
border-radius: 1.5rem;
|
|
39
|
-
padding: 0 0.5rem;
|
|
40
|
-
font-size: 0.75rem;
|
|
41
|
-
font-weight: $white;
|
|
42
|
-
border: 1px solid $black;
|
|
26
|
+
padding: 0.5rem 0 0.875rem;
|
|
43
27
|
}
|
|
44
28
|
|
|
45
29
|
&__title {
|
|
@@ -49,7 +33,7 @@
|
|
|
49
33
|
line-height: 1.25rem;
|
|
50
34
|
cursor: pointer;
|
|
51
35
|
margin-bottom: 0.5rem;
|
|
52
|
-
font-size:
|
|
36
|
+
font-size: 1.125rem;
|
|
53
37
|
}
|
|
54
38
|
|
|
55
39
|
&__label {
|
|
@@ -98,8 +82,7 @@
|
|
|
98
82
|
color: $snippet-elements-button-color;
|
|
99
83
|
border: none;
|
|
100
84
|
background-color: $snippet-elements-button-background-color;
|
|
101
|
-
box-shadow: 0 0 0 $input-btn-focus-width
|
|
102
|
-
$snippet-elements-button-background-color;
|
|
85
|
+
box-shadow: 0 0 0 $input-btn-focus-width $snippet-elements-button-background-color;
|
|
103
86
|
}
|
|
104
87
|
|
|
105
88
|
&:disabled {
|
|
@@ -112,14 +95,14 @@
|
|
|
112
95
|
&:focus,
|
|
113
96
|
&.focus {
|
|
114
97
|
&:not(:disabled) {
|
|
115
|
-
opacity:
|
|
98
|
+
opacity: .7;
|
|
116
99
|
}
|
|
117
100
|
}
|
|
118
101
|
|
|
119
102
|
&:active,
|
|
120
103
|
&.active {
|
|
121
104
|
&:not(:disabled) {
|
|
122
|
-
opacity:
|
|
105
|
+
opacity: .8;
|
|
123
106
|
}
|
|
124
107
|
}
|
|
125
108
|
}
|
|
@@ -140,7 +123,7 @@
|
|
|
140
123
|
}
|
|
141
124
|
|
|
142
125
|
.card-text {
|
|
143
|
-
font-size: 0.
|
|
126
|
+
font-size: 0.875rem;
|
|
144
127
|
}
|
|
145
128
|
|
|
146
129
|
&.event-info {
|
|
@@ -219,6 +202,7 @@
|
|
|
219
202
|
|
|
220
203
|
@media (max-width: 576px) {
|
|
221
204
|
&.list-view {
|
|
205
|
+
|
|
222
206
|
.card-image {
|
|
223
207
|
margin-right: 0.5rem;
|
|
224
208
|
}
|
|
@@ -46,8 +46,9 @@
|
|
|
46
46
|
color: $snippet-page-header-steps-body-color;
|
|
47
47
|
transition: $color-transition;
|
|
48
48
|
margin-left: 0.5rem;
|
|
49
|
+
width: 6rem;
|
|
49
50
|
word-break: break-word;
|
|
50
|
-
font-size: 0.
|
|
51
|
+
font-size: 0.75rem;
|
|
51
52
|
|
|
52
53
|
@include media-breakpoint-down(sm) {
|
|
53
54
|
display: none;
|
|
@@ -57,35 +58,12 @@
|
|
|
57
58
|
|
|
58
59
|
.payment-booking-summary {
|
|
59
60
|
transition: $color-transition;
|
|
61
|
+
background-color: transparent;
|
|
62
|
+
border: 1px solid transparent;
|
|
60
63
|
border-radius: $iframe-border-radius;
|
|
61
64
|
font-weight: 400;
|
|
62
65
|
font-size: 0.875rem;
|
|
63
66
|
|
|
64
|
-
.payment-page-toggle {
|
|
65
|
-
p {
|
|
66
|
-
font-size: 1rem;
|
|
67
|
-
font-weight: 600;
|
|
68
|
-
}
|
|
69
|
-
.price {
|
|
70
|
-
font-weight: 700;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.payment-metadata {
|
|
75
|
-
font-weight: 500;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.total {
|
|
79
|
-
display: flex;
|
|
80
|
-
justify-content: space-between;
|
|
81
|
-
align-items: center;
|
|
82
|
-
|
|
83
|
-
div {
|
|
84
|
-
font-size: 1rem;
|
|
85
|
-
font-weight: 700;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
67
|
b {
|
|
90
68
|
display: block;
|
|
91
69
|
font-size: 1rem;
|
|
@@ -137,15 +115,6 @@
|
|
|
137
115
|
|
|
138
116
|
.cart-items {
|
|
139
117
|
font-weight: 400;
|
|
140
|
-
margin-bottom: 1.4rem;
|
|
141
|
-
border-bottom: 2px solid $separator-color;
|
|
142
|
-
|
|
143
|
-
.people {
|
|
144
|
-
margin-bottom: 0;
|
|
145
|
-
p {
|
|
146
|
-
margin-bottom: 0;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
118
|
|
|
150
119
|
.empty-cart {
|
|
151
120
|
margin: 1rem 0;
|
|
@@ -158,11 +127,8 @@
|
|
|
158
127
|
}
|
|
159
128
|
|
|
160
129
|
.products-by-menu-step {
|
|
161
|
-
margin-top: 1.4rem;
|
|
162
|
-
font-size: 0.875rem;
|
|
163
130
|
.title {
|
|
164
|
-
font-
|
|
165
|
-
font-weight: 600;
|
|
131
|
+
font-weight: 500;
|
|
166
132
|
}
|
|
167
133
|
|
|
168
134
|
.categories {
|
|
@@ -172,8 +138,8 @@
|
|
|
172
138
|
}
|
|
173
139
|
|
|
174
140
|
.products {
|
|
175
|
-
margin-top:
|
|
176
|
-
|
|
141
|
+
margin-top: 0.5rem;
|
|
142
|
+
|
|
177
143
|
.product {
|
|
178
144
|
margin: 0.5rem 0;
|
|
179
145
|
|
|
@@ -184,15 +150,6 @@
|
|
|
184
150
|
margin-bottom: 0.5rem;
|
|
185
151
|
}
|
|
186
152
|
}
|
|
187
|
-
|
|
188
|
-
.name {
|
|
189
|
-
font-weight: 600;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.price {
|
|
193
|
-
font-weight: 400;
|
|
194
|
-
font-size: 0.875rem;
|
|
195
|
-
}
|
|
196
153
|
}
|
|
197
154
|
|
|
198
155
|
&:not(:last-child) {
|
|
@@ -213,12 +170,6 @@
|
|
|
213
170
|
margin: 0 0 0.5rem;
|
|
214
171
|
|
|
215
172
|
.title {
|
|
216
|
-
font-size: 1rem;
|
|
217
|
-
font-weight: 600;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.metadata {
|
|
221
|
-
font-size: 0.95rem;
|
|
222
173
|
font-weight: 600;
|
|
223
174
|
}
|
|
224
175
|
}
|
|
@@ -232,7 +183,19 @@
|
|
|
232
183
|
}
|
|
233
184
|
|
|
234
185
|
hr {
|
|
235
|
-
margin
|
|
186
|
+
margin: 0;
|
|
187
|
+
border-width: 2px;
|
|
188
|
+
border-color: $separator-color;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.products {
|
|
192
|
+
font-size: 0.75rem;
|
|
193
|
+
|
|
194
|
+
.product {
|
|
195
|
+
.name {
|
|
196
|
+
font-weight: 500;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
236
199
|
}
|
|
237
200
|
}
|
|
238
201
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// TODO when all iframe pages will be ready, think how we can combine it all in page-body style
|
|
2
1
|
.page-body {
|
|
3
2
|
display: flex;
|
|
4
3
|
background-color: transparent;
|
|
@@ -13,6 +12,9 @@
|
|
|
13
12
|
.left-block {
|
|
14
13
|
flex: 1;
|
|
15
14
|
align-items: stretch;
|
|
15
|
+
border-radius: 0.5rem;
|
|
16
|
+
border-bottom-left-radius: 0;
|
|
17
|
+
border-bottom-right-radius: 0;
|
|
16
18
|
padding: 1rem;
|
|
17
19
|
background-color: $snippet-page-body-left-block-background-color;
|
|
18
20
|
border: 0;
|
|
@@ -31,6 +33,7 @@
|
|
|
31
33
|
display: flex;
|
|
32
34
|
align-items: flex-start;
|
|
33
35
|
justify-content: space-between;
|
|
36
|
+
|
|
34
37
|
.title {
|
|
35
38
|
color: $snippet-elements-body-color;
|
|
36
39
|
margin: 0;
|
|
@@ -61,7 +64,7 @@
|
|
|
61
64
|
overflow-x: hidden;
|
|
62
65
|
scrollbar-width: thin;
|
|
63
66
|
.iframe-event-card {
|
|
64
|
-
border-bottom:
|
|
67
|
+
border-bottom: 2px solid $separator-color;
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
@include media-breakpoint-down(sm) {
|
|
@@ -78,7 +81,9 @@
|
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
.right-block {
|
|
81
|
-
|
|
84
|
+
margin-left: 1rem;
|
|
85
|
+
border-radius: 0.5rem;
|
|
86
|
+
height: calc(100% - 1rem);
|
|
82
87
|
max-width: 17.5rem;
|
|
83
88
|
min-width: 17.5rem;
|
|
84
89
|
width: 100%;
|
|
@@ -110,7 +115,7 @@
|
|
|
110
115
|
}
|
|
111
116
|
|
|
112
117
|
.collapse {
|
|
113
|
-
max-height: calc(100vh -
|
|
118
|
+
max-height: calc(100vh - 19rem);
|
|
114
119
|
transition: none 0s ease 0s;
|
|
115
120
|
|
|
116
121
|
&.show {
|
|
@@ -120,7 +125,7 @@
|
|
|
120
125
|
}
|
|
121
126
|
|
|
122
127
|
@include media-breakpoint-down(sm) {
|
|
123
|
-
max-height:
|
|
128
|
+
max-height: 7.5rem;
|
|
124
129
|
}
|
|
125
130
|
}
|
|
126
131
|
.collapse-with-people-input {
|
|
@@ -146,14 +151,8 @@
|
|
|
146
151
|
}
|
|
147
152
|
|
|
148
153
|
.iframe-event-card {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
.card-image {
|
|
152
|
-
border-radius: 0;
|
|
153
|
-
}
|
|
154
|
-
.card-body {
|
|
155
|
-
padding-left: 1rem;
|
|
156
|
-
}
|
|
154
|
+
background-color: transparent;
|
|
155
|
+
border-color: transparent;
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
.price {
|
|
@@ -263,24 +262,3 @@
|
|
|
263
262
|
}
|
|
264
263
|
}
|
|
265
264
|
}
|
|
266
|
-
|
|
267
|
-
.event-list-page-body {
|
|
268
|
-
overflow: auto;
|
|
269
|
-
.left-block {
|
|
270
|
-
.navigation {
|
|
271
|
-
font-size: 1.125rem;
|
|
272
|
-
font-weight: 500;
|
|
273
|
-
padding-bottom: 2.625rem;
|
|
274
|
-
display: flex;
|
|
275
|
-
align-items: flex-start;
|
|
276
|
-
justify-content: space-between;
|
|
277
|
-
margin-top: 0.125rem;
|
|
278
|
-
|
|
279
|
-
.title {
|
|
280
|
-
position: absolute;
|
|
281
|
-
color: $snippet-elements-body-color;
|
|
282
|
-
margin: 0;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
@@ -20,57 +20,55 @@ $base-height: 2.5rem;
|
|
|
20
20
|
transition: $color-transition;
|
|
21
21
|
border: 0;
|
|
22
22
|
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.iframe-page {
|
|
27
|
-
.button-wrapper {
|
|
28
|
-
background-color: $snippet-page-header-steps-close-button-background-color;
|
|
29
|
-
height: $base-height;
|
|
30
|
-
width: $base-height;
|
|
31
|
-
border-radius: $base-height;
|
|
32
|
-
transition: $color-transition;
|
|
33
23
|
|
|
34
|
-
.
|
|
35
|
-
|
|
36
|
-
width: $base-height;
|
|
24
|
+
.button-wrapper {
|
|
25
|
+
background-color: $snippet-page-header-steps-close-button-background-color;
|
|
37
26
|
height: $base-height;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
justify-content: center;
|
|
41
|
-
color: $snippet-page-header-steps-close-button-border-color;
|
|
27
|
+
width: $base-height;
|
|
28
|
+
border-radius: $base-height;
|
|
42
29
|
transition: $color-transition;
|
|
43
30
|
|
|
44
|
-
|
|
45
|
-
|
|
31
|
+
.close-button {
|
|
32
|
+
font-size: 1.25rem;
|
|
33
|
+
width: $base-height;
|
|
34
|
+
height: $base-height;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
color: $snippet-page-header-steps-close-button-border-color;
|
|
39
|
+
transition: $color-transition;
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
46
44
|
}
|
|
47
|
-
}
|
|
48
45
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
&.close-button {
|
|
47
|
+
margin-left: 1rem;
|
|
48
|
+
}
|
|
52
49
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
50
|
+
.back-button {
|
|
51
|
+
font-size: 2rem;
|
|
52
|
+
width: $base-height;
|
|
53
|
+
height: $base-height;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
font-weight: lighter;
|
|
58
|
+
color: $snippet-page-header-steps-close-button-border-color;
|
|
59
|
+
transition: $color-transition;
|
|
63
60
|
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
&:hover {
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
}
|
|
68
65
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
&.back-button {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
margin-right: 1rem;
|
|
71
|
+
}
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
74
|
}
|