katoikia-app/web-ui/web-react/node_modules/.cache/babel-loader/794925743a267fe41aa9c1ca46f...

1 line
48 KiB
JSON
Raw Normal View History

2022-07-06 04:15:11 +00:00
{"ast":null,"code":"import _slicedToArray from \"/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/slicedToArray\";\n\nvar _this = this,\n _jsxFileName = \"/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/src/components/ButtonDemo.js\";\n\nimport React, { useState } from 'react';\nimport { Button } from 'primereact/button';\nimport { SplitButton } from 'primereact/splitbutton';\n\nvar ButtonDemo = function ButtonDemo() {\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n loading1 = _useState2[0],\n setLoading1 = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n loading2 = _useState4[0],\n setLoading2 = _useState4[1];\n\n var _useState5 = useState(false),\n _useState6 = _slicedToArray(_useState5, 2),\n loading3 = _useState6[0],\n setLoading3 = _useState6[1];\n\n var _useState7 = useState(false),\n _useState8 = _slicedToArray(_useState7, 2),\n loading4 = _useState8[0],\n setLoading4 = _useState8[1];\n\n var onLoadingClick1 = function onLoadingClick1() {\n setLoading1(true);\n setTimeout(function () {\n setLoading1(false);\n }, 2000);\n };\n\n var onLoadingClick2 = function onLoadingClick2() {\n setLoading2(true);\n setTimeout(function () {\n setLoading2(false);\n }, 2000);\n };\n\n var onLoadingClick3 = function onLoadingClick3() {\n setLoading3(true);\n setTimeout(function () {\n setLoading3(false);\n }, 2000);\n };\n\n var onLoadingClick4 = function onLoadingClick4() {\n setLoading4(true);\n setTimeout(function () {\n setLoading4(false);\n }, 2000);\n };\n\n var items = [{\n label: 'Update',\n icon: 'pi pi-refresh'\n }, {\n label: 'Delete',\n icon: 'pi pi-times'\n }, {\n label: 'Home',\n icon: 'pi pi-home'\n }];\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"grid\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"col-12 md:col-6\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"card\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"h5\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 21\n }\n }, \"Default\"), /*#__PURE__*/React.createElement(Button, {\n label: \"Submit\",\n className: \"mr-2 mb-2\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Button, {\n label: \"Disabled\",\n className: \"mr-2 mb-2\",\n disabled: true,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 64,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Button, {\n label: \"Link\",\n className: \"p-button-link mb-2 mr-2\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 65,\n columnNumber: 21\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"card\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 68,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"h5\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 69,\n columnNumber: 21\n }\n }, \"Severities\"), /*#__PURE__*/React.createElement(Button, {\n label: \"Primary\",\n className: \"mr-2 mb-2\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 70,\n