import*as e from"react";import{useRadioGroup as r}from"./use-radio-group.js";import{createContext as t}from"../../../react-utils/dist/esm/context.js";import{forwardRef as o}from"../../../system/dist/esm/forward-ref.js";import{cx as s}from"../../../utils/dist/esm/dom.js";import{chakra as a}from"../../../system/dist/esm/system.js";import{__DEV__ as i}from"../../../utils/dist/esm/assertion.js";function m(){return(m=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)}var[n,c]=t({name:"RadioGroupContext",strict:!1}),l=o(((t,o)=>{var{colorScheme:i,size:c,variant:l,children:u,className:p}=t,f=function(e,r){if(null==e)return{};var t,o,s={},a=Object.keys(e);for(o=0;o<a.length;o++)t=a[o],r.indexOf(t)>=0||(s[t]=e[t]);return s}(t,["colorScheme","size","variant","children","className"]),{value:d,onChange:h,getRootProps:v,name:j,htmlProps:g}=r(f),y=e.useMemo((()=>({name:j,size:c,onChange:h,colorScheme:i,value:d,variant:l})),[c,j,h,i,d,l]),O=v(g,o),x=s("chakra-radio-group",p);return e.createElement(n,{value:y},e.createElement(a.div,m({},O,{className:x}),u))}));i&&(l.displayName="RadioGroup");export{l as RadioGroup,c as useRadioGroupContext};
//# sourceMappingURL=radio-group.js.map
