@open-tender/store 1.1.93 → 1.1.95

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,6 +1,6 @@
1
1
  import { QuantityProps } from '@open-tender/ui';
2
2
  import { ReactNode } from 'react';
3
- declare const Quantity: ({ quantity, increment, incrementDisabled, decrement, decrementDisabled, fontSize, iconSize, className, children }: {
3
+ declare const Quantity: ({ quantity, increment, incrementDisabled, decrement, decrementDisabled, fontSize, iconSize, strokeWidth, className, children }: {
4
4
  quantity: number;
5
5
  increment: () => void;
6
6
  incrementDisabled?: boolean;
@@ -8,6 +8,7 @@ declare const Quantity: ({ quantity, increment, incrementDisabled, decrement, de
8
8
  decrementDisabled?: boolean;
9
9
  fontSize?: number;
10
10
  iconSize?: number;
11
+ strokeWidth?: number;
11
12
  className?: string;
12
13
  children: (props: QuantityProps) => ReactNode;
13
14
  }) => ReactNode;
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var hooks_1 = require("../app/hooks");
4
4
  var slices_1 = require("../slices");
5
5
  var Quantity = function (_a) {
6
- var quantity = _a.quantity, increment = _a.increment, _b = _a.incrementDisabled, incrementDisabled = _b === void 0 ? false : _b, decrement = _a.decrement, _c = _a.decrementDisabled, decrementDisabled = _c === void 0 ? false : _c, _d = _a.fontSize, fontSize = _d === void 0 ? 28 : _d, _e = _a.iconSize, iconSize = _e === void 0 ? 36 : _e, _f = _a.className, className = _f === void 0 ? 'quantity' : _f, children = _a.children;
7
- var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).quantity;
6
+ var quantity = _a.quantity, increment = _a.increment, _b = _a.incrementDisabled, incrementDisabled = _b === void 0 ? false : _b, decrement = _a.decrement, _c = _a.decrementDisabled, decrementDisabled = _c === void 0 ? false : _c, _d = _a.fontSize, fontSize = _d === void 0 ? 28 : _d, _e = _a.iconSize, iconSize = _e === void 0 ? 36 : _e, _f = _a.strokeWidth, strokeWidth = _f === void 0 ? 2 : _f, _g = _a.className, className = _g === void 0 ? 'quantity' : _g, children = _a.children;
7
+ var _h = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), _j = className, config = _h[_j];
8
8
  var handlers = { increment: increment, decrement: decrement };
9
9
  return children({
10
10
  config: config,
@@ -14,6 +14,7 @@ var Quantity = function (_a) {
14
14
  decrementDisabled: decrementDisabled,
15
15
  fontSize: fontSize,
16
16
  iconSize: iconSize,
17
+ strokeWidth: strokeWidth,
17
18
  className: className
18
19
  });
19
20
  };
@@ -1,6 +1,6 @@
1
1
  import { QuantityProps } from '@open-tender/ui';
2
2
  import { ReactNode } from 'react';
3
- declare const Quantity: ({ quantity, increment, incrementDisabled, decrement, decrementDisabled, fontSize, iconSize, className, children }: {
3
+ declare const Quantity: ({ quantity, increment, incrementDisabled, decrement, decrementDisabled, fontSize, iconSize, strokeWidth, className, children }: {
4
4
  quantity: number;
5
5
  increment: () => void;
6
6
  incrementDisabled?: boolean;
@@ -8,6 +8,7 @@ declare const Quantity: ({ quantity, increment, incrementDisabled, decrement, de
8
8
  decrementDisabled?: boolean;
9
9
  fontSize?: number;
10
10
  iconSize?: number;
11
+ strokeWidth?: number;
11
12
  className?: string;
12
13
  children: (props: QuantityProps) => ReactNode;
13
14
  }) => ReactNode;
@@ -1,8 +1,8 @@
1
1
  import { useAppSelector } from '../app/hooks';
2
2
  import { selectKioskConfig } from '../slices';
3
3
  var Quantity = function (_a) {
4
- var quantity = _a.quantity, increment = _a.increment, _b = _a.incrementDisabled, incrementDisabled = _b === void 0 ? false : _b, decrement = _a.decrement, _c = _a.decrementDisabled, decrementDisabled = _c === void 0 ? false : _c, _d = _a.fontSize, fontSize = _d === void 0 ? 28 : _d, _e = _a.iconSize, iconSize = _e === void 0 ? 36 : _e, _f = _a.className, className = _f === void 0 ? 'quantity' : _f, children = _a.children;
5
- var config = useAppSelector(selectKioskConfig).quantity;
4
+ var quantity = _a.quantity, increment = _a.increment, _b = _a.incrementDisabled, incrementDisabled = _b === void 0 ? false : _b, decrement = _a.decrement, _c = _a.decrementDisabled, decrementDisabled = _c === void 0 ? false : _c, _d = _a.fontSize, fontSize = _d === void 0 ? 28 : _d, _e = _a.iconSize, iconSize = _e === void 0 ? 36 : _e, _f = _a.strokeWidth, strokeWidth = _f === void 0 ? 2 : _f, _g = _a.className, className = _g === void 0 ? 'quantity' : _g, children = _a.children;
5
+ var _h = useAppSelector(selectKioskConfig), _j = className, config = _h[_j];
6
6
  var handlers = { increment: increment, decrement: decrement };
7
7
  return children({
8
8
  config: config,
@@ -12,6 +12,7 @@ var Quantity = function (_a) {
12
12
  decrementDisabled: decrementDisabled,
13
13
  fontSize: fontSize,
14
14
  iconSize: iconSize,
15
+ strokeWidth: strokeWidth,
15
16
  className: className
16
17
  });
17
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "1.1.93",
3
+ "version": "1.1.95",
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.60",
65
- "@open-tender/ui": "^0.3.77",
65
+ "@open-tender/ui": "^0.3.78",
66
66
  "@open-tender/utils": "^0.4.39",
67
67
  "@reduxjs/toolkit": "^2.0.1",
68
68
  "date-fns": "2.30.0",