@open-tender/store 1.1.64 → 1.1.65
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.
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Order } from '@open-tender/types';
|
|
2
|
+
import { CheckoutTotalsProps } from '@open-tender/ui';
|
|
3
|
+
import React, { ReactNode } from 'react';
|
|
4
|
+
declare const CheckoutTotalsContainer: ({ check, children }: {
|
|
5
|
+
check: Order;
|
|
6
|
+
children: (props: CheckoutTotalsProps) => ReactNode;
|
|
7
|
+
}) => React.ReactNode;
|
|
8
|
+
export default CheckoutTotalsContainer;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var ui_1 = require("@open-tender/ui");
|
|
5
|
+
var react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
var hooks_1 = require("../app/hooks");
|
|
7
|
+
var slices_1 = require("../slices");
|
|
8
|
+
var CheckTotals_1 = tslib_1.__importDefault(require("./CheckTotals"));
|
|
9
|
+
var CheckoutTotalsContainer = function (_a) {
|
|
10
|
+
var check = _a.check, children = _a.children;
|
|
11
|
+
var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).checkoutTotals;
|
|
12
|
+
var renderCheckTotals = (0, react_1.useCallback)(function () {
|
|
13
|
+
return react_1.default.createElement(CheckTotals_1.default, { children: ui_1.CheckTotals, check: check });
|
|
14
|
+
}, [check]);
|
|
15
|
+
return children({ config: config, renderCheckTotals: renderCheckTotals });
|
|
16
|
+
};
|
|
17
|
+
exports.default = CheckoutTotalsContainer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Order } from '@open-tender/types';
|
|
2
|
+
import { CheckoutTotalsProps } from '@open-tender/ui';
|
|
3
|
+
import React, { ReactNode } from 'react';
|
|
4
|
+
declare const CheckoutTotalsContainer: ({ check, children }: {
|
|
5
|
+
check: Order;
|
|
6
|
+
children: (props: CheckoutTotalsProps) => ReactNode;
|
|
7
|
+
}) => React.ReactNode;
|
|
8
|
+
export default CheckoutTotalsContainer;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CheckTotals } from '@open-tender/ui';
|
|
2
|
+
import React, { useCallback } from 'react';
|
|
3
|
+
import { useAppSelector } from '../app/hooks';
|
|
4
|
+
import { selectKioskConfig } from '../slices';
|
|
5
|
+
import { default as CheckTotalsContainer } from './CheckTotals';
|
|
6
|
+
var CheckoutTotalsContainer = function (_a) {
|
|
7
|
+
var check = _a.check, children = _a.children;
|
|
8
|
+
var config = useAppSelector(selectKioskConfig).checkoutTotals;
|
|
9
|
+
var renderCheckTotals = useCallback(function () {
|
|
10
|
+
return React.createElement(CheckTotalsContainer, { children: CheckTotals, check: check });
|
|
11
|
+
}, [check]);
|
|
12
|
+
return children({ config: config, renderCheckTotals: renderCheckTotals });
|
|
13
|
+
};
|
|
14
|
+
export default CheckoutTotalsContainer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.65",
|
|
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.58",
|
|
65
|
-
"@open-tender/ui": "^0.3.
|
|
65
|
+
"@open-tender/ui": "^0.3.57",
|
|
66
66
|
"@open-tender/utils": "^0.4.31",
|
|
67
67
|
"@reduxjs/toolkit": "^2.0.1",
|
|
68
68
|
"date-fns": "2.30.0",
|