@djangocfg/ui-nextjs 2.1.103 → 2.1.104

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.
Files changed (44) hide show
  1. package/package.json +26 -30
  2. package/src/components/index.ts +2 -0
  3. package/src/components/ssr-pagination.tsx +2 -1
  4. package/src/hooks/index.ts +1 -6
  5. package/src/index.ts +2 -0
  6. package/src/theme/index.ts +2 -0
  7. package/dist/animations.cjs +0 -880
  8. package/dist/animations.cjs.map +0 -1
  9. package/dist/animations.d.mts +0 -36
  10. package/dist/animations.d.ts +0 -36
  11. package/dist/animations.mjs +0 -877
  12. package/dist/animations.mjs.map +0 -1
  13. package/dist/blocks.cjs +0 -1609
  14. package/dist/blocks.cjs.map +0 -1
  15. package/dist/blocks.d.mts +0 -278
  16. package/dist/blocks.d.ts +0 -278
  17. package/dist/blocks.mjs +0 -1589
  18. package/dist/blocks.mjs.map +0 -1
  19. package/dist/components.cjs +0 -1946
  20. package/dist/components.cjs.map +0 -1
  21. package/dist/components.d.mts +0 -322
  22. package/dist/components.d.ts +0 -322
  23. package/dist/components.mjs +0 -1860
  24. package/dist/components.mjs.map +0 -1
  25. package/dist/hooks.cjs +0 -530
  26. package/dist/hooks.cjs.map +0 -1
  27. package/dist/hooks.d.mts +0 -364
  28. package/dist/hooks.d.ts +0 -364
  29. package/dist/hooks.mjs +0 -506
  30. package/dist/hooks.mjs.map +0 -1
  31. package/dist/index.cjs +0 -4080
  32. package/dist/index.cjs.map +0 -1
  33. package/dist/index.d.mts +0 -1044
  34. package/dist/index.d.ts +0 -1044
  35. package/dist/index.mjs +0 -3962
  36. package/dist/index.mjs.map +0 -1
  37. package/dist/theme.cjs +0 -189
  38. package/dist/theme.cjs.map +0 -1
  39. package/dist/theme.d.mts +0 -60
  40. package/dist/theme.d.ts +0 -60
  41. package/dist/theme.mjs +0 -184
  42. package/dist/theme.mjs.map +0 -1
  43. package/src/hooks/useCfgRouter.ts +0 -153
  44. package/src/hooks/useQueryParams.ts +0 -73
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/ui-nextjs",
3
- "version": "2.1.103",
3
+ "version": "2.1.104",
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",
@@ -30,39 +30,39 @@
30
30
  "url": "https://github.com/markolofsen/django-cfg/issues"
31
31
  },
32
32
  "license": "MIT",
33
- "main": "./dist/index.cjs",
34
- "module": "./dist/index.mjs",
35
- "types": "./dist/index.d.ts",
33
+ "main": "./src/index.ts",
34
+ "module": "./src/index.ts",
35
+ "types": "./src/index.ts",
36
36
  "exports": {
37
37
  ".": {
38
- "types": "./dist/index.d.ts",
39
- "import": "./dist/index.mjs",
40
- "require": "./dist/index.cjs"
38
+ "types": "./src/index.ts",
39
+ "import": "./src/index.ts",
40
+ "require": "./src/index.ts"
41
41
  },
42
42
  "./components": {
43
- "types": "./dist/components.d.ts",
44
- "import": "./dist/components.mjs",
45
- "require": "./dist/components.cjs"
43
+ "types": "./src/components/index.ts",
44
+ "import": "./src/components/index.ts",
45
+ "require": "./src/components/index.ts"
46
46
  },
47
47
  "./hooks": {
48
- "types": "./dist/hooks.d.ts",
49
- "import": "./dist/hooks.mjs",
50
- "require": "./dist/hooks.cjs"
48
+ "types": "./src/hooks/index.ts",
49
+ "import": "./src/hooks/index.ts",
50
+ "require": "./src/hooks/index.ts"
51
51
  },
52
52
  "./blocks": {
53
- "types": "./dist/blocks.d.ts",
54
- "import": "./dist/blocks.mjs",
55
- "require": "./dist/blocks.cjs"
53
+ "types": "./src/blocks/index.ts",
54
+ "import": "./src/blocks/index.ts",
55
+ "require": "./src/blocks/index.ts"
56
56
  },
57
57
  "./animations": {
58
- "types": "./dist/animations.d.ts",
59
- "import": "./dist/animations.mjs",
60
- "require": "./dist/animations.cjs"
58
+ "types": "./src/animations/index.ts",
59
+ "import": "./src/animations/index.ts",
60
+ "require": "./src/animations/index.ts"
61
61
  },
62
62
  "./theme": {
63
- "types": "./dist/theme.d.ts",
64
- "import": "./dist/theme.mjs",
65
- "require": "./dist/theme.cjs"
63
+ "types": "./src/theme/index.ts",
64
+ "import": "./src/theme/index.ts",
65
+ "require": "./src/theme/index.ts"
66
66
  },
67
67
  "./types/*": "./src/types/*",
68
68
  "./global": "./src/global.d.ts",
@@ -76,16 +76,13 @@
76
76
  "LICENSE"
77
77
  ],
78
78
  "scripts": {
79
- "build": "tsup",
80
- "clean": "rm -rf dist",
81
- "dev": "tsup --watch",
82
79
  "lint": "eslint .",
83
80
  "check": "tsc --noEmit"
84
81
  },
85
82
  "peerDependencies": {
86
- "@djangocfg/api": "^2.1.103",
87
- "@djangocfg/ui-core": "^2.1.103",
88
- "@djangocfg/ui-tools": "^2.1.103",
83
+ "@djangocfg/api": "^2.1.104",
84
+ "@djangocfg/ui-core": "^2.1.104",
85
+ "@djangocfg/ui-tools": "^2.1.104",
89
86
  "@types/react": "^19.1.0",
90
87
  "@types/react-dom": "^19.1.0",
91
88
  "consola": "^3.4.2",
@@ -109,14 +106,13 @@
109
106
  "react-hotkeys-hook": "^5.2.1"
110
107
  },
111
108
  "devDependencies": {
112
- "@djangocfg/typescript-config": "^2.1.103",
109
+ "@djangocfg/typescript-config": "^2.1.104",
113
110
  "@radix-ui/react-dropdown-menu": "^2.1.16",
114
111
  "@radix-ui/react-slot": "^1.2.4",
115
112
  "@types/node": "^24.7.2",
116
113
  "class-variance-authority": "^0.7.1",
117
114
  "eslint": "^9.37.0",
118
115
  "tailwindcss-animate": "1.0.7",
119
- "tsup": "^8.5.0",
120
116
  "typescript": "^5.9.3",
121
117
  "zustand": "^5.0.9"
122
118
  },
@@ -3,6 +3,8 @@
3
3
  // Re-exports base components from @djangocfg/ui-core for convenience
4
4
  // ============================================================================
5
5
 
6
+ 'use client';
7
+
6
8
  // Re-export all base components from ui-core
7
9
  export * from '@djangocfg/ui-core/components';
8
10
 
@@ -6,7 +6,8 @@ import React from 'react';
6
6
  import { useIsMobile } from '@djangocfg/ui-core/hooks';
7
7
  import { cn } from '@djangocfg/ui-core/lib';
8
8
 
9
- import { useQueryParams } from '../hooks';
9
+ import { useQueryParams } from '@djangocfg/api/auth';
10
+
10
11
  import {
11
12
  Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink,
12
13
  PaginationNext, PaginationPrevious
@@ -3,17 +3,12 @@
3
3
  // Re-exports base hooks from @djangocfg/ui-core for convenience
4
4
  // ============================================================================
5
5
 
6
- // Re-export all base hooks from ui-core
7
- export * from '@djangocfg/ui-core/hooks';
6
+ 'use client';
8
7
 
9
8
  // Theme hook (standalone, no provider required)
10
9
  export { useResolvedTheme } from './useResolvedTheme';
11
10
  export type { ResolvedTheme } from './useResolvedTheme';
12
11
 
13
- // Next.js router hooks
14
- export { useQueryParams } from './useQueryParams';
15
- export { useCfgRouter } from './useCfgRouter';
16
-
17
12
  // Keyboard shortcuts
18
13
  export { useHotkey, useHotkeysContext, HotkeysProvider, isHotkeyPressed } from './useHotkey';
19
14
  export type { UseHotkeyOptions, HotkeyCallback, Keys } from './useHotkey';
package/src/index.ts CHANGED
@@ -2,6 +2,8 @@
2
2
  // @djangocfg/ui-nextjs - Main Export File
3
3
  // ============================================================================
4
4
 
5
+ 'use client';
6
+
5
7
  // Re-export everything from components
6
8
  export * from './components';
7
9
 
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  export { ThemeProvider, useThemeContext } from './ThemeProvider';
2
4
  export type { Theme, ThemeProviderProps } from './ThemeProvider';
3
5
  export { ThemeToggle } from './ThemeToggle';