import{__rest as e,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as a}from"react/jsx-runtime";import{forwardRef as l}from"react";import{FormControlLabel as o}from"@material-ui/core";import m from"classnames";import s from"./RadioAndCheckboxLabel.scss.js";var i={medium:s.medium,small:s.small},n={end:s.placementEnd,start:s.placementStart,top:s.placementTop,bottom:s.placementBottom},r=l((function(l,r){var c=l.control,d=l.testId,p=l.className,b=l.inputRef,f=l.checked,u=void 0!==f&&f,h=l.label,v=l.onChange,k=l.disabled,C=l.labelPlacement,N=void 0===C?"end":C,R=l.size,g=void 0===R?"medium":R,j=e(l,["control","testId","className","inputRef","checked","label","onChange","disabled","labelPlacement","size"]);return a("div",{className:m(s.root,n[N],i[g],p),children:a(o,t({ref:r,control:c,className:s.label,"data-testid":d,inputRef:b,checked:u,onChange:v,disabled:k,label:h,labelPlacement:N},j))})}));export{r as RadioAndCheckboxLabel};
