@licklist/design 0.78.5-stage.1 → 0.78.5-stage.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-fields/field-set/providers/CustomFieldSetsProvider.d.ts +2 -2
- package/dist/custom-fields/field-set/providers/CustomFieldSetsProvider.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/DropdownWrapper/DropdownWrapper.d.ts +2 -2
- package/dist/events/event-venue-map/components/Dropdown/components/DropdownWrapper/DropdownWrapper.d.ts.map +1 -1
- package/dist/file-upload/FileUpload.d.ts +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts +1 -2
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts.map +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +2 -2
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts.map +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +4 -5
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts +2 -2
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts +0 -5
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.d.ts +1 -1
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/modals/dialog/DialogContext.d.ts +2 -2
- package/dist/modals/dialog/DialogContext.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/utils/index.d.ts +1 -1
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceInput.js +1 -1
- package/package.json +21 -18
- package/src/custom-fields/field-set/providers/CustomFieldSetsProvider.tsx +2 -2
- package/src/events/event-venue-map/components/Dropdown/components/DropdownWrapper/DropdownWrapper.tsx +2 -2
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx +13 -8
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +12 -4
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +2 -2
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx +18 -20
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +3 -5
- package/src/iframe/order-process/components/PaymentCard/PaymentCard.tsx +3 -3
- package/src/iframe/payment/payment-page/PaymentPage.tsx +1 -1
- package/src/iframe/ryft/utils/ryft-form.ts +1 -1
- package/src/modals/dialog/DialogContext.tsx +8 -2
- package/src/product-set/form/ProductSetForm.tsx +2 -1
- package/src/product-set/utils/index.ts +15 -14
- package/src/recurrence-input/RecurrenceInput.tsx +4 -3
- package/yarn.lock +218 -215
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const CustomFieldSetsProvider:
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export declare const CustomFieldSetsProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=CustomFieldSetsProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomFieldSetsProvider.d.ts","sourceRoot":"","sources":["../../../../src/custom-fields/field-set/providers/CustomFieldSetsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CustomFieldSetsProvider.d.ts","sourceRoot":"","sources":["../../../../src/custom-fields/field-set/providers/CustomFieldSetsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAA;AAGnD,eAAO,MAAM,uBAAuB,iBAAkB,iBAAiB,4CAQtE,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const DropdownWrapper:
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export declare const DropdownWrapper: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=DropdownWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/events/event-venue-map/components/Dropdown/components/DropdownWrapper/DropdownWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DropdownWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/events/event-venue-map/components/Dropdown/components/DropdownWrapper/DropdownWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEzC,eAAO,MAAM,eAAe,iBAAkB,iBAAiB,4CAK9D,CAAA"}
|
|
@@ -29,7 +29,7 @@ export declare const useFileUpload: ({ allowMultiple, allowedExtensions, onFileR
|
|
|
29
29
|
files: File[];
|
|
30
30
|
isDragged: boolean;
|
|
31
31
|
setIsDragged: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
32
|
-
t: import("
|
|
32
|
+
t: import("i18next").TFunction<"Design", undefined>;
|
|
33
33
|
};
|
|
34
34
|
export {};
|
|
35
35
|
//# sourceMappingURL=FileUpload.d.ts.map
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { MenuStep } from '@licklist/plugins/dist/types/context/sale/menuSteps';
|
|
1
|
+
import { MenuStep, Product } from '@licklist/plugins/dist/types/context/sale/menuSteps';
|
|
2
2
|
import { OrderModifierByProduct } from '@licklist/core/dist/DataMapper/Order/OrderModifiierByProduct';
|
|
3
|
-
import { Product } from '@licklist/plugins/dist/types/context/sale/menuSteps';
|
|
4
3
|
import { ProductCategory } from 'dist/product-set/types';
|
|
5
4
|
import { FormOrderItem } from '../../order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput';
|
|
6
5
|
export interface ManualBookingFormValues {
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductWithModifierSetForm.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx"],"names":[],"mappings":"AAOA,OAAO,
|
|
1
|
+
{"version":3,"file":"ProductWithModifierSetForm.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,QAAQ,EACR,OAAO,EACR,MAAM,qDAAqD,CAAA;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AAGrG,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAGxD,OAAO,EAAE,aAAa,EAAE,MAAM,qGAAqG,CAAA;AAInI,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,QAAQ,EAAE,CAAA;CAClB;AAED,UAAU,+BAA+B;IACvC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,iBAAiB,CAAC,EAAE,sBAAsB,CAAA;IAC1C,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAA;CAC3C;AAkBD,eAAO,MAAM,0BAA0B,wDAKpC,+BAA+B,4CAkKjC,CAAA"}
|
|
@@ -6,10 +6,10 @@ import { isEmpty, uniqBy } from 'lodash';
|
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
8
|
import { Currency } from '@licklist/core/dist/Config';
|
|
9
|
+
import clsx from 'clsx';
|
|
9
10
|
import 'recharts';
|
|
10
11
|
import 'react-loader';
|
|
11
12
|
import '@licklist/plugins/dist/hooks/Media/useWindowDimensions';
|
|
12
|
-
import clsx from 'clsx';
|
|
13
13
|
import 'moment';
|
|
14
14
|
import '@react-aria/utils';
|
|
15
15
|
import 'react-date-range';
|
|
@@ -256,7 +256,7 @@ var ProductWithModifierSetForm = function(param) {
|
|
|
256
256
|
})
|
|
257
257
|
}),
|
|
258
258
|
/*#__PURE__*/ jsxs("div", {
|
|
259
|
-
className: "
|
|
259
|
+
className: "d-flex flex-column align-items-center justify-content-center",
|
|
260
260
|
children: [
|
|
261
261
|
/*#__PURE__*/ jsx("div", {
|
|
262
262
|
className: "modifier-price pb-4 pl-5",
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductWithModifierSetModal.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductWithModifierSetModal.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AACrG,OAAO,EAAE,OAAO,EAAE,MAAM,qDAAqD,CAAA;AAE7E,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAGxD,OAAO,EAAE,aAAa,EAAE,MAAM,qGAAqG,CAAA;AAInI,UAAU,gCAAgC;IACxC,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,iBAAiB,CAAC,EAAE,sBAAsB,CAAA;IAC1C,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAA;CAC3C;AAED,eAAO,MAAM,2BAA2B,sEAOrC,gCAAgC,4CAwDlC,CAAA"}
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import 'react';
|
|
3
2
|
import { Modal } from 'react-bootstrap';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import 'react';
|
|
4
5
|
import 'react-i18next';
|
|
5
6
|
import 'react-bootstrap/ModalHeader';
|
|
6
7
|
import 'react-bootstrap/ModalTitle';
|
|
@@ -13,7 +14,6 @@ import 'react-swipeable';
|
|
|
13
14
|
import 'react-bootstrap/Button';
|
|
14
15
|
import 'react-router-dom';
|
|
15
16
|
import 'react-intl';
|
|
16
|
-
import clsx from 'clsx';
|
|
17
17
|
import '../../../tiptap-editor/TipTapEditor.js';
|
|
18
18
|
import '@licklist/core/dist/Config';
|
|
19
19
|
import 'luxon';
|
|
@@ -31,7 +31,6 @@ import { ProductWithModifierSetForm } from './ProductWithModifierSetForm.js';
|
|
|
31
31
|
|
|
32
32
|
var ProductWithModifierSetModal = function(param) {
|
|
33
33
|
var show = param.show, onHide = param.onHide, product = param.product, category = param.category, onChange = param.onChange, editOrderModifier = param.editOrderModifier;
|
|
34
|
-
var _product_images, _product_images1;
|
|
35
34
|
var _useDialogContext = useDialogContext(), onBeforeUnload = _useDialogContext.onBeforeUnload, onPopState = _useDialogContext.onPopState;
|
|
36
35
|
useOnWindowUnmount({
|
|
37
36
|
onBeforeUnload: onBeforeUnload,
|
|
@@ -58,14 +57,14 @@ var ProductWithModifierSetModal = function(param) {
|
|
|
58
57
|
className: "right-block",
|
|
59
58
|
id: "select-event-container",
|
|
60
59
|
children: /*#__PURE__*/ jsxs("div", {
|
|
61
|
-
className: clsx('manual-booking-container', !
|
|
60
|
+
className: clsx('manual-booking-container', !product.images.length && 'tw-mt-8'),
|
|
62
61
|
children: [
|
|
63
62
|
/*#__PURE__*/ jsx("div", {
|
|
64
63
|
className: "manual-booking-header",
|
|
65
64
|
children: /*#__PURE__*/ jsx(TicketDescription, {
|
|
66
65
|
title: product.name,
|
|
67
66
|
description: product.description,
|
|
68
|
-
className: clsx('iframe-event__product-description', !
|
|
67
|
+
className: clsx('iframe-event__product-description', !product.images.length && 'mt-6'),
|
|
69
68
|
classNameProductModal: "d-block",
|
|
70
69
|
images: product.images,
|
|
71
70
|
isRequired: product.isRequired,
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductControll.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AACrG,OAAO,EAAE,OAAO,EAAE,MAAM,qDAAqD,CAAA;AAK7E,UAAU,mBAAmB;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iBAAiB,CAAC,EAAE,sBAAsB,CAAA;CAC3C;AAED,eAAO,MAAM,cAAc,+CAIxB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ProductControll.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AACrG,OAAO,EAAE,OAAO,EAAE,MAAM,qDAAqD,CAAA;AAK7E,UAAU,mBAAmB;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iBAAiB,CAAC,EAAE,sBAAsB,CAAA;CAC3C;AAED,eAAO,MAAM,cAAc,+CAIxB,mBAAmB,4CA6ErB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CategoryProduct.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EACL,OAAO,EACP,eAAe,EAChB,MAAM,qDAAqD,CAAA;
|
|
1
|
+
{"version":3,"file":"CategoryProduct.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EACL,OAAO,EACP,eAAe,EAChB,MAAM,qDAAqD,CAAA;AAQ5D,UAAU,oBAAoB;IAC5B,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,kBAAkB,CAAC,EAAE,wBAAwB,EAAE,CAAA;IAC/C,eAAe,CAAC,EAAE,wBAAwB,EAAE,CAAA;CAC7C;AAED,eAAO,MAAM,eAAe,sFAMzB,oBAAoB,4CAoPtB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { Order } from '@licklist/core/dist/DataMapper/Order/OrderDataMapper';
|
|
3
3
|
import { PaymentDetail } from '@licklist/core/dist/DataMapper/Order/PaymentDetailDataMapper';
|
|
4
4
|
export type PaymentCardProps = {
|
|
@@ -9,5 +9,5 @@ export type PaymentCardProps = {
|
|
|
9
9
|
recalculatedFee?: number;
|
|
10
10
|
isFreePayment?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export declare const PaymentCard:
|
|
12
|
+
export declare const PaymentCard: ({ order, totalWithDiscount, recalculatedFee, discountBlock, paymentDetail, isFreePayment, }: PropsWithChildren<PaymentCardProps>) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
//# sourceMappingURL=PaymentCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentCard.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/PaymentCard/PaymentCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"PaymentCard.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/PaymentCard/PaymentCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIpD,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAA;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAG5F,MAAM,MAAM,gBAAgB,GAAG;IAC7B,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IACpC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,WAAW,gGAOrB,iBAAiB,CAAC,gBAAgB,CAAC,4CAkFrC,CAAA"}
|
|
@@ -10,10 +10,5 @@ export declare const useTableData: ({ order, externalDiscount, isPaymentProcesse
|
|
|
10
10
|
name: import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
quantity: string;
|
|
12
12
|
price: import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
} | {
|
|
14
|
-
key: number;
|
|
15
|
-
name: string;
|
|
16
|
-
quantity: import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
price: string;
|
|
18
13
|
})[];
|
|
19
14
|
//# sourceMappingURL=useTableData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/hooks/useTableData.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAA;AAQ5D,eAAO,MAAM,2BAA2B;;;;CAIvC,CAAA;AAED,eAAO,MAAM,YAAY,oEAKtB,oBAAoB
|
|
1
|
+
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/hooks/useTableData.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAA;AAQ5D,eAAO,MAAM,2BAA2B;;;;CAIvC,CAAA;AAED,eAAO,MAAM,YAAY,oEAKtB,oBAAoB;;;;;IA+KtB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaymentLinkResponse } from '@licklist/plugins/dist/hooks/Api/usePaymentApi';
|
|
2
|
-
import { BookingSummaryProps } from '
|
|
2
|
+
import { BookingSummaryProps } from '../../order-process/components/BookingSummary/types';
|
|
3
3
|
import { RyftPaymentFormProps } from '../../ryft/RyftPaymentForm';
|
|
4
4
|
export interface PaymentMetadata {
|
|
5
5
|
total: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentPage.d.ts","sourceRoot":"","sources":["../../../../src/iframe/payment/payment-page/PaymentPage.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAA;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PaymentPage.d.ts","sourceRoot":"","sources":["../../../../src/iframe/payment/payment-page/PaymentPage.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAA;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAA;AAIzF,OAAO,EAEL,oBAAoB,EACrB,MAAM,4BAA4B,CAAA;AAOnC,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb;AAED,UAAU,YAAa,SAAQ,oBAAoB;IACjD,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAA;IACjC,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAA;IAChC,IAAI,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAA;IACjC,SAAS,EAAE,OAAO,CAAA;IAClB,mBAAmB,EAAE,mBAAmB,CAAA;IACxC,eAAe,CAAC,EAAE,eAAe,CAAA;CAClC;AAED,eAAO,MAAM,WAAW,kIAQrB,YAAY,4CA+Md,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TFunction } from '
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
2
|
import { RyftPaymentFormProps } from '../RyftPaymentForm';
|
|
3
3
|
interface InjectComponentsInRyftForm extends Pick<RyftPaymentFormProps, 'onApplePayButtonClick' | 'isAppUsingInIframe'> {
|
|
4
4
|
t: TFunction<string[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ryft-form.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ryft/utils/ryft-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ryft-form.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ryft/utils/ryft-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEzD,UAAU,0BACR,SAAQ,IAAI,CACV,oBAAoB,EACpB,uBAAuB,GAAG,oBAAoB,CAC/C;IACD,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,+BAA+B,CAAC,EAAE,OAAO,CAAA;CAC1C;AAED,eAAO,MAAM,0BAA0B,wGAMpC,0BAA0B,SA6E5B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
interface IDialogContext {
|
|
3
3
|
isShownDialog: boolean;
|
|
4
4
|
showDialog: () => void;
|
|
@@ -9,7 +9,7 @@ interface IDialogContext {
|
|
|
9
9
|
onDeclineDialog: () => void;
|
|
10
10
|
}
|
|
11
11
|
export declare const DialogContext: import("react").Context<IDialogContext>;
|
|
12
|
-
export declare const DialogContextProvider:
|
|
12
|
+
export declare const DialogContextProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export declare const useDialogContext: () => IDialogContext;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=DialogContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogContext.d.ts","sourceRoot":"","sources":["../../../src/modals/dialog/DialogContext.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DialogContext.d.ts","sourceRoot":"","sources":["../../../src/modals/dialog/DialogContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,iBAAiB,EAClB,MAAM,OAAO,CAAA;AAEd,UAAU,cAAc;IACtB,aAAa,EAAE,OAAO,CAAA;IACtB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAA;IAClC,UAAU,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAA;IAC9B,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B;AAED,eAAO,MAAM,aAAa,yCAQxB,CAAA;AAEF,eAAO,MAAM,qBAAqB,iBAAkB,iBAAiB,4CAoDpE,CAAA;AAED,eAAO,MAAM,gBAAgB,sBAAkC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSetForm.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductSetForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;
|
|
1
|
+
{"version":3,"file":"ProductSetForm.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductSetForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAKzF,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAE3E,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAE1F,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AAGrF,OAAO,EAEL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAQ3D,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,OAAO,CAAA;CACnB;AACD,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;CACX;AACD,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,MAAM,EACN,uBAAuB;IACzB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,mBACf,SAAQ,aAAa,EACnB,uBAAuB;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,mBAAmB,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC3D,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC3D,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAA;IAC/B,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,WAAW,EAAE,CAAA;CACjC;AAED,wBAAgB,cAAc,CAAC,EAC7B,WAAW,EACX,SAAS,EACT,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,cAAsB,EACtB,YAAiB,EACjB,4BAA4B,EAC5B,KAAK,EACL,cAAc,EACd,SAAS,EACT,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,QAAQ,EACR,GAAG,MAAM,EACV,EAAE,mBAAmB,2CAkKrB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmailTemplate } from '@licklist/core/dist/DataMapper/Notification/EmailTemplateDataMapper';
|
|
2
2
|
import { SmsTemplate } from '@licklist/core/dist/DataMapper/Notification/SmsTemplateDataMapper';
|
|
3
|
-
import { TFunction } from '
|
|
3
|
+
import { TFunction } from 'i18next';
|
|
4
4
|
import { UseFormSetError } from 'react-hook-form';
|
|
5
5
|
import { ProductSet } from '@licklist/core/dist/DataMapper/Product/ProductSetDataMapper';
|
|
6
6
|
import { TemplateItem } from '../control/ProductSetControl';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product-set/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAA;AAG/F,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product-set/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAA;AAG/F,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,UAAU,yBAAyB;IACjC,MAAM,EAAE,oBAAoB,CAAA;IAC5B,QAAQ,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAA;IAC/C,CAAC,EAAE,SAAS,CAAA;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AACD,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAC1B,CAAC,EAAE,aACC,MAAM,aACN,MAAM,QAQlB,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,CAAC,EAAE;;IACmB,CAAA;AAEjE,eAAO,MAAM,oBAAoB,eACnB,aAAa,EAAE,GAAG,WAAW,EAAE,kBAC3B,YAAY,EAAE,KAC7B,YAAY,EAAE,GAAG,SAmBnB,CAAA;AAED,eAAO,MAAM,kCAAkC,SACvC,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe1B,CAAA;AAEF,eAAO,MAAM,yBAAyB,6BAInC,yBAAyB,YA0B3B,CAAA;AAED,eAAO,MAAM,yBAAyB,WAC5B,CAAC,UAAU,GAAG,oBAAoB,CAAC,EAAE,KAC5C,gBAAgB,EACwD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecurrenceInput.d.ts","sourceRoot":"","sources":["../../src/recurrence-input/RecurrenceInput.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,SAAS,EAAW,MAAM,OAAO,CAAA;AAWjD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,gBAAgB,CAAC,EAAE,SAAS,CAAA;CAC7B;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAgB,EAChB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,gBAAmC,GACpC,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"RecurrenceInput.d.ts","sourceRoot":"","sources":["../../src/recurrence-input/RecurrenceInput.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,SAAS,EAAW,MAAM,OAAO,CAAA;AAWjD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,gBAAgB,CAAC,EAAE,SAAS,CAAA;CAC7B;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAgB,EAChB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,gBAAmC,GACpC,EAAE,oBAAoB,2CA0EtB"}
|
|
@@ -117,7 +117,7 @@ function RecurrenceInput(param) {
|
|
|
117
117
|
})), 2), state = _useReducer[0], updateState = _useReducer[1];
|
|
118
118
|
useEffect(// TODO: unhardcode timezone
|
|
119
119
|
function() {
|
|
120
|
-
|
|
120
|
+
onChange(RRule.optionsToString(_object_spread({
|
|
121
121
|
freq: state.freq,
|
|
122
122
|
count: state.count,
|
|
123
123
|
interval: state.interval,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.78.5-stage.
|
|
3
|
+
"version": "0.78.5-stage.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -42,16 +42,18 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.36.1-stage.
|
|
45
|
+
"@licklist/core": "0.36.1-stage.1",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.36.4-stage.
|
|
47
|
+
"@licklist/plugins": "0.36.4-stage.3",
|
|
48
|
+
"clsx": "2.1.1",
|
|
49
|
+
"i18next": "25.3.2",
|
|
48
50
|
"lodash": "4.17.21",
|
|
49
51
|
"luxon": "3.5.0",
|
|
50
|
-
"react": "
|
|
51
|
-
"react-dom": "
|
|
52
|
+
"react": "18.3.1",
|
|
53
|
+
"react-dom": "18.3.1",
|
|
52
54
|
"react-hook-form": "7.52.2",
|
|
53
|
-
"react-i18next": "
|
|
54
|
-
"react-intl": "
|
|
55
|
+
"react-i18next": "15.6.1",
|
|
56
|
+
"react-intl": "7.1.11",
|
|
55
57
|
"react-query": "3.34.12",
|
|
56
58
|
"react-router-dom": "6.30.1"
|
|
57
59
|
},
|
|
@@ -62,9 +64,9 @@
|
|
|
62
64
|
"@dnd-kit/utilities": "2.0.0",
|
|
63
65
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
64
66
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
65
|
-
"@licklist/core": "0.36.1-stage.
|
|
67
|
+
"@licklist/core": "0.36.1-stage.1",
|
|
66
68
|
"@licklist/eslint-config": "0.5.6",
|
|
67
|
-
"@licklist/plugins": "0.36.4-stage.
|
|
69
|
+
"@licklist/plugins": "0.36.4-stage.3",
|
|
68
70
|
"@mantine/core": "6.0.22",
|
|
69
71
|
"@mantine/hooks": "6.0.22",
|
|
70
72
|
"@mdx-js/react": "1.6.22",
|
|
@@ -101,22 +103,23 @@
|
|
|
101
103
|
"emojibase-data": "7.0.1",
|
|
102
104
|
"emojibase-regex": "6.0.1",
|
|
103
105
|
"framer-motion": "4.1.17",
|
|
106
|
+
"i18next": "25.3.2",
|
|
104
107
|
"konva": "6.0.0",
|
|
105
108
|
"lodash": "4.17.21",
|
|
106
109
|
"luxon": "3.5.0",
|
|
107
110
|
"moment": "2.29.1",
|
|
108
|
-
"react": "
|
|
111
|
+
"react": "18.3.1",
|
|
109
112
|
"react-bootstrap": "1.6.1",
|
|
110
113
|
"react-color": "2.19.3",
|
|
111
114
|
"react-date-range": "1.4.0",
|
|
112
|
-
"react-dom": "
|
|
115
|
+
"react-dom": "18.3.1",
|
|
113
116
|
"react-email-editor": "1.6.1",
|
|
114
117
|
"react-highlighter": "0.4.3",
|
|
115
118
|
"react-hook-form": "7.52.2",
|
|
116
|
-
"react-i18next": "
|
|
119
|
+
"react-i18next": "15.6.1",
|
|
117
120
|
"react-icons": "5.3.0",
|
|
118
|
-
"react-intl": "
|
|
119
|
-
"react-konva": "
|
|
121
|
+
"react-intl": "7.1.11",
|
|
122
|
+
"react-konva": "18.2.12",
|
|
120
123
|
"react-loader": "2.4.7",
|
|
121
124
|
"react-loading-skeleton": "3.3.1",
|
|
122
125
|
"react-overlays": "4.1.1",
|
|
@@ -149,10 +152,10 @@
|
|
|
149
152
|
"@types/luxon": "3.4.2",
|
|
150
153
|
"@types/mdx-js__react": "1.5.3",
|
|
151
154
|
"@types/node": "20.9.0",
|
|
152
|
-
"@types/react": "
|
|
155
|
+
"@types/react": "18.3.12",
|
|
153
156
|
"@types/react-bootstrap": "1.0.1",
|
|
154
157
|
"@types/react-date-range": "1.4.9",
|
|
155
|
-
"@types/react-dom": "
|
|
158
|
+
"@types/react-dom": "18.3.1",
|
|
156
159
|
"@types/react-email-editor": "1.1.7",
|
|
157
160
|
"@types/react-loader": "2.4.4",
|
|
158
161
|
"@types/react-phone-number-input": "3.0.6",
|
|
@@ -196,8 +199,8 @@
|
|
|
196
199
|
"vite-tsconfig-paths": "5.0.1"
|
|
197
200
|
},
|
|
198
201
|
"resolutions": {
|
|
199
|
-
"@types/react": "
|
|
200
|
-
"@types/react-dom": "
|
|
202
|
+
"@types/react": "18.3.12",
|
|
203
|
+
"@types/react-dom": "18.3.1"
|
|
201
204
|
},
|
|
202
205
|
"lint-staged": {
|
|
203
206
|
"*.{ts,tsx}": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren, useState } from 'react'
|
|
2
2
|
import { CustomFieldSetsContext, ValuesType } from '../contexts'
|
|
3
3
|
|
|
4
|
-
export const CustomFieldSetsProvider
|
|
4
|
+
export const CustomFieldSetsProvider = ({ children }: PropsWithChildren) => {
|
|
5
5
|
const [values, setValues] = useState<ValuesType>({})
|
|
6
6
|
|
|
7
7
|
return (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren } from 'react'
|
|
2
2
|
|
|
3
|
-
export const DropdownWrapper
|
|
3
|
+
export const DropdownWrapper = ({ children }: PropsWithChildren) => (
|
|
4
4
|
<div className='canvas-dropdown-wrapper'>
|
|
5
5
|
<div className='arrow' />
|
|
6
6
|
<div className='children-container'>{children}</div>
|
|
@@ -5,13 +5,15 @@ import { isEmpty, uniqBy } from 'lodash'
|
|
|
5
5
|
import { useTranslation } from 'react-i18next'
|
|
6
6
|
import { useIntl } from 'react-intl'
|
|
7
7
|
import { Currency } from '@licklist/core/dist/Config'
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
MenuStep,
|
|
10
|
+
Product,
|
|
11
|
+
} from '@licklist/plugins/dist/types/context/sale/menuSteps'
|
|
9
12
|
import { OrderModifierByProduct } from '@licklist/core/dist/DataMapper/Order/OrderModifiierByProduct'
|
|
10
|
-
import { Product } from '@licklist/plugins/dist/types/context/sale/menuSteps'
|
|
11
13
|
import { OrderModifier } from '@licklist/core/dist/DataMapper/Order/OrderModifierDataMapper'
|
|
12
|
-
import { NumberInputHorizontal } from 'src/sales'
|
|
13
14
|
import clsx from 'clsx'
|
|
14
15
|
import { ProductCategory } from 'dist/product-set/types'
|
|
16
|
+
import { NumberInputHorizontal } from '../../../sales'
|
|
15
17
|
import { MAX_PRODUCT_NUMBER } from '../../order-process/components/CategoryProduct/constants'
|
|
16
18
|
import { FormOrderItem } from '../../order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput'
|
|
17
19
|
import { getOrderProductModifiersPrice } from '../../order-process/components/BookingSummary/utils'
|
|
@@ -63,20 +65,23 @@ export const ProductWithModifierSetForm = ({
|
|
|
63
65
|
const defaultProductQuantity = editOrderModifier?.productQuantity ?? 0
|
|
64
66
|
|
|
65
67
|
const valuesOrder = watch()
|
|
66
|
-
const productQuantity =
|
|
68
|
+
const productQuantity =
|
|
69
|
+
valuesOrder?.product?.quantity ?? defaultProductQuantity
|
|
67
70
|
|
|
68
71
|
const orderModifiersSets =
|
|
69
72
|
valuesOrder[`${product.id}`]?.orderProductModifiers || []
|
|
70
73
|
|
|
71
74
|
const filteredOrderModifiers = filteredOrderModifierSets(orderModifiersSets)
|
|
72
75
|
|
|
73
|
-
const orderModifierSets: OrderModifierByProduct[] = useMemo(
|
|
76
|
+
const orderModifierSets: OrderModifierByProduct[] = useMemo(
|
|
77
|
+
() => [
|
|
74
78
|
{
|
|
75
79
|
productQuantity: productQuantity ?? 1,
|
|
76
80
|
modifiers: filteredOrderModifiers,
|
|
77
81
|
},
|
|
78
|
-
]
|
|
79
|
-
|
|
82
|
+
],
|
|
83
|
+
[filteredOrderModifiers, productQuantity],
|
|
84
|
+
)
|
|
80
85
|
|
|
81
86
|
const onSubmit = (event) => {
|
|
82
87
|
event.preventDefault()
|
|
@@ -180,7 +185,7 @@ export const ProductWithModifierSetForm = ({
|
|
|
180
185
|
isLoading={isSubmitting}
|
|
181
186
|
/>
|
|
182
187
|
</div>
|
|
183
|
-
<div className='
|
|
188
|
+
<div className='d-flex flex-column align-items-center justify-content-center'>
|
|
184
189
|
<div className='modifier-price pb-4 pl-5'>
|
|
185
190
|
{formatToCurrency(product.price)}
|
|
186
191
|
</div>
|
package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useDialogContext, DialogContextProvider } from 'src/modals'
|
|
2
1
|
import { Modal } from 'react-bootstrap'
|
|
3
2
|
import { OrderModifierByProduct } from '@licklist/core/dist/DataMapper/Order/OrderModifiierByProduct'
|
|
4
3
|
import { Product } from '@licklist/plugins/dist/types/context/sale/menuSteps'
|
|
5
|
-
import { TicketDescription } from 'src/iframe/event'
|
|
6
4
|
import clsx from 'clsx'
|
|
7
5
|
import { ProductCategory } from 'dist/product-set/types'
|
|
6
|
+
import { useDialogContext, DialogContextProvider } from '../../../modals'
|
|
7
|
+
import { TicketDescription } from '../../event'
|
|
8
8
|
import { FormOrderItem } from '../../order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput'
|
|
9
9
|
import { useOnWindowUnmount } from '../../order-process/components/utils/useOnWindowUnmount'
|
|
10
10
|
import { ProductWithModifierSetForm } from './ProductWithModifierSetForm'
|
|
@@ -48,12 +48,20 @@ export const ProductWithModifierSetModal = ({
|
|
|
48
48
|
</button>
|
|
49
49
|
</div>
|
|
50
50
|
<div className='right-block' id='select-event-container'>
|
|
51
|
-
<div
|
|
51
|
+
<div
|
|
52
|
+
className={clsx(
|
|
53
|
+
'manual-booking-container',
|
|
54
|
+
!product.images.length && 'tw-mt-8',
|
|
55
|
+
)}
|
|
56
|
+
>
|
|
52
57
|
<div className='manual-booking-header'>
|
|
53
58
|
<TicketDescription
|
|
54
59
|
title={product.name}
|
|
55
60
|
description={product.description}
|
|
56
|
-
className={clsx(
|
|
61
|
+
className={clsx(
|
|
62
|
+
'iframe-event__product-description',
|
|
63
|
+
!product.images.length && 'mt-6',
|
|
64
|
+
)}
|
|
57
65
|
classNameProductModal='d-block'
|
|
58
66
|
images={product.images}
|
|
59
67
|
isRequired={product.isRequired}
|
package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx
CHANGED
|
@@ -10,8 +10,8 @@ import { xor } from 'lodash'
|
|
|
10
10
|
import clsx from 'clsx'
|
|
11
11
|
import { Currency } from '@licklist/core/dist/Config'
|
|
12
12
|
import { useIntl } from 'react-intl'
|
|
13
|
-
import { MAX_PRODUCT_NUMBER } from '
|
|
14
|
-
import { NumberInputHorizontal } from '
|
|
13
|
+
import { MAX_PRODUCT_NUMBER } from '../../../order-process/components/CategoryProduct/constants'
|
|
14
|
+
import { NumberInputHorizontal } from '../../../../sales'
|
|
15
15
|
import { selectModifierType } from '../../utils'
|
|
16
16
|
|
|
17
17
|
interface ModifiersSetControllProps {
|
|
@@ -2,7 +2,7 @@ import { useEffect } from 'react'
|
|
|
2
2
|
import { useFormContext, Controller } from 'react-hook-form'
|
|
3
3
|
import { OrderModifierByProduct } from '@licklist/core/dist/DataMapper/Order/OrderModifiierByProduct'
|
|
4
4
|
import { Product } from '@licklist/plugins/dist/types/context/sale/menuSteps'
|
|
5
|
-
import { useTranslation } from 'react-i18next'
|
|
5
|
+
import { useTranslation } from 'react-i18next'
|
|
6
6
|
import { ModifiersSetControl } from './ModifierSetControll'
|
|
7
7
|
import { orderProductModifiersQuantity } from '../../utils'
|
|
8
8
|
|
|
@@ -69,25 +69,23 @@ export const ProductControl = ({
|
|
|
69
69
|
return true
|
|
70
70
|
},
|
|
71
71
|
}}
|
|
72
|
-
render={({ fieldState: { error } }) =>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
)
|
|
90
|
-
}}
|
|
72
|
+
render={({ fieldState: { error } }) => (
|
|
73
|
+
<>
|
|
74
|
+
<ModifiersSetControl
|
|
75
|
+
modifierSet={modifierSet}
|
|
76
|
+
productId={product.id}
|
|
77
|
+
modifiers={modifierSet.modifiers}
|
|
78
|
+
isEditMode={!!editOrderModifier?.modifiers}
|
|
79
|
+
orderProductModifierSets={editOrderModifier?.modifiers}
|
|
80
|
+
isLoading={isLoading}
|
|
81
|
+
/>
|
|
82
|
+
{error?.message && (
|
|
83
|
+
<div className='invalid-feedback d-flex pl-4'>
|
|
84
|
+
{error?.message}!
|
|
85
|
+
</div>
|
|
86
|
+
)}
|
|
87
|
+
</>
|
|
88
|
+
)}
|
|
91
89
|
/>
|
|
92
90
|
</div>
|
|
93
91
|
)
|
|
@@ -10,10 +10,8 @@ import {
|
|
|
10
10
|
Product,
|
|
11
11
|
ProductCategory,
|
|
12
12
|
} from '@licklist/plugins/dist/types/context/sale/menuSteps'
|
|
13
|
-
import { Button } from 'react-bootstrap'
|
|
14
|
-
import { FaTrashAlt } from 'react-icons/fa'
|
|
15
|
-
import { ProductWithModifierSetModal } from 'src/iframe/ProductWithModifierModal'
|
|
16
13
|
import { OrderModifierByProduct } from '@licklist/core/dist/DataMapper/Order/OrderModifiierByProduct'
|
|
14
|
+
import { ProductWithModifierSetModal } from '../../../ProductWithModifierModal'
|
|
17
15
|
import { TicketDescription } from '../../../event/ticket-description'
|
|
18
16
|
import { ProductQuantityInput } from './components/ProductQuantityInput'
|
|
19
17
|
import { FormOrderItem } from './components/ProductQuantityInput/ProductQuantityInput'
|
|
@@ -160,8 +158,8 @@ export const CategoryProduct = ({
|
|
|
160
158
|
).orderModifiersSets
|
|
161
159
|
?.filter((_, index) => index !== modifierIndex)
|
|
162
160
|
.concat(value.orderModifiersSets)
|
|
163
|
-
|
|
164
|
-
|
|
161
|
+
|
|
162
|
+
onChange({
|
|
165
163
|
...value,
|
|
166
164
|
orderModifiersSets: editedOrderModifiersSets,
|
|
167
165
|
quantity: editedOrderModifiersSets.reduce(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react'
|
|
2
2
|
import { useTranslation } from 'react-i18next'
|
|
3
3
|
import { useIntl } from 'react-intl'
|
|
4
4
|
import * as Config from '@licklist/core/dist/Config'
|
|
@@ -15,14 +15,14 @@ export type PaymentCardProps = {
|
|
|
15
15
|
isFreePayment?: boolean
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export const PaymentCard
|
|
18
|
+
export const PaymentCard = ({
|
|
19
19
|
order,
|
|
20
20
|
totalWithDiscount,
|
|
21
21
|
recalculatedFee,
|
|
22
22
|
discountBlock,
|
|
23
23
|
paymentDetail,
|
|
24
24
|
isFreePayment,
|
|
25
|
-
}) => {
|
|
25
|
+
}: PropsWithChildren<PaymentCardProps>) => {
|
|
26
26
|
const { t } = useTranslation(['Design'])
|
|
27
27
|
const { formatNumber } = useIntl()
|
|
28
28
|
|
|
@@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next'
|
|
|
4
4
|
import { Button, Col } from 'react-bootstrap'
|
|
5
5
|
import { PaymentSessionContext } from '@licklist/plugins/dist/context/payment/PaymentSessionContext'
|
|
6
6
|
import { PaymentLinkResponse } from '@licklist/plugins/dist/hooks/Api/usePaymentApi'
|
|
7
|
-
import { BookingSummaryProps } from '
|
|
7
|
+
import { BookingSummaryProps } from '../../order-process/components/BookingSummary/types'
|
|
8
8
|
// eslint-disable-next-line max-len
|
|
9
9
|
import { SummaryTotalBlock } from '../../order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock'
|
|
10
10
|
import { LoaderIndicator } from '../../../static'
|