@adminlte/react 0.1.0 → 0.4.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 +34 -3
- package/README.md +30 -27
- package/dist/css/adminlte.css +1450 -2791
- package/dist/index.d.ts +78 -79
- package/package.json +28 -27
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,37 @@
|
|
|
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.4.0] - 2026-08-13
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **AdminLTE core upgraded to 4.3.1.** The bundled stylesheet (`@adminlte/react/css`) picks up everything CSS-side from core [4.2.0](https://github.com/ColorlibHQ/AdminLTE/blob/master/CHANGELOG.md#420---2026-08-06), [4.3.0](https://github.com/ColorlibHQ/AdminLTE/blob/master/CHANGELOG.md#430---2026-08-10) and [4.3.1](https://github.com/ColorlibHQ/AdminLTE/blob/master/CHANGELOG.md#431---2026-08-10): the rebuilt v3 ribbons (`.ribbon-wrapper` + `.ribbon`, with 4.3.1's corner-geometry fix), the v3 social/post widgets (`.user-block`, `.post`, `.widget-user`, `.widget-user-2`, `.description-block`), and the contrast fixes core's expanded axe gate caught. The RTL stylesheet in the demo was refreshed to match. Core's new JavaScript (SidebarSearch, the `initialize()`/`teardown()` lifecycle, server-rendered ColorMode resolution) does not affect this port — `@adminlte/react` never loads `adminlte.js` (see the 0.3.0 notes).
|
|
13
|
+
- **All dependencies updated to their latest releases.** Two majors in the dev/demo toolchain: `apexcharts` 5.13 → **6.8** (the `ApexChart` wrapper needed no changes — its peer range was already `>=4.0.0` — and every chart page passes the Playwright suite against v6) and `@testing-library/jest-dom` 6 → 7; plus `jsdom` 29 → 30 and `@types/node` 25 → 26. Minors/patches: Next.js 16.3.0, React 19.2.8, ESLint 10.8.1, typescript-eslint 8.67, Vitest 4.1.10, Playwright 1.62.1, `@axe-core/playwright` 4.13, Tabulator 6.5.2, Tom Select 2.6.2, admin-lte 4.3.1.
|
|
14
|
+
- **Demo CDN pins refreshed to match the installed versions:** apexcharts 6.8.0, tabulator-tables 6.5.2, tom-select 2.6.2, OverlayScrollbars 2.11 → 2.16, Source Sans 3 5.0.12 → 5.3.0. Bootstrap 5.3.8 and Bootstrap Icons 1.13.1 were already current. The copy-paste snippets on the docs Plugins page were brought up to the same versions (they had drifted as far back as apexcharts 3).
|
|
15
|
+
- **Demo calendar migrated to FullCalendar 7** (from 6.1.20). v7 is a real migration, not a pin bump: the global bundle moved (`index.global.min.js` → `all/global.min.js`), CSS is no longer injected by the JS — the demo now loads `skeleton.css` plus the **classic** theme (the pre-v7 look) alongside the script — `Draggable` moved under the `FullCalendar.Interaction` namespace, and per-event `backgroundColor`/`borderColor`/`textColor` were renamed to `color`/`contrastColor`. Verified in-browser: month grid, toolbar views, per-event colors, and external drag-and-drop all work; v7's rewritten DOM (ARIA `grid`/`gridcell`, no tables) passes the a11y suite.
|
|
16
|
+
|
|
17
|
+
### Notes
|
|
18
|
+
|
|
19
|
+
- **TypeScript stays on 6.0.3.** TS 7.0 has shipped, but `typescript-eslint` (peer `>=4.8.4 <6.1.0`) refuses to run under it ("typescript-eslint does not support TS 7.0"), which would break the lint gate — core made the same call in its 4.2.0 release. `tsc --noEmit` itself passes on 7.0.2, so the hold can be lifted as soon as typescript-eslint supports TS 7.
|
|
20
|
+
- Peer dependency ranges are unchanged — nothing consumers depend on narrowed.
|
|
21
|
+
- Verified: library build, type-check, lint and 19 unit tests; demo type-check and production build; all 67 Playwright route-smoke + a11y tests.
|
|
22
|
+
|
|
23
|
+
## [0.3.0] - 2026-07-02
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- **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.
|
|
28
|
+
- Demo loads Bootstrap 5.3.8 from the CDN (was 5.3.7), matching the compiled core CSS.
|
|
29
|
+
|
|
30
|
+
### Notes
|
|
31
|
+
|
|
32
|
+
- 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.
|
|
33
|
+
|
|
34
|
+
## [0.2.0] - 2026-06-10
|
|
9
35
|
|
|
10
36
|
### Added
|
|
11
37
|
|
|
@@ -40,6 +66,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
40
66
|
|
|
41
67
|
### Changed
|
|
42
68
|
|
|
69
|
+
- **Package renamed to `@adminlte/react`** (previously `adminlte-react`), published under the
|
|
70
|
+
`@adminlte` npm org. Update imports: `from '@adminlte/react'` and
|
|
71
|
+
`import '@adminlte/react/css'`.
|
|
43
72
|
- **Build: per-file ESM output (RSC boundaries preserved).** The package is no longer a single
|
|
44
73
|
bundled file stamped with a blanket `"use client"`. Each source module now compiles to its own
|
|
45
74
|
`dist/` file, so the `'use client'` directive survives per component: server-component-authored
|
|
@@ -157,5 +186,7 @@ Next.js App Router and React Server Components.
|
|
|
157
186
|
- Heavy third-party libraries are never bundled eagerly — they load via dynamic
|
|
158
187
|
`import()` inside the components that use them.
|
|
159
188
|
|
|
160
|
-
[
|
|
189
|
+
[0.4.0]: https://github.com/ColorlibHQ/adminlte-react/compare/v0.3.0...v0.4.0
|
|
190
|
+
[0.3.0]: https://github.com/ColorlibHQ/adminlte-react/compare/v0.2.0...v0.3.0
|
|
191
|
+
[0.2.0]: https://github.com/ColorlibHQ/adminlte-react/compare/v0.1.0...v0.2.0
|
|
161
192
|
[0.1.0]: https://github.com/ColorlibHQ/adminlte-react/releases/tag/v0.1.0
|
package/README.md
CHANGED
|
@@ -9,37 +9,40 @@
|
|
|
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.4.0 (Early Release, AdminLTE core 4.3.1) · **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/">
|
|
16
|
-
<img alt="AdminLTE React dashboard — light theme" src="docs/screenshots/dashboard-light.
|
|
16
|
+
<img alt="AdminLTE React dashboard — light theme" src="docs/screenshots/dashboard-light.webp" width="49%">
|
|
17
17
|
</a>
|
|
18
18
|
<a href="https://adminlte.io/themes/next-react/">
|
|
19
|
-
<img alt="AdminLTE React dashboard — dark theme" src="docs/screenshots/dashboard-dark.
|
|
19
|
+
<img alt="AdminLTE React dashboard — dark theme" src="docs/screenshots/dashboard-dark.webp" width="49%">
|
|
20
20
|
</a>
|
|
21
21
|
</p>
|
|
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.webp" 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: [],
|
|
@@ -374,7 +377,7 @@ Need advanced features, more pages, and dedicated support? Explore Colorlib's co
|
|
|
374
377
|
<tr>
|
|
375
378
|
<td align="center" width="50%">
|
|
376
379
|
<a href="https://dashboardpack.com/theme-details/apex-dashboard-nextjs/?utm_source=github&utm_medium=readme&utm_campaign=adminlte-react">
|
|
377
|
-
<img src="docs/screenshots/dashboardpack/apex.
|
|
380
|
+
<img src="docs/screenshots/dashboardpack/apex.webp" alt="Apex Dashboard — Next.js admin template with shadcn/ui" width="100%">
|
|
378
381
|
</a>
|
|
379
382
|
<br>
|
|
380
383
|
<a href="https://dashboardpack.com/theme-details/apex-dashboard-nextjs/?utm_source=github&utm_medium=readme&utm_campaign=adminlte-react"><strong>Apex Dashboard</strong></a>
|
|
@@ -383,7 +386,7 @@ Need advanced features, more pages, and dedicated support? Explore Colorlib's co
|
|
|
383
386
|
</td>
|
|
384
387
|
<td align="center" width="50%">
|
|
385
388
|
<a href="https://dashboardpack.com/theme-details/zenith-shadcn/?utm_source=github&utm_medium=readme&utm_campaign=adminlte-react">
|
|
386
|
-
<img src="docs/screenshots/dashboardpack/zenith.
|
|
389
|
+
<img src="docs/screenshots/dashboardpack/zenith.webp" alt="Zenith — minimal Next.js admin dashboard with shadcn/ui" width="100%">
|
|
387
390
|
</a>
|
|
388
391
|
<br>
|
|
389
392
|
<a href="https://dashboardpack.com/theme-details/zenith-shadcn/?utm_source=github&utm_medium=readme&utm_campaign=adminlte-react"><strong>Zenith Dashboard</strong></a>
|
|
@@ -394,7 +397,7 @@ Need advanced features, more pages, and dedicated support? Explore Colorlib's co
|
|
|
394
397
|
<tr>
|
|
395
398
|
<td align="center" width="50%">
|
|
396
399
|
<a href="https://dashboardpack.com/theme-details/haze-dashboard-nuxt/?utm_source=github&utm_medium=readme&utm_campaign=adminlte-react">
|
|
397
|
-
<img src="docs/screenshots/dashboardpack/haze.
|
|
400
|
+
<img src="docs/screenshots/dashboardpack/haze.webp" alt="Haze — Nuxt 4 admin dashboard with 92+ pages" width="100%">
|
|
398
401
|
</a>
|
|
399
402
|
<br>
|
|
400
403
|
<a href="https://dashboardpack.com/theme-details/haze-dashboard-nuxt/?utm_source=github&utm_medium=readme&utm_campaign=adminlte-react"><strong>Haze</strong></a>
|
|
@@ -403,7 +406,7 @@ Need advanced features, more pages, and dedicated support? Explore Colorlib's co
|
|
|
403
406
|
</td>
|
|
404
407
|
<td align="center" width="50%">
|
|
405
408
|
<a href="https://dashboardpack.com/theme-details/tailpanel/?utm_source=github&utm_medium=readme&utm_campaign=adminlte-react">
|
|
406
|
-
<img src="docs/screenshots/dashboardpack/tailpanel.
|
|
409
|
+
<img src="docs/screenshots/dashboardpack/tailpanel.webp" alt="TailPanel — React and Tailwind CSS admin panel" width="100%">
|
|
407
410
|
</a>
|
|
408
411
|
<br>
|
|
409
412
|
<a href="https://dashboardpack.com/theme-details/tailpanel/?utm_source=github&utm_medium=readme&utm_campaign=adminlte-react"><strong>TailPanel</strong></a>
|
|
@@ -414,7 +417,7 @@ Need advanced features, more pages, and dedicated support? Explore Colorlib's co
|
|
|
414
417
|
<tr>
|
|
415
418
|
<td align="center" width="50%">
|
|
416
419
|
<a href="https://dashboardpack.com/theme-details/admindek-html/?utm_source=github&utm_medium=readme&utm_campaign=adminlte-react">
|
|
417
|
-
<img src="docs/screenshots/dashboardpack/admindek.
|
|
420
|
+
<img src="docs/screenshots/dashboardpack/admindek.webp" alt="Admindek — feature-rich Bootstrap 5 dashboard" width="100%">
|
|
418
421
|
</a>
|
|
419
422
|
<br>
|
|
420
423
|
<a href="https://dashboardpack.com/theme-details/admindek-html/?utm_source=github&utm_medium=readme&utm_campaign=adminlte-react"><strong>Admindek</strong></a>
|
|
@@ -423,7 +426,7 @@ Need advanced features, more pages, and dedicated support? Explore Colorlib's co
|
|
|
423
426
|
</td>
|
|
424
427
|
<td align="center" width="50%">
|
|
425
428
|
<a href="https://dashboardpack.com/theme-details/svelteforge-premium/?utm_source=github&utm_medium=readme&utm_campaign=adminlte-react">
|
|
426
|
-
<img src="docs/screenshots/dashboardpack/svelteforge.
|
|
429
|
+
<img src="docs/screenshots/dashboardpack/svelteforge.webp" alt="SvelteForge Premium — SvelteKit admin dashboard" width="100%">
|
|
427
430
|
</a>
|
|
428
431
|
<br>
|
|
429
432
|
<a href="https://dashboardpack.com/theme-details/svelteforge-premium/?utm_source=github&utm_medium=readme&utm_campaign=adminlte-react"><strong>SvelteForge Premium</strong></a>
|