@medplum/react 2.1.7 → 2.1.8

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.
@@ -4,6 +4,7 @@ export interface QuantityInputProps {
4
4
  name: string;
5
5
  defaultValue?: Quantity;
6
6
  autoFocus?: boolean;
7
+ required?: boolean;
7
8
  onChange?: (value: Quantity) => void;
8
9
  disableWheel?: boolean;
9
10
  }
@@ -6,6 +6,7 @@ export interface ReferenceInputProps {
6
6
  defaultValue?: Reference;
7
7
  targetTypes?: string[];
8
8
  autoFocus?: boolean;
9
+ required?: boolean;
9
10
  onChange?: (value: Reference | undefined) => void;
10
11
  }
11
12
  export declare function ReferenceInput(props: ReferenceInputProps): JSX.Element;
@@ -6,6 +6,7 @@ export interface ResourceInputProps<T extends Resource = Resource> {
6
6
  readonly defaultValue?: T | Reference<T>;
7
7
  readonly placeholder?: string;
8
8
  readonly loadOnFocus?: boolean;
9
+ readonly required?: boolean;
9
10
  readonly onChange?: (value: T | undefined) => void;
10
11
  }
11
12
  export declare function ResourceInput<T extends Resource = Resource>(props: ResourceInputProps<T>): JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/react",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "Medplum React Component Library",
5
5
  "author": "Medplum <hello@medplum.com>",
6
6
  "license": "Apache-2.0",