@ultraviolet/plus 0.10.3 → 0.10.5

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/index.d.ts CHANGED
@@ -261,8 +261,8 @@ declare const EstimateCost: {
261
261
  }) => _emotion_react_jsx_runtime.JSX.Element;
262
262
  NumberInput: ({ amount, minValue, maxValue, getAmountValue, itemCallback, }: {
263
263
  amount?: number | undefined;
264
- itemCallback?: ((amount?: number | undefined, isVariant?: boolean | undefined) => void) | undefined;
265
- getAmountValue?: ((amount?: number | undefined) => void) | undefined;
264
+ itemCallback?: ((amount?: number | null | undefined, isVariant?: boolean | undefined) => void) | undefined;
265
+ getAmountValue?: ((amount?: number | null | undefined) => void) | undefined;
266
266
  minValue?: number | undefined;
267
267
  maxValue?: number | undefined;
268
268
  }) => _emotion_react_jsx_runtime.JSX.Element;
@@ -28,9 +28,8 @@ const NumberInput = ({
28
28
  min: minValue,
29
29
  max: maxValue,
30
30
  size: "small",
31
- onChange: event => {
32
- setValue(event.target.value);
33
- const newValue = event.target.value !== '' ? Number(event.target.value) : 0;
31
+ onChange: newValue => {
32
+ setValue(newValue);
34
33
  itemCallback?.(newValue, true);
35
34
  getAmountValue?.(newValue);
36
35
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/plus",
3
- "version": "0.10.3",
3
+ "version": "0.10.5",
4
4
  "description": "Ultraviolet Plus",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -57,7 +57,7 @@
57
57
  "react-flatten-children": "1.1.2",
58
58
  "react-intersection-observer": "9.8.1",
59
59
  "@ultraviolet/themes": "1.9.0",
60
- "@ultraviolet/ui": "1.43.0"
60
+ "@ultraviolet/ui": "1.43.2"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "rollup -c ../../rollup.config.mjs",