import e,{useId as l}from"react";import{LabelPlacement as a}from"../utils.js";import t from"../FormLabel/FormLabel.js";import{Checkbox as r}from"../../node_modules/@cortexapps/react-plugin-ui/dist/index.js";const i=({checked:i,disabled:o=!1,id:m,label:n,labelPlacement:s=a.Right,lightLabel:c=!0,onChange:d,value:b,...h})=>{const p=l(),g=m??p,u=e.createElement(t,{htmlFor:g,label:n,light:c});return e.createElement("div",{style:{alignItems:"center",display:"flex",gap:8}},s===a.Left&&u,e.createElement(r,{...h,"aria-label":h["aria-label"]??n,checked:i,disabled:o,id:g,onChange:d,value:b}),s===a.Right&&u)};export{i as default};
//# sourceMappingURL=Checkbox.js.map
