@orderingstack/ordering-types 1.0.8 → 1.0.9
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/index.d.ts +2 -2
- package/dist/cjs/kiosk.d.ts +5 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/kiosk.d.ts +5 -2
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -388,8 +388,8 @@ export interface IOrderProduct {
|
|
|
388
388
|
literals: IProductLiterals;
|
|
389
389
|
items?: IOrderProduct[];
|
|
390
390
|
img: string;
|
|
391
|
-
quantity:
|
|
392
|
-
price:
|
|
391
|
+
quantity: string;
|
|
392
|
+
price: string;
|
|
393
393
|
extra: Extra;
|
|
394
394
|
}
|
|
395
395
|
export declare enum EOrderLineStatus {
|
package/dist/cjs/kiosk.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { ReactElement } from "react";
|
|
2
2
|
import { IProduct, IOrder } from "./index";
|
|
3
3
|
import { UseTransitionProps } from "react-spring";
|
|
4
|
+
import { IOrderLine } from "./index";
|
|
4
5
|
export declare enum EPaymentStatus {
|
|
5
6
|
UNINITIALIZED = "UNINITIALIZED",
|
|
6
7
|
PROCESSING = "PROCESSING",
|
|
@@ -14,7 +15,7 @@ export declare enum EPaymentStatus {
|
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* Theme interface
|
|
17
|
-
* @interface
|
|
18
|
+
* @interface ITheme
|
|
18
19
|
* @
|
|
19
20
|
*/
|
|
20
21
|
export interface ITheme {
|
|
@@ -34,6 +35,7 @@ export interface ITheme {
|
|
|
34
35
|
'--font-color-btn-primary': string;
|
|
35
36
|
'--font-color-btn-secondary': string;
|
|
36
37
|
'--font-color-btn-disabled': string;
|
|
38
|
+
'--font-color-bg-primary': string;
|
|
37
39
|
'--product-tile-border-color': string;
|
|
38
40
|
[property: string]: string;
|
|
39
41
|
}
|
|
@@ -46,7 +48,7 @@ export interface IMenuProps {
|
|
|
46
48
|
BottomNav?: ReactElement;
|
|
47
49
|
MenuTile?: React.FC<IMenuTileProps>;
|
|
48
50
|
CategorySection?: React.FC<IMenuCategorySectionProps>;
|
|
49
|
-
fallbackImg
|
|
51
|
+
fallbackImg?: string;
|
|
50
52
|
lazyLoadImg?: boolean;
|
|
51
53
|
currency?: string;
|
|
52
54
|
timeZone?: string;
|
|
@@ -60,6 +62,7 @@ export interface IMenuProps {
|
|
|
60
62
|
goToCheckout: () => void;
|
|
61
63
|
goToStart: () => void;
|
|
62
64
|
order?: IOrder;
|
|
65
|
+
changeQuantity: (line: IOrderLine, quantity: number) => void;
|
|
63
66
|
}
|
|
64
67
|
export interface IMenuTileProps {
|
|
65
68
|
product: IProduct;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -388,8 +388,8 @@ export interface IOrderProduct {
|
|
|
388
388
|
literals: IProductLiterals;
|
|
389
389
|
items?: IOrderProduct[];
|
|
390
390
|
img: string;
|
|
391
|
-
quantity:
|
|
392
|
-
price:
|
|
391
|
+
quantity: string;
|
|
392
|
+
price: string;
|
|
393
393
|
extra: Extra;
|
|
394
394
|
}
|
|
395
395
|
export declare enum EOrderLineStatus {
|
package/dist/esm/kiosk.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { ReactElement } from "react";
|
|
2
2
|
import { IProduct, IOrder } from "./index";
|
|
3
3
|
import { UseTransitionProps } from "react-spring";
|
|
4
|
+
import { IOrderLine } from "./index";
|
|
4
5
|
export declare enum EPaymentStatus {
|
|
5
6
|
UNINITIALIZED = "UNINITIALIZED",
|
|
6
7
|
PROCESSING = "PROCESSING",
|
|
@@ -14,7 +15,7 @@ export declare enum EPaymentStatus {
|
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* Theme interface
|
|
17
|
-
* @interface
|
|
18
|
+
* @interface ITheme
|
|
18
19
|
* @
|
|
19
20
|
*/
|
|
20
21
|
export interface ITheme {
|
|
@@ -34,6 +35,7 @@ export interface ITheme {
|
|
|
34
35
|
'--font-color-btn-primary': string;
|
|
35
36
|
'--font-color-btn-secondary': string;
|
|
36
37
|
'--font-color-btn-disabled': string;
|
|
38
|
+
'--font-color-bg-primary': string;
|
|
37
39
|
'--product-tile-border-color': string;
|
|
38
40
|
[property: string]: string;
|
|
39
41
|
}
|
|
@@ -46,7 +48,7 @@ export interface IMenuProps {
|
|
|
46
48
|
BottomNav?: ReactElement;
|
|
47
49
|
MenuTile?: React.FC<IMenuTileProps>;
|
|
48
50
|
CategorySection?: React.FC<IMenuCategorySectionProps>;
|
|
49
|
-
fallbackImg
|
|
51
|
+
fallbackImg?: string;
|
|
50
52
|
lazyLoadImg?: boolean;
|
|
51
53
|
currency?: string;
|
|
52
54
|
timeZone?: string;
|
|
@@ -60,6 +62,7 @@ export interface IMenuProps {
|
|
|
60
62
|
goToCheckout: () => void;
|
|
61
63
|
goToStart: () => void;
|
|
62
64
|
order?: IOrder;
|
|
65
|
+
changeQuantity: (line: IOrderLine, quantity: number) => void;
|
|
63
66
|
}
|
|
64
67
|
export interface IMenuTileProps {
|
|
65
68
|
product: IProduct;
|