@open-tender/store 0.1.312 → 0.1.313
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.
|
@@ -10,6 +10,8 @@ declare const ModalContent: ({ title, subtitle, content, submit, submitText, can
|
|
|
10
10
|
cancelText?: string;
|
|
11
11
|
style?: Styles;
|
|
12
12
|
error?: string;
|
|
13
|
-
children: (props: ModalContentProps
|
|
13
|
+
children: (props: ModalContentProps & {
|
|
14
|
+
isAccessibilityOn?: boolean;
|
|
15
|
+
}) => ReactNode;
|
|
14
16
|
}) => ReactNode;
|
|
15
17
|
export default ModalContent;
|
|
@@ -5,6 +5,7 @@ var slices_1 = require("../slices");
|
|
|
5
5
|
var ModalContent = function (_a) {
|
|
6
6
|
var title = _a.title, subtitle = _a.subtitle, content = _a.content, submit = _a.submit, submitText = _a.submitText, cancel = _a.cancel, cancelText = _a.cancelText, style = _a.style, error = _a.error, children = _a.children;
|
|
7
7
|
var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).modalContent;
|
|
8
|
+
var isAccessibilityOn = (0, hooks_1.useAppSelector)(slices_1.selectAccessibility);
|
|
8
9
|
if (!config)
|
|
9
10
|
return null;
|
|
10
11
|
return children({
|
|
@@ -17,7 +18,8 @@ var ModalContent = function (_a) {
|
|
|
17
18
|
cancel: cancel,
|
|
18
19
|
cancelText: cancelText,
|
|
19
20
|
style: style,
|
|
20
|
-
error: error
|
|
21
|
+
error: error,
|
|
22
|
+
isAccessibilityOn: isAccessibilityOn
|
|
21
23
|
});
|
|
22
24
|
};
|
|
23
25
|
exports.default = ModalContent;
|
|
@@ -10,6 +10,8 @@ declare const ModalContent: ({ title, subtitle, content, submit, submitText, can
|
|
|
10
10
|
cancelText?: string;
|
|
11
11
|
style?: Styles;
|
|
12
12
|
error?: string;
|
|
13
|
-
children: (props: ModalContentProps
|
|
13
|
+
children: (props: ModalContentProps & {
|
|
14
|
+
isAccessibilityOn?: boolean;
|
|
15
|
+
}) => ReactNode;
|
|
14
16
|
}) => ReactNode;
|
|
15
17
|
export default ModalContent;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { useAppSelector } from '../app/hooks';
|
|
2
|
-
import { selectKioskConfig } from '../slices';
|
|
2
|
+
import { selectAccessibility, selectKioskConfig } from '../slices';
|
|
3
3
|
var ModalContent = function (_a) {
|
|
4
4
|
var title = _a.title, subtitle = _a.subtitle, content = _a.content, submit = _a.submit, submitText = _a.submitText, cancel = _a.cancel, cancelText = _a.cancelText, style = _a.style, error = _a.error, children = _a.children;
|
|
5
5
|
var config = useAppSelector(selectKioskConfig).modalContent;
|
|
6
|
+
var isAccessibilityOn = useAppSelector(selectAccessibility);
|
|
6
7
|
if (!config)
|
|
7
8
|
return null;
|
|
8
9
|
return children({
|
|
@@ -15,7 +16,8 @@ var ModalContent = function (_a) {
|
|
|
15
16
|
cancel: cancel,
|
|
16
17
|
cancelText: cancelText,
|
|
17
18
|
style: style,
|
|
18
|
-
error: error
|
|
19
|
+
error: error,
|
|
20
|
+
isAccessibilityOn: isAccessibilityOn
|
|
19
21
|
});
|
|
20
22
|
};
|
|
21
23
|
export default ModalContent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.313",
|
|
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",
|