{"ast":null,"code":"import * as React from 'react';\nimport classNames from 'classnames';\nimport { codePropDefs } from './code.props';\nimport { extractMarginProps, withMarginProps, withBreakpoints } from '../helpers';\nconst Code = React.forwardRef((props, forwardedRef) => {\n  const {\n    rest: marginRest,\n    ...marginProps\n  } = extractMarginProps(props);\n  const {\n    className,\n    size = codePropDefs.size.default,\n    variant = codePropDefs.variant.default,\n    weight = codePropDefs.weight.default,\n    color = codePropDefs.color.default,\n    highContrast = codePropDefs.highContrast.default,\n    ...codeProps\n  } = marginRest;\n  return React.createElement(\"code\", {\n    \"data-accent-color\": color,\n    ...codeProps,\n    ref: forwardedRef,\n    className: classNames('rt-Code', className, withBreakpoints(size, 'rt-r-size'), `rt-variant-${variant}`, withBreakpoints(weight, 'rt-r-weight'), {\n      'rt-high-contrast': highContrast\n    }, withMarginProps(marginProps))\n  });\n});\nCode.displayName = 'Code';\nexport { Code };","map":{"version":3,"names":["React","classNames","codePropDefs","extractMarginProps","withMarginProps","withBreakpoints","Code","forwardRef","props","forwardedRef","rest","marginRest","marginProps","className","size","default","variant","weight","color","highContrast","codeProps","createElement","ref","displayName"],"sources":["../../../src/components/code.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,YAAY,QAAQ,cAAc;AAC3C,SAASC,kBAAkB,EAAEC,eAAe,EAAEC,eAAe,QAAQ,YAAY;AAOjF,MAAMC,IAAI,GAAGN,KAAK,CAACO,UAAU,CAAyB,CAACC,KAAK,EAAEC,YAAY,KAAI;EAC5E,MAAM;IAAEC,IAAI,EAAEC,UAAU;IAAE,GAAGC;EAAW,CAAE,GAAGT,kBAAkB,CAACK,KAAK,CAAC;EACtE,MAAM;IACJK,SAAS;IACTC,IAAI,GAAGZ,YAAY,CAACY,IAAI,CAACC,OAAO;IAChCC,OAAO,GAAGd,YAAY,CAACc,OAAO,CAACD,OAAO;IACtCE,MAAM,GAAGf,YAAY,CAACe,MAAM,CAACF,OAAO;IACpCG,KAAK,GAAGhB,YAAY,CAACgB,KAAK,CAACH,OAAO;IAClCI,YAAY,GAAGjB,YAAY,CAACiB,YAAY,CAACJ,OAAO;IAChD,GAAGK;EAAS,CACb,GAAGT,UAAU;EACd,OACEX,KAAA,CAAAqB,aAAA;IAAA,qBACqBH,KAAK;IAAA,GACpBE,SAAS;IACbE,GAAG,EAAEb,YAAY;IACjBI,SAAS,EAAEZ,UAAU,CACnB,SAAS,EACTY,SAAS,EACTR,eAAe,CAACS,IAAI,EAAE,WAAW,CAAC,EAClC,cAAcE,OAAO,EAAE,EACvBX,eAAe,CAACY,MAAM,EAAE,aAAa,CAAC,EACtC;MAAE,kBAAkB,EAAEE;IAAY,CAAE,EACpCf,eAAe,CAACQ,WAAW,CAAC;EAC7B,EACD;AAEN,CAAC,CAAC;AACFN,IAAI,CAACiB,WAAW,GAAG,MAAM;AAEzB,SAASjB,IAAI"},"metadata":{},"sourceType":"module","externalDependencies":[]}