@orderingstack/ordering-types 1.0.15 → 1.0.17
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/cjs/kiosk.d.ts +22 -8
- package/dist/esm/kiosk.d.ts +22 -8
- package/package.json +1 -1
package/dist/cjs/kiosk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactElement } from "react";
|
|
2
2
|
import { UseFormRegisterReturn } from "react-hook-form";
|
|
3
3
|
import { UseTransitionProps } from "react-spring";
|
|
4
|
-
import { IProduct, IOrder, IProductStateSelected, IProductStateFilter
|
|
4
|
+
import { IProduct, IOrder, IProductStateSelected, IProductStateFilter } from "./index";
|
|
5
5
|
import { IOrderLine } from "./index";
|
|
6
6
|
export declare enum EPaymentStatus {
|
|
7
7
|
UNINITIALIZED = "UNINITIALIZED",
|
|
@@ -43,12 +43,6 @@ export interface ITheme {
|
|
|
43
43
|
export interface IMenuProps {
|
|
44
44
|
menu: IProduct[];
|
|
45
45
|
handleSelectProduct: (product: IProduct | string) => void;
|
|
46
|
-
Header?: ReactElement;
|
|
47
|
-
Logo?: ReactElement;
|
|
48
|
-
TopNav?: ReactElement;
|
|
49
|
-
BottomNav?: ReactElement;
|
|
50
|
-
MenuTile?: React.FC<IMenuTileProps>;
|
|
51
|
-
CategorySection?: React.FC<IMenuCategorySectionProps>;
|
|
52
46
|
fallbackImg?: string;
|
|
53
47
|
lazyLoadImg?: boolean;
|
|
54
48
|
currency?: string;
|
|
@@ -64,7 +58,7 @@ export interface IMenuProps {
|
|
|
64
58
|
goToStart: (state?: any) => void;
|
|
65
59
|
order?: IOrder;
|
|
66
60
|
changeQuantity: (line: IOrderLine, quantity: number) => void;
|
|
67
|
-
|
|
61
|
+
components: IMenuComponents;
|
|
68
62
|
}
|
|
69
63
|
export interface IMenuTileProps {
|
|
70
64
|
product: IProduct;
|
|
@@ -83,6 +77,26 @@ export interface IMenuCategorySectionProps {
|
|
|
83
77
|
colsLg?: number;
|
|
84
78
|
MenuTile?: React.FC<IMenuTileProps>;
|
|
85
79
|
}
|
|
80
|
+
export interface IMenuTopNavProps {
|
|
81
|
+
goToStart: (state?: any) => void;
|
|
82
|
+
goToCheckout: (state?: any) => void;
|
|
83
|
+
order?: IOrder;
|
|
84
|
+
}
|
|
85
|
+
export interface IMenuBottomNavProps {
|
|
86
|
+
order?: IOrder;
|
|
87
|
+
currency?: string;
|
|
88
|
+
goToCheckout?: (state?: any) => void;
|
|
89
|
+
fallbackImg?: string;
|
|
90
|
+
changeQuantity: (line: IOrderLine, quantity: number) => void;
|
|
91
|
+
}
|
|
92
|
+
export interface IMenuComponents {
|
|
93
|
+
TopNav?: React.FC<IMenuTopNavProps>;
|
|
94
|
+
BottomNav?: React.FC<IMenuBottomNavProps>;
|
|
95
|
+
MenuTile?: React.FC<IMenuTileProps>;
|
|
96
|
+
CategorySection?: React.FC<IMenuCategorySectionProps>;
|
|
97
|
+
Header?: ReactElement;
|
|
98
|
+
Logo?: ReactElement;
|
|
99
|
+
}
|
|
86
100
|
export interface IProductConfiguratorProps {
|
|
87
101
|
product: IProduct;
|
|
88
102
|
components: IProductConfiguratorComponents;
|
package/dist/esm/kiosk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactElement } from "react";
|
|
2
2
|
import { UseFormRegisterReturn } from "react-hook-form";
|
|
3
3
|
import { UseTransitionProps } from "react-spring";
|
|
4
|
-
import { IProduct, IOrder, IProductStateSelected, IProductStateFilter
|
|
4
|
+
import { IProduct, IOrder, IProductStateSelected, IProductStateFilter } from "./index";
|
|
5
5
|
import { IOrderLine } from "./index";
|
|
6
6
|
export declare enum EPaymentStatus {
|
|
7
7
|
UNINITIALIZED = "UNINITIALIZED",
|
|
@@ -43,12 +43,6 @@ export interface ITheme {
|
|
|
43
43
|
export interface IMenuProps {
|
|
44
44
|
menu: IProduct[];
|
|
45
45
|
handleSelectProduct: (product: IProduct | string) => void;
|
|
46
|
-
Header?: ReactElement;
|
|
47
|
-
Logo?: ReactElement;
|
|
48
|
-
TopNav?: ReactElement;
|
|
49
|
-
BottomNav?: ReactElement;
|
|
50
|
-
MenuTile?: React.FC<IMenuTileProps>;
|
|
51
|
-
CategorySection?: React.FC<IMenuCategorySectionProps>;
|
|
52
46
|
fallbackImg?: string;
|
|
53
47
|
lazyLoadImg?: boolean;
|
|
54
48
|
currency?: string;
|
|
@@ -64,7 +58,7 @@ export interface IMenuProps {
|
|
|
64
58
|
goToStart: (state?: any) => void;
|
|
65
59
|
order?: IOrder;
|
|
66
60
|
changeQuantity: (line: IOrderLine, quantity: number) => void;
|
|
67
|
-
|
|
61
|
+
components: IMenuComponents;
|
|
68
62
|
}
|
|
69
63
|
export interface IMenuTileProps {
|
|
70
64
|
product: IProduct;
|
|
@@ -83,6 +77,26 @@ export interface IMenuCategorySectionProps {
|
|
|
83
77
|
colsLg?: number;
|
|
84
78
|
MenuTile?: React.FC<IMenuTileProps>;
|
|
85
79
|
}
|
|
80
|
+
export interface IMenuTopNavProps {
|
|
81
|
+
goToStart: (state?: any) => void;
|
|
82
|
+
goToCheckout: (state?: any) => void;
|
|
83
|
+
order?: IOrder;
|
|
84
|
+
}
|
|
85
|
+
export interface IMenuBottomNavProps {
|
|
86
|
+
order?: IOrder;
|
|
87
|
+
currency?: string;
|
|
88
|
+
goToCheckout?: (state?: any) => void;
|
|
89
|
+
fallbackImg?: string;
|
|
90
|
+
changeQuantity: (line: IOrderLine, quantity: number) => void;
|
|
91
|
+
}
|
|
92
|
+
export interface IMenuComponents {
|
|
93
|
+
TopNav?: React.FC<IMenuTopNavProps>;
|
|
94
|
+
BottomNav?: React.FC<IMenuBottomNavProps>;
|
|
95
|
+
MenuTile?: React.FC<IMenuTileProps>;
|
|
96
|
+
CategorySection?: React.FC<IMenuCategorySectionProps>;
|
|
97
|
+
Header?: ReactElement;
|
|
98
|
+
Logo?: ReactElement;
|
|
99
|
+
}
|
|
86
100
|
export interface IProductConfiguratorProps {
|
|
87
101
|
product: IProduct;
|
|
88
102
|
components: IProductConfiguratorComponents;
|