{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "field",
  "title": "Field",
  "description": "A label, a control and a message line under it, where the description rolls out and the error rolls in. With no description, the line opens as an error arrives and closes as it goes, so fields sit close together. Errors are read out as they appear.",
  "dependencies": [
    "@ui-sdk/react",
    "@ui-sdk/core"
  ],
  "registryDependencies": [
    "https://kinoui.com/r/label.json",
    "https://kinoui.com/r/resize.json",
    "https://kinoui.com/r/settle.json",
    "https://kinoui.com/r/theme.json",
    "https://kinoui.com/r/refs.json"
  ],
  "files": [
    {
      "path": "registry/components/kino/field.tsx",
      "content": "'use client'\n\nimport { labelClassName } from '@/registry/components/kino/label'\nimport { commitStyles, markMounted, mergeRefs } from '@/registry/lib/refs'\nimport { withoutTransition } from '@/registry/lib/resize'\nimport { settle } from '@/registry/lib/settle'\nimport {\n  Field as FieldPrimitive,\n  FieldDescription as FieldDescriptionPrimitive,\n  FieldError as FieldErrorPrimitive,\n  FieldGroup as FieldGroupPrimitive,\n  FieldLabel as FieldLabelPrimitive,\n  FieldLegend as FieldLegendPrimitive,\n  FieldSet as FieldSetPrimitive,\n} from '@ui-sdk/react/field'\nimport {\n  type ComponentProps,\n  createContext,\n  type SubmitEvent,\n  type RefObject,\n  useCallback,\n  useContext,\n  useEffect,\n  useId,\n  useLayoutEffect,\n  useMemo,\n  useRef,\n  useState,\n} from 'react'\n\nimport { cn } from '@/lib/utils'\n\n/** What a form sends, by name: one entry's value, or every value when a name has several. */\ntype FormValues = Record<string, FormDataEntryValue | FormDataEntryValue[]>\n\n/** Where the form's last submit is: sent and waiting, done, or turned down. */\ntype FormStatus = 'idle' | 'saving' | 'saved' | 'failed'\n\ninterface FormSubmission {\n  status: FormStatus\n  /** The values the last successful submit sent, and how many have succeeded. */\n  saved: { values: FormValues; count: number } | null\n  /** Rises with each `reset`, and every Field remounts on it. */\n  revision: number\n  /** The form element's `id`, for a part outside it that submits it, such as the Save bar's Save. */\n  formId: string\n  /** The form element, for a part that reads what it holds, such as the Save bar. */\n  formRef: RefObject<HTMLFormElement | null>\n  /**\n   * Puts every Field back to its default value. Keep each control's\n   * `defaultValue` on what was last saved, so this discards only what changed\n   * since.\n   */\n  reset: () => void\n}\n\nconst FormSubmissionContext = createContext<FormSubmission | null>(null)\n\n/** The Form's submit and reset, for a part that saves it, such as the Save bar; `null` outside a Form. */\nfunction useFormSubmission() {\n  return useContext(FormSubmissionContext)\n}\n\n/** What a server turned down, by field name: each field shows its message. */\ntype FormErrors = Record<string, string | string[]>\n\n/** Whether what a submit gave back is errors by field, and holds at least one. */\nfunction isFormErrors(value: unknown): value is FormErrors {\n  return (\n    typeof value === 'object' &&\n    value !== null &&\n    !Array.isArray(value) &&\n    Object.keys(value).length > 0 &&\n    Object.values(value).every(\n      (message) =>\n        typeof message === 'string' ||\n        (Array.isArray(message) && message.every((line) => typeof line === 'string')),\n    )\n  )\n}\n\n/** The errors a Field shows from its Form, and how a Field takes its own back once it is edited. */\nconst FormErrorsContext = createContext<{\n  errors: FormErrors | undefined\n  clear: (name: string) => void\n} | null>(null)\n\n/**\n * Whether `name` takes a list in `form`, whatever it holds now: several\n * controls send under it (radios aside, which send one), or one that sends\n * several, such as a multiple select or a control's list of values.\n */\nfunction takesMany(form: HTMLFormElement, name: string) {\n  const controls = [...form.elements].filter(\n    (control) => control.getAttribute('name') === name,\n  )\n  if (\n    controls.some((control) =>\n      control.matches('select[multiple], input[multiple], [data-many]'),\n    )\n  )\n    return true\n  return controls.filter((control) => !control.matches('input[type=radio]')).length > 1\n}\n\n/**\n * What `form` sends, by name: a name that takes a list gives every value it\n * sends, even one, and any other its value.\n */\nfunction formValues(form: HTMLFormElement, data = new FormData(form)): FormValues {\n  const values: FormValues = {}\n  for (const name of new Set(data.keys())) {\n    const all = data.getAll(name)\n    values[name] = all.length === 1 && !takesMany(form, name) ? all[0] : all\n  }\n  return values\n}\n\n/*\n * A native form, as ui-sdk's forms are: the browser checks each control\n * before a submit, and its Fields show why one fails. `onFormSubmit` takes\n * what the form sends and may return a promise: the form is saving until it\n * settles, and a second submit meanwhile is ignored. What it gives back may\n * be errors by field, which those fields show, and the first takes focus, as\n * a server turns down a value.\n */\nfunction Form({\n  onFormSubmit,\n  onSubmit,\n  errors,\n  id: idProp,\n  ref,\n  children,\n  ...props\n}: ComponentProps<'form'> & {\n  /** Runs with the form's values once every field is valid. A promise keeps the form saving until it settles; a rejection or a throw means it failed. Errors by field, such as `{ email: '…' }`, turn the submit down and show on those fields. */\n  onFormSubmit?: (values: FormValues, event: SubmitEvent<HTMLFormElement>) => unknown\n  /** Errors by field, such as a server's, shown on those fields until each is edited. */\n  errors?: FormErrors\n}) {\n  const [refused, setRefused] = useState<FormErrors | null>(null)\n  const [cleared, setCleared] = useState<ReadonlySet<string>>(() => new Set())\n  const [status, setStatus] = useState<FormStatus>('idle')\n  const [saved, setSaved] = useState<FormSubmission['saved']>(null)\n  const [revision, setRevision] = useState(0)\n  const saving = useRef(false)\n  const formRef = useRef<HTMLFormElement>(null)\n  const ownId = useId()\n  const formId = idProp ?? ownId\n  const submission = useMemo<FormSubmission>(\n    () => ({\n      status,\n      saved,\n      revision,\n      formId,\n      formRef,\n      reset: () => {\n        setRefused(null)\n        setRevision((last) => last + 1)\n        setStatus('idle')\n      },\n    }),\n    [status, saved, revision, formId],\n  )\n\n  // Errors given from outside show until a field is edited, and again when new ones come.\n  const [given, setGiven] = useState(errors)\n  if (errors !== given) {\n    setGiven(errors)\n    setCleared(new Set())\n  }\n  const shown = refused ?? errors\n  const fieldErrors = useMemo(\n    () => ({\n      errors: shown\n        ? Object.fromEntries(Object.entries(shown).filter(([name]) => !cleared.has(name)))\n        : undefined,\n      clear: (name: string) =>\n        setCleared((last) => (last.has(name) ? last : new Set(last).add(name))),\n    }),\n    [shown, cleared],\n  )\n\n  // The first field a submit turned down takes focus, as one the browser turns down does.\n  useEffect(() => {\n    if (!refused) return\n    formRef.current?.querySelector<HTMLElement>('[aria-invalid=true]')?.focus()\n  }, [refused])\n\n  const submit = (event: SubmitEvent<HTMLFormElement>) => {\n    onSubmit?.(event)\n    if (!onFormSubmit || event.defaultPrevented) return\n    event.preventDefault()\n    if (saving.current) return\n    const values = formValues(event.currentTarget)\n    saving.current = true\n    setRefused(null)\n    setCleared(new Set())\n    setStatus('saving')\n    settle(\n      () => onFormSubmit(values, event),\n      (ok, _waited, reason, result) => {\n        saving.current = false\n        if (ok && isFormErrors(result)) {\n          // Turned down: nothing was saved, and each field says why.\n          setRefused({ ...result })\n          setStatus('idle')\n          return\n        }\n        setStatus(ok ? 'saved' : 'failed')\n        if (ok) setSaved((last) => ({ values, count: (last?.count ?? 0) + 1 }))\n        // The form shows that it failed; the reason still reaches the console and error tracking.\n        else reportError(reason)\n      },\n    )\n  }\n  const refs = useMemo(() => mergeRefs(formRef, ref), [ref])\n\n  return (\n    <form data-slot='form' id={formId} ref={refs} onSubmit={submit} {...props}>\n      <FormSubmissionContext value={submission}>\n        <FormErrorsContext value={fieldErrors}>{children}</FormErrorsContext>\n      </FormSubmissionContext>\n    </form>\n  )\n}\n\n/** The message a Field's Form gives it, from errors by field, for its FieldError to show. */\nconst RefusedContext = createContext<string | null>(null)\n\n/**\n * The control a Field checks, outside any Field inside it: the input that\n * holds a control's check (`FieldCheck`), or else its first native control.\n */\nfunction checkedControl(field: HTMLElement) {\n  const own = (control: Element) => control.closest('[data-slot=field]') === field\n  return (\n    [\n      ...field.querySelectorAll<HTMLInputElement | HTMLTextAreaElement>(\n        '[data-field-check]',\n      ),\n    ].find(own) ??\n    [\n      ...field.querySelectorAll<\n        HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement\n      >('input:not([type=hidden]), select, textarea'),\n    ].find(own)\n  )\n}\n\n/**\n * What a Field's controls send, outside any Field inside it: the value of the\n * input that holds a control's check, or else every native control's, with\n * a checkbox or radio only while it is on.\n */\nfunction sentValues(field: HTMLElement) {\n  const own = (control: Element) => control.closest('[data-slot=field]') === field\n  const check = [...field.querySelectorAll<HTMLInputElement>('[data-field-check]')].find(\n    own,\n  )\n  if (check) return check.value === '' ? [] : [check.value]\n  return [\n    ...field.querySelectorAll<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>(\n      'input:not([type=hidden]), select, textarea',\n    ),\n  ]\n    .filter(own)\n    .filter(\n      (control) =>\n        !(control instanceof HTMLInputElement) ||\n        (control.type !== 'checkbox' && control.type !== 'radio') ||\n        control.checked,\n    )\n    .map((control) => control.value)\n}\n\n/**\n * Sets the control's check: a control's own message, as a Phone input's for\n * a number it can't read, first, then what `validate` says of its values.\n */\nfunction runCheck(\n  field: HTMLElement,\n  validate: (value: string, values: string[]) => string | null | undefined,\n) {\n  const control = checkedControl(field)\n  if (!control) return\n  const values = sentValues(field)\n  control.setCustomValidity(\n    control.dataset.fieldCheck || (validate(values[0] ?? '', values) ?? ''),\n  )\n  // Chrome reads a failing check as invalid; until the Field shows it, the control says it isn't.\n  if (control.getAttribute('aria-invalid') !== 'true')\n    control.setAttribute('aria-invalid', 'false')\n}\n\n/*\n * A field is a grid of rows: the label, the control, a detail row that is\n * empty unless a part such as a Password strength sits there, and a message\n * line under it, where the description and the error take turns. The error\n * rolls in as the description rolls out. A field with no description keeps\n * no line for an error: the line opens on `layout` as one arrives and closes\n * as it goes, so fields sit as close as their gap (Greg, 2026-11-17).\n */\nfunction Field({\n  className,\n  name,\n  invalid,\n  validate,\n  ref,\n  ...props\n}: Omit<ComponentProps<typeof FieldPrimitive>, 'className'> & {\n  className?: string\n  /**\n   * Checks the control's value, as the browser checks `required`: a message\n   * turns it down, and `null` passes. It shows once a submit has tried, and\n   * follows the value from then on. `value` is what the control sends, empty\n   * while it sends nothing; `values` is every value it sends, such as each\n   * box ticked in a Checkbox group.\n   */\n  validate?: (value: string, values: string[]) => string | null | undefined\n}) {\n  const revision = useContext(FormSubmissionContext)?.revision ?? 0\n  const formErrors = useContext(FormErrorsContext)\n  const given = name ? formErrors?.errors?.[name] : undefined\n  const refused = Array.isArray(given) ? given.join(' ') : (given ?? null)\n\n  // The check runs before the browser reads the control's validity: on each\n  // edit, ahead of the Field's own listener, and after each render, so a\n  // check that reads other state is up to date when the form submits.\n  const root = useRef<HTMLDivElement>(null)\n  const check = useRef(validate)\n  const clear = useRef(() => {})\n  useLayoutEffect(() => {\n    check.current = validate\n    clear.current = () => {\n      if (name && refused) formErrors?.clear(name)\n    }\n    if (root.current && validate) runCheck(root.current, validate)\n  })\n  // On the element a Form's reset remounts too, by `revision`.\n  useEffect(() => {\n    const field = root.current\n    if (!field) return undefined\n    const onEdit = () => {\n      clear.current()\n      if (check.current) runCheck(field, check.current)\n    }\n    field.addEventListener('input', onEdit, true)\n    field.addEventListener('change', onEdit, true)\n    return () => {\n      field.removeEventListener('input', onEdit, true)\n      field.removeEventListener('change', onEdit, true)\n    }\n  }, [revision])\n  const refs = useMemo(() => mergeRefs(root, ref), [ref])\n\n  return (\n    <RefusedContext value={refused}>\n      <FieldPrimitive\n        // A Form's reset remounts it, so its control takes its default value again.\n        key={revision}\n        ref={refs}\n        name={name}\n        invalid={refused ? true : invalid}\n        className={cn(\n          \"group/field grid min-w-0 grid-cols-1 content-start [grid-template-areas:'label'_'control'_'detail'_'message']\",\n          className,\n        )}\n        {...props}\n      />\n    </RefusedContext>\n  )\n}\n\nfunction FieldLabel({\n  className,\n  ...props\n}: Omit<ComponentProps<typeof FieldLabelPrimitive>, 'className'> & {\n  className?: string\n}) {\n  return (\n    <FieldLabelPrimitive\n      className={cn(labelClassName, 'w-fit pb-2 [grid-area:label]', className)}\n      {...props}\n    />\n  )\n}\n\nfunction FieldDescription({\n  className,\n  ...props\n}: Omit<ComponentProps<typeof FieldDescriptionPrimitive>, 'className'> & {\n  className?: string\n}) {\n  return (\n    <FieldDescriptionPrimitive\n      className={cn(\n        // Once the message line measures itself, it sizes the row, and the\n        // description only draws into it. It comes back after the error has\n        // mostly gone, and leaves quickly when an error comes.\n        'text-muted-foreground self-start pt-1.5 text-xs leading-5 transition-[opacity,translate] duration-(--motion-layout-duration) ease-(--motion-layout-easing) [grid-area:message] group-[:not(:has([data-slot=field-error]:not([data-ending-style])))]/field:delay-[calc(var(--motion-exit-duration)*0.35)] group-has-[[data-slot=field-error]:not([data-ending-style])]/field:pointer-events-none group-has-[[data-slot=field-error]:not([data-ending-style])]/field:opacity-0 group-has-[[data-slot=field-error]:not([data-ending-style])]/field:duration-[calc(var(--motion-exit-duration)*0.5)] group-has-[[data-slot=field-message][data-measured]]/field:h-0 motion-safe:group-has-[[data-slot=field-error]:not([data-ending-style])]/field:-translate-y-(--field-message-roll,0.5rem)',\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\n/*\n * The message line is as tall as what it shows: the error while there is\n * one, otherwise the description, or nothing. It moves to a new height on\n * the `layout` role, so an error makes room smoothly. Kept\n * outside the component: the React Compiler can drop side effects written\n * inside one.\n */\nfunction trackMessageHeight(message: HTMLElement) {\n  const field = message.parentElement\n  if (!field) return undefined\n  const measure = () => {\n    const shown =\n      message.querySelector<HTMLElement>(\n        '[data-slot=field-error]:not([data-ending-style])',\n      ) ?? field.querySelector<HTMLElement>(':scope > [data-slot=field-description]')\n    message.style.height = `${shown?.scrollHeight ?? 0}px`\n  }\n\n  // The first height is set at once, so nothing moves on first paint.\n  withoutTransition(message, () => {\n    measure()\n    message.dataset.measured = ''\n  })\n\n  // Only what the line shows is watched: the error and the description, and\n  // the field's own children coming and going. A control that changes as it\n  // works, such as a list of uploads, never makes it measure.\n  const texts = {\n    subtree: true,\n    childList: true,\n    characterData: true,\n    attributes: true,\n    attributeFilter: ['data-ending-style'],\n  }\n  const watch = () => {\n    mutations.disconnect()\n    mutations.observe(field, { childList: true })\n    mutations.observe(message, texts)\n    const description = field.querySelector(':scope > [data-slot=field-description]')\n    if (description) mutations.observe(description, texts)\n  }\n  const mutations = new MutationObserver(() => {\n    watch()\n    measure()\n  })\n  watch()\n  let width = field.offsetWidth\n  const sizes = new ResizeObserver(() => {\n    if (field.offsetWidth === width) return\n    const laidOut = width > 0\n    width = field.offsetWidth\n    // A field laid out for the first time, such as one that skipped layout off screen\n    // (`content-visibility: auto`), takes its height at once: there was nothing to move from.\n    if (laidOut) measure()\n    else withoutTransition(message, measure)\n  })\n  sizes.observe(field)\n  return () => {\n    mutations.disconnect()\n    sizes.disconnect()\n    delete message.dataset.measured\n  }\n}\n\n/** The error's look, and how it rolls out: the copy that plays its exit has only this. */\nconst fieldErrorExitClassName =\n  'text-destructive pt-1.5 transition-[opacity,translate] duration-(--motion-layout-duration) ease-(--motion-layout-easing) not-data-ending-style:delay-[calc(var(--motion-exit-duration)*0.35)] data-ending-style:opacity-0 data-ending-style:duration-[calc(var(--motion-exit-duration)*0.5)] motion-safe:data-ending-style:translate-y-(--field-message-roll,0.5rem)'\n\n/** The error's look, and how it rolls in and out; one already there when the page loads is simply there. */\nconst fieldErrorClassName = cn(\n  fieldErrorExitClassName,\n  'group-data-mounted/field-message:starting:opacity-0 motion-safe:group-data-mounted/field-message:starting:translate-y-(--field-message-roll,0.5rem)',\n)\n\n/**\n * Plays a leaving error's exit on its copy: the copy arrives where the error\n * was, even halfway in, and then takes its ending style, so the move turns\n * back from there.\n * Calls `done` at once when there is nothing to play: no exit runs, or the\n * same error is still shown, as when React's StrictMode remounts it.\n */\nfunction playExit(copy: HTMLElement, done: () => void) {\n  const shown = [\n    ...(copy.parentElement?.querySelectorAll('[data-slot=field-error]') ?? []),\n  ].some(\n    (error) =>\n      error !== copy &&\n      !error.hasAttribute('data-ending-style') &&\n      error.textContent === copy.textContent,\n  )\n  if (shown) return done()\n  // Reading its style commits the look it arrives with, for the exit to start from.\n  commitStyles(copy)\n  copy.style.removeProperty('opacity')\n  copy.style.removeProperty('translate')\n  copy.setAttribute('data-ending-style', '')\n  if (copy.getAnimations().length === 0) done()\n}\n\n/** Where a leaving error was, for its copy to start from. */\ntype ErrorLook = { text: string; opacity: string; translate: string }\n\n/** The error while ui-sdk shows it: as it goes, it hands its words and its look to the copy that plays its exit. */\nfunction ShownError({\n  ref,\n  onLeave,\n  ...props\n}: ComponentProps<'div'> & { onLeave: (look: ErrorLook) => void }) {\n  const own = useRef<HTMLDivElement>(null)\n  const leave = useRef(onLeave)\n  useLayoutEffect(() => {\n    leave.current = onLeave\n  })\n  useLayoutEffect(() => {\n    const element = own.current\n    return () => {\n      // Still in the page here, so its style is where its move had got to.\n      const style = element?.isConnected ? getComputedStyle(element) : null\n      leave.current({\n        text: element?.textContent ?? '',\n        opacity: style?.opacity ?? '1',\n        translate: style?.translate ?? 'none',\n      })\n    }\n  }, [])\n  const refs = useMemo(() => mergeRefs(own, ref), [ref])\n  return <div ref={refs} {...props} />\n}\n\nfunction FieldError({\n  className,\n  children,\n  match,\n  ...props\n}: Omit<ComponentProps<typeof FieldErrorPrimitive>, 'className'> & {\n  /** Goes to the message line the error sits in. */\n  className?: string\n}) {\n  const refused = useContext(RefusedContext)\n  const text = refused ?? children\n  // An error given as children shows while it is given.\n  const given = text != null && text !== false && text !== ''\n\n  // ui-sdk takes an error out of the page as it goes; a copy of its words,\n  // hidden from screen readers, plays its way out in its place.\n  const [leaving, setLeaving] = useState<(ErrorLook & { key: number }) | null>(null)\n  const leaves = useRef(0)\n\n  const messageRef = useRef<HTMLDivElement>(null)\n  useLayoutEffect(\n    () => (messageRef.current ? trackMessageHeight(messageRef.current) : undefined),\n    [],\n  )\n  const lineRef = useMemo(() => mergeRefs(messageRef, markMounted), [])\n  const leaveRef = useCallback((copy: HTMLDivElement | null) => {\n    if (copy) playExit(copy, () => setLeaving(null))\n  }, [])\n\n  return (\n    <div\n      ref={lineRef}\n      data-slot='field-message'\n      // There before an error arrives, so a screen reader reads it out as it does.\n      aria-live='polite'\n      className={cn(\n        'group/field-message grid items-start overflow-hidden text-xs leading-5 transition-[height] duration-(--motion-layout-duration) ease-(--motion-layout-easing) [grid-area:message] *:[grid-area:1/1] motion-reduce:transition-none',\n        className,\n      )}\n    >\n      {leaving ? (\n        <div\n          key={leaving.key}\n          ref={leaveRef}\n          aria-hidden\n          data-slot='field-error'\n          className={cn(fieldErrorExitClassName, 'pointer-events-none')}\n          style={{ opacity: leaving.opacity, translate: leaving.translate }}\n          onTransitionEnd={(event) => {\n            if (event.target === event.currentTarget) setLeaving(null)\n          }}\n        >\n          {leaving.text}\n        </div>\n      ) : null}\n      <FieldErrorPrimitive\n        match={match ?? (given ? true : undefined)}\n        className={fieldErrorClassName}\n        render={(errorProps) => (\n          <ShownError\n            {...errorProps}\n            onLeave={(look) => {\n              // One that never showed, still waiting to come in, just goes.\n              if (!look.text || Number(look.opacity) < 0.05) return\n              if (!messageRef.current?.isConnected) return\n              leaves.current += 1\n              setLeaving({ ...look, key: leaves.current })\n            }}\n          />\n        )}\n        {...props}\n        // Without children, ui-sdk shows the browser's own message.\n        {...(given ? { children: text } : {})}\n      />\n    </div>\n  )\n}\n\nfunction FieldSet({\n  className,\n  ...props\n}: Omit<ComponentProps<typeof FieldSetPrimitive>, 'className'> & {\n  className?: string\n}) {\n  return (\n    <FieldSetPrimitive\n      className={cn(\n        'm-0 flex min-w-0 flex-col gap-(--surface-gap) border-0 p-0',\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction FieldLegend({\n  className,\n  ...props\n}: Omit<ComponentProps<typeof FieldLegendPrimitive>, 'className'> & {\n  className?: string\n}) {\n  return (\n    <FieldLegendPrimitive\n      className={cn(\n        'mb-1 text-base leading-6 font-medium data-disabled:opacity-50',\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\n/** Stacks the fields of a set at the surface's gap; the set is what names and disables them. */\nfunction FieldGroup({\n  className,\n  ...props\n}: Omit<ComponentProps<typeof FieldGroupPrimitive>, 'className'> & {\n  className?: string\n}) {\n  return (\n    <FieldGroupPrimitive\n      className={cn('flex min-w-0 flex-col gap-(--surface-gap)', className)}\n      {...props}\n    />\n  )\n}\n\nexport {\n  Field,\n  FieldDescription,\n  FieldError,\n  FieldGroup,\n  FieldLabel,\n  FieldLegend,\n  FieldSet,\n  Form,\n  useFormSubmission,\n}\nexport { formValues, isFormErrors }\nexport type { FormErrors, FormStatus, FormSubmission, FormValues }\n",
      "type": "registry:component",
      "target": "@components/kino/field.tsx"
    }
  ],
  "type": "registry:component"
}