@medplum/react 4.1.6 → 4.1.7

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,7 +4,7 @@ import { AnchorProps } from '@mantine/core';
4
4
  import { Annotation } from '@medplum/fhirtypes';
5
5
  import { Attachment } from '@medplum/fhirtypes';
6
6
  import { AvatarProps } from '@mantine/core';
7
- import { BadgeVariant } from '@mantine/core';
7
+ import { BadgeProps } from '@mantine/core';
8
8
  import { BaseLoginRequest } from '@medplum/core';
9
9
  import { Bundle } from '@medplum/fhirtypes';
10
10
  import { ButtonProps } from '@mantine/core';
@@ -20,7 +20,6 @@ import { ContactPoint } from '@medplum/fhirtypes';
20
20
  import { ContainerProps } from '@mantine/core';
21
21
  import { Context } from 'react';
22
22
  import { CSSProperties } from 'react';
23
- import { DefaultMantineColor } from '@mantine/core';
24
23
  import { DiagnosticReport } from '@medplum/fhirtypes';
25
24
  import { ElementDefinitionBinding } from '@medplum/fhirtypes';
26
25
  import { ElementDefinitionType } from '@medplum/fhirtypes';
@@ -573,6 +572,7 @@ export declare interface DiagnosticReportDisplayProps {
573
572
  readonly value?: DiagnosticReport | Reference<DiagnosticReport>;
574
573
  readonly hideObservationNotes?: boolean;
575
574
  readonly hideSpecimenInfo?: boolean;
575
+ readonly hideSubject?: boolean;
576
576
  }
577
577
 
578
578
  declare function Document_2(props: PanelProps): JSX.Element;
@@ -1021,6 +1021,7 @@ export declare function PatientSummary(props: PatientSummaryProps): JSX.Element
1021
1021
  export declare interface PatientSummaryProps {
1022
1022
  readonly patient: Patient | Reference<Patient>;
1023
1023
  readonly onClickResource?: (resource: Resource) => void;
1024
+ readonly onRequestLabs?: () => void;
1024
1025
  }
1025
1026
 
1026
1027
  export declare function PatientTimeline(props: PatientTimelineProps): JSX.Element;
@@ -1590,10 +1591,8 @@ export declare function sortByDateAndPriority(resources: Resource[], timelineRes
1590
1591
 
1591
1592
  export declare function StatusBadge(props: StatusBadgeProps): JSX.Element;
1592
1593
 
1593
- export declare interface StatusBadgeProps {
1594
+ export declare interface StatusBadgeProps extends Omit<BadgeProps, 'children'> {
1594
1595
  readonly status: string;
1595
- readonly color?: DefaultMantineColor;
1596
- readonly variant?: BadgeVariant;
1597
1596
  }
1598
1597
 
1599
1598
  export declare function SubmitButton(props: ButtonProps): JSX.Element;
@@ -4,7 +4,7 @@ import { AnchorProps } from '@mantine/core';
4
4
  import { Annotation } from '@medplum/fhirtypes';
5
5
  import { Attachment } from '@medplum/fhirtypes';
6
6
  import { AvatarProps } from '@mantine/core';
7
- import { BadgeVariant } from '@mantine/core';
7
+ import { BadgeProps } from '@mantine/core';
8
8
  import { BaseLoginRequest } from '@medplum/core';
9
9
  import { Bundle } from '@medplum/fhirtypes';
10
10
  import { ButtonProps } from '@mantine/core';
@@ -20,7 +20,6 @@ import { ContactPoint } from '@medplum/fhirtypes';
20
20
  import { ContainerProps } from '@mantine/core';
21
21
  import { Context } from 'react';
22
22
  import { CSSProperties } from 'react';
23
- import { DefaultMantineColor } from '@mantine/core';
24
23
  import { DiagnosticReport } from '@medplum/fhirtypes';
25
24
  import { ElementDefinitionBinding } from '@medplum/fhirtypes';
26
25
  import { ElementDefinitionType } from '@medplum/fhirtypes';
@@ -573,6 +572,7 @@ export declare interface DiagnosticReportDisplayProps {
573
572
  readonly value?: DiagnosticReport | Reference<DiagnosticReport>;
574
573
  readonly hideObservationNotes?: boolean;
575
574
  readonly hideSpecimenInfo?: boolean;
575
+ readonly hideSubject?: boolean;
576
576
  }
577
577
 
578
578
  declare function Document_2(props: PanelProps): JSX.Element;
@@ -1021,6 +1021,7 @@ export declare function PatientSummary(props: PatientSummaryProps): JSX.Element
1021
1021
  export declare interface PatientSummaryProps {
1022
1022
  readonly patient: Patient | Reference<Patient>;
1023
1023
  readonly onClickResource?: (resource: Resource) => void;
1024
+ readonly onRequestLabs?: () => void;
1024
1025
  }
1025
1026
 
1026
1027
  export declare function PatientTimeline(props: PatientTimelineProps): JSX.Element;
@@ -1590,10 +1591,8 @@ export declare function sortByDateAndPriority(resources: Resource[], timelineRes
1590
1591
 
1591
1592
  export declare function StatusBadge(props: StatusBadgeProps): JSX.Element;
1592
1593
 
1593
- export declare interface StatusBadgeProps {
1594
+ export declare interface StatusBadgeProps extends Omit<BadgeProps, 'children'> {
1594
1595
  readonly status: string;
1595
- readonly color?: DefaultMantineColor;
1596
- readonly variant?: BadgeVariant;
1597
1596
  }
1598
1597
 
1599
1598
  export declare function SubmitButton(props: ButtonProps): JSX.Element;