UNPKG

@activecollab/components

Version:

ActiveCollab Components

44 lines 1.98 kB
import React, { ReactElement } from "react"; export interface BoardMember { id: number; name: string; initials: string; color: string; isClient?: boolean; } export declare const BOARD_MEMBERS: BoardMember[]; export declare const StyledPeopleMenu: import("styled-components").StyledComponent<"div", any, {}, never>; export interface PeopleMenuSectionProps { label: string; people: BoardMember[]; managerId: number; onMakeManager: (person: BoardMember) => void; onRemove: (person: BoardMember) => void; } export declare const PeopleMenuSection: ({ label, people, managerId, onMakeManager, onRemove, }: PeopleMenuSectionProps) => ReactElement; export interface InviteCandidate { id: number; name: string; initials: string; color: string; } export interface InviteCompany { name: string; isOwnerCompany?: boolean; people: InviteCandidate[]; } export declare const INVITE_COMPANIES: InviteCompany[]; export declare const AddMembersDialogStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>; export declare const StyledCandidateRow: import("styled-components").StyledComponent<"span", any, {}, never>; export declare const StyledRowCheckbox: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("../..").CheckBoxProps & React.RefAttributes<HTMLInputElement>>, any, {}, never>; export declare const StyledDialogFields: import("styled-components").StyledComponent<"div", any, {}, never>; export interface AddMembersDialogProps { open: boolean; onClose: () => void; /** ids of current board members — excluded from the picker */ existingIds: number[]; onAdd: (people: BoardMember[]) => void; } export declare const AddMembersDialog: ({ open, onClose, existingIds, onAdd, }: AddMembersDialogProps) => ReactElement; export declare const WhiteboardPeopleMenu: () => ReactElement; //# sourceMappingURL=peopleMenu.d.ts.map