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
1 line
2.5 KiB
Plaintext
1 line
2.5 KiB
Plaintext
{"version":3,"sources":["../../../src/admin/fields/Text.ts"],"sourcesContent":["import type React from 'react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { TextField, TextFieldClient } from '../../fields/config/types.js'\nimport type { TextFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype TextFieldClientWithoutType = MarkOptional<TextFieldClient, 'type'>\n\ntype TextFieldBaseClientProps = {\n readonly inputRef?: React.RefObject<HTMLInputElement>\n readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n readonly path: string\n readonly validate?: TextFieldValidation\n}\n\ntype TextFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type TextFieldClientProps = ClientFieldBase<TextFieldClientWithoutType> &\n TextFieldBaseClientProps\n\nexport type TextFieldServerProps = ServerFieldBase<TextField, TextFieldClientWithoutType> &\n TextFieldBaseServerProps\n\nexport type TextFieldServerComponent = FieldServerComponent<\n TextField,\n TextFieldClientWithoutType,\n TextFieldBaseServerProps\n>\n\nexport type TextFieldClientComponent = FieldClientComponent<\n TextFieldClientWithoutType,\n TextFieldBaseClientProps\n>\n\nexport type TextFieldLabelServerComponent = FieldLabelServerComponent<\n TextField,\n TextFieldClientWithoutType\n>\n\nexport type TextFieldLabelClientComponent = FieldLabelClientComponent<TextFieldClientWithoutType>\n\nexport type TextFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n TextField,\n TextFieldClientWithoutType\n>\n\nexport type TextFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<TextFieldClientWithoutType>\n\nexport type TextFieldErrorServerComponent = FieldErrorServerComponent<\n TextField,\n TextFieldClientWithoutType\n>\n\nexport type TextFieldErrorClientComponent = FieldErrorClientComponent<TextFieldClientWithoutType>\n\nexport type TextFieldDiffServerComponent = FieldDiffServerComponent<TextField, TextFieldClient>\n\nexport type TextFieldDiffClientComponent = FieldDiffClientComponent<TextFieldClient>\n"],"names":[],"mappings":"AA0EA,WAAoF"} |