@medplum/react 0.9.19 → 0.9.20
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.js +99 -17
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.min.js +1 -1
- package/dist/cjs/index.min.js.map +1 -1
- package/dist/esm/index.js +98 -18
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/types/ContactDetailDisplay.d.ts +6 -0
- package/dist/types/ContactDetailInput.d.ts +8 -0
- package/dist/types/ContactPointInput.d.ts +1 -1
- package/dist/types/GoogleButton.d.ts +3 -3
- package/dist/types/Input.d.ts +2 -1
- package/dist/types/SignInForm.d.ts +11 -8
- package/dist/types/index.d.ts +2 -0
- package/package.json +5 -5
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ContactDetail } from '@medplum/fhirtypes';
|
|
3
|
+
export interface ContactDetailInputProps {
|
|
4
|
+
name: string;
|
|
5
|
+
defaultValue?: ContactDetail;
|
|
6
|
+
onChange?: (value: ContactDetail) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ContactDetailInput(props: ContactDetailInputProps): JSX.Element;
|
|
@@ -3,6 +3,6 @@ import { ContactPoint } from '@medplum/fhirtypes';
|
|
|
3
3
|
export interface ContactPointInputProps {
|
|
4
4
|
name: string;
|
|
5
5
|
defaultValue?: ContactPoint;
|
|
6
|
-
onChange?: (value: ContactPoint) => void;
|
|
6
|
+
onChange?: (value: ContactPoint | undefined) => void;
|
|
7
7
|
}
|
|
8
8
|
export declare function ContactPointInput(props: ContactPointInputProps): JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { GoogleCredentialResponse } from '@medplum/core';
|
|
3
3
|
export interface GoogleButtonProps {
|
|
4
|
-
googleClientId?: string;
|
|
5
|
-
|
|
4
|
+
readonly googleClientId?: string;
|
|
5
|
+
readonly handleGoogleCredential: (response: GoogleCredentialResponse) => void;
|
|
6
6
|
}
|
|
7
7
|
export declare function GoogleButton(props: GoogleButtonProps): JSX.Element | null;
|
|
8
8
|
export declare function getGoogleClientId(clientId: string | undefined): string | undefined;
|
package/dist/types/Input.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { OperationOutcome } from '@medplum/fhirtypes';
|
|
2
|
-
import { RefObject } from 'react';
|
|
2
|
+
import React, { RefObject } from 'react';
|
|
3
3
|
import './Input.css';
|
|
4
4
|
export interface InputProps {
|
|
5
5
|
name?: string;
|
|
6
6
|
type?: string;
|
|
7
7
|
size?: number;
|
|
8
8
|
step?: number | 'any';
|
|
9
|
+
style?: React.CSSProperties;
|
|
9
10
|
defaultValue?: string | number;
|
|
10
11
|
required?: boolean;
|
|
11
12
|
autoCapitalize?: string;
|
|
@@ -2,13 +2,16 @@ import React from 'react';
|
|
|
2
2
|
import './SignInForm.css';
|
|
3
3
|
import './util.css';
|
|
4
4
|
export interface SignInFormProps {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
readonly remember?: boolean;
|
|
6
|
+
readonly projectId?: string;
|
|
7
|
+
readonly googleClientId?: string;
|
|
8
|
+
readonly clientId?: string;
|
|
9
|
+
readonly scope?: string;
|
|
10
|
+
readonly nonce?: string;
|
|
11
|
+
readonly onSuccess?: () => void;
|
|
12
|
+
readonly onForgotPassword?: () => void;
|
|
13
|
+
readonly onRegister?: () => void;
|
|
14
|
+
readonly onCode?: (code: string) => void;
|
|
15
|
+
readonly children?: React.ReactNode;
|
|
13
16
|
}
|
|
14
17
|
export declare function SignInForm(props: SignInFormProps): JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export * from './CheckboxFormSection';
|
|
|
12
12
|
export * from './CodeableConceptDisplay';
|
|
13
13
|
export * from './CodeableConceptInput';
|
|
14
14
|
export * from './CodeInput';
|
|
15
|
+
export * from './ContactDetailDisplay';
|
|
16
|
+
export * from './ContactDetailInput';
|
|
15
17
|
export * from './ContactPointDisplay';
|
|
16
18
|
export * from './ContactPointInput';
|
|
17
19
|
export * from './DateTimeDisplay';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medplum/react",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.20",
|
|
4
4
|
"description": "Medplum React Component Library",
|
|
5
5
|
"author": "Medplum <hello@medplum.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"storybook": "build-storybook"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@medplum/core": "0.9.
|
|
23
|
-
"@medplum/fhirtypes": "0.9.
|
|
24
|
-
"@medplum/mock": "0.9.
|
|
22
|
+
"@medplum/core": "0.9.20",
|
|
23
|
+
"@medplum/fhirtypes": "0.9.20",
|
|
24
|
+
"@medplum/mock": "0.9.20",
|
|
25
25
|
"@storybook/addon-actions": "6.5.9",
|
|
26
26
|
"@storybook/addon-essentials": "6.5.9",
|
|
27
27
|
"@storybook/addon-links": "6.5.9",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"typescript": "4.7.4"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@medplum/core": "0.9.
|
|
51
|
+
"@medplum/core": "0.9.20",
|
|
52
52
|
"react": "^17.0.2 || ^18.0.0",
|
|
53
53
|
"react-dom": "^17.0.2 || ^18.0.0",
|
|
54
54
|
"react-router-dom": "^6.2.2"
|