@medplum/react 3.2.9 → 3.2.11

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.
@@ -217,6 +217,11 @@ export declare interface AsyncAutocompleteProps<T> extends Omit<ComboboxProps, '
217
217
  readonly toOption: (item: T) => AsyncAutocompleteOption<T>;
218
218
  readonly loadOptions: (input: string, signal: AbortSignal) => Promise<T[]>;
219
219
  readonly itemComponent?: (props: AsyncAutocompleteOption<T>) => JSX.Element | ReactNode;
220
+ readonly pillComponent?: (props: {
221
+ item: AsyncAutocompleteOption<T>;
222
+ disabled?: boolean;
223
+ onRemove: () => void;
224
+ }) => JSX.Element;
220
225
  readonly emptyComponent?: (props: {
221
226
  search: string;
222
227
  }) => JSX.Element | ReactNode;
@@ -217,6 +217,11 @@ export declare interface AsyncAutocompleteProps<T> extends Omit<ComboboxProps, '
217
217
  readonly toOption: (item: T) => AsyncAutocompleteOption<T>;
218
218
  readonly loadOptions: (input: string, signal: AbortSignal) => Promise<T[]>;
219
219
  readonly itemComponent?: (props: AsyncAutocompleteOption<T>) => JSX.Element | ReactNode;
220
+ readonly pillComponent?: (props: {
221
+ item: AsyncAutocompleteOption<T>;
222
+ disabled?: boolean;
223
+ onRemove: () => void;
224
+ }) => JSX.Element;
220
225
  readonly emptyComponent?: (props: {
221
226
  search: string;
222
227
  }) => JSX.Element | ReactNode;