veza/apps/web/dist_verification/assets/input-vC0DbxH_.js
senke b733f47a33 chore: playwright workflow, docs, rapports audit, visual-tests, tmt unit
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-11 22:19:34 +01:00

1 line
1.9 KiB
JavaScript

import{a as i,j as e}from"./vendor-react-Dkpvlwai.js";import{d as n}from"./index-VJPzCABl.js";import{S as p}from"./vendor-icons-CbmLcMl-.js";const c=i.forwardRef(({className:s,...t},r)=>e.jsx("label",{ref:r,className:n("text-sm font-medium leading-none text-muted-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70",s),...t}));c.displayName="Label";const u=i.forwardRef(({className:s,type:t,icon:r,label:o,error:a,id:d,...f},m)=>{const l=i.useId();return e.jsxs("div",{className:"space-y-2 w-full",children:[o&&e.jsx(c,{htmlFor:d,className:"text-xs font-mono text-muted-foreground uppercase tracking-widest",children:o}),e.jsxs("div",{className:"relative group",children:[r&&e.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground group-focus-within:text-primary transition-colors duration-[var(--duration-fast)] pointer-events-none",children:r}),e.jsx("input",{id:d,type:t,"aria-invalid":!!a,"aria-describedby":a?l:void 0,className:n("flex h-11 w-full rounded-xl border border-white/10 bg-black/40 px-3 py-2 text-sm text-white placeholder:text-muted-foreground/50 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-not-allowed disabled:opacity-50","backdrop-blur-sm transition-all duration-[var(--duration-fast)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background","focus-visible:shadow-[0_0_0_3px_oklch(var(--primary)/0.15),0_0_12px_oklch(var(--primary)/0.1)]","hover:bg-white/5 hover:border-white/20",r&&"pl-10",a&&"border-destructive focus-visible:ring-destructive/30",s),ref:m,...f})]}),a&&e.jsx("p",{id:l,className:"text-xs text-destructive mt-1 animate-shake",children:a})]})});u.displayName="Input";const x=i.forwardRef((s,t)=>e.jsx(u,{...s,ref:t,icon:e.jsx(p,{className:"w-4 h-4"})}));x.displayName="SearchInput";export{u as I,c as L,x as S};