@synerise/ds-input-number 1.2.32 → 1.2.34
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/CHANGELOG.md +8 -0
- package/README.md +27 -23
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.2.34](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@1.2.33...@synerise/ds-input-number@1.2.34) (2026-03-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-input-number
|
|
9
|
+
|
|
10
|
+
## [1.2.33](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@1.2.32...@synerise/ds-input-number@1.2.33) (2026-03-09)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-input-number
|
|
13
|
+
|
|
6
14
|
## [1.2.32](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@1.2.31...@synerise/ds-input-number@1.2.32) (2026-02-23)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-input-number
|
package/README.md
CHANGED
|
@@ -13,29 +13,33 @@ Input-Number UI Component
|
|
|
13
13
|
|
|
14
14
|
### Props
|
|
15
15
|
|
|
16
|
-
| Property
|
|
17
|
-
|
|
|
18
|
-
| autoFocus
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
| errorText
|
|
24
|
-
|
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
| size
|
|
33
|
-
| step
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
16
|
+
| Property | Description | Type | Default |
|
|
17
|
+
| ------------------- | ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- | --------- |
|
|
18
|
+
| autoFocus | Get focus when component mounted | boolean | `false` |
|
|
19
|
+
| defaultValue | Initial value | number \| null | - |
|
|
20
|
+
| description | Input description | ReactNode | - |
|
|
21
|
+
| disabled | Disable the input | boolean | `false` |
|
|
22
|
+
| error | Triggers error state (red background) without showing an error message | boolean | - |
|
|
23
|
+
| errorText | Error message shown below input; also triggers error state | ReactNode | - |
|
|
24
|
+
| label | Input label | ReactNode | - |
|
|
25
|
+
| max | Max value | number | Infinity |
|
|
26
|
+
| min | Min value | number | -Infinity |
|
|
27
|
+
| onChange | Called with the parsed numeric value on change. Returns `null` when input is cleared. | (value: number \| null) => void | - |
|
|
28
|
+
| onPressEnter | Callback triggered when Enter key is pressed | (e: Event) => void | - |
|
|
29
|
+
| precision | Precision of input value | number | - |
|
|
30
|
+
| prefixel | ReactNode to render in the left addon slot | ReactNode | - |
|
|
31
|
+
| raw | Render bare input without FormField wrapper (no label / tooltip / description / errorText) | boolean | - |
|
|
32
|
+
| size | Height of input box | string | - |
|
|
33
|
+
| step | The number by which the current value is increased or decreased | number \| string | 1 |
|
|
34
|
+
| suffixel | ReactNode to render in the right addon slot | ReactNode | - |
|
|
35
|
+
| tooltip | Tooltip content shown next to the label | ReactNode | - |
|
|
36
|
+
| tooltipConfig | Config of tooltip | [TooltipProps](https://design.synerise.com/docs/components/tooltip#api) | - |
|
|
37
|
+
| value | Controlled value | number \| null | - |
|
|
38
|
+
| valueFormatOptions | Override number format options (e.g. `{ maximumFractionDigits: 2 }`). Locale-aware formatting is always applied. | NumberToFormatOptions | - |
|
|
39
|
+
| autoResize | Enable autosize: `true` or `{ minWidth, maxWidth?, stretchToFit? }` | boolean \| object | - |
|
|
40
|
+
| autoResizeProps | Extra props for the autosize wrapper (`placeholderIsMinWidth`, `wrapperClassName`, `wrapperStyle`, `extraWidth`) | object | - |
|
|
41
|
+
|
|
42
|
+
> **Note**: `formatter` and `parser` props from Ant Design cannot be customised — they are always overridden internally by the locale-aware formatting logic.
|
|
39
43
|
|
|
40
44
|
### Methods
|
|
41
45
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-input-number",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.34",
|
|
4
4
|
"description": "Input-Number UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-form-field": "^1.3.
|
|
39
|
-
"@synerise/ds-input": "^1.6.
|
|
40
|
-
"@synerise/ds-utils": "^1.
|
|
38
|
+
"@synerise/ds-form-field": "^1.3.9",
|
|
39
|
+
"@synerise/ds-input": "^1.6.9",
|
|
40
|
+
"@synerise/ds-utils": "^1.7.0",
|
|
41
41
|
"uuid": "^8.3.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"react": ">=16.9.0 <= 18.3.1",
|
|
47
47
|
"styled-components": "^5.3.3"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
|
|
50
50
|
}
|