@synerise/ds-input-number 1.2.33 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +27 -23
  3. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
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
+
6
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)
7
11
 
8
12
  **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 | Description | Type | Default |
17
- | ---------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | --------- |
18
- | autoFocus | Get focus when component mounted | boolean | `false` |
19
- | decimalSeparator | Decimal separator | string | - |
20
- | defaultValue | Initial value | number |
21
- | description | Input description | string | - |
22
- | disabled | Disable the input | boolean | `false` |
23
- | errorText | Error message, if provided input will be set in error state | string | - |
24
- | formatter | Specifies the format of the value presented | (value: number / string) => string | - |
25
- | label | Input label | string | - |
26
- | max | Max value | number | Infinity |
27
- | min | Min value | number | -Infinity |
28
- | onChange | The callback triggered when the value is changed. The return value is either a number or empty string '' if NaN | (value: number / string) => void |
29
- | onPressEnter | The callback function that is triggered when Enter key is pressed. | (e:Event) => void |
30
- | parser | Specifies the value extracted from formatter | (val: number / string) => string | - |
31
- | precision | Precision of input value | number | - |
32
- | size | Height of input box | string | - |
33
- | step | The number to which the current value is increased or decreased. It can be an integer or decimal. | number / string | 1 |
34
- | value | Current value | number | - |
35
- | prefixel | String or ReactNode to set prefix | string / ReactNode | - |
36
- | suffixel | String or ReactNode to set suffix | string / ReactNode | - |
37
- | tooltip | Tooltip content | ReactNode | - |
38
- | tooltipConfig | Config of tooltip | [TooltipProps](https://design.synerise.com/docs/components/tooltip#api) | - |
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.33",
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.8",
39
- "@synerise/ds-input": "^1.6.8",
40
- "@synerise/ds-utils": "^1.6.0",
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": "8dfafc5d7278f09d430f1e7499782d05c76b47c0"
49
+ "gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
50
50
  }