@adminlte/react 0.1.0 → 0.3.0
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/CHANGELOG.md +16 -2
- package/README.md +22 -19
- package/dist/css/adminlte.css +1176 -2718
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
All notable changes to
|
|
3
|
+
All notable changes to **@adminlte/react** are documented in this file.
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [
|
|
8
|
+
## [0.3.0] - 2026-07-02
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **AdminLTE core upgraded to 4.1.0.** The bundled stylesheet (`@adminlte/react/css`) picks up everything from core [4.0.4](https://github.com/ColorlibHQ/AdminLTE/blob/master/CHANGELOG.md#404---2026-07-02) and [4.1.0](https://github.com/ColorlibHQ/AdminLTE/blob/master/CHANGELOG.md#410---2026-07-02): ~6 KB gzip smaller (duplicate docs styles removed and the docs/FAQ styling split into core's separate `adminlte-docs.css`, which applications never needed), WCAG AA contrast fix for breadcrumb links on the content-header background, and the repaired callout link/code colors. The RTL stylesheet in the demo was refreshed to match.
|
|
13
|
+
- Demo loads Bootstrap 5.3.8 from the CDN (was 5.3.7), matching the compiled core CSS.
|
|
14
|
+
|
|
15
|
+
### Notes
|
|
16
|
+
|
|
17
|
+
- Core 4.1.0's new JavaScript (ESM bundle, TypeScript declarations, component lifecycle, bundled ColorMode) does not affect this port: `@adminlte/react` re-implements all behavior natively in React and never loads `adminlte.js`. Do **not** load core's `adminlte.js` alongside this library — both implement the `data-lte-toggle` data API and cards would double-toggle. Theme preferences continue to interoperate with core via the shared `lte-theme` storage key.
|
|
18
|
+
|
|
19
|
+
## [0.2.0] - 2026-06-10
|
|
9
20
|
|
|
10
21
|
### Added
|
|
11
22
|
|
|
@@ -40,6 +51,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
40
51
|
|
|
41
52
|
### Changed
|
|
42
53
|
|
|
54
|
+
- **Package renamed to `@adminlte/react`** (previously `adminlte-react`), published under the
|
|
55
|
+
`@adminlte` npm org. Update imports: `from '@adminlte/react'` and
|
|
56
|
+
`import '@adminlte/react/css'`.
|
|
43
57
|
- **Build: per-file ESM output (RSC boundaries preserved).** The package is no longer a single
|
|
44
58
|
bundled file stamped with a blanket `"use client"`. Each source module now compiles to its own
|
|
45
59
|
`dist/` file, so the `'use client'` directive survives per component: server-component-authored
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
A modern React/Next.js component library for building admin dashboards and web applications with AdminLTE 4 styling and Bootstrap 5.3 — built for the Next.js App Router and React Server Components by [Colorlib](https://colorlib.com).
|
|
11
11
|
|
|
12
|
-
**Status**: v0.
|
|
12
|
+
**Status**: v0.3.0 (Early Release, AdminLTE core 4.1.0) · **Live demo:** [adminlte.io/themes/next-react](https://adminlte.io/themes/next-react/)
|
|
13
13
|
|
|
14
14
|
<p align="center">
|
|
15
15
|
<a href="https://adminlte.io/themes/next-react/">
|
|
@@ -22,24 +22,27 @@ A modern React/Next.js component library for building admin dashboards and web a
|
|
|
22
22
|
|
|
23
23
|
**Available for your stack** — the same AdminLTE 4 dashboard, in the framework you know best:
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
<!-- ADMINLTE-ECOSYSTEM:START -->
|
|
26
|
+
<div align="center">
|
|
27
|
+
<a href="https://github.com/ColorlibHQ/AdminLTE"><img height="36" alt="HTML" src="https://img.shields.io/badge/HTML-0D6EFD?style=for-the-badge&logo=html5&logoColor=white"></a>
|
|
26
28
|
<a href="https://github.com/ColorlibHQ/adminlte-react"><img height="36" alt="React" src="https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB"></a>
|
|
27
29
|
<a href="https://github.com/ColorlibHQ/adminlte-react"><img height="36" alt="Next.js" src="https://img.shields.io/badge/Next.js-000000?style=for-the-badge&logo=nextdotjs&logoColor=white"></a>
|
|
28
30
|
<a href="https://github.com/ColorlibHQ/adminlte-vue"><img height="36" alt="Vue" src="https://img.shields.io/badge/Vue.js-35495E?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D"></a>
|
|
29
31
|
<a href="https://github.com/ColorlibHQ/adminlte-vue"><img height="36" alt="Nuxt" src="https://img.shields.io/badge/Nuxt-00DC82?style=for-the-badge&logo=nuxt&logoColor=white"></a>
|
|
32
|
+
<a href="https://github.com/ColorlibHQ/adminlte-angular"><img height="36" alt="Angular" src="https://img.shields.io/badge/Angular-DD0031?style=for-the-badge&logo=angular&logoColor=white"></a>
|
|
30
33
|
<a href="https://github.com/ColorlibHQ/adminlte-laravel"><img height="36" alt="Laravel" src="https://img.shields.io/badge/Laravel-FF2D20?style=for-the-badge&logo=laravel&logoColor=white"></a>
|
|
34
|
+
<a href="https://github.com/ColorlibHQ/adminlte-symfony"><img height="36" alt="Symfony" src="https://img.shields.io/badge/Symfony-000000?style=for-the-badge&logo=symfony&logoColor=white"></a>
|
|
31
35
|
<a href="https://github.com/ColorlibHQ/adminlte-django"><img height="36" alt="Django" src="https://img.shields.io/badge/Django-092E20?style=for-the-badge&logo=django&logoColor=white"></a>
|
|
36
|
+
<a href="https://github.com/ColorlibHQ/adminlte-aspnet"><img height="36" alt="ASP.NET" src="https://img.shields.io/badge/ASP.NET-512BD4?style=for-the-badge&logo=dotnet&logoColor=white"></a>
|
|
37
|
+
<a href="https://github.com/ColorlibHQ/adminlte-drupal"><img height="36" alt="Drupal" src="https://img.shields.io/badge/Drupal-0678BE?style=for-the-badge&logo=drupal&logoColor=white"></a>
|
|
38
|
+
<a href="https://docs.adminlte.io"><img height="36" alt="Docs" src="https://img.shields.io/badge/Docs-adminlte.io-0EA5E9?style=for-the-badge&logo=readthedocs&logoColor=white"></a>
|
|
39
|
+
</div>
|
|
40
|
+
<!-- ADMINLTE-ECOSYSTEM:END -->
|
|
41
|
+
|
|
42
|
+
<p align="center">
|
|
43
|
+
<a href="https://adminlte.io/themes/next-react/"><img src=".github/preview.png" alt="AdminLTE 4 for React — dashboard preview" width="100%"></a>
|
|
32
44
|
</p>
|
|
33
45
|
|
|
34
|
-
<p align="center"><sub>
|
|
35
|
-
Frameworks:
|
|
36
|
-
<a href="https://github.com/ColorlibHQ/adminlte-react">React</a> ·
|
|
37
|
-
<a href="https://github.com/ColorlibHQ/adminlte-react">Next.js</a> ·
|
|
38
|
-
<a href="https://github.com/ColorlibHQ/adminlte-vue">Vue</a> ·
|
|
39
|
-
<a href="https://github.com/ColorlibHQ/adminlte-vue">Nuxt</a> ·
|
|
40
|
-
<a href="https://github.com/ColorlibHQ/adminlte-laravel">Laravel</a> ·
|
|
41
|
-
<a href="https://github.com/ColorlibHQ/adminlte-django">Django</a>
|
|
42
|
-
</sub></p>
|
|
43
46
|
|
|
44
47
|
> **Documentation:** Full guides and an API reference for every component, hook, and
|
|
45
48
|
> context live in the demo app under `/docs`. Run `pnpm demo` and open
|
|
@@ -60,9 +63,9 @@ A modern React/Next.js component library for building admin dashboards and web a
|
|
|
60
63
|
## Installation
|
|
61
64
|
|
|
62
65
|
```bash
|
|
63
|
-
npm install adminlte
|
|
66
|
+
npm install @adminlte/react
|
|
64
67
|
# or
|
|
65
|
-
pnpm add adminlte
|
|
68
|
+
pnpm add @adminlte/react
|
|
66
69
|
```
|
|
67
70
|
|
|
68
71
|
### Peer Dependencies
|
|
@@ -104,7 +107,7 @@ for the full matrix.
|
|
|
104
107
|
|
|
105
108
|
```tsx
|
|
106
109
|
// app/layout.tsx
|
|
107
|
-
import 'adminlte
|
|
110
|
+
import '@adminlte/react/css'
|
|
108
111
|
import 'bootstrap-icons/font/bootstrap-icons.css'
|
|
109
112
|
import './globals.css'
|
|
110
113
|
|
|
@@ -135,7 +138,7 @@ export default function RootLayout({ children }) {
|
|
|
135
138
|
|
|
136
139
|
```tsx
|
|
137
140
|
// app/(dashboard)/layout.tsx
|
|
138
|
-
import { DashboardLayout } from 'adminlte
|
|
141
|
+
import { DashboardLayout } from '@adminlte/react'
|
|
139
142
|
import { menuItems } from '@/lib/menu'
|
|
140
143
|
|
|
141
144
|
export default function Layout({ children }) {
|
|
@@ -156,7 +159,7 @@ export default function Layout({ children }) {
|
|
|
156
159
|
|
|
157
160
|
```ts
|
|
158
161
|
// lib/menu.ts
|
|
159
|
-
import type { MenuNode } from 'adminlte
|
|
162
|
+
import type { MenuNode } from '@adminlte/react'
|
|
160
163
|
|
|
161
164
|
export const menuItems: MenuNode[] = [
|
|
162
165
|
{
|
|
@@ -189,7 +192,7 @@ export const menuItems: MenuNode[] = [
|
|
|
189
192
|
|
|
190
193
|
```tsx
|
|
191
194
|
// app/(dashboard)/page.tsx
|
|
192
|
-
import { AppContent, SmallBox, Card, Progress } from 'adminlte
|
|
195
|
+
import { AppContent, SmallBox, Card, Progress } from '@adminlte/react'
|
|
193
196
|
|
|
194
197
|
export default function Dashboard() {
|
|
195
198
|
return (
|
|
@@ -289,7 +292,7 @@ Standalone hooks:
|
|
|
289
292
|
|
|
290
293
|
```tsx
|
|
291
294
|
'use client'
|
|
292
|
-
import { useSidebarContext, useColorModeContext } from 'adminlte
|
|
295
|
+
import { useSidebarContext, useColorModeContext } from '@adminlte/react'
|
|
293
296
|
|
|
294
297
|
function Toolbar() {
|
|
295
298
|
const { toggle } = useSidebarContext()
|
|
@@ -320,7 +323,7 @@ All components use Bootstrap 5.3 utility classes. Customize via CSS variables or
|
|
|
320
323
|
Full TypeScript support with exported types:
|
|
321
324
|
|
|
322
325
|
```tsx
|
|
323
|
-
import type { DashboardLayoutProps, MenuNode, BootstrapTheme } from 'adminlte
|
|
326
|
+
import type { DashboardLayoutProps, MenuNode, BootstrapTheme } from '@adminlte/react'
|
|
324
327
|
|
|
325
328
|
const props: DashboardLayoutProps = {
|
|
326
329
|
menuItems: [],
|