{"ast":null,"code":"import * as React from 'react';\nimport classNames from 'classnames';\nimport { sectionPropDefs } from './section.props';\nimport { extractMarginProps, withMarginProps, extractLayoutProps, withLayoutProps, withBreakpoints } from '../helpers';\nconst Section = React.forwardRef((props, forwardedRef) => {\n  const {\n    rest: marginRest,\n    ...marginProps\n  } = extractMarginProps(props);\n  const {\n    rest: layoutRest,\n    ...layoutProps\n  } = extractLayoutProps(marginRest);\n  const {\n    className,\n    size = sectionPropDefs.size.default,\n    display = sectionPropDefs.display.default,\n    ...sectionProps\n  } = layoutRest;\n  return React.createElement(\"section\", {\n    ...sectionProps,\n    ref: forwardedRef,\n    className: classNames('rt-Section', className, withBreakpoints(size, 'rt-r-size'), withBreakpoints(display, 'rt-r-display'), withLayoutProps(layoutProps), withMarginProps(marginProps))\n  });\n});\nSection.displayName = 'Section';\nexport { Section };","map":{"version":3,"names":["React","classNames","sectionPropDefs","extractMarginProps","withMarginProps","extractLayoutProps","withLayoutProps","withBreakpoints","Section","forwardRef","props","forwardedRef","rest","marginRest","marginProps","layoutRest","layoutProps","className","size","default","display","sectionProps","createElement","ref","displayName"],"sources":["../../../src/components/section.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,eAAe,QAAQ,iBAAiB;AACjD,SACEC,kBAAkB,EAClBC,eAAe,EACfC,kBAAkB,EAClBC,eAAe,EACfC,eAAe,QACV,YAAY;AAWnB,MAAMC,OAAO,GAAGR,KAAK,CAACS,UAAU,CAA+B,CAACC,KAAK,EAAEC,YAAY,KAAI;EACrF,MAAM;IAAEC,IAAI,EAAEC,UAAU;IAAE,GAAGC;EAAW,CAAE,GAAGX,kBAAkB,CAACO,KAAK,CAAC;EACtE,MAAM;IAAEE,IAAI,EAAEG,UAAU;IAAE,GAAGC;EAAW,CAAE,GAAGX,kBAAkB,CAACQ,UAAU,CAAC;EAC3E,MAAM;IACJI,SAAS;IACTC,IAAI,GAAGhB,eAAe,CAACgB,IAAI,CAACC,OAAO;IACnCC,OAAO,GAAGlB,eAAe,CAACkB,OAAO,CAACD,OAAO;IACzC,GAAGE;EAAY,CAChB,GAAGN,UAAU;EACd,OACEf,KAAA,CAAAsB,aAAA;IAAA,GACMD,YAAY;IAChBE,GAAG,EAAEZ,YAAY;IACjBM,SAAS,EAAEhB,UAAU,CACnB,YAAY,EACZgB,SAAS,EACTV,eAAe,CAACW,IAAI,EAAE,WAAW,CAAC,EAClCX,eAAe,CAACa,OAAO,EAAE,cAAc,CAAC,EACxCd,eAAe,CAACU,WAAW,CAAC,EAC5BZ,eAAe,CAACU,WAAW,CAAC;EAC7B,EACD;AAEN,CAAC,CAAC;AACFN,OAAO,CAACgB,WAAW,GAAG,SAAS;AAE/B,SAAShB,OAAO"},"metadata":{},"sourceType":"module","externalDependencies":[]}