@open-tender/store 0.1.283 → 0.1.285

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,15 +1,18 @@
1
1
  import { CheckoutProps, Handlers } from '@open-tender/ui';
2
2
  import { ReactNode } from 'react';
3
- declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, renderHeader, renderTotals, children }: {
3
+ declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, showFooter, renderHeader, renderTotals, children }: {
4
4
  handlers: Handlers;
5
5
  title: string;
6
6
  subtitle?: string | null;
7
7
  headerContent?: ReactNode;
8
8
  content: ReactNode;
9
9
  backTitle: string;
10
+ showFooter?: boolean;
10
11
  proceedTitle?: string;
11
12
  renderHeader: () => ReactNode;
12
13
  renderTotals?: () => ReactNode;
13
- children: (props: CheckoutProps) => ReactNode;
14
+ children: (props: CheckoutProps & {
15
+ showFooter?: boolean;
16
+ }) => ReactNode;
14
17
  }) => ReactNode;
15
18
  export default CheckoutContainer;
@@ -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 CheckoutContainer = function (_a) {
6
- var handlers = _a.handlers, title = _a.title, subtitle = _a.subtitle, headerContent = _a.headerContent, content = _a.content, backTitle = _a.backTitle, proceedTitle = _a.proceedTitle, renderHeader = _a.renderHeader, renderTotals = _a.renderTotals, children = _a.children;
6
+ var handlers = _a.handlers, title = _a.title, subtitle = _a.subtitle, headerContent = _a.headerContent, content = _a.content, backTitle = _a.backTitle, proceedTitle = _a.proceedTitle, showFooter = _a.showFooter, renderHeader = _a.renderHeader, renderTotals = _a.renderTotals, children = _a.children;
7
7
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).checkout;
8
8
  if (!config)
9
9
  return null;
@@ -16,6 +16,7 @@ var CheckoutContainer = function (_a) {
16
16
  content: content,
17
17
  backTitle: backTitle,
18
18
  proceedTitle: proceedTitle,
19
+ showFooter: showFooter,
19
20
  renderHeader: renderHeader,
20
21
  renderTotals: renderTotals
21
22
  });
@@ -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
- children: (props: InputButtonProps) => ReactNode;
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,15 +1,18 @@
1
1
  import { CheckoutProps, Handlers } from '@open-tender/ui';
2
2
  import { ReactNode } from 'react';
3
- declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, renderHeader, renderTotals, children }: {
3
+ declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, showFooter, renderHeader, renderTotals, children }: {
4
4
  handlers: Handlers;
5
5
  title: string;
6
6
  subtitle?: string | null;
7
7
  headerContent?: ReactNode;
8
8
  content: ReactNode;
9
9
  backTitle: string;
10
+ showFooter?: boolean;
10
11
  proceedTitle?: string;
11
12
  renderHeader: () => ReactNode;
12
13
  renderTotals?: () => ReactNode;
13
- children: (props: CheckoutProps) => ReactNode;
14
+ children: (props: CheckoutProps & {
15
+ showFooter?: boolean;
16
+ }) => ReactNode;
14
17
  }) => ReactNode;
15
18
  export default CheckoutContainer;
@@ -1,7 +1,7 @@
1
1
  import { useAppSelector } from '../app/hooks';
2
2
  import { selectKioskConfig } from '../slices';
3
3
  var CheckoutContainer = function (_a) {
4
- var handlers = _a.handlers, title = _a.title, subtitle = _a.subtitle, headerContent = _a.headerContent, content = _a.content, backTitle = _a.backTitle, proceedTitle = _a.proceedTitle, renderHeader = _a.renderHeader, renderTotals = _a.renderTotals, children = _a.children;
4
+ var handlers = _a.handlers, title = _a.title, subtitle = _a.subtitle, headerContent = _a.headerContent, content = _a.content, backTitle = _a.backTitle, proceedTitle = _a.proceedTitle, showFooter = _a.showFooter, renderHeader = _a.renderHeader, renderTotals = _a.renderTotals, children = _a.children;
5
5
  var config = useAppSelector(selectKioskConfig).checkout;
6
6
  if (!config)
7
7
  return null;
@@ -14,6 +14,7 @@ var CheckoutContainer = function (_a) {
14
14
  content: content,
15
15
  backTitle: backTitle,
16
16
  proceedTitle: proceedTitle,
17
+ showFooter: showFooter,
17
18
  renderHeader: renderHeader,
18
19
  renderTotals: renderTotals
19
20
  });
@@ -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
- children: (props: InputButtonProps) => ReactNode;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "0.1.283",
3
+ "version": "0.1.285",
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",