84adc9fa06cfe26b76fb11e374e5cd0b.json
7.72 KB
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { composeRef } from \"rc-util/es/ref\";\nimport { ConfigConsumer } from '../config-provider';\nimport devWarning from '../_util/devWarning';\n\nvar Typography = function Typography(_a, ref) {\n var customizePrefixCls = _a.prefixCls,\n _a$component = _a.component,\n component = _a$component === void 0 ? 'article' : _a$component,\n className = _a.className,\n ariaLabel = _a['aria-label'],\n setContentRef = _a.setContentRef,\n children = _a.children,\n restProps = __rest(_a, [\"prefixCls\", \"component\", \"className\", 'aria-label', \"setContentRef\", \"children\"]);\n\n var mergedRef = ref;\n\n if (setContentRef) {\n devWarning(false, 'Typography', '`setContentRef` is deprecated. Please use `ref` instead.');\n mergedRef = composeRef(ref, setContentRef);\n }\n\n return /*#__PURE__*/React.createElement(ConfigConsumer, null, function (_ref) {\n var getPrefixCls = _ref.getPrefixCls,\n direction = _ref.direction;\n var Component = component;\n var prefixCls = getPrefixCls('typography', customizePrefixCls);\n var componentClassName = classNames(prefixCls, _defineProperty({}, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), className);\n return /*#__PURE__*/React.createElement(Component, _extends({\n className: componentClassName,\n \"aria-label\": ariaLabel,\n ref: mergedRef\n }, restProps), children);\n });\n};\n\nvar RefTypography = /*#__PURE__*/React.forwardRef(Typography);\nRefTypography.displayName = 'Typography'; // es default export should use const instead of let\n\nvar ExportTypography = RefTypography;\nexport default ExportTypography;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/typography/Typography.js"],"names":["_extends","_defineProperty","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","React","classNames","composeRef","ConfigConsumer","devWarning","Typography","_a","ref","customizePrefixCls","prefixCls","_a$component","component","className","ariaLabel","setContentRef","children","restProps","mergedRef","createElement","_ref","getPrefixCls","direction","Component","componentClassName","concat","RefTypography","forwardRef","displayName","ExportTypography"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,gCAArB;AACA,OAAOC,eAAP,MAA4B,uCAA5B;;AAEA,IAAIC,MAAM,GAAG,QAAQ,KAAKA,MAAb,IAAuB,UAAUC,CAAV,EAAaC,CAAb,EAAgB;AAClD,MAAIC,CAAC,GAAG,EAAR;;AAEA,OAAK,IAAIC,CAAT,IAAcH,CAAd,EAAiB;AACf,QAAII,MAAM,CAACC,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCP,CAArC,EAAwCG,CAAxC,KAA8CF,CAAC,CAACO,OAAF,CAAUL,CAAV,IAAe,CAAjE,EAAoED,CAAC,CAACC,CAAD,CAAD,GAAOH,CAAC,CAACG,CAAD,CAAR;AACrE;;AAED,MAAIH,CAAC,IAAI,IAAL,IAAa,OAAOI,MAAM,CAACK,qBAAd,KAAwC,UAAzD,EAAqE,KAAK,IAAIC,CAAC,GAAG,CAAR,EAAWP,CAAC,GAAGC,MAAM,CAACK,qBAAP,CAA6BT,CAA7B,CAApB,EAAqDU,CAAC,GAAGP,CAAC,CAACQ,MAA3D,EAAmED,CAAC,EAApE,EAAwE;AAC3I,QAAIT,CAAC,CAACO,OAAF,CAAUL,CAAC,CAACO,CAAD,CAAX,IAAkB,CAAlB,IAAuBN,MAAM,CAACC,SAAP,CAAiBO,oBAAjB,CAAsCL,IAAtC,CAA2CP,CAA3C,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AAC5E,QAAIC,YAAY,GAAGD,IAAI,CAACC,YAAxB;AAAA,QACIC,SAAS,GAAGF,IAAI,CAACE,SADrB;AAEA,QAAIC,SAAS,GAAGX,SAAhB;AACA,QAAIF,SAAS,GAAGW,YAAY,CAAC,YAAD,EAAeZ,kBAAf,CAA5B;AACA,QAAIe,kBAAkB,GAAGtB,UAAU,CAACQ,SAAD,EAAYxB,eAAe,CAAC,EAAD,EAAK,GAAGuC,MAAH,CAAUf,SAAV,EAAqB,MAArB,CAAL,EAAmCY,SAAS,KAAK,KAAjD,CAA3B,EAAoFT,SAApF,CAAnC;AACA,WAAO,aAAaZ,KAAK,CAACkB,aAAN,CAAoBI,SAApB,EAA+BtC,QAAQ,CAAC;AAC1D4B,MAAAA,SAAS,EAAEW,kBAD+C;AAE1D,oBAAcV,SAF4C;AAG1DN,MAAAA,GAAG,EAAEU;AAHqD,KAAD,EAIxDD,SAJwD,CAAvC,EAILD,QAJK,CAApB;AAKD,GAXmB,CAApB;AAYD,CA7BD;;AA+BA,IAAIU,aAAa,GAAG,aAAazB,KAAK,CAAC0B,UAAN,CAAiBrB,UAAjB,CAAjC;AACAoB,aAAa,CAACE,WAAd,GAA4B,YAA5B,C,CAA0C;;AAE1C,IAAIC,gBAAgB,GAAGH,aAAvB;AACA,eAAeG,gBAAf","sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { composeRef } from \"rc-util/es/ref\";\nimport { ConfigConsumer } from '../config-provider';\nimport devWarning from '../_util/devWarning';\n\nvar Typography = function Typography(_a, ref) {\n var customizePrefixCls = _a.prefixCls,\n _a$component = _a.component,\n component = _a$component === void 0 ? 'article' : _a$component,\n className = _a.className,\n ariaLabel = _a['aria-label'],\n setContentRef = _a.setContentRef,\n children = _a.children,\n restProps = __rest(_a, [\"prefixCls\", \"component\", \"className\", 'aria-label', \"setContentRef\", \"children\"]);\n\n var mergedRef = ref;\n\n if (setContentRef) {\n devWarning(false, 'Typography', '`setContentRef` is deprecated. Please use `ref` instead.');\n mergedRef = composeRef(ref, setContentRef);\n }\n\n return /*#__PURE__*/React.createElement(ConfigConsumer, null, function (_ref) {\n var getPrefixCls = _ref.getPrefixCls,\n direction = _ref.direction;\n var Component = component;\n var prefixCls = getPrefixCls('typography', customizePrefixCls);\n var componentClassName = classNames(prefixCls, _defineProperty({}, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), className);\n return /*#__PURE__*/React.createElement(Component, _extends({\n className: componentClassName,\n \"aria-label\": ariaLabel,\n ref: mergedRef\n }, restProps), children);\n });\n};\n\nvar RefTypography = /*#__PURE__*/React.forwardRef(Typography);\nRefTypography.displayName = 'Typography'; // es default export should use const instead of let\n\nvar ExportTypography = RefTypography;\nexport default ExportTypography;"]},"metadata":{},"sourceType":"module"}