@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.
@@ -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;
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahrowe/ui",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },