{"ast":null,"code":"import * as React from 'react';\nimport classNames from 'classnames';\nimport { insetPropDefs } from './inset.props';\nimport { extractMarginProps, withMarginProps, withBreakpoints } from '../helpers';\nconst Inset = React.forwardRef((props, forwardedRef) => {\n  const {\n    rest: marginRest,\n    ...marginProps\n  } = extractMarginProps(props);\n  const {\n    className,\n    side = insetPropDefs.side.default,\n    p,\n    px,\n    py,\n    pt,\n    pr,\n    pb,\n    pl,\n    ...insetProps\n  } = marginRest;\n  return React.createElement(\"div\", {\n    ...insetProps,\n    ref: forwardedRef,\n    className: classNames('rt-Inset', className, withBreakpoints(side, 'rt-r-side'), withBreakpoints(p, 'rt-r-p'), withBreakpoints(px, 'rt-r-px'), withBreakpoints(py, 'rt-r-py'), withBreakpoints(pt, 'rt-r-pt'), withBreakpoints(pr, 'rt-r-pr'), withBreakpoints(pb, 'rt-r-pb'), withBreakpoints(pl, 'rt-r-pl'), withMarginProps(marginProps))\n  });\n});\nInset.displayName = 'Inset';\nexport { Inset };","map":{"version":3,"names":["React","classNames","insetPropDefs","extractMarginProps","withMarginProps","withBreakpoints","Inset","forwardRef","props","forwardedRef","rest","marginRest","marginProps","className","side","default","p","px","py","pt","pr","pb","pl","insetProps","createElement","ref","displayName"],"sources":["../../../src/components/inset.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,kBAAkB,EAAEC,eAAe,EAAEC,eAAe,QAAQ,YAAY;AAOjF,MAAMC,KAAK,GAAGN,KAAK,CAACO,UAAU,CAA2B,CAACC,KAAK,EAAEC,YAAY,KAAI;EAC/E,MAAM;IAAEC,IAAI,EAAEC,UAAU;IAAE,GAAGC;EAAW,CAAE,GAAGT,kBAAkB,CAACK,KAAK,CAAC;EACtE,MAAM;IACJK,SAAS;IACTC,IAAI,GAAGZ,aAAa,CAACY,IAAI,CAACC,OAAO;IACjCC,CAAC;IACDC,EAAE;IACFC,EAAE;IACFC,EAAE;IACFC,EAAE;IACFC,EAAE;IACFC,EAAE;IACF,GAAGC;EAAU,CACd,GAAGZ,UAAU;EACd,OACEX,KAAA,CAAAwB,aAAA;IAAA,GACMD,UAAU;IACdE,GAAG,EAAEhB,YAAY;IACjBI,SAAS,EAAEZ,UAAU,CACnB,UAAU,EACVY,SAAS,EACTR,eAAe,CAACS,IAAI,EAAE,WAAW,CAAC,EAClCT,eAAe,CAACW,CAAC,EAAE,QAAQ,CAAC,EAC5BX,eAAe,CAACY,EAAE,EAAE,SAAS,CAAC,EAC9BZ,eAAe,CAACa,EAAE,EAAE,SAAS,CAAC,EAC9Bb,eAAe,CAACc,EAAE,EAAE,SAAS,CAAC,EAC9Bd,eAAe,CAACe,EAAE,EAAE,SAAS,CAAC,EAC9Bf,eAAe,CAACgB,EAAE,EAAE,SAAS,CAAC,EAC9BhB,eAAe,CAACiB,EAAE,EAAE,SAAS,CAAC,EAC9BlB,eAAe,CAACQ,WAAW,CAAC;EAC7B,EACD;AAEN,CAAC,CAAC;AACFN,KAAK,CAACoB,WAAW,GAAG,OAAO;AAE3B,SAASpB,KAAK"},"metadata":{},"sourceType":"module","externalDependencies":[]}