@djangocfg/ui-nextjs 2.1.187 → 2.1.188
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/ui-nextjs",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.188",
|
|
4
4
|
"description": "Next.js UI component library with Radix UI primitives, Tailwind CSS styling, charts, and form components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui-components",
|
|
@@ -80,10 +80,10 @@
|
|
|
80
80
|
"check": "tsc --noEmit"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@djangocfg/api": "^2.1.
|
|
84
|
-
"@djangocfg/nextjs": "^2.1.
|
|
85
|
-
"@djangocfg/ui-core": "^2.1.
|
|
86
|
-
"@djangocfg/ui-tools": "^2.1.
|
|
83
|
+
"@djangocfg/api": "^2.1.188",
|
|
84
|
+
"@djangocfg/nextjs": "^2.1.188",
|
|
85
|
+
"@djangocfg/ui-core": "^2.1.188",
|
|
86
|
+
"@djangocfg/ui-tools": "^2.1.188",
|
|
87
87
|
"@types/react": "^19.1.0",
|
|
88
88
|
"@types/react-dom": "^19.1.0",
|
|
89
89
|
"consola": "^3.4.2",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"react-chartjs-2": "^5.3.0"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
109
|
+
"@djangocfg/typescript-config": "^2.1.188",
|
|
110
110
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
111
111
|
"@radix-ui/react-slot": "^1.2.4",
|
|
112
112
|
"@types/node": "^24.7.2",
|
|
@@ -156,15 +156,15 @@ export const SSRPagination: React.FC<SSRPaginationProps> = ({
|
|
|
156
156
|
return pages;
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
-
// Don't render if there's only one page or no pages
|
|
160
|
-
if (smartTotalPages <= 1) {
|
|
161
|
-
return null;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
159
|
const visiblePages = getVisiblePages();
|
|
165
160
|
const startItem = (actualCurrentPage - 1) * itemsPerPage + 1;
|
|
166
161
|
const endItem = Math.min(actualCurrentPage * itemsPerPage, totalItems);
|
|
167
162
|
|
|
163
|
+
// Don't render if no items
|
|
164
|
+
if (totalItems === 0) {
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
168
|
return (
|
|
169
169
|
<div className={cn("space-y-4", className)}>
|
|
170
170
|
{/* Pagination Info */}
|