phx-react 1.3.1452 → 1.3.1453
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.
|
@@ -31,7 +31,7 @@ function PHXTableReport(_a) {
|
|
|
31
31
|
var maxDepth = (0, utils_1.getMaxDepth)(thHeader);
|
|
32
32
|
var rows = (0, utils_1.buildHeaderRows)(thHeader, 0, [], maxDepth, 0);
|
|
33
33
|
var rowClassName = function (keyIdx, dataIdx) {
|
|
34
|
-
return (0, types_1.classNames)('text-xs text-center px-
|
|
34
|
+
return (0, types_1.classNames)('text-xs text-center px-2 py-2 whitespace-nowrap', keyIdx !== 0 && border && 'border-l', dataIdx !== 0 && 'border-t', dataIdx === tableData.length - 1 && keyIdx === 0 && !(pagination === null || pagination === void 0 ? void 0 : pagination.enable) && 'rounded-bl-lg', dataIdx === tableData.length - 1 && keyIdx === thBody.length - 1 && !(pagination === null || pagination === void 0 ? void 0 : pagination.enable) && 'rounded-br-lg');
|
|
35
35
|
};
|
|
36
36
|
var isHighLight = function (data) {
|
|
37
37
|
return !!(rowHighlightConfig && data[rowHighlightConfig.key] === rowHighlightConfig.value);
|
|
@@ -27,7 +27,7 @@ export function PHXTableReport(_a) {
|
|
|
27
27
|
var maxDepth = getMaxDepth(thHeader);
|
|
28
28
|
var rows = buildHeaderRows(thHeader, 0, [], maxDepth, 0);
|
|
29
29
|
var rowClassName = function (keyIdx, dataIdx) {
|
|
30
|
-
return classNames('text-xs text-center px-
|
|
30
|
+
return classNames('text-xs text-center px-2 py-2 whitespace-nowrap', keyIdx !== 0 && border && 'border-l', dataIdx !== 0 && 'border-t', dataIdx === tableData.length - 1 && keyIdx === 0 && !(pagination === null || pagination === void 0 ? void 0 : pagination.enable) && 'rounded-bl-lg', dataIdx === tableData.length - 1 && keyIdx === thBody.length - 1 && !(pagination === null || pagination === void 0 ? void 0 : pagination.enable) && 'rounded-br-lg');
|
|
31
31
|
};
|
|
32
32
|
var isHighLight = function (data) {
|
|
33
33
|
return !!(rowHighlightConfig && data[rowHighlightConfig.key] === rowHighlightConfig.value);
|