"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs38.js"),u=require("react"),x=require("./index.cjs40.js"),e=require("./index.cjs53.js"),b=require("./index.cjs8.js"),d=u.forwardRef(({type:s="checkbox",size:c="md",description:o,indeterminate:i=!1,className:m,testId:j,children:a,disabled:f,...R},l)=>{const n=u.useRef(null);u.useEffect(()=>{s==="checkbox"&&n.current&&(n.current.indeterminate=i)},[i,s]);const p=r=>{n.current=r,typeof l=="function"?l(r):l&&(l.current=r)};return t.jsxRuntimeExports.jsxs(b.Root,{as:"label",testId:j,className:x(e.default.root,e.default[`root--${c}`],f&&e.default["root--disabled"],m),children:[t.jsxRuntimeExports.jsx("input",{ref:p,type:s,className:e.default.input,disabled:f,...R}),t.jsxRuntimeExports.jsx("span",{className:x(e.default.control,e.default[`control--${s}`],e.default[`control--${c}`]),"aria-hidden":"true"}),(a||o)&&t.jsxRuntimeExports.jsxs("span",{className:e.default.content,children:[a&&t.jsxRuntimeExports.jsx("span",{className:e.default.label,children:a}),o&&t.jsxRuntimeExports.jsx("span",{className:e.default.description,children:o})]})]})});d.displayName="SelectableControl";exports.SelectableControl=d;
//# sourceMappingURL=index.cjs15.js.map
