@lanaco/lnc-react-ui
Version:
React component library
8 lines (7 loc) • 843 B
JavaScript
;const m=require("react/jsx-runtime"),l=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),r=require("./utils-BK6B_Y9X.cjs"),c=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),x=l.styled.div`
padding: ${e=>e.padding};
box-shadow: ${e=>r.getBoxShadowValue(e.theme,e.boxShadow)};
border-radius: ${e=>r.getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
width: ${e=>e.fullWidth?"100%":"fit-content"};
border-top: 1px solid rgba(0, 0, 0, 0.04);
`,h=({children:e,style:t={},className:s="",boxShadow:o="s",borderRadius:d="regular",padding:i="s",fullWidth:n=!1})=>{const a=c.useTheme(),u={xs:"0.25rem",s:"0.5rem",m:"0.75rem",l:"1rem",xl:"1.25rem",xxl:"1.5rem"};return m.jsx(x,{theme:a,style:t,className:"lnc-ui-surface "+s,borderRadius:d,boxShadow:o,padding:u[i],fullWidth:n,children:e})};module.exports=h;