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
29 lines
2.5 KiB
Plaintext
29 lines
2.5 KiB
Plaintext
import type React from 'react';
|
|
import type { MarkOptional } from 'ts-essentials';
|
|
import type { TextareaField, TextareaFieldClient } from '../../fields/config/types.js';
|
|
import type { TextareaFieldValidation } from '../../fields/validations.js';
|
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
type TextareaFieldClientWithoutType = MarkOptional<TextareaFieldClient, 'type'>;
|
|
type TextareaFieldBaseClientProps = {
|
|
readonly inputRef?: React.Ref<HTMLInputElement>;
|
|
readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
readonly path: string;
|
|
readonly validate?: TextareaFieldValidation;
|
|
};
|
|
type TextareaFieldBaseServerProps = Pick<FieldPaths, 'path'>;
|
|
export type TextareaFieldClientProps = ClientFieldBase<TextareaFieldClientWithoutType> & TextareaFieldBaseClientProps;
|
|
export type TextareaFieldServerProps = ServerFieldBase<TextareaField, TextareaFieldClientWithoutType> & TextareaFieldBaseServerProps;
|
|
export type TextareaFieldServerComponent = FieldServerComponent<TextareaField, TextareaFieldClientWithoutType, TextareaFieldBaseServerProps>;
|
|
export type TextareaFieldClientComponent = FieldClientComponent<TextareaFieldClientWithoutType, TextareaFieldBaseClientProps>;
|
|
export type TextareaFieldLabelServerComponent = FieldLabelServerComponent<TextareaField, TextareaFieldClientWithoutType>;
|
|
export type TextareaFieldLabelClientComponent = FieldLabelClientComponent<TextareaFieldClientWithoutType>;
|
|
export type TextareaFieldDescriptionServerComponent = FieldDescriptionServerComponent<TextareaField, TextareaFieldClientWithoutType>;
|
|
export type TextareaFieldDescriptionClientComponent = FieldDescriptionClientComponent<TextareaFieldClientWithoutType>;
|
|
export type TextareaFieldErrorServerComponent = FieldErrorServerComponent<TextareaField, TextareaFieldClientWithoutType>;
|
|
export type TextareaFieldErrorClientComponent = FieldErrorClientComponent<TextareaFieldClientWithoutType>;
|
|
export type TextareaFieldDiffServerComponent = FieldDiffServerComponent<TextareaField, TextareaFieldClient>;
|
|
export type TextareaFieldDiffClientComponent = FieldDiffClientComponent<TextareaFieldClient>;
|
|
export {};
|
|
//# sourceMappingURL=Textarea.d.ts.map |