infinity-ui-elements 1.8.25 → 1.8.27
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/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/index.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3218,7 +3218,7 @@ const TextField = React__namespace.forwardRef(({ label, helperText, errorText, s
|
|
|
3218
3218
|
TextField.displayName = "TextField";
|
|
3219
3219
|
|
|
3220
3220
|
const defaultFilter = (item, query) => {
|
|
3221
|
-
const searchQuery = query
|
|
3221
|
+
const searchQuery = query?.toLowerCase();
|
|
3222
3222
|
return (item.label?.toLowerCase()?.includes(searchQuery) ||
|
|
3223
3223
|
(item.description?.toLowerCase()?.includes(searchQuery) ?? false));
|
|
3224
3224
|
};
|
|
@@ -3991,6 +3991,7 @@ function TableComponent({ className, wrapperClassName, containerClassName, varia
|
|
|
3991
3991
|
maxHeight: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight,
|
|
3992
3992
|
};
|
|
3993
3993
|
}, [maxHeight]);
|
|
3994
|
+
// Resolve loading state: prefer 'loading' prop, fallback to 'isLoading' for backward compatibility
|
|
3994
3995
|
const resolvedLoading = typeof loading === "boolean" ? loading : Boolean(isLoading);
|
|
3995
3996
|
const skeletonRowCount = loadingSkeletonRows ?? 5;
|
|
3996
3997
|
const sizeKey = size || "medium";
|
|
@@ -4041,6 +4042,7 @@ function TableComponent({ className, wrapperClassName, containerClassName, varia
|
|
|
4041
4042
|
onRowClick(row);
|
|
4042
4043
|
}
|
|
4043
4044
|
}, [onRowClick]);
|
|
4045
|
+
// ==================== Render Helpers ====================
|
|
4044
4046
|
const renderEmptyState = () => {
|
|
4045
4047
|
if (emptyComponent)
|
|
4046
4048
|
return emptyComponent;
|