import e from"../../node_modules/classnames/index.js";import t,{useId as a}from"react";import{LabelPlacement as r}from"../utils.js";import l from"../Input/Input.js";import o from"../Stack/Stack.js";import m from"../FormLabel/FormLabel.js";const i=({checked:i,disabled:c=!1,id:n,label:s,labelPlacement:p=r.Right,lightLabel:d=!0,onChange:b,value:h,...u})=>{const f=a(),g=n??f,j=t.createElement(m,{htmlFor:g,label:s,light:d});return t.createElement(o,{alignItems:"center",row:!0},p===r.Left&&j,t.createElement(l,{...u,"aria-label":u["aria-label"]??s,checked:i,className:e("accent-color-primary","position-relative","ms-0","mt-0",{"cursor-pointer":!c}),disabled:c,id:g,onChange:b,type:"checkbox",value:h}),p===r.Right&&j)};export{i as default};
//# sourceMappingURL=Checkbox.js.map
