@open-tender/store 0.1.284 → 0.1.286
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/components/InputButton.d.ts +5 -2
- package/dist/cjs/components/InputButton.js +3 -2
- package/dist/cjs/components/Notifications.d.ts +3 -1
- package/dist/cjs/components/Notifications.js +2 -1
- package/dist/esm/components/InputButton.d.ts +5 -2
- package/dist/esm/components/InputButton.js +3 -2
- package/dist/esm/components/Notifications.d.ts +3 -1
- package/dist/esm/components/Notifications.js +3 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputButtonProps, Styles } from '@open-tender/ui';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
declare const InputButton: ({ label, value, open, isRequired, style, labelStyle, showOptionalLabel, children }: {
|
|
3
|
+
declare const InputButton: ({ label, value, open, isRequired, style, labelStyle, showOptionalLabel, error, children }: {
|
|
4
4
|
label?: string;
|
|
5
5
|
value: string;
|
|
6
6
|
open: () => void;
|
|
@@ -8,6 +8,9 @@ declare const InputButton: ({ label, value, open, isRequired, style, labelStyle,
|
|
|
8
8
|
style?: Styles;
|
|
9
9
|
labelStyle?: Styles;
|
|
10
10
|
showOptionalLabel?: boolean;
|
|
11
|
-
|
|
11
|
+
error?: string;
|
|
12
|
+
children: (props: InputButtonProps & {
|
|
13
|
+
error?: string;
|
|
14
|
+
}) => ReactNode;
|
|
12
15
|
}) => ReactNode;
|
|
13
16
|
export default InputButton;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var hooks_1 = require("../app/hooks");
|
|
4
4
|
var slices_1 = require("../slices");
|
|
5
5
|
var InputButton = function (_a) {
|
|
6
|
-
var label = _a.label, value = _a.value, open = _a.open, isRequired = _a.isRequired, style = _a.style, labelStyle = _a.labelStyle, showOptionalLabel = _a.showOptionalLabel, children = _a.children;
|
|
6
|
+
var label = _a.label, value = _a.value, open = _a.open, isRequired = _a.isRequired, style = _a.style, labelStyle = _a.labelStyle, showOptionalLabel = _a.showOptionalLabel, error = _a.error, children = _a.children;
|
|
7
7
|
var _b = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _b.inputButton, labelConfig = _b.label;
|
|
8
8
|
var handlers = { open: open };
|
|
9
9
|
if (!config)
|
|
@@ -17,7 +17,8 @@ var InputButton = function (_a) {
|
|
|
17
17
|
isRequired: isRequired,
|
|
18
18
|
style: style,
|
|
19
19
|
labelStyle: labelStyle,
|
|
20
|
-
showOptionalLabel: showOptionalLabel
|
|
20
|
+
showOptionalLabel: showOptionalLabel,
|
|
21
|
+
error: error
|
|
21
22
|
});
|
|
22
23
|
};
|
|
23
24
|
exports.default = InputButton;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { NotificationsProps } from '@open-tender/ui';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
declare const Notifications: ({ children }: {
|
|
4
|
-
children: (props: NotificationsProps
|
|
4
|
+
children: (props: NotificationsProps & {
|
|
5
|
+
isAccesibilityOn?: boolean;
|
|
6
|
+
}) => ReactNode;
|
|
5
7
|
}) => ReactNode;
|
|
6
8
|
export default Notifications;
|
|
@@ -6,8 +6,9 @@ var Notifications = function (_a) {
|
|
|
6
6
|
var children = _a.children;
|
|
7
7
|
var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).notifications;
|
|
8
8
|
var messages = (0, hooks_1.useAppSelector)(slices_1.selectNotifications);
|
|
9
|
+
var isAccesibilityOn = (0, hooks_1.useAppSelector)(slices_1.selectAccessibility);
|
|
9
10
|
if (!config)
|
|
10
11
|
return null;
|
|
11
|
-
return children({ config: config, messages: messages });
|
|
12
|
+
return children({ config: config, messages: messages, isAccesibilityOn: isAccesibilityOn });
|
|
12
13
|
};
|
|
13
14
|
exports.default = Notifications;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputButtonProps, Styles } from '@open-tender/ui';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
declare const InputButton: ({ label, value, open, isRequired, style, labelStyle, showOptionalLabel, children }: {
|
|
3
|
+
declare const InputButton: ({ label, value, open, isRequired, style, labelStyle, showOptionalLabel, error, children }: {
|
|
4
4
|
label?: string;
|
|
5
5
|
value: string;
|
|
6
6
|
open: () => void;
|
|
@@ -8,6 +8,9 @@ declare const InputButton: ({ label, value, open, isRequired, style, labelStyle,
|
|
|
8
8
|
style?: Styles;
|
|
9
9
|
labelStyle?: Styles;
|
|
10
10
|
showOptionalLabel?: boolean;
|
|
11
|
-
|
|
11
|
+
error?: string;
|
|
12
|
+
children: (props: InputButtonProps & {
|
|
13
|
+
error?: string;
|
|
14
|
+
}) => ReactNode;
|
|
12
15
|
}) => ReactNode;
|
|
13
16
|
export default InputButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useAppSelector } from '../app/hooks';
|
|
2
2
|
import { selectKioskConfig } from '../slices';
|
|
3
3
|
var InputButton = function (_a) {
|
|
4
|
-
var label = _a.label, value = _a.value, open = _a.open, isRequired = _a.isRequired, style = _a.style, labelStyle = _a.labelStyle, showOptionalLabel = _a.showOptionalLabel, children = _a.children;
|
|
4
|
+
var label = _a.label, value = _a.value, open = _a.open, isRequired = _a.isRequired, style = _a.style, labelStyle = _a.labelStyle, showOptionalLabel = _a.showOptionalLabel, error = _a.error, children = _a.children;
|
|
5
5
|
var _b = useAppSelector(selectKioskConfig), config = _b.inputButton, labelConfig = _b.label;
|
|
6
6
|
var handlers = { open: open };
|
|
7
7
|
if (!config)
|
|
@@ -15,7 +15,8 @@ var InputButton = function (_a) {
|
|
|
15
15
|
isRequired: isRequired,
|
|
16
16
|
style: style,
|
|
17
17
|
labelStyle: labelStyle,
|
|
18
|
-
showOptionalLabel: showOptionalLabel
|
|
18
|
+
showOptionalLabel: showOptionalLabel,
|
|
19
|
+
error: error
|
|
19
20
|
});
|
|
20
21
|
};
|
|
21
22
|
export default InputButton;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { NotificationsProps } from '@open-tender/ui';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
declare const Notifications: ({ children }: {
|
|
4
|
-
children: (props: NotificationsProps
|
|
4
|
+
children: (props: NotificationsProps & {
|
|
5
|
+
isAccesibilityOn?: boolean;
|
|
6
|
+
}) => ReactNode;
|
|
5
7
|
}) => ReactNode;
|
|
6
8
|
export default Notifications;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { useAppSelector } from '../app/hooks';
|
|
2
|
-
import { selectKioskConfig, selectNotifications } from '../slices';
|
|
2
|
+
import { selectAccessibility, selectKioskConfig, selectNotifications } from '../slices';
|
|
3
3
|
var Notifications = function (_a) {
|
|
4
4
|
var children = _a.children;
|
|
5
5
|
var config = useAppSelector(selectKioskConfig).notifications;
|
|
6
6
|
var messages = useAppSelector(selectNotifications);
|
|
7
|
+
var isAccesibilityOn = useAppSelector(selectAccessibility);
|
|
7
8
|
if (!config)
|
|
8
9
|
return null;
|
|
9
|
-
return children({ config: config, messages: messages });
|
|
10
|
+
return children({ config: config, messages: messages, isAccesibilityOn: isAccesibilityOn });
|
|
10
11
|
};
|
|
11
12
|
export default Notifications;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.286",
|
|
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",
|