- apps/web: test updates (Vitest/setup), playbackAnalyticsService, TrackGrid, serviceErrorHandler - veza-common: logging, metrics, traits, validation, random - veza-stream-server: audio pipeline, codecs, cache, monitoring, routes - apps/web/dist_verification: refresh build assets (content-hashed filenames) Co-authored-by: Cursor <cursoragent@cursor.com>
6 lines
1.4 KiB
JavaScript
6 lines
1.4 KiB
JavaScript
import{a as i,j as e}from"./vendor-react-C9dYU-TK.js";import{c as p}from"./index-BMBS6scK.js";import{C as f}from"./vendor-icons-BSV6HBy1.js";const x=i.forwardRef(({label:r,className:n="",onCheckedChange:t,id:c,...a},d)=>{const l=i.useId(),o=c||l,s=`${o}-label`,b=u=>{t&&t(u.target.checked)};return e.jsxs("label",{htmlFor:o,id:s,className:p("inline-flex items-center gap-4 cursor-pointer group",a.disabled?"opacity-50 cursor-not-allowed":"",n),children:[e.jsxs("div",{className:"relative",children:[e.jsx("input",{ref:d,id:o,type:"checkbox",className:"peer sr-only",onChange:b,"aria-label":!r&&!a["aria-label"]&&!a["aria-labelledby"]?"Checkbox":void 0,"aria-labelledby":r?s:void 0,...a}),e.jsx("div",{className:`
|
|
w-5 h-5 rounded border border-border bg-muted
|
|
peer-checked:bg-primary peer-checked:border-border
|
|
peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-background
|
|
transition-all duration-[var(--duration-fast)]
|
|
`}),e.jsx(f,{className:"w-3.5 h-3.5 text-black absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 opacity-0 peer-checked:opacity-100 transition-opacity duration-[var(--duration-fast)] pointer-events-none",strokeWidth:3})]}),r&&e.jsx("span",{className:"text-sm text-foreground group-hover:text-foreground transition-colors duration-[var(--duration-fast)] select-none",children:r})]})});x.displayName="Checkbox";export{x as C};
|