{"ast":null,"code":"import * as React from 'react';\nimport classNames from 'classnames';\nimport { containerPropDefs } from './container.props';\nimport { extractMarginProps, withMarginProps, extractLayoutProps, withLayoutProps, withBreakpoints } from '../helpers';\nconst Container = 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    children,\n    className,\n    size = containerPropDefs.size.default,\n    display = containerPropDefs.display.default,\n    ...containerProps\n  } = layoutRest;\n  return React.createElement(\"div\", {\n    ...containerProps,\n    ref: forwardedRef,\n    className: classNames('rt-Container', className, withBreakpoints(size, 'rt-r-size'), withBreakpoints(display, 'rt-r-display'), withLayoutProps(layoutProps), withMarginProps(marginProps))\n  }, React.createElement(\"div\", {\n    className: \"rt-ContainerInner\"\n  }, children));\n});\nContainer.displayName = 'Container';\nexport { Container };","map":{"version":3,"names":["React","classNames","containerPropDefs","extractMarginProps","withMarginProps","extractLayoutProps","withLayoutProps","withBreakpoints","Container","forwardRef","props","forwardedRef","rest","marginRest","marginProps","layoutRest","layoutProps","children","className","size","default","display","containerProps","createElement","ref","displayName"],"sources":["../../../src/components/container.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,iBAAiB,QAAQ,mBAAmB;AACrD,SACEC,kBAAkB,EAClBC,eAAe,EACfC,kBAAkB,EAClBC,eAAe,EACfC,eAAe,QACV,YAAY;AAWnB,MAAMC,SAAS,GAAGR,KAAK,CAACS,UAAU,CAAmC,CAACC,KAAK,EAAEC,YAAY,KAAI;EAC3F,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,QAAQ;IACRC,SAAS;IACTC,IAAI,GAAGjB,iBAAiB,CAACiB,IAAI,CAACC,OAAO;IACrCC,OAAO,GAAGnB,iBAAiB,CAACmB,OAAO,CAACD,OAAO;IAC3C,GAAGE;EAAc,CAClB,GAAGP,UAAU;EACd,OACEf,KAAA,CAAAuB,aAAA;IAAA,GACMD,cAAc;IAClBE,GAAG,EAAEb,YAAY;IACjBO,SAAS,EAAEjB,UAAU,CACnB,cAAc,EACdiB,SAAS,EACTX,eAAe,CAACY,IAAI,EAAE,WAAW,CAAC,EAClCZ,eAAe,CAACc,OAAO,EAAE,cAAc,CAAC,EACxCf,eAAe,CAACU,WAAW,CAAC,EAC5BZ,eAAe,CAACU,WAAW,CAAC;EAC7B,GAEDd,KAAA,CAAAuB,aAAA;IAAKL,SAAS,EAAC;EAAmB,GAAED,QAAQ,CAAO,CAC/C;AAEV,CAAC,CAAC;AACFT,SAAS,CAACiB,WAAW,GAAG,WAAW;AAEnC,SAASjB,SAAS"},"metadata":{},"sourceType":"module","externalDependencies":[]}