@orderingstack/ordering-types 1.0.8 → 1.0.10

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.
@@ -117,10 +117,6 @@ export interface IProductStateSelected {
117
117
  export interface IProductEmit {
118
118
  [id: string]: string;
119
119
  }
120
- export interface ICategory {
121
- id: string;
122
- name: string;
123
- }
124
120
  export interface IProductFilter {
125
121
  [fltCtx: string]: string[];
126
122
  }
@@ -388,8 +384,8 @@ export interface IOrderProduct {
388
384
  literals: IProductLiterals;
389
385
  items?: IOrderProduct[];
390
386
  img: string;
391
- quantity: number;
392
- price: number;
387
+ quantity: string;
388
+ price: string;
393
389
  extra: Extra;
394
390
  }
395
391
  export declare enum EOrderLineStatus {
@@ -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 Theme
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: string;
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;
@@ -117,10 +117,6 @@ export interface IProductStateSelected {
117
117
  export interface IProductEmit {
118
118
  [id: string]: string;
119
119
  }
120
- export interface ICategory {
121
- id: string;
122
- name: string;
123
- }
124
120
  export interface IProductFilter {
125
121
  [fltCtx: string]: string[];
126
122
  }
@@ -388,8 +384,8 @@ export interface IOrderProduct {
388
384
  literals: IProductLiterals;
389
385
  items?: IOrderProduct[];
390
386
  img: string;
391
- quantity: number;
392
- price: number;
387
+ quantity: string;
388
+ price: string;
393
389
  extra: Extra;
394
390
  }
395
391
  export declare enum EOrderLineStatus {
@@ -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 Theme
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: string;
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",