@ahrowe/ui 0.16.1 → 0.16.2
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/esm/common/numberInput/numberInput.mjs +1 -1
- package/dist/esm/common/numberInput/numberInput.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/types/package/common/numberInput/numberInput.d.ts +1 -0
- package/docs/NumberInput.md +1 -0
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ export interface NumberInputProps extends Omit<NumericFormatProps, 'onValueChang
|
|
|
27
27
|
showArrows?: boolean;
|
|
28
28
|
step?: number;
|
|
29
29
|
readOnly?: boolean;
|
|
30
|
+
isRequired?: boolean;
|
|
30
31
|
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
31
32
|
}
|
|
32
33
|
declare function NumberInput(props: NumberInputProps): ReactElement;
|
package/docs/NumberInput.md
CHANGED
|
@@ -53,6 +53,7 @@ const priceValidator = new FormValidator<number | undefined>(undefined, [Validat
|
|
|
53
53
|
| `thousandSeparator` | `string \| boolean` | Thousand grouping character |
|
|
54
54
|
| `allowNegative` | `boolean` | Default: `false` |
|
|
55
55
|
| `readOnly` | `boolean` | Make the field read-only — typing is blocked, and the arrow steppers (`showArrows`) and ↑/↓ keys are disabled. Default: `false` |
|
|
56
|
+
| `isRequired` | `boolean` | Shows the required mark (`*`) next to the label. Also inferred automatically when `formValidator` has a `required` validator. Default: `false` |
|
|
56
57
|
| `placeholder` | `string` | |
|
|
57
58
|
| `error` | `string` | Manual error message |
|
|
58
59
|
|