hi-tm 0.12.8 → 0.13.0
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.
|
@@ -722,10 +722,13 @@ pageIndex = 0, // Default to first page (0-indexed)
|
|
|
722
722
|
noItemFoundProps?.title,
|
|
723
723
|
" ")))));
|
|
724
724
|
}
|
|
725
|
+
if (isProcessing) {
|
|
726
|
+
return (react_1.default.createElement("div", { className: "w-full flex justify-center items-center py-8 gap-3" },
|
|
727
|
+
loadingProps.loadingIcon,
|
|
728
|
+
loadingProps.loadingText && loadingProps.loadingText));
|
|
729
|
+
}
|
|
725
730
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
726
|
-
mobileCardConfig.enabled &&
|
|
727
|
-
react_1.default.createElement("div", { className: `${mobileCardConfig.enabled
|
|
728
|
-
? "hidden lg:block"
|
|
729
|
-
: ""} w-full` }, rows?.map((row, index) => renderTableRow(row, index, index === rows.length - 1)))));
|
|
731
|
+
mobileCardConfig.enabled && (react_1.default.createElement("div", { className: `lg:hidden grid ${mobileCardConfig.gridLayoutClassName}` }, mobileRows.map((row) => (react_1.default.createElement("div", { key: `mobile-grid-item-${row.id}`, className: `col-span-1 ${row.isChild ? "pl-2" : ""}` }, renderMobileCard(row)))))),
|
|
732
|
+
react_1.default.createElement("div", { className: `${mobileCardConfig.enabled ? "hidden lg:block" : ""} w-full` }, rows?.map((row, index) => renderTableRow(row, index, index === rows.length - 1)))));
|
|
730
733
|
};
|
|
731
734
|
exports.default = ModernTable;
|