@djangocfg/ui-nextjs 2.1.152 → 2.1.154
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.154",
|
|
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,9 +80,9 @@
|
|
|
80
80
|
"check": "tsc --noEmit"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@djangocfg/api": "^2.1.
|
|
84
|
-
"@djangocfg/ui-core": "^2.1.
|
|
85
|
-
"@djangocfg/ui-tools": "^2.1.
|
|
83
|
+
"@djangocfg/api": "^2.1.154",
|
|
84
|
+
"@djangocfg/ui-core": "^2.1.154",
|
|
85
|
+
"@djangocfg/ui-tools": "^2.1.154",
|
|
86
86
|
"@types/react": "^19.1.0",
|
|
87
87
|
"@types/react-dom": "^19.1.0",
|
|
88
88
|
"consola": "^3.4.2",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"react-chartjs-2": "^5.3.0"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
107
|
+
"@djangocfg/typescript-config": "^2.1.154",
|
|
108
108
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
109
109
|
"@radix-ui/react-slot": "^1.2.4",
|
|
110
110
|
"@types/node": "^24.7.2",
|
|
@@ -208,7 +208,7 @@ interface EffectProps {
|
|
|
208
208
|
blur?: string;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
const GlowEffect: React.FC<EffectProps> = ({ size, color, opacity, blur }) => (
|
|
211
|
+
const GlowEffect: React.FC<EffectProps> = ({ size: _size, color, opacity, blur }) => (
|
|
212
212
|
<div
|
|
213
213
|
className={cn('w-full h-full rounded-full', blur)}
|
|
214
214
|
style={{
|
|
@@ -218,7 +218,7 @@ const GlowEffect: React.FC<EffectProps> = ({ size, color, opacity, blur }) => (
|
|
|
218
218
|
/>
|
|
219
219
|
);
|
|
220
220
|
|
|
221
|
-
const SpotlightEffect: React.FC<EffectProps> = ({ size, color, opacity, blur }) => (
|
|
221
|
+
const SpotlightEffect: React.FC<EffectProps> = ({ size: _size, color, opacity, blur }) => (
|
|
222
222
|
<>
|
|
223
223
|
{/* Main spotlight cone */}
|
|
224
224
|
<div
|
|
@@ -248,7 +248,7 @@ const SpotlightEffect: React.FC<EffectProps> = ({ size, color, opacity, blur })
|
|
|
248
248
|
</>
|
|
249
249
|
);
|
|
250
250
|
|
|
251
|
-
const GradientBlobEffect: React.FC<EffectProps> = ({ size, color, opacity, blur }) => (
|
|
251
|
+
const GradientBlobEffect: React.FC<EffectProps> = ({ size: _size, color, opacity, blur }) => (
|
|
252
252
|
<>
|
|
253
253
|
{/* Animated blob shape */}
|
|
254
254
|
<div
|
|
@@ -280,7 +280,7 @@ const GradientBlobEffect: React.FC<EffectProps> = ({ size, color, opacity, blur
|
|
|
280
280
|
</>
|
|
281
281
|
);
|
|
282
282
|
|
|
283
|
-
const RingEffect: React.FC<EffectProps> = ({ size, color, opacity }) => (
|
|
283
|
+
const RingEffect: React.FC<EffectProps> = ({ size: _size, color, opacity }) => (
|
|
284
284
|
<>
|
|
285
285
|
{/* Outer ring */}
|
|
286
286
|
<div
|
|
@@ -333,7 +333,7 @@ const RingEffect: React.FC<EffectProps> = ({ size, color, opacity }) => (
|
|
|
333
333
|
</>
|
|
334
334
|
);
|
|
335
335
|
|
|
336
|
-
const TrailEffect: React.FC<EffectProps> = ({ size, color, opacity, blur }) => (
|
|
336
|
+
const TrailEffect: React.FC<EffectProps> = ({ size: _size, color, opacity, blur }) => (
|
|
337
337
|
<>
|
|
338
338
|
{/* Multiple trailing circles */}
|
|
339
339
|
{Array.from({ length: 5 }).map((_, i) => (
|
package/src/blocks/SuperHero.tsx
CHANGED
|
@@ -100,7 +100,7 @@ export const SuperHero: React.FC<SuperHeroProps> = ({
|
|
|
100
100
|
}) => {
|
|
101
101
|
const [currentVariant, setCurrentVariant] = React.useState<BackgroundVariant>(backgroundVariant);
|
|
102
102
|
const [isMenuOpen, setIsMenuOpen] = React.useState(false);
|
|
103
|
-
const [heroTheme,
|
|
103
|
+
const [heroTheme, _setHeroTheme] = React.useState<'light' | 'dark'>('dark');
|
|
104
104
|
|
|
105
105
|
// Merge codeCommand (deprecated) with codeCommands for backwards compatibility
|
|
106
106
|
const commands = React.useMemo(() => {
|
|
@@ -119,7 +119,7 @@ export const SuperHero: React.FC<SuperHeroProps> = ({
|
|
|
119
119
|
const cycleBackground = () => {
|
|
120
120
|
const currentIndex = BACKGROUND_VARIANTS.indexOf(currentVariant);
|
|
121
121
|
const nextIndex = (currentIndex + 1) % BACKGROUND_VARIANTS.length;
|
|
122
|
-
setCurrentVariant(BACKGROUND_VARIANTS[nextIndex]);
|
|
122
|
+
setCurrentVariant(BACKGROUND_VARIANTS[nextIndex]!);
|
|
123
123
|
};
|
|
124
124
|
|
|
125
125
|
return (
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import Link from 'next/link';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// cn is available for future use
|
|
5
|
+
// import { cn } from '@djangocfg/ui-core/lib';
|
|
5
6
|
|
|
6
7
|
import {
|
|
7
8
|
Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage,
|
|
@@ -45,8 +45,7 @@ import { useIsMobile } from '@djangocfg/ui-core/hooks';
|
|
|
45
45
|
import { cn } from '@djangocfg/ui-core/lib';
|
|
46
46
|
|
|
47
47
|
import {
|
|
48
|
-
Pagination, PaginationContent, PaginationEllipsis, PaginationItem
|
|
49
|
-
PaginationNext, PaginationPrevious
|
|
48
|
+
Pagination, PaginationContent, PaginationEllipsis, PaginationItem
|
|
50
49
|
} from './pagination';
|
|
51
50
|
|
|
52
51
|
/**
|
|
@@ -34,7 +34,7 @@ export const SSRPagination: React.FC<SSRPaginationProps> = ({
|
|
|
34
34
|
totalItems,
|
|
35
35
|
itemsPerPage,
|
|
36
36
|
hasNextPage,
|
|
37
|
-
hasPreviousPage,
|
|
37
|
+
hasPreviousPage: _hasPreviousPage,
|
|
38
38
|
className,
|
|
39
39
|
showInfo = true,
|
|
40
40
|
maxVisiblePages = 7,
|
|
@@ -68,7 +68,8 @@ export const SSRPagination: React.FC<SSRPaginationProps> = ({
|
|
|
68
68
|
actualCurrentPage + (hasNextPage ? 5 : 0)
|
|
69
69
|
);
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
// actualHasNextPage kept for clarity, even though it equals hasNextPage
|
|
72
|
+
const _actualHasNextPage = hasNextPage;
|
|
72
73
|
|
|
73
74
|
// Generate URL for a specific page
|
|
74
75
|
const getPageUrl = (page: number): string => {
|