Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
19 lines
769 B
Plaintext
19 lines
769 B
Plaintext
import type { ClientField, FormState, SanitizedFieldPermissions } from 'payload';
|
|
import React from 'react';
|
|
import type { FieldAction } from '../../forms/Form/types.js';
|
|
import type { FieldOption } from './reduceFieldOptions.js';
|
|
import './index.scss';
|
|
export type OnFieldSelect = ({ dispatchFields, formState, selected, }: {
|
|
dispatchFields: React.Dispatch<FieldAction>;
|
|
formState: FormState;
|
|
selected: FieldOption[];
|
|
}) => void;
|
|
export type FieldSelectProps = {
|
|
readonly fields: ClientField[];
|
|
readonly onChange: OnFieldSelect;
|
|
readonly permissions: {
|
|
[fieldName: string]: SanitizedFieldPermissions;
|
|
} | SanitizedFieldPermissions;
|
|
};
|
|
export declare const FieldSelect: React.FC<FieldSelectProps>;
|
|
//# sourceMappingURL=index.d.ts.map |