@open-tender/store 1.1.223 → 1.1.224
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.
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Order } from '@open-tender/types';
|
|
2
2
|
import { CheckTotalsProps } from '@open-tender/ui';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
declare const CheckTotals: ({ check, children }: {
|
|
4
|
+
declare const CheckTotals: ({ check, isSummary, children }: {
|
|
5
5
|
check: Order;
|
|
6
|
+
isSummary?: boolean;
|
|
6
7
|
children: (props: CheckTotalsProps) => ReactNode;
|
|
7
8
|
}) => ReactNode;
|
|
8
9
|
export default CheckTotals;
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var hooks_1 = require("../app/hooks");
|
|
4
4
|
var slices_1 = require("../slices");
|
|
5
5
|
var CheckTotals = function (_a) {
|
|
6
|
-
var check = _a.check, children = _a.children;
|
|
6
|
+
var check = _a.check, isSummary = _a.isSummary, children = _a.children;
|
|
7
7
|
var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).checkTotals;
|
|
8
8
|
if (!config)
|
|
9
9
|
return null;
|
|
10
|
-
return children({ config: config, check: check });
|
|
10
|
+
return children({ config: config, check: check, isSummary: isSummary });
|
|
11
11
|
};
|
|
12
12
|
exports.default = CheckTotals;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Order } from '@open-tender/types';
|
|
2
2
|
import { CheckTotalsProps } from '@open-tender/ui';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
declare const CheckTotals: ({ check, children }: {
|
|
4
|
+
declare const CheckTotals: ({ check, isSummary, children }: {
|
|
5
5
|
check: Order;
|
|
6
|
+
isSummary?: boolean;
|
|
6
7
|
children: (props: CheckTotalsProps) => ReactNode;
|
|
7
8
|
}) => ReactNode;
|
|
8
9
|
export default CheckTotals;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useAppSelector } from '../app/hooks';
|
|
2
2
|
import { selectKioskConfig } from '../slices';
|
|
3
3
|
var CheckTotals = function (_a) {
|
|
4
|
-
var check = _a.check, children = _a.children;
|
|
4
|
+
var check = _a.check, isSummary = _a.isSummary, children = _a.children;
|
|
5
5
|
var config = useAppSelector(selectKioskConfig).checkTotals;
|
|
6
6
|
if (!config)
|
|
7
7
|
return null;
|
|
8
|
-
return children({ config: config, check: check });
|
|
8
|
+
return children({ config: config, check: check, isSummary: isSummary });
|
|
9
9
|
};
|
|
10
10
|
export default CheckTotals;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.224",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@emotion/react": "^11.11.1",
|
|
64
64
|
"@open-tender/types": "^0.4.95",
|
|
65
|
-
"@open-tender/ui": "^0.4.
|
|
65
|
+
"@open-tender/ui": "^0.4.28",
|
|
66
66
|
"@open-tender/utils": "^0.4.69",
|
|
67
67
|
"@reduxjs/toolkit": "^2.0.1",
|
|
68
68
|
"date-fns": "2.30.0",
|