admin-lte 4.4.1 → 4.6.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.
Files changed (57) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +1 -1
  3. package/dist/css/adminlte-colors-v3.css +2302 -0
  4. package/dist/css/adminlte-colors-v3.css.map +1 -0
  5. package/dist/css/adminlte-colors-v3.min.css +20 -0
  6. package/dist/css/adminlte-colors-v3.min.css.map +1 -0
  7. package/dist/css/adminlte-colors-v3.rtl.css +2301 -0
  8. package/dist/css/adminlte-colors-v3.rtl.css.map +1 -0
  9. package/dist/css/adminlte-colors-v3.rtl.min.css +20 -0
  10. package/dist/css/adminlte-colors-v3.rtl.min.css.map +1 -0
  11. package/dist/css/adminlte-colors.css +732 -114
  12. package/dist/css/adminlte-colors.css.map +1 -1
  13. package/dist/css/adminlte-colors.min.css +5 -3
  14. package/dist/css/adminlte-colors.min.css.map +1 -1
  15. package/dist/css/adminlte-colors.rtl.css +732 -114
  16. package/dist/css/adminlte-colors.rtl.css.map +1 -1
  17. package/dist/css/adminlte-colors.rtl.min.css +5 -3
  18. package/dist/css/adminlte-colors.rtl.min.css.map +1 -1
  19. package/dist/css/adminlte-docs.css +1 -1
  20. package/dist/css/adminlte-docs.css.map +1 -1
  21. package/dist/css/adminlte-docs.min.css +1 -1
  22. package/dist/css/adminlte-docs.min.css.map +1 -1
  23. package/dist/css/adminlte-docs.rtl.css +1 -1
  24. package/dist/css/adminlte-docs.rtl.css.map +1 -1
  25. package/dist/css/adminlte-docs.rtl.min.css +1 -1
  26. package/dist/css/adminlte-docs.rtl.min.css.map +1 -1
  27. package/dist/css/adminlte-select2.css +1 -1
  28. package/dist/css/adminlte-select2.css.map +1 -1
  29. package/dist/css/adminlte-select2.min.css +1 -1
  30. package/dist/css/adminlte-select2.min.css.map +1 -1
  31. package/dist/css/adminlte-select2.rtl.css +1 -1
  32. package/dist/css/adminlte-select2.rtl.css.map +1 -1
  33. package/dist/css/adminlte-select2.rtl.min.css +1 -1
  34. package/dist/css/adminlte-select2.rtl.min.css.map +1 -1
  35. package/dist/css/adminlte.css +9 -6
  36. package/dist/css/adminlte.css.map +1 -1
  37. package/dist/css/adminlte.min.css +2 -2
  38. package/dist/css/adminlte.min.css.map +1 -1
  39. package/dist/css/adminlte.rtl.css +9 -6
  40. package/dist/css/adminlte.rtl.css.map +1 -1
  41. package/dist/css/adminlte.rtl.min.css +2 -2
  42. package/dist/css/adminlte.rtl.min.css.map +1 -1
  43. package/dist/js/adminlte.esm.js +1 -1
  44. package/dist/js/adminlte.esm.min.js +1 -1
  45. package/dist/js/adminlte.js +1 -1
  46. package/dist/js/adminlte.min.js +1 -1
  47. package/package.json +1 -1
  48. package/src/scss/_accessibility.scss +11 -5
  49. package/src/scss/adminlte-colors-v3.scss +61 -0
  50. package/src/scss/adminlte-colors.scss +5 -2
  51. package/src/scss/adminlte-docs.scss +1 -1
  52. package/src/scss/adminlte-select2.scss +1 -1
  53. package/src/scss/adminlte.scss +1 -1
  54. package/src/scss/colors/_colors.scss +8 -8
  55. package/src/scss/colors/_primary.scss +253 -0
  56. package/src/scss/colors/_variables.scss +47 -0
  57. package/src/ts/adminlte.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,28 @@ All notable changes to AdminLTE will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [4.6.0] - 2026-08-18
9
+
10
+ ### Added
11
+
12
+ - **Make any palette colour Bootstrap's `primary` — `data-lte-primary`.** Bootstrap compiles `$primary` into its components, so `.btn-primary` ships with `--bs-btn-bg: #0d6efd` rather than `var(--bs-primary)`: overriding the token repainted the utilities and left every button, pagination, checkbox and focus ring blue, which is why a coloured skin looked half-applied. Both colour sheets now rewire those components to variables and point them at a colour with one attribute — `<html lang="en" data-lte-primary="teal">` — covering `.btn-primary` / `.btn-outline-primary` (hover, active and disabled shaded exactly as Bootstrap shades its own), `.btn-link`, links and `.link-primary`, the `--bs-primary` token trio, `.nav-pills`, `.pagination`, `.progress-bar`, `.list-group-item.active`, `.dropdown-item.active`, `.accordion`, `.form-control` / `.form-select` focus, checkboxes, radios, switches, `.form-range`, `--bs-focus-ring-color`, and AdminLTE's `.card-primary`, `.direct-chat-primary` and `.toast-primary` — in both colour modes, with Bootstrap's dark-mode link tint. Nothing changes without the attribute, and it works on any container, so one page can carry more than one primary. Bootstrap's own theme colours are presets too (`data-lte-primary="danger"`), a brand colour outside the palette needs only `--bs-primary` (hover shades are then derived with `color-mix()` where supported), and `$lte-palette-custom: ("brand": #hex)` generates a full preset in Sass. Every skin preset now names the primary that goes with it, so applying a skin on **UI → Colors** or **Theme Customize** recolours the buttons too; both pages gained a picker and a live preview, and the Colors docs page a section (#6107, requested by @johnnyq).
13
+
14
+ ### Fixed
15
+
16
+ - **`d-print-none` did nothing on the sidebar and the app wrapper.** The print layout fix from 4.0.0 set `display: grid !important` on `.app-wrapper` and `display: block !important` on `.app-sidebar`, and — being later in the cascade and equally `!important` — beat Bootstrap's `.d-print-none`, so those two elements could not be hidden for printing. Both rules are now scoped with `:not(.d-print-none)`: the print layout still applies to the standard layout, and the display utilities win where a page asks them to (#6106, reported by @johnnyq).
17
+ - **The skip link went invisible on hover.** `.skip-link:hover` painted `var(--bs-primary-emphasis)`, which Bootstrap does not define (it emits `--bs-primary-text-emphasis`), so the background computed to transparent and left white text on the page background. It now uses the emphasis token — dark in light mode, light in dark mode — with the body background for the text.
18
+
19
+ ### Maintenance
20
+
21
+ - Computed colours in both palette sheets are emitted as hex instead of Sass's `rgb(5.647%, 40.784%, 39.216%)` (cleancss leaves values inside custom properties alone), which pays for a good part of the new feature: `adminlte-colors.css` is ≈ 8 kB gzipped and `adminlte-colors-v3.css` ≈ 9.3 kB. `adminlte.css` is unchanged.
22
+ - `npm run palette -- --check` and the unit tests also verify that every skin's primary exists in its own palette and that both sheets emit the rewiring rules and a preset per colour.
23
+
24
+ ## [4.5.0] - 2026-08-18
25
+
26
+ ### Added
27
+
28
+ - **The AdminLTE 3 palette, as it was — `dist/css/adminlte-colors-v3.css`.** A second opt-in sheet for everyone who preferred the original colours: the 18 AdminLTE 3 colours (lightblue, navy, olive, lime, fuchsia, maroon, blue, indigo, purple, pink, red, orange, yellow, green, teal, cyan, gray, gray-dark) with the values from the 3.2 build and v3's text-colour rule (Bootstrap 4's YIQ test — white on lightblue, olive, teal…, dark on lime, orange, yellow), emitting exactly the same class families as the designed palette. Load one sheet or the other; they share class names. Built from the same Sass — new `$lte-palette-contrast: "wcag" | "yiq"` knob (with `$lte-palette-yiq-threshold`, `$lte-palette-yiq-text-dark/-light`) — so `$lte-palette-custom` and `$lte-palette-aliases` work with it too. Twelve AdminLTE 2 skin presets (skin-blue, -black, -purple, -green, -red, -yellow and their -light variants) in v4 terms. **UI → Colors** and **Theme Customize** gained a palette switch that swaps the stylesheet live and shows that palette's tiles, presets and pickers; the Colors docs page documents both. `npm run palette -- --check` and the unit tests keep the v3 map and its metadata in step (#6103, follow-up for @johnnyq).
29
+
8
30
  ## [4.4.1] - 2026-08-18
9
31
 
10
32
  ### Fixed
package/README.md CHANGED
@@ -161,7 +161,7 @@ a documentation overhaul, and major dependency upgrades. See the
161
161
  - Dark mode: `.dark-mode` body class → `data-bs-theme="dark"` attribute (Bootstrap 5.3 native)
162
162
  - jQuery no longer required; plugins are vanilla TypeScript
163
163
  - The bundled `plugins/` folder is gone — every v3 jQuery widget has a documented vanilla-JS successor ([replacement table](https://adminlte.io/themes/v4/docs/migration.html#third-party-plugin-replacements): Select2 → Tom Select, DataTables → Tabulator, Summernote → Quill, …)
164
- - The v3 extra colours (`.bg-navy`, `.bg-teal`, the sidebar skins, …) live in an opt-in stylesheet, `dist/css/adminlte-colors.css` — fourteen redesigned colours, every one readable with white text, 17 skin presets, plus a one-line hook for your brand colour ([Colors docs](https://adminlte.io/themes/v4/docs/colors.html), [live demo](https://adminlte.io/themes/v4/UI/colors.html)). Nothing is added to `adminlte.css`.
164
+ - The v3 extra colours (`.bg-navy`, `.bg-teal`, the sidebar skins, …) live in opt-in stylesheets: `dist/css/adminlte-colors.css` — fourteen redesigned colours, every one readable with white text, 17 skin presets, plus a one-line hook for your brand colour — or `dist/css/adminlte-colors-v3.css`, the 18 AdminLTE 3 colours exactly as they were. Either sheet also lets you make one of them Bootstrap's `primary` — `<html data-lte-primary="teal">` recolours buttons, links, pagination and form focus ([Colors docs](https://adminlte.io/themes/v4/docs/colors.html), [live demo](https://adminlte.io/themes/v4/UI/colors.html)). Nothing is added to `adminlte.css`.
165
165
 
166
166
  See the dedicated [Migration from v3](https://adminlte.io/themes/v4/docs/migration.html) guide.
167
167