"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../index-DEZRGktf.js"),r=require("lucide-react");require("react-router-dom");require("react");require("react-dom");const n=()=>{const o=[{icon:e.jsx(r.Type,{className:"w-6 h-6 text-white filter drop-shadow-sm"}),title:"Text Inputs",description:"Standard text entry with validation and helper text",color:"from-blue-500 to-cyan-500",components:["Input","Textarea"]},{icon:e.jsx(r.List,{className:"w-6 h-6 text-white filter drop-shadow-sm"}),title:"Selection",description:"Dropdown and autocomplete with search support",color:"from-green-500 to-emerald-500",components:["Select","InputSearcher"]},{icon:e.jsx(r.CheckSquare,{className:"w-6 h-6 text-white filter drop-shadow-sm"}),title:"Choice Controls",description:"Boolean and group selection inputs",color:"from-purple-500 to-violet-500",components:["Checkbox","Radio","RadioGroup","Switch"]},{icon:e.jsx(r.Upload,{className:"w-6 h-6 text-white filter drop-shadow-sm"}),title:"File Upload",description:"File input with drag & drop support",color:"from-pink-500 to-rose-500",components:["FileInput"]},{icon:e.jsx(r.Hash,{className:"w-6 h-6 text-white filter drop-shadow-sm"}),title:"Specialized",description:"PIN codes and toggle selection bars",color:"from-indigo-500 to-purple-500",components:["PinCode","ToggleBar"]}];return e.jsxs(e.Fragment,{children:[e.jsx(t.HeroCard,{title:"Form Components",description:"11 input components ready for use with FormField. Each integrates automatically with validation, error display, and form state.",icon:e.jsx("div",{className:"w-20 h-20 sm:w-24 sm:h-24 md:w-32 md:h-32 bg-linear-to-br from-purple-500 via-violet-500 to-indigo-500 rounded-full flex items-center justify-center shadow-lg",children:e.jsx(r.LayoutGrid,{className:"w-10 h-10 sm:w-12 sm:h-12 md:w-16 md:h-16 text-white filter drop-shadow-lg"})})}),e.jsxs("section",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(t.Typography,{tag:"h2",className:"mb-2",children:"Available Inputs"}),e.jsx(t.Typography,{tag:"p",className:"text-gray-500 dark:text-gray-400 max-w-2xl mx-auto",children:"All form inputs organized by category"})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6",children:o.map((s,a)=>e.jsx(t.CardContainer,{children:e.jsxs("div",{className:"w-full p-4 sm:p-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`p-2.5 rounded-xl bg-linear-to-br ${s.color} shadow-lg`,children:s.icon}),e.jsxs("div",{children:[e.jsx(t.Typography,{tag:"h3",className:"font-semibold",children:s.title}),e.jsx(t.Typography,{tag:"p",className:"text-sm text-gray-500 dark:text-gray-400",children:s.description})]})]}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:s.components.map((i,l)=>e.jsx(t.Badge,{color:"success",variant:"outline",className:"text-xs",children:i},l))})]})},a))})]}),e.jsxs("section",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(t.Typography,{tag:"h2",className:"mb-2",children:"Usage with FormField"}),e.jsx(t.Typography,{tag:"p",className:"text-gray-500 dark:text-gray-400 max-w-2xl mx-auto",children:"Any input wrapped in FormField gets automatic registration and error handling"})]}),e.jsx(t.CardContainer,{children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[{label:"Input",code:'<FormField name="email"><Input type="email" /></FormField>'},{label:"Select",code:'<FormField name="country"><Select options={countries} /></FormField>'},{label:"Checkbox",code:'<FormField name="terms"><Checkbox label="Accept" /></FormField>'},{label:"InputSearcher",code:'<FormField name="city"><InputSearcher options={cities} /></FormField>'}].map((s,a)=>e.jsxs("div",{className:"p-3 bg-gray-100 dark:bg-gray-800/50 rounded-lg border border-border",children:[e.jsx(t.Typography,{tag:"span",className:"text-xs font-semibold text-brand block mb-2",children:s.label}),e.jsx("code",{className:"text-xs text-gray-600 dark:text-gray-400 break-all",children:s.code})]},a))})})})]})]})};exports.default=n;
