@obolnetwork/obol-ui 1.0.10 → 1.0.11

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,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  interface NumberFieldProps {
3
- value: number;
4
- onChangeValue(value: number): void;
3
+ value?: number;
4
+ onChangeValue?(value: number): void;
5
5
  max?: number;
6
6
  min?: number;
7
7
  }
package/dist/index.es.js CHANGED
@@ -1358,7 +1358,7 @@ TextFieldWithCopy.displayName = "TextFieldWithCopy";
1358
1358
 
1359
1359
  var NumberField = forwardRef(function (_a, ref) {
1360
1360
  var _b = _a.max, max = _b === void 0 ? 10 : _b, _c = _a.min, min = _c === void 0 ? 1 : _c, value = _a.value, onChangeValue = _a.onChangeValue;
1361
- var _d = useState(value | min), qty = _d[0], setQty = _d[1];
1361
+ var _d = useState(value || min), qty = _d[0], setQty = _d[1];
1362
1362
  var handleOnDec = function () {
1363
1363
  if (qty <= min) {
1364
1364
  setQty(min);
package/dist/index.js CHANGED
@@ -1390,7 +1390,7 @@ TextFieldWithCopy.displayName = "TextFieldWithCopy";
1390
1390
 
1391
1391
  var NumberField = React.forwardRef(function (_a, ref) {
1392
1392
  var _b = _a.max, max = _b === void 0 ? 10 : _b, _c = _a.min, min = _c === void 0 ? 1 : _c, value = _a.value, onChangeValue = _a.onChangeValue;
1393
- var _d = React.useState(value | min), qty = _d[0], setQty = _d[1];
1393
+ var _d = React.useState(value || min), qty = _d[0], setQty = _d[1];
1394
1394
  var handleOnDec = function () {
1395
1395
  if (qty <= min) {
1396
1396
  setQty(min);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obolnetwork/obol-ui",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.es.js",
6
6
  "license": "MIT",