@medplum/react 2.0.26 → 2.0.28
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/cjs/index.cjs +4 -4
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/esm/index.mjs +5 -5
- package/dist/esm/index.mjs.map +3 -3
- package/dist/types/DateTimeInput/DateTimeInput.d.ts +1 -0
- package/dist/types/QuantityInput/QuantityInput.d.ts +1 -0
- package/dist/types/ReferenceInput/ReferenceInput.d.ts +1 -0
- package/dist/types/ResourceInput/ResourceInput.d.ts +3 -3
- package/package.json +18 -18
|
@@ -5,6 +5,7 @@ export interface ReferenceInputProps {
|
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
defaultValue?: Reference;
|
|
7
7
|
targetTypes?: string[];
|
|
8
|
+
autoFocus?: boolean;
|
|
8
9
|
onChange?: (value: Reference | undefined) => void;
|
|
9
10
|
}
|
|
10
11
|
export declare function ReferenceInput(props: ReferenceInputProps): JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Reference, Resource
|
|
2
|
+
import { Reference, Resource } from '@medplum/fhirtypes';
|
|
3
3
|
export interface ResourceInputProps<T extends Resource = Resource> {
|
|
4
|
-
readonly resourceType:
|
|
4
|
+
readonly resourceType: T['resourceType'];
|
|
5
5
|
readonly name: string;
|
|
6
6
|
readonly defaultValue?: T | Reference<T>;
|
|
7
7
|
readonly placeholder?: string;
|
|
8
8
|
readonly loadOnFocus?: boolean;
|
|
9
9
|
readonly onChange?: (value: T | undefined) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare function ResourceInput<T extends Resource = Resource>(props: ResourceInputProps<T>): JSX.Element;
|
|
11
|
+
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.0.
|
|
3
|
+
"version": "2.0.28",
|
|
4
4
|
"description": "Medplum React Component Library",
|
|
5
5
|
"author": "Medplum <hello@medplum.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,33 +22,33 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@emotion/react": "11.11.1",
|
|
25
|
-
"@mantine/core": "6.0.
|
|
26
|
-
"@mantine/hooks": "6.0.
|
|
27
|
-
"@mantine/notifications": "6.0.
|
|
25
|
+
"@mantine/core": "6.0.16",
|
|
26
|
+
"@mantine/hooks": "6.0.16",
|
|
27
|
+
"@mantine/notifications": "6.0.16",
|
|
28
28
|
"@medplum/core": "*",
|
|
29
29
|
"@medplum/definitions": "*",
|
|
30
30
|
"@medplum/fhirtypes": "*",
|
|
31
31
|
"@medplum/mock": "*",
|
|
32
|
-
"@storybook/addon-actions": "7.0.
|
|
33
|
-
"@storybook/addon-essentials": "7.0.
|
|
34
|
-
"@storybook/addon-links": "7.0.
|
|
35
|
-
"@storybook/builder-vite": "7.0.
|
|
36
|
-
"@storybook/react": "7.0.
|
|
37
|
-
"@storybook/react-vite": "7.0.
|
|
38
|
-
"@tabler/icons-react": "2.
|
|
32
|
+
"@storybook/addon-actions": "7.0.27",
|
|
33
|
+
"@storybook/addon-essentials": "7.0.27",
|
|
34
|
+
"@storybook/addon-links": "7.0.27",
|
|
35
|
+
"@storybook/builder-vite": "7.0.27",
|
|
36
|
+
"@storybook/react": "7.0.27",
|
|
37
|
+
"@storybook/react-vite": "7.0.27",
|
|
38
|
+
"@tabler/icons-react": "2.25.0",
|
|
39
39
|
"@testing-library/dom": "9.3.1",
|
|
40
40
|
"@testing-library/jest-dom": "5.16.5",
|
|
41
41
|
"@testing-library/react": "14.0.0",
|
|
42
|
-
"@types/jest": "29.5.
|
|
43
|
-
"@types/node": "20.
|
|
44
|
-
"@types/react": "18.2.
|
|
45
|
-
"@types/react-dom": "18.2.
|
|
46
|
-
"jest": "29.
|
|
47
|
-
"jest-each": "29.
|
|
42
|
+
"@types/jest": "29.5.3",
|
|
43
|
+
"@types/node": "20.4.2",
|
|
44
|
+
"@types/react": "18.2.15",
|
|
45
|
+
"@types/react-dom": "18.2.7",
|
|
46
|
+
"jest": "29.6.1",
|
|
47
|
+
"jest-each": "29.6.1",
|
|
48
48
|
"react": "18.2.0",
|
|
49
49
|
"react-dom": "18.2.0",
|
|
50
50
|
"rimraf": "5.0.1",
|
|
51
|
-
"storybook": "7.0.
|
|
51
|
+
"storybook": "7.0.27",
|
|
52
52
|
"typescript": "5.1.6"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|