funuicss 3.3.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ui/table/Table.js +10 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.3.
|
|
2
|
+
"version": "3.3.1",
|
|
3
3
|
"name": "funuicss",
|
|
4
4
|
"description": "React and Next.js component UI Library for creating Easy and good looking websites with fewer lines of code. Elevate your web development experience with our cutting-edge React/Next.js component UI Library. Craft stunning websites effortlessly, boasting both seamless functionality and aesthetic appeal—all achieved with minimal lines of code. Unleash the power of simplicity and style in your projects!",
|
|
5
5
|
"main": "index.js",
|
package/ui/table/Table.js
CHANGED
|
@@ -72,6 +72,7 @@ var pi_1 = require("react-icons/pi");
|
|
|
72
72
|
var Circle_1 = __importDefault(require("../specials/Circle"));
|
|
73
73
|
var Text_1 = __importDefault(require("../text/Text"));
|
|
74
74
|
var react_easy_export_1 = require("react-easy-export");
|
|
75
|
+
var View_1 = __importDefault(require("../view/View"));
|
|
75
76
|
function Table(_a) {
|
|
76
77
|
var _b, _c;
|
|
77
78
|
var children = _a.children, funcss = _a.funcss, bordered = _a.bordered, noStripped = _a.noStripped, hoverable = _a.hoverable, title = _a.title, showTotal = _a.showTotal, light = _a.light, dark = _a.dark, head = _a.head, body = _a.body, data = _a.data, isLoading = _a.isLoading, right = _a.right, hideExport = _a.hideExport, height = _a.height, _d = _a.pageSize, pageSize = _d === void 0 ? data ? 10 : 0 : _d, // Default page size,
|
|
@@ -224,7 +225,15 @@ function Table(_a) {
|
|
|
224
225
|
column.onClick && (React.createElement(Button_1.default, { onClick: function () { return column.onClick && column.onClick(mdoc); } }, column.title)))); }) : "")); }),
|
|
225
226
|
isLoading &&
|
|
226
227
|
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(function () { return (React.createElement(Row_1.default, { funcss: 'skeleton' })); }),
|
|
227
|
-
children ? children : '')
|
|
228
|
+
children ? children : ''),
|
|
229
|
+
(((data === null || data === void 0 ? void 0 : data.data.length) || filteredData.length === 0) && !isLoading) &&
|
|
230
|
+
React.createElement(View_1.default, { funcss: 'max-w-400 p-4 text-center' },
|
|
231
|
+
React.createElement("div", null,
|
|
232
|
+
React.createElement(pi_1.PiEmpty, { size: 30, className: 'text-error' })),
|
|
233
|
+
React.createElement("div", null,
|
|
234
|
+
React.createElement(Text_1.default, { text: "No Record Found!", size: 'xl' })),
|
|
235
|
+
React.createElement("div", null,
|
|
236
|
+
React.createElement(Text_1.default, { text: "You can try reloading the page or check your query" })))),
|
|
228
237
|
data &&
|
|
229
238
|
React.createElement(React.Fragment, null, pageSize &&
|
|
230
239
|
React.createElement(React.Fragment, null, filteredData.length > pageSize &&
|