@medplum/react 0.9.19 → 0.9.22

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.
@@ -1511,6 +1511,64 @@ div.medplum-nav-menu-container {
1511
1511
  margin: 0;
1512
1512
  }
1513
1513
 
1514
+ .medplum-calendar-table {
1515
+ width: 350px;
1516
+ }
1517
+
1518
+ .medplum-calendar-table th {
1519
+ font-weight: normal;
1520
+ font-size: 11px;
1521
+ padding: 8px;
1522
+ text-align: center;
1523
+ }
1524
+
1525
+ .medplum-calendar-table td {
1526
+ padding: 2px 4px;
1527
+ }
1528
+
1529
+ .medplum-calendar-table button {
1530
+ width: 44px;
1531
+ height: 44px;
1532
+ color: #0060e6;
1533
+ font-size: 16px;
1534
+ font-weight: bold;
1535
+ text-align: center;
1536
+ padding: 0;
1537
+ background-color: #eef5ff;
1538
+ border: 0;
1539
+ border-radius: 50%;
1540
+ cursor: pointer;
1541
+ }
1542
+
1543
+ .medplum-calendar-table button:hover {
1544
+ background-color: #d9e9ff;
1545
+ }
1546
+
1547
+ .medplum-calendar-table button:disabled {
1548
+ background-color: white;
1549
+ cursor: default;
1550
+ color: #666;
1551
+ font-weight: normal;
1552
+ }
1553
+
1554
+ .medplum-calendar-container {
1555
+ display: flex;
1556
+ min-height: 400px;
1557
+ }
1558
+
1559
+ .medplum-calendar-info-pane {
1560
+ min-width: 300px;
1561
+ padding: 20px;
1562
+ border-right: 1px solid #ddd;
1563
+ }
1564
+
1565
+ .medplum-calendar-selection-pane {
1566
+ min-width: 300px;
1567
+ padding: 20px;
1568
+ }
1569
+
1570
+ .grecaptcha-badge { visibility: hidden; }
1571
+
1514
1572
  .medplum-signin {
1515
1573
  max-width: 400px;
1516
1574
  }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ContactDetail } from '@medplum/fhirtypes';
3
+ export interface ContactDetailDisplayProps {
4
+ value?: ContactDetail;
5
+ }
6
+ export declare function ContactDetailDisplay(props: ContactDetailDisplayProps): JSX.Element | null;
@@ -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 { LoginAuthenticationResponse } from '@medplum/core';
2
+ import { GoogleCredentialResponse } from '@medplum/core';
3
3
  export interface GoogleButtonProps {
4
- googleClientId?: string;
5
- handleAuthResponse: (response: LoginAuthenticationResponse) => void;
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;
@@ -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
- scopes?: string;
6
- remember?: boolean;
7
- projectId?: string;
8
- googleClientId?: string;
9
- onSuccess?: () => void;
10
- onForgotPassword?: () => void;
11
- onRegister?: () => void;
12
- children?: React.ReactNode;
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;
@@ -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';
@@ -59,6 +61,7 @@ export * from './ResourcePropertyDisplay';
59
61
  export * from './ResourcePropertyInput';
60
62
  export * from './ResourceTable';
61
63
  export * from './ResourceTimeline';
64
+ export * from './Scheduler';
62
65
  export * from './Scrollable';
63
66
  export * from './SearchControl';
64
67
  export * from './SearchFieldEditor';
@@ -7,3 +7,5 @@ export declare const Groups: () => JSX.Element;
7
7
  export declare const MultipleChoice: () => JSX.Element;
8
8
  export declare const KitchenSink: () => JSX.Element;
9
9
  export declare const KitchenSinkWithInitialValues: () => JSX.Element;
10
+ export declare const USSurgeonGeneralFamilyHealthPortrait: () => JSX.Element;
11
+ export declare const AHCHRSNScreening: () => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/react",
3
- "version": "0.9.19",
3
+ "version": "0.9.22",
4
4
  "description": "Medplum React Component Library",
5
5
  "author": "Medplum <hello@medplum.com>",
6
6
  "license": "Apache-2.0",
@@ -19,26 +19,26 @@
19
19
  "storybook": "build-storybook"
20
20
  },
21
21
  "devDependencies": {
22
- "@medplum/core": "0.9.19",
23
- "@medplum/fhirtypes": "0.9.19",
24
- "@medplum/mock": "0.9.19",
22
+ "@medplum/core": "0.9.22",
23
+ "@medplum/fhirtypes": "0.9.22",
24
+ "@medplum/mock": "0.9.22",
25
25
  "@storybook/addon-actions": "6.5.9",
26
26
  "@storybook/addon-essentials": "6.5.9",
27
27
  "@storybook/addon-links": "6.5.9",
28
28
  "@storybook/builder-webpack5": "6.5.9",
29
29
  "@storybook/manager-webpack5": "6.5.9",
30
30
  "@storybook/react": "6.5.9",
31
- "@testing-library/dom": "8.14.0",
31
+ "@testing-library/dom": "8.16.0",
32
32
  "@testing-library/jest-dom": "5.16.4",
33
33
  "@testing-library/react": "13.3.0",
34
- "@types/jest": "28.1.3",
35
- "@types/node": "18.0.0",
36
- "@types/react": "18.0.14",
37
- "@types/react-dom": "18.0.5",
34
+ "@types/jest": "28.1.4",
35
+ "@types/node": "18.0.3",
36
+ "@types/react": "18.0.15",
37
+ "@types/react-dom": "18.0.6",
38
38
  "@types/react-router-dom": "5.3.3",
39
- "dotenv-webpack": "7.1.1",
39
+ "dotenv-webpack": "8.0.0",
40
40
  "identity-obj-proxy": "3.0.0",
41
- "jest": "28.1.1",
41
+ "jest": "28.1.2",
42
42
  "jest-each": "28.1.1",
43
43
  "html-webpack-plugin": "5.5.0",
44
44
  "react": "18.2.0",
@@ -48,7 +48,7 @@
48
48
  "typescript": "4.7.4"
49
49
  },
50
50
  "peerDependencies": {
51
- "@medplum/core": "0.9.19",
51
+ "@medplum/core": "0.9.22",
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"