@medplum/react 3.0.0 → 3.0.1
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 +3 -3
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/cjs/index.d.ts +18 -2
- package/dist/esm/index.d.ts +18 -2
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +2 -2
- package/package.json +19 -19
package/dist/cjs/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { ClientApplication } from '@medplum/fhirtypes';
|
|
|
12
12
|
import { CodeableConcept } from '@medplum/fhirtypes';
|
|
13
13
|
import { Coding } from '@medplum/fhirtypes';
|
|
14
14
|
import { ComboboxItem } from '@mantine/core';
|
|
15
|
+
import { ComboboxProps } from '@mantine/core';
|
|
15
16
|
import { Communication } from '@medplum/fhirtypes';
|
|
16
17
|
import { Component } from 'react';
|
|
17
18
|
import { ContactDetail } from '@medplum/fhirtypes';
|
|
@@ -37,7 +38,6 @@ import { MemoExoticComponent } from 'react';
|
|
|
37
38
|
import { Money } from '@medplum/fhirtypes';
|
|
38
39
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
39
40
|
import { MouseEventHandler } from 'react';
|
|
40
|
-
import { MultiSelectProps } from '@mantine/core';
|
|
41
41
|
import { Observation } from '@medplum/fhirtypes';
|
|
42
42
|
import { ObservationDefinition } from '@medplum/fhirtypes';
|
|
43
43
|
import { ObservationDefinitionQualifiedInterval } from '@medplum/fhirtypes';
|
|
@@ -208,7 +208,11 @@ export declare interface AsyncAutocompleteOption<T> extends ComboboxItem {
|
|
|
208
208
|
resource: T;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
export declare interface AsyncAutocompleteProps<T> extends Omit<
|
|
211
|
+
export declare interface AsyncAutocompleteProps<T> extends Omit<ComboboxProps, 'data' | 'defaultValue' | 'loadOptions' | 'onChange' | 'onCreate' | 'searchable'> {
|
|
212
|
+
readonly name?: string;
|
|
213
|
+
readonly label?: ReactNode;
|
|
214
|
+
readonly description?: ReactNode;
|
|
215
|
+
readonly error?: ReactNode;
|
|
212
216
|
readonly defaultValue?: T | T[];
|
|
213
217
|
readonly toOption: (item: T) => AsyncAutocompleteOption<T>;
|
|
214
218
|
readonly loadOptions: (input: string, signal: AbortSignal) => Promise<T[]>;
|
|
@@ -216,6 +220,12 @@ export declare interface AsyncAutocompleteProps<T> extends Omit<MultiSelectProps
|
|
|
216
220
|
readonly onChange: (item: T[]) => void;
|
|
217
221
|
readonly onCreate?: (input: string) => T;
|
|
218
222
|
readonly creatable?: boolean;
|
|
223
|
+
readonly clearable?: boolean;
|
|
224
|
+
readonly required?: boolean;
|
|
225
|
+
readonly className?: string;
|
|
226
|
+
readonly placeholder?: string;
|
|
227
|
+
readonly leftSection?: ReactNode;
|
|
228
|
+
readonly maxValues?: number;
|
|
219
229
|
}
|
|
220
230
|
|
|
221
231
|
export declare function AttachmentArrayDisplay(props: AttachmentArrayDisplayProps): JSX.Element;
|
|
@@ -785,6 +795,12 @@ export declare interface NavbarProps {
|
|
|
785
795
|
resourceTypeSearchDisabled?: boolean;
|
|
786
796
|
}
|
|
787
797
|
|
|
798
|
+
export declare function NoteDisplay({ value }: NoteDisplayProps): JSX.Element | null;
|
|
799
|
+
|
|
800
|
+
export declare interface NoteDisplayProps {
|
|
801
|
+
value?: Annotation[];
|
|
802
|
+
}
|
|
803
|
+
|
|
788
804
|
export declare function ObservationTable(props: ObservationTableProps): JSX.Element;
|
|
789
805
|
|
|
790
806
|
export declare interface ObservationTableProps {
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { ClientApplication } from '@medplum/fhirtypes';
|
|
|
12
12
|
import { CodeableConcept } from '@medplum/fhirtypes';
|
|
13
13
|
import { Coding } from '@medplum/fhirtypes';
|
|
14
14
|
import { ComboboxItem } from '@mantine/core';
|
|
15
|
+
import { ComboboxProps } from '@mantine/core';
|
|
15
16
|
import { Communication } from '@medplum/fhirtypes';
|
|
16
17
|
import { Component } from 'react';
|
|
17
18
|
import { ContactDetail } from '@medplum/fhirtypes';
|
|
@@ -37,7 +38,6 @@ import { MemoExoticComponent } from 'react';
|
|
|
37
38
|
import { Money } from '@medplum/fhirtypes';
|
|
38
39
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
39
40
|
import { MouseEventHandler } from 'react';
|
|
40
|
-
import { MultiSelectProps } from '@mantine/core';
|
|
41
41
|
import { Observation } from '@medplum/fhirtypes';
|
|
42
42
|
import { ObservationDefinition } from '@medplum/fhirtypes';
|
|
43
43
|
import { ObservationDefinitionQualifiedInterval } from '@medplum/fhirtypes';
|
|
@@ -208,7 +208,11 @@ export declare interface AsyncAutocompleteOption<T> extends ComboboxItem {
|
|
|
208
208
|
resource: T;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
export declare interface AsyncAutocompleteProps<T> extends Omit<
|
|
211
|
+
export declare interface AsyncAutocompleteProps<T> extends Omit<ComboboxProps, 'data' | 'defaultValue' | 'loadOptions' | 'onChange' | 'onCreate' | 'searchable'> {
|
|
212
|
+
readonly name?: string;
|
|
213
|
+
readonly label?: ReactNode;
|
|
214
|
+
readonly description?: ReactNode;
|
|
215
|
+
readonly error?: ReactNode;
|
|
212
216
|
readonly defaultValue?: T | T[];
|
|
213
217
|
readonly toOption: (item: T) => AsyncAutocompleteOption<T>;
|
|
214
218
|
readonly loadOptions: (input: string, signal: AbortSignal) => Promise<T[]>;
|
|
@@ -216,6 +220,12 @@ export declare interface AsyncAutocompleteProps<T> extends Omit<MultiSelectProps
|
|
|
216
220
|
readonly onChange: (item: T[]) => void;
|
|
217
221
|
readonly onCreate?: (input: string) => T;
|
|
218
222
|
readonly creatable?: boolean;
|
|
223
|
+
readonly clearable?: boolean;
|
|
224
|
+
readonly required?: boolean;
|
|
225
|
+
readonly className?: string;
|
|
226
|
+
readonly placeholder?: string;
|
|
227
|
+
readonly leftSection?: ReactNode;
|
|
228
|
+
readonly maxValues?: number;
|
|
219
229
|
}
|
|
220
230
|
|
|
221
231
|
export declare function AttachmentArrayDisplay(props: AttachmentArrayDisplayProps): JSX.Element;
|
|
@@ -785,6 +795,12 @@ export declare interface NavbarProps {
|
|
|
785
795
|
resourceTypeSearchDisabled?: boolean;
|
|
786
796
|
}
|
|
787
797
|
|
|
798
|
+
export declare function NoteDisplay({ value }: NoteDisplayProps): JSX.Element | null;
|
|
799
|
+
|
|
800
|
+
export declare interface NoteDisplayProps {
|
|
801
|
+
value?: Annotation[];
|
|
802
|
+
}
|
|
803
|
+
|
|
788
804
|
export declare function ObservationTable(props: ObservationTableProps): JSX.Element;
|
|
789
805
|
|
|
790
806
|
export declare interface ObservationTableProps {
|