7dbd0e58f57e2ade33906f3189d796fc.json
3.87 KB
{"ast":null,"code":"import * as React from 'react';\nimport classNames from 'classnames';\n\nvar TransBtn = function TransBtn(_ref) {\n var className = _ref.className,\n customizeIcon = _ref.customizeIcon,\n customizeIconProps = _ref.customizeIconProps,\n _onMouseDown = _ref.onMouseDown,\n onClick = _ref.onClick,\n children = _ref.children;\n var icon;\n\n if (typeof customizeIcon === 'function') {\n icon = customizeIcon(customizeIconProps);\n } else {\n icon = customizeIcon;\n }\n\n return React.createElement(\"span\", {\n className: className,\n onMouseDown: function onMouseDown(event) {\n event.preventDefault();\n\n if (_onMouseDown) {\n _onMouseDown(event);\n }\n },\n style: {\n userSelect: 'none',\n WebkitUserSelect: 'none'\n },\n unselectable: \"on\",\n onClick: onClick,\n \"aria-hidden\": true\n }, icon !== undefined ? icon : React.createElement(\"span\", {\n className: classNames(className.split(/\\s+/).map(function (cls) {\n return \"\".concat(cls, \"-icon\");\n }))\n }, children));\n};\n\nexport default TransBtn;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/rc-select/es/TransBtn.js"],"names":["React","classNames","TransBtn","_ref","className","customizeIcon","customizeIconProps","_onMouseDown","onMouseDown","onClick","children","icon","createElement","event","preventDefault","style","userSelect","WebkitUserSelect","unselectable","undefined","split","map","cls","concat"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,UAAP,MAAuB,YAAvB;;AAEA,IAAIC,QAAQ,GAAG,SAASA,QAAT,CAAkBC,IAAlB,EAAwB;AACrC,MAAIC,SAAS,GAAGD,IAAI,CAACC,SAArB;AAAA,MACIC,aAAa,GAAGF,IAAI,CAACE,aADzB;AAAA,MAEIC,kBAAkB,GAAGH,IAAI,CAACG,kBAF9B;AAAA,MAGIC,YAAY,GAAGJ,IAAI,CAACK,WAHxB;AAAA,MAIIC,OAAO,GAAGN,IAAI,CAACM,OAJnB;AAAA,MAKIC,QAAQ,GAAGP,IAAI,CAACO,QALpB;AAMA,MAAIC,IAAJ;;AAEA,MAAI,OAAON,aAAP,KAAyB,UAA7B,EAAyC;AACvCM,IAAAA,IAAI,GAAGN,aAAa,CAACC,kBAAD,CAApB;AACD,GAFD,MAEO;AACLK,IAAAA,IAAI,GAAGN,aAAP;AACD;;AAED,SAAOL,KAAK,CAACY,aAAN,CAAoB,MAApB,EAA4B;AACjCR,IAAAA,SAAS,EAAEA,SADsB;AAEjCI,IAAAA,WAAW,EAAE,SAASA,WAAT,CAAqBK,KAArB,EAA4B;AACvCA,MAAAA,KAAK,CAACC,cAAN;;AAEA,UAAIP,YAAJ,EAAkB;AAChBA,QAAAA,YAAY,CAACM,KAAD,CAAZ;AACD;AACF,KARgC;AASjCE,IAAAA,KAAK,EAAE;AACLC,MAAAA,UAAU,EAAE,MADP;AAELC,MAAAA,gBAAgB,EAAE;AAFb,KAT0B;AAajCC,IAAAA,YAAY,EAAE,IAbmB;AAcjCT,IAAAA,OAAO,EAAEA,OAdwB;AAejC,mBAAe;AAfkB,GAA5B,EAgBJE,IAAI,KAAKQ,SAAT,GAAqBR,IAArB,GAA4BX,KAAK,CAACY,aAAN,CAAoB,MAApB,EAA4B;AACzDR,IAAAA,SAAS,EAAEH,UAAU,CAACG,SAAS,CAACgB,KAAV,CAAgB,KAAhB,EAAuBC,GAAvB,CAA2B,UAAUC,GAAV,EAAe;AAC9D,aAAO,GAAGC,MAAH,CAAUD,GAAV,EAAe,OAAf,CAAP;AACD,KAFqB,CAAD;AADoC,GAA5B,EAI5BZ,QAJ4B,CAhBxB,CAAP;AAqBD,CApCD;;AAsCA,eAAeR,QAAf","sourcesContent":["import * as React from 'react';\nimport classNames from 'classnames';\n\nvar TransBtn = function TransBtn(_ref) {\n var className = _ref.className,\n customizeIcon = _ref.customizeIcon,\n customizeIconProps = _ref.customizeIconProps,\n _onMouseDown = _ref.onMouseDown,\n onClick = _ref.onClick,\n children = _ref.children;\n var icon;\n\n if (typeof customizeIcon === 'function') {\n icon = customizeIcon(customizeIconProps);\n } else {\n icon = customizeIcon;\n }\n\n return React.createElement(\"span\", {\n className: className,\n onMouseDown: function onMouseDown(event) {\n event.preventDefault();\n\n if (_onMouseDown) {\n _onMouseDown(event);\n }\n },\n style: {\n userSelect: 'none',\n WebkitUserSelect: 'none'\n },\n unselectable: \"on\",\n onClick: onClick,\n \"aria-hidden\": true\n }, icon !== undefined ? icon : React.createElement(\"span\", {\n className: classNames(className.split(/\\s+/).map(function (cls) {\n return \"\".concat(cls, \"-icon\");\n }))\n }, children));\n};\n\nexport default TransBtn;"]},"metadata":{},"sourceType":"module"}