UNPKG

@chayns-components/person-finder

Version:

A set of beautiful React components for developing your own applications with chayns.

41 lines (40 loc) 1.36 kB
import React from 'react'; import { DefaultEntry, PersonFinderEntry, UACFilter } from '../../types/personFinder'; import { PersonFinderWrapperProps, PersonFinderRef } from './person-finder-wrapper/PersonFinderWrapper'; export type PersonFinderProps = PersonFinderWrapperProps & { /** * Sites and persons that are selected by default. */ defaultEntries?: DefaultEntry[]; /** * Entry ids to exclude from the results */ excludedEntryIds?: PersonFinderEntry['id'][]; /** * Whether the own user should be shown in the results. By default, it is not shown. */ shouldShowOwnUser?: boolean; /** * Optional filter to search member of uac group. */ uacFilter?: UACFilter[]; }; declare const PersonFinder: React.ForwardRefExoticComponent<PersonFinderWrapperProps & { /** * Sites and persons that are selected by default. */ defaultEntries?: DefaultEntry[]; /** * Entry ids to exclude from the results */ excludedEntryIds?: PersonFinderEntry["id"][]; /** * Whether the own user should be shown in the results. By default, it is not shown. */ shouldShowOwnUser?: boolean; /** * Optional filter to search member of uac group. */ uacFilter?: UACFilter[]; } & React.RefAttributes<PersonFinderRef>>; export default PersonFinder;