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 line
12 KiB

2 years ago
{"ast":null,"code":"var _jsxFileName = \"/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/src/components/CustomToast2/index.js\";\nimport React from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-dev-runtime\";\n\nconst CustomToast2 = _ref => {\n let {\n items,\n num\n } = _ref;\n return /*#__PURE__*/_jsxDEV(_Fragment, {\n children: items.slice(0, num).map((item, index) => /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"flex flex-row items-center p-4 bg-surface border border-success rounded mt-4\",\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"flex flex-row items-center flex-1 \",\n children: [/*#__PURE__*/_jsxDEV(\"img\", {\n src: item.profilePic,\n className: \"rounded-full w-16\",\n alt: item.profilePic\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"flex flex-col mr-2\",\n children: [/*#__PURE__*/_jsxDEV(\"p\", {\n className: \"text-sm text-primaryText\",\n children: item.name\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 15\n }, this), /*#__PURE__*/_jsxDEV(\"p\", {\n className: \"text-xs mt-1.5 mb-1 text-primaryLight\",\n children: [/*#__PURE__*/_jsxDEV(\"span\", {\n className: \"ml-1\",\n children: \"\\u062A\\u0627\\u0631\\u06CC\\u062E \\u0648\\u0631\\u0648\\u062F:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 17\n }, this), item.enteryData]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 15\n }, this), /*#__PURE__*/_jsxDEV(\"p\", {\n className: \"text-xs text-primaryLight\",\n children: [/*#__PURE__*/_jsxDEV(\"span\", {\n children: \"\\u06A9\\u062F \\u0645\\u0644\\u06CC\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 17\n }, this), item.idCard]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 11\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"flex flex-row items-center\",\n children: [/*#__PURE__*/_jsxDEV(\"span\", {\n className: \"px-2 py-0.5 mr-2 rounded-sm bg-[#C9E2B388] text-[#468722] font-bold\",\n children: item.number\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"img\", {\n src: \"images/CustomToastpen-icon.svg\",\n alt: \"pen\",\n className: \"mr-4 cursor-pointer\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 11\n }, this)]\n }, index, true, {\n fileName: _jsxFileName,\n lineNumber: 7,\n columnNumber: 9\n }, this))\n }, void 0, false);\n};\n\n_c = CustomToast2;\nexport default CustomToast2;\nCustomToast2.defaultProps = {\n num: 5,\n items: [{\n profilePic: \"images/CustomToast2profilePic1.svg\",\n name: \"کامبیز هوشنمند\",\n enteryData: \"1401/02/01\",\n idCard: 2980817631,\n number: \"B06\"\n }, {\n profilePic: \"images/CustomToast2profilePic2.