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
56 lines
1.9 KiB
Plaintext
56 lines
1.9 KiB
Plaintext
import type { FieldBaseClient, PasswordFieldValidation, StaticDescription, TextFieldClient } from 'payload';
|
|
import type { ChangeEvent, CSSProperties } from 'react';
|
|
import type React from 'react';
|
|
import type { MarkOptional } from 'ts-essentials';
|
|
export type PasswordFieldProps = {
|
|
readonly autoComplete?: string;
|
|
readonly field: MarkOptional<TextFieldClient, 'type'>;
|
|
/**
|
|
* @default ''
|
|
*/
|
|
readonly indexPath?: string;
|
|
readonly inputRef?: React.RefObject<HTMLInputElement>;
|
|
/**
|
|
* @default ''
|
|
*/
|
|
readonly parentPath?: string;
|
|
/**
|
|
* @default ''
|
|
*/
|
|
readonly parentSchemaPath?: string;
|
|
/**
|
|
* @default field.name
|
|
*/
|
|
readonly path: string;
|
|
/**
|
|
* @default field.name
|
|
*/
|
|
readonly schemaPath?: string;
|
|
readonly validate?: PasswordFieldValidation;
|
|
};
|
|
export type PasswordInputProps = {
|
|
readonly AfterInput?: React.ReactNode;
|
|
readonly autoComplete?: string;
|
|
readonly BeforeInput?: React.ReactNode;
|
|
readonly className?: string;
|
|
readonly description?: StaticDescription;
|
|
readonly Description?: React.ReactNode;
|
|
readonly Error?: React.ReactNode;
|
|
readonly field?: MarkOptional<TextFieldClient, 'type'>;
|
|
readonly inputRef?: React.RefObject<HTMLInputElement>;
|
|
readonly Label?: React.ReactNode;
|
|
readonly label: FieldBaseClient['label'];
|
|
readonly localized?: boolean;
|
|
readonly onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
readonly path: string;
|
|
readonly placeholder?: Record<string, string> | string;
|
|
readonly readOnly?: boolean;
|
|
readonly required?: boolean;
|
|
readonly rtl?: boolean;
|
|
readonly showError?: boolean;
|
|
readonly style?: React.CSSProperties;
|
|
readonly value?: string;
|
|
readonly width?: CSSProperties['width'];
|
|
};
|
|
//# sourceMappingURL=types.d.ts.map |