@licklist/design 0.44.550-dev.5 → 0.44.550-dev.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/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts.map +1 -1
- package/dist/iframe/event/event-booking-products/EventBookingProducts.d.ts +4 -2
- package/dist/iframe/event/event-booking-products/EventBookingProducts.d.ts.map +1 -1
- package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.d.ts +4 -2
- package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.d.ts.map +1 -1
- package/dist/iframe/event/event-order-summary/EventOrderSummary.d.ts +1 -1
- package/dist/iframe/event/event-order-summary/EventOrderSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +10 -0
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -0
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +1 -0
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/index.d.ts +2 -0
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/index.d.ts.map +1 -0
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +4 -3
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +3 -4
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +4 -2
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts +2 -2
- package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts.map +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-status-page/PaymentStatusPage.d.ts +2 -2
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
- package/dist/iframe/payment/payment-status-page/component/PaymentStatusBody.d.ts +2 -2
- package/dist/iframe/payment/payment-status-page/component/PaymentStatusBody.d.ts.map +1 -1
- package/dist/styles/iframe-order-process/IframeOrderProcess.scss +6 -4
- package/dist/types/iframe.d.ts +2 -50
- package/dist/types/iframe.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/events/event-venue-map/components/MapPoint/MapPoint.tsx +1 -1
- package/src/iframe/event/event-booking-products/EventBookingProducts.tsx +4 -3
- package/src/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.tsx +8 -4
- package/src/iframe/event/event-order-summary/EventOrderSummary.tsx +0 -2
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.stories.tsx +46 -31
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +12 -19
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +43 -0
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/index.ts +1 -0
- package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +48 -66
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +3 -4
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +11 -2
- package/src/iframe/order-process/components/CalendarStepsForm/components/Category.tsx +1 -1
- package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +4 -1
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +4 -1
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +4 -1
- package/src/iframe/order-process/components/utils/useCategoryVerification.ts +3 -2
- package/src/iframe/payment/payment-page/PaymentPage.tsx +5 -6
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +13 -26
- package/src/iframe/payment/payment-status-page/component/PaymentStatusBody.tsx +2 -2
- package/src/styles/iframe-order-process/IframeOrderProcess.scss +6 -4
- package/src/types/iframe.ts +2 -58
|
@@ -3,12 +3,12 @@ import { useTranslation } from "react-i18next";
|
|
|
3
3
|
import {
|
|
4
4
|
ORDER_STATUS_PENDING,
|
|
5
5
|
ORDER_STATUS_SUCCESS,
|
|
6
|
-
|
|
6
|
+
OrderStatus,
|
|
7
7
|
} from "../PaymentStatusPage";
|
|
8
8
|
import { StatusBody } from "../../status-body/StatusBody";
|
|
9
9
|
|
|
10
10
|
interface PaymentStatusBodyProps {
|
|
11
|
-
status:
|
|
11
|
+
status: OrderStatus;
|
|
12
12
|
onBack: () => void;
|
|
13
13
|
onTryAgain?: () => void;
|
|
14
14
|
email?: string;
|
|
@@ -131,6 +131,12 @@
|
|
|
131
131
|
font-weight: 500;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
.categories {
|
|
135
|
+
&:not(:last-child) {
|
|
136
|
+
border-bottom: 2px solid $separator-color;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
134
140
|
.products {
|
|
135
141
|
margin-top: 0.5rem;
|
|
136
142
|
|
|
@@ -144,10 +150,6 @@
|
|
|
144
150
|
margin-bottom: 0.5rem;
|
|
145
151
|
}
|
|
146
152
|
}
|
|
147
|
-
|
|
148
|
-
&:not(:last-child) {
|
|
149
|
-
border-bottom: 2px solid $separator-color;
|
|
150
|
-
}
|
|
151
153
|
}
|
|
152
154
|
|
|
153
155
|
&:not(:last-child) {
|
package/src/types/iframe.ts
CHANGED
|
@@ -1,61 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Zone } from "@licklist/core/dist/DataMapper/Provider/ZoneDataMapper";
|
|
3
|
-
|
|
4
|
-
export interface Product {
|
|
5
|
-
id: number;
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
deposit: number;
|
|
9
|
-
price: number;
|
|
10
|
-
minSub?: number;
|
|
11
|
-
minAmount?: number;
|
|
12
|
-
maxAmount?: number;
|
|
13
|
-
minSpend?: number | null;
|
|
14
|
-
isSoldOut?: boolean;
|
|
15
|
-
isRequired?: boolean;
|
|
16
|
-
isUnlimited?: boolean;
|
|
17
|
-
images: CoreProduct["images"];
|
|
18
|
-
capacity?: number | null;
|
|
19
|
-
uuid: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface ProductCategory {
|
|
23
|
-
id: number;
|
|
24
|
-
name: string;
|
|
25
|
-
allowDeposits?: boolean;
|
|
26
|
-
remainderExpireAfter?: number | null;
|
|
27
|
-
minSubItems: number | null;
|
|
28
|
-
maxSubItems: number | null;
|
|
29
|
-
products?: Product[];
|
|
30
|
-
zone?: Zone | null;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface MenuStep {
|
|
34
|
-
id: number;
|
|
35
|
-
name: string;
|
|
36
|
-
productCategories?: ProductCategory[];
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface Menu {
|
|
40
|
-
id: number;
|
|
41
|
-
menuSteps: MenuStep[];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// TODO similar type exists in iframe app
|
|
45
|
-
// remove this when components are moved to iframe
|
|
46
|
-
export interface Order {
|
|
47
|
-
id: number;
|
|
48
|
-
quantity: number;
|
|
49
|
-
price: number;
|
|
50
|
-
name: string;
|
|
51
|
-
productsCategoryId: number;
|
|
52
|
-
deposit?: number | null;
|
|
53
|
-
}
|
|
1
|
+
import { OrderItems } from "@licklist/plugins/dist/types/context/Iframe/orderItems";
|
|
54
2
|
|
|
55
3
|
export type SetOrderFn = (
|
|
56
|
-
val:
|
|
57
|
-
| Record<number, Order>
|
|
58
|
-
| ((prevVar: Record<number, Order>) => Record<number, Order>)
|
|
4
|
+
val: OrderItems | ((prevVar: OrderItems) => OrderItems)
|
|
59
5
|
) => void;
|
|
60
|
-
|
|
61
|
-
export type WizardFormValues = { [key: string]: any };
|