"use client"; /** * Text Input Field * * COPIED VERBATIM FROM: components/onboarding/steps/text-input-step.tsx:200-253 * Renders a single text input or select field */ import { ANIMATION_CLASSES, getStaggerStyle, STAGGER_PRESETS, } from "../animations"; import { cx } from "../lib/utils"; import { OnboardingInput } from "../primitives/onboarding-input"; import { OnboardingLabel } from "../primitives/onboarding-label"; import { OnboardingSelect, OnboardingSelectContent, OnboardingSelectItem, OnboardingSelectTrigger, OnboardingSelectValue, } from "../primitives/onboarding-select"; import type { TextInputFieldProps } from "../types/fields"; export function TextInputField({ id, label, placeholder, description, fieldType = "text", type = "text", options, required = false, value, onChange, onBlur, error, touched = false, animationIndex = 0, disabled = false, }: TextInputFieldProps) { return (
{description}
)} {fieldType === "select" ? ({error}
)}