UNPKG

2.01 kBSource Map (JSON)View Raw
1{"version":3,"file":"DocumentCardLocation.base.js","sourceRoot":"../src/","sources":["components/DocumentCard/DocumentCardLocation.base.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAO7E,IAAM,aAAa,GAAG,kBAAkB,EAAgE,CAAC;AAEzG;;GAEG;AACH;IAA8C,4CAAgD;IAG5F,kCAAY,KAAiC;QAA7C,YACE,kBAAM,KAAK,CAAC,SAGb;QADC,sBAAsB,CAAC,KAAI,CAAC,CAAC;;IAC/B,CAAC;IAEM,yCAAM,GAAb;QACQ,IAAA,eAAqF,EAAnF,sBAAQ,EAAE,8BAAY,EAAE,wBAAS,EAAE,oBAAO,EAAE,kBAAM,EAAE,gBAAK,EAAE,wBAAwB,CAAC;QAE5F,IAAI,CAAC,WAAW,GAAG,aAAa,CAAC,MAAO,EAAE;YACxC,KAAK,EAAE,KAAM;YACb,SAAS,WAAA;SACV,CAAC,CAAC;QAEH,OAAO,CACL,2BAAG,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,gBAAc,SAAS,IAC7F,QAAQ,CACP,CACL,CAAC;IACJ,CAAC;IACH,+BAAC;AAAD,CAAC,AAvBD,CAA8C,KAAK,CAAC,SAAS,GAuB5D","sourcesContent":["import * as React from 'react';\nimport { IProcessedStyleSet } from '../../Styling';\nimport { classNamesFunction, initializeComponentRef } from '../../Utilities';\nimport {\n IDocumentCardLocationProps,\n IDocumentCardLocationStyleProps,\n IDocumentCardLocationStyles,\n} from './DocumentCardLocation.types';\n\nconst getClassNames = classNamesFunction<IDocumentCardLocationStyleProps, IDocumentCardLocationStyles>();\n\n/**\n * {@docCategory DocumentCard}\n */\nexport class DocumentCardLocationBase extends React.Component<IDocumentCardLocationProps, any> {\n private _classNames: IProcessedStyleSet<IDocumentCardLocationStyles>;\n\n constructor(props: IDocumentCardLocationProps) {\n super(props);\n\n initializeComponentRef(this);\n }\n\n public render(): JSX.Element {\n const { location, locationHref, ariaLabel, onClick, styles, theme, className } = this.props;\n\n this._classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n });\n\n return (\n <a className={this._classNames.root} href={locationHref} onClick={onClick} aria-label={ariaLabel}>\n {location}\n </a>\n );\n }\n}\n"]}
\No newline at end of file