@djangocfg/ui-nextjs 2.1.409 → 2.1.412
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/README.md +3 -5
- package/package.json +13 -18
- package/src/index.ts +2 -3
- package/src/theme/index.ts +0 -26
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Next-specific runtime for DjangoCFG: PWA install support and browser-storage hoo
|
|
|
10
10
|
|
|
11
11
|
UI primitives (Button, Card, Sidebar, Pagination, Breadcrumb, etc.) live in [`@djangocfg/ui-core`](../ui-core) — they're framework-agnostic and don't belong here. Import them from there directly.
|
|
12
12
|
|
|
13
|
-
> **Theme
|
|
13
|
+
> **Theme lives in ui-core.** `ThemeProvider`, `ThemeToggle`, `ForceTheme`, `useThemeContext` are framework-agnostic — import them from [`@djangocfg/ui-core`](../ui-core). (The old `@djangocfg/ui-nextjs/theme` re-export has been removed.)
|
|
14
14
|
|
|
15
15
|
**Part of [DjangoCFG](https://djangocfg.com).**
|
|
16
16
|
|
|
@@ -24,7 +24,6 @@ pnpm add @djangocfg/ui-nextjs
|
|
|
24
24
|
|
|
25
25
|
| Subpath | Purpose |
|
|
26
26
|
|---|---|
|
|
27
|
-
| `@djangocfg/ui-nextjs/theme` | Back-compat re-export of the theme runtime — now defined in `@djangocfg/ui-core` |
|
|
28
27
|
| `@djangocfg/ui-nextjs/pwa` | `PwaProvider`, `A2HSHint`, `useInstall`, `useIsPWA`, install detection helpers |
|
|
29
28
|
| `@djangocfg/ui-nextjs/hooks` | `useLocalStorage`, `useSessionStorage` and other Next-runtime-only hooks |
|
|
30
29
|
|
|
@@ -32,11 +31,10 @@ That's it. Anything else you might be looking for is in `@djangocfg/ui-core`.
|
|
|
32
31
|
|
|
33
32
|
## Theme
|
|
34
33
|
|
|
35
|
-
The theme runtime lives in `@djangocfg/ui-core` (it is framework-agnostic)
|
|
36
|
-
|
|
34
|
+
The theme runtime lives in `@djangocfg/ui-core` (it is framework-agnostic) —
|
|
35
|
+
import it from there:
|
|
37
36
|
|
|
38
37
|
```tsx
|
|
39
|
-
// Preferred — import directly from ui-core:
|
|
40
38
|
import { ThemeProvider, ThemeToggle } from '@djangocfg/ui-core';
|
|
41
39
|
|
|
42
40
|
<ThemeProvider>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/ui-nextjs",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.412",
|
|
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",
|
|
@@ -49,11 +49,6 @@
|
|
|
49
49
|
"import": "./src/hooks/index.ts",
|
|
50
50
|
"require": "./src/hooks/index.ts"
|
|
51
51
|
},
|
|
52
|
-
"./theme": {
|
|
53
|
-
"types": "./src/theme/index.ts",
|
|
54
|
-
"import": "./src/theme/index.ts",
|
|
55
|
-
"require": "./src/theme/index.ts"
|
|
56
|
-
},
|
|
57
52
|
"./pwa": {
|
|
58
53
|
"types": "./src/pwa/index.ts",
|
|
59
54
|
"import": "./src/pwa/index.ts",
|
|
@@ -75,24 +70,24 @@
|
|
|
75
70
|
"check": "tsc --noEmit"
|
|
76
71
|
},
|
|
77
72
|
"peerDependencies": {
|
|
78
|
-
"@djangocfg/api": "^2.1.
|
|
79
|
-
"@djangocfg/i18n": "^2.1.
|
|
80
|
-
"@djangocfg/nextjs": "^2.1.
|
|
81
|
-
"@djangocfg/ui-core": "^2.1.
|
|
82
|
-
"@djangocfg/ui-tools": "^2.1.
|
|
83
|
-
"@types/react": "^19.
|
|
84
|
-
"@types/react-dom": "^19.
|
|
73
|
+
"@djangocfg/api": "^2.1.412",
|
|
74
|
+
"@djangocfg/i18n": "^2.1.412",
|
|
75
|
+
"@djangocfg/nextjs": "^2.1.412",
|
|
76
|
+
"@djangocfg/ui-core": "^2.1.412",
|
|
77
|
+
"@djangocfg/ui-tools": "^2.1.412",
|
|
78
|
+
"@types/react": "^19.2.15",
|
|
79
|
+
"@types/react-dom": "^19.2.3",
|
|
85
80
|
"consola": "^3.4.2",
|
|
86
81
|
"lucide-react": "^0.545.0",
|
|
87
82
|
"moment": "^2.30.1",
|
|
88
83
|
"next": "^16.2.2",
|
|
89
84
|
"next-intl": "^4.9.1",
|
|
90
|
-
"react": "^19.
|
|
91
|
-
"react-dom": "^19.
|
|
85
|
+
"react": "^19.2.4",
|
|
86
|
+
"react-dom": "^19.2.4",
|
|
92
87
|
"react-hook-form": "^7.69.0",
|
|
93
88
|
"tailwindcss": "^4.1.18",
|
|
94
89
|
"zod": "^4.3.6",
|
|
95
|
-
"zustand": "^5.0.
|
|
90
|
+
"zustand": "^5.0.0"
|
|
96
91
|
},
|
|
97
92
|
"dependencies": {
|
|
98
93
|
"chart.js": "^4.5.0",
|
|
@@ -102,13 +97,13 @@
|
|
|
102
97
|
"react-chartjs-2": "^5.3.0"
|
|
103
98
|
},
|
|
104
99
|
"devDependencies": {
|
|
105
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
100
|
+
"@djangocfg/typescript-config": "^2.1.412",
|
|
106
101
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
107
102
|
"@radix-ui/react-slot": "^1.2.4",
|
|
108
103
|
"@types/node": "^24.7.2",
|
|
109
104
|
"class-variance-authority": "^0.7.1",
|
|
110
105
|
"eslint": "^9.37.0",
|
|
111
|
-
"tailwindcss-animate": "1.0.7",
|
|
106
|
+
"tailwindcss-animate": "^1.0.7",
|
|
112
107
|
"next-intl": "^4.9.1",
|
|
113
108
|
"typescript": "^5.9.3",
|
|
114
109
|
"zustand": "^5.0.9"
|
package/src/index.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
// ============================================================================
|
|
2
2
|
// @djangocfg/ui-nextjs
|
|
3
3
|
//
|
|
4
|
-
// Next-specific runtime:
|
|
5
|
-
//
|
|
4
|
+
// Next-specific runtime: PWA install support and browser-storage hooks.
|
|
5
|
+
// UI primitives and the theme system live in @djangocfg/ui-core.
|
|
6
6
|
// ============================================================================
|
|
7
7
|
|
|
8
8
|
'use client';
|
|
9
9
|
|
|
10
10
|
export * from './hooks';
|
|
11
|
-
export * from './theme';
|
package/src/theme/index.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Theme system — moved to @djangocfg/ui-core/theme (framework-agnostic).
|
|
3
|
-
* This module re-exports it for backward compatibility.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
'use client';
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
ThemeProvider,
|
|
10
|
-
useThemeContext,
|
|
11
|
-
ThemeToggle,
|
|
12
|
-
ForceTheme,
|
|
13
|
-
ThemeOverride,
|
|
14
|
-
resolveForcedTheme,
|
|
15
|
-
ForcedThemeProvider,
|
|
16
|
-
useForcedTheme,
|
|
17
|
-
} from '@djangocfg/ui-core/theme';
|
|
18
|
-
export type {
|
|
19
|
-
Theme,
|
|
20
|
-
ThemeProviderProps,
|
|
21
|
-
ThemeToggleProps,
|
|
22
|
-
ThemeLockBehavior,
|
|
23
|
-
ThemeOverrideRule,
|
|
24
|
-
ThemeOverrideProps,
|
|
25
|
-
ForcedTheme,
|
|
26
|
-
} from '@djangocfg/ui-core/theme';
|