import { expect, userEvent, within } from "storybook/test"; import type { Meta, StoryObj } from "@storybook/react-vite"; import type { ReactNode } from "react"; import { InputPassword } from "../inputs/InputPassword"; import { InputText } from "../inputs/InputText"; import { Text } from "../primitives/Text"; import { View } from "../primitives/View"; import { Story } from "../story-components/Story"; import { Form } from "./Form"; import { FormField } from "./FormField"; interface SignUpValues { username: string; password: string; } function validatePassword(value: string): string | undefined { return value.length < 8 ? "Password must be at least 8 characters." : undefined; } function FormFieldDemo(): ReactNode { return (