@gsretail.com/gui-core
Version:
A skeleton to create your own React component library using Rollup, TypeScript, Sass and Storybook
2 lines (1 loc) • 865 B
JavaScript
import{__rest as e,__assign as r}from"tslib";import a from"react";import{Box as l,RadioGroup as t}from"@mui/material";import i from"./GuiRadioGroup.styled.js";var o=i((function(i){var o=i.groupLabel,n=i.labelWidth,m=i.labelTextAlign,u=i.required,d=i.width,s=i.name,c=i.row,g=i.value,p=i.onChange,b=i.children,h=i.className,f=i.boxProps,w=e(i,["groupLabel","labelWidth","labelTextAlign","required","width","name","row","value","onChange","children","className","boxProps"]);return a.createElement(l,r({className:["gui-form gui-radio-group",h&&h].join(" "),width:d},f),o&&a.createElement(l,{minWidth:n},a.createElement("label",{className:["gui-label",m&&"textAlign-"+m,u&&"Mui-required",h&&h].join(" ")},o)),a.createElement(l,{flexGrow:1},a.createElement(t,r({name:s,row:c,value:g,onChange:p},w),b||"")))}));o.defaultProps={};export{o as GuiRadioGroup,o as default};