@djangocfg/ui-nextjs 2.1.76 → 2.1.77
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.77",
|
|
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",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"check": "tsc --noEmit"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@djangocfg/api": "^2.1.
|
|
62
|
-
"@djangocfg/ui-core": "^2.1.
|
|
61
|
+
"@djangocfg/api": "^2.1.77",
|
|
62
|
+
"@djangocfg/ui-core": "^2.1.77",
|
|
63
63
|
"@types/react": "^19.1.0",
|
|
64
64
|
"@types/react-dom": "^19.1.0",
|
|
65
65
|
"consola": "^3.4.2",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"wavesurfer.js": "^7.12.1"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
113
|
+
"@djangocfg/typescript-config": "^2.1.77",
|
|
114
114
|
"@types/node": "^24.7.2",
|
|
115
115
|
"eslint": "^9.37.0",
|
|
116
116
|
"tailwindcss-animate": "1.0.7",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import { useEffect, useState, useRef, useCallback } from 'react';
|
|
16
16
|
import { ImageIcon, AlertCircle } from 'lucide-react';
|
|
17
17
|
import { TransformWrapper, TransformComponent, useControls } from 'react-zoom-pan-pinch';
|
|
18
|
-
import { cn, Dialog, DialogContent, Alert, AlertDescription } from '@djangocfg/ui-core';
|
|
18
|
+
import { cn, Dialog, DialogContent, DialogTitle, Alert, AlertDescription } from '@djangocfg/ui-core';
|
|
19
19
|
|
|
20
20
|
import { ImageToolbar } from './ImageToolbar';
|
|
21
21
|
import { ImageInfo } from './ImageInfo';
|
|
@@ -156,6 +156,7 @@ export function ImageViewer({ file, content, src: directSrc, inDialog = false }:
|
|
|
156
156
|
minScale={0.1}
|
|
157
157
|
maxScale={8}
|
|
158
158
|
centerOnInit
|
|
159
|
+
centerZoomedOut
|
|
159
160
|
onTransformed={(ref, state) => {
|
|
160
161
|
setScale(state.scale);
|
|
161
162
|
controlsRef.current = ref;
|
|
@@ -224,16 +225,13 @@ export function ImageViewer({ file, content, src: directSrc, inDialog = false }:
|
|
|
224
225
|
{/* Fullscreen dialog */}
|
|
225
226
|
{!inDialog && (
|
|
226
227
|
<Dialog open={dialogOpen} onOpenChange={setDialogOpen}>
|
|
227
|
-
<DialogContent className="max-w-[95vw] max-h-[95vh] w-[95vw] h-[95vh] p-0 overflow-hidden [&>button]:hidden">
|
|
228
|
-
<
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
<ImageViewer file={file} content={content} src={directSrc} inDialog />
|
|
235
|
-
</div>
|
|
236
|
-
</div>
|
|
228
|
+
<DialogContent className="max-w-[95vw] max-h-[95vh] w-[95vw] h-[95vh] p-0 overflow-hidden [&>button]:hidden flex flex-col">
|
|
229
|
+
<DialogTitle className="sr-only">{file.name}</DialogTitle>
|
|
230
|
+
<div className="flex items-center justify-between px-4 py-2 border-b shrink-0">
|
|
231
|
+
<span className="text-sm font-medium truncate">{file.name}</span>
|
|
232
|
+
</div>
|
|
233
|
+
<div className="flex-1 min-h-0">
|
|
234
|
+
<ImageViewer file={file} content={content} src={directSrc} inDialog />
|
|
237
235
|
</div>
|
|
238
236
|
</DialogContent>
|
|
239
237
|
</Dialog>
|