@medplum/react 4.3.10 → 4.3.12

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.
@@ -938,6 +938,17 @@ export declare const MemoizedFhirPathTable: MemoExoticComponent<typeof FhirPathT
938
938
  */
939
939
  export declare const MemoizedSearchControl: typeof SearchControl;
940
940
 
941
+ export declare function MfaForm(props: MfaFormProps): JSX.Element;
942
+
943
+ export declare type MfaFormFields = 'token';
944
+
945
+ export declare interface MfaFormProps {
946
+ readonly title: string;
947
+ readonly buttonText: string;
948
+ readonly qrCodeUrl?: string;
949
+ readonly onSubmit: (formData: Record<MfaFormFields, string>) => void | Promise<void>;
950
+ }
951
+
941
952
  export declare function MoneyDisplay(props: MoneyDisplayProps): JSX.Element | null;
942
953
 
943
954
  export declare interface MoneyDisplayProps {
@@ -1206,6 +1217,12 @@ export declare const QuestionnaireItemType: {
1206
1217
 
1207
1218
  export declare type QuestionnaireItemType = (typeof QuestionnaireItemType)[keyof typeof QuestionnaireItemType];
1208
1219
 
1220
+ export declare function QuestionnaireResponseDisplay(props: QuestionnaireResponseDisplayProps): JSX.Element;
1221
+
1222
+ export declare interface QuestionnaireResponseDisplayProps {
1223
+ readonly questionnaireResponse: QuestionnaireResponse | Reference<QuestionnaireResponse>;
1224
+ }
1225
+
1209
1226
  export declare function RangeDisplay(props: RangeDisplayProps): JSX.Element | null;
1210
1227
 
1211
1228
  export declare interface RangeDisplayProps {
@@ -1243,17 +1260,17 @@ export declare interface ReferenceDisplayProps {
1243
1260
  readonly link?: boolean;
1244
1261
  }
1245
1262
 
1246
- export declare function ReferenceInput(props: ReferenceInputProps): JSX.Element;
1263
+ export declare function ReferenceInput<T extends Resource = Resource>(props: ReferenceInputProps<T>): JSX.Element;
1247
1264
 
1248
- export declare interface ReferenceInputProps {
1265
+ export declare interface ReferenceInputProps<T extends Resource = Resource> {
1249
1266
  readonly name: string;
1250
1267
  readonly placeholder?: string;
1251
- readonly defaultValue?: Reference;
1268
+ readonly defaultValue?: Reference<T>;
1252
1269
  readonly targetTypes?: string[];
1253
1270
  readonly searchCriteria?: Record<string, string>;
1254
1271
  readonly autoFocus?: boolean;
1255
1272
  readonly required?: boolean;
1256
- readonly onChange?: (value: Reference | undefined) => void;
1273
+ readonly onChange?: (value: Reference<T> | undefined) => void;
1257
1274
  readonly disabled?: boolean;
1258
1275
  }
1259
1276
 
@@ -938,6 +938,17 @@ export declare const MemoizedFhirPathTable: MemoExoticComponent<typeof FhirPathT
938
938
  */
939
939
  export declare const MemoizedSearchControl: typeof SearchControl;
940
940
 
941
+ export declare function MfaForm(props: MfaFormProps): JSX.Element;
942
+
943
+ export declare type MfaFormFields = 'token';
944
+
945
+ export declare interface MfaFormProps {
946
+ readonly title: string;
947
+ readonly buttonText: string;
948
+ readonly qrCodeUrl?: string;
949
+ readonly onSubmit: (formData: Record<MfaFormFields, string>) => void | Promise<void>;
950
+ }
951
+
941
952
  export declare function MoneyDisplay(props: MoneyDisplayProps): JSX.Element | null;
942
953
 
943
954
  export declare interface MoneyDisplayProps {
@@ -1206,6 +1217,12 @@ export declare const QuestionnaireItemType: {
1206
1217
 
1207
1218
  export declare type QuestionnaireItemType = (typeof QuestionnaireItemType)[keyof typeof QuestionnaireItemType];
1208
1219
 
1220
+ export declare function QuestionnaireResponseDisplay(props: QuestionnaireResponseDisplayProps): JSX.Element;
1221
+
1222
+ export declare interface QuestionnaireResponseDisplayProps {
1223
+ readonly questionnaireResponse: QuestionnaireResponse | Reference<QuestionnaireResponse>;
1224
+ }
1225
+
1209
1226
  export declare function RangeDisplay(props: RangeDisplayProps): JSX.Element | null;
1210
1227
 
1211
1228
  export declare interface RangeDisplayProps {
@@ -1243,17 +1260,17 @@ export declare interface ReferenceDisplayProps {
1243
1260
  readonly link?: boolean;
1244
1261
  }
1245
1262
 
1246
- export declare function ReferenceInput(props: ReferenceInputProps): JSX.Element;
1263
+ export declare function ReferenceInput<T extends Resource = Resource>(props: ReferenceInputProps<T>): JSX.Element;
1247
1264
 
1248
- export declare interface ReferenceInputProps {
1265
+ export declare interface ReferenceInputProps<T extends Resource = Resource> {
1249
1266
  readonly name: string;
1250
1267
  readonly placeholder?: string;
1251
- readonly defaultValue?: Reference;
1268
+ readonly defaultValue?: Reference<T>;
1252
1269
  readonly targetTypes?: string[];
1253
1270
  readonly searchCriteria?: Record<string, string>;
1254
1271
  readonly autoFocus?: boolean;
1255
1272
  readonly required?: boolean;
1256
- readonly onChange?: (value: Reference | undefined) => void;
1273
+ readonly onChange?: (value: Reference<T> | undefined) => void;
1257
1274
  readonly disabled?: boolean;
1258
1275
  }
1259
1276