UNPKG

1.22 kBSource Map (JSON)View Raw
1{"version":3,"file":"Callout.js","sourceRoot":"../src/","sources":["components/Callout/Callout.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGpC,MAAM,CAAC,IAAM,OAAO,GAA2C,KAAK,CAAC,UAAU,CAC7E,UAAC,EAAmC,EAAE,YAAY;IAA/C,IAAA,UAAU,gBAAA,EAAE,UAAU,gBAAA,EAAK,IAAI,cAAjC,4BAAmC,CAAF;IAChC,IAAM,OAAO,GAAG,oBAAC,cAAc,eAAK,IAAI,IAAE,UAAU,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY,IAAI,CAAC;IACxF,OAAO,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAC,KAAK,eAAK,UAAU,GAAG,OAAO,CAAS,CAAC;AACzE,CAAC,CACF,CAAC;AACF,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC","sourcesContent":["import * as React from 'react';\nimport { CalloutContent } from './CalloutContent';\nimport { Layer } from '../../Layer';\nimport type { ICalloutProps } from './Callout.types';\n\nexport const Callout: React.FunctionComponent<ICalloutProps> = React.forwardRef<HTMLDivElement, ICalloutProps>(\n ({ layerProps, doNotLayer, ...rest }, forwardedRef) => {\n const content = <CalloutContent {...rest} doNotLayer={doNotLayer} ref={forwardedRef} />;\n return doNotLayer ? content : <Layer {...layerProps}>{content}</Layer>;\n },\n);\nCallout.displayName = 'Callout';\n"]}
\No newline at end of file