"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),a=require("react/jsx-runtime"),r=require("react"),o=require("@material-ui/core"),i=require("../RadioAndCheckboxLabel/RadioAndCheckboxLabel.js"),n=require("../RadioAndCheckboxLabel/RadioAndCheckboxLabel.scss.js"),l=r.forwardRef((function(l,s){var t=l.onChange,d=l.labelPlacement,c=void 0===d?"end":d,u=l.size,b=void 0===u?"medium":u,x=e.__rest(l,["onChange","labelPlacement","size"]),h=r.useCallback((function(e){return null==t?void 0:t(e.target.checked,e)}),[t]);return a.jsx(i.RadioAndCheckboxLabel,e.__assign({control:a.jsx(o.Radio,{className:n.control}),onChange:h,ref:s,labelPlacement:c,size:b},x))}));exports.Radio=l;
