You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
3.8 KiB

{"ast":null,"code":"var _jsxFileName = \"/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/src/components/Button/index.js\";\nimport React from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\n\nconst Button = _ref => {\n let {\n className,\n iconClassName,\n iconHolderClassName,\n icon,\n text,\n onClick,\n sharpStyle,\n clippath\n } = _ref;\n return /*#__PURE__*/_jsxDEV(\"button\", {\n style: {\n clipPath: sharpStyle ? clippath : \"\"\n },\n onClick: onClick,\n className: `flex items-center justify-center transiton ease-linear duration-200 ${className}`,\n children: [text, icon && /*#__PURE__*/_jsxDEV(\"span\", {\n className: `${iconHolderClassName}`,\n children: /*#__PURE__*/_jsxDEV(\"img\", {\n src: icon,\n alt: \"icon\",\n className: `${iconClassName}`\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }, this)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 9\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 5\n }, this);\n};\n\n_c = Button;\nexport default Button;\nButton.defaultProps = {\n className: \"bg-primary text-primaryText hover:bg-primaryDark border border-b-4 border-primaryLight rounded text-sm px-4 py-4 hover:bg-opacity-90\",\n text: \"اطلاعات بیشتر\",\n iconHolderClassName: \"bg-secondary mr-2\",\n iconClassName: \"w-4\",\n icon: false,\n sharpStyle: false,\n clippath: \"polygon(24% 0, 100% 0%, 100% 99%, 0% 100%)\"\n};\n\nvar _c;\n\n$RefreshReg$(_c, \"Button\");","map":{"version":3,"names":["React","Button","className","iconClassName","iconHolderClassName","icon","text","onClick","sharpStyle","clippath","clipPath","defaultProps"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/src/components/Button/index.js"],"sourcesContent":["import React from \"react\";\n\nconst Button = ({\n className,\n iconClassName,\n iconHolderClassName,\n icon,\n text,\n onClick,\n sharpStyle,\n clippath,\n}) => {\n return (\n <button\n style={{\n clipPath: sharpStyle ? clippath : \"\",\n }}\n onClick={onClick}\n className={`flex items-center justify-center transiton ease-linear duration-200 ${className}`}\n >\n {text}\n {icon && (\n <span className={`${iconHolderClassName}`}>\n <img src={icon} alt=\"icon\" className={`${iconClassName}`} />\n </span>\n )}\n </button>\n );\n};\n\nexport default Button;\n\nButton.defaultProps = {\n className:\n \"bg-primary text-primaryText hover:bg-primaryDark border border-b-4 border-primaryLight rounded text-sm px-4 py-4 hover:bg-opacity-90\",\n text: \"اطلاعات بیشتر\",\n\n iconHolderClassName: \"bg-secondary mr-2\",\n iconClassName: \"w-4\",\n icon: false,\n\n sharpStyle: false,\n clippath: \"polygon(24% 0, 100% 0%, 100% 99%, 0% 100%)\",\n};\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;;;AAEA,MAAMC,MAAM,GAAG,QAST;EAAA,IATU;IACdC,SADc;IAEdC,aAFc;IAGdC,mBAHc;IAIdC,IAJc;IAKdC,IALc;IAMdC,OANc;IAOdC,UAPc;IAQdC;EARc,CASV;EACJ,oBACE;IACE,KAAK,EAAE;MACLC,QAAQ,EAAEF,UAAU,GAAGC,QAAH,GAAc;IAD7B,CADT;IAIE,OAAO,EAAEF,OAJX;IAKE,SAAS,EAAG,uEAAsEL,SAAU,EAL9F;IAAA,WAOGI,IAPH,EAQGD,IAAI,iBACH;MAAM,SAAS,EAAG,GAAED,mBAAoB,EAAxC;MAAA,uBACE;QAAK,GAAG,EAAEC,IAAV;QAAgB,GAAG,EAAC,MAApB;QAA2B,SAAS,EAAG,GAAEF,aAAc;MAAvD;QAAA;QAAA;QAAA;MAAA;IADF;MAAA;MAAA;MAAA;IAAA,QATJ;EAAA;IAAA;IAAA;IAAA;EAAA,QADF;AAgBD,CA1BD;;KAAMF,M;AA4BN,eAAeA,MAAf;AAEAA,MAAM,CAACU,YAAP,GAAsB;EACpBT,SAAS,EACP,sIAFkB;EAGpBI,IAAI,EAAE,eAHc;EAKpBF,mBAAmB,EAAE,mBALD;EAMpBD,aAAa,EAAE,KANK;EAOpBE,IAAI,EAAE,KAPc;EASpBG,UAAU,EAAE,KATQ;EAUpBC,QAAQ,EAAE;AAVU,CAAtB"},"metadata":{},"sourceType":"module"}