@ptlm-azulejo/themes 1.4.1-alpha.284 → 1.4.1

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 (2) hide show
  1. package/package.json +1 -1
  2. package/CHANGELOG.md +0 -123
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptlm-azulejo/themes",
3
- "version": "1.4.1-alpha.284",
3
+ "version": "1.4.1",
4
4
  "description": "Multi-brand theme tokens (Leroy Merlin, Adeo) for the @ptlm-azulejo components, aligned with the Mozaic Design System.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/CHANGELOG.md DELETED
@@ -1,123 +0,0 @@
1
- # @ptlm-azulejo/themes
2
-
3
- ## 1.4.1
4
-
5
- ### Patch Changes
6
-
7
- - 9b1ef57: Declare the MIT license in each package's `package.json` (matching the repo `LICENSE.md`).
8
-
9
- ## 1.4.0
10
-
11
- ### Minor Changes
12
-
13
- - ed67497: Add `AzToaster` (`@ptlm-azulejo/toaster`) aligned with Mozaic `MToaster`: a temporary overlay notification with `v-model:open`, required `description`, `status` (`info` / `success` / `warning` / `error`), `position` (`top` / `bottom` / `top-center` / `bottom-center`), optional close button, a **3000ms** default auto-dismiss timeout (override with `timeout`, or pass `0` to disable), a depleting timeout progress bar powered by `AzLinearProgressBar`, an `undoAction` prop with an Undo action button that defaults to the label **Undo**, an `actionLabel` prop for i18n overrides, an `action` slot for custom actions, `--toaster-z-index`, and a typed `:ui` escape hatch. Status glyphs come from `@ptlm-azulejo/icons`.
14
-
15
- Also ships `AzToasterGroup` + `useToast()` for PrimeVue-style multi-toast stacks: **first in, last out** (newest on top), collapsed overlap in `stacked` mode, full list on hover/focus, timers paused while expanded, `limit`, `gap`, and `expanded` mode. Each toast keeps its own auto-dismiss clock from the moment it was added — adding another toast does not restart the others.
16
-
17
- Themes gain inverse status tokens (`--color-status-inverse-background-*` and `--color-status-inverse-standalone-*`) so toasters follow the Mozaic dark overlay surfaces.
18
-
19
- - 66c7a93: Add `--color-background-disabled` (`#d9d9d9`)(from Design System), the Mozaic disabled surface shared by form and action controls.
20
- - 2d3e3ab: Add `AzTag` (`@ptlm-azulejo/tag`) aligned with Mozaic `MTag`: informative, interactive, contextualised, removable, and selectable types, with sizes, `v-model`, `remove-tag`, an `iconClass` prop for `@ptlm-azulejo/icons` glyphs, and a `:ui` escape hatch. Props are a discriminated union on `type`, so TypeScript requires `id` and `name` for selectable tags and `id` for removable tags.
21
-
22
- Themes gain shared disabled tokens (`--color-background-disabled`, `--color-text-disabled`) and brand tag color tokens (`--color-tag-*`) so tags follow `.preset-lm` / `.preset-adeo` and light/dark at runtime.
23
-
24
- ## 1.3.2
25
-
26
- ### Patch Changes
27
-
28
- - fbbee70: Formatting-only release. The repository adopted Prettier as its single
29
- formatting authority, and every shipped file was reformatted in one pass: the
30
- theme and font stylesheets (published verbatim, so their bytes change), each
31
- package's README, and the component sources behind `dist/`.
32
-
33
- No public API, prop, slot, event, CSS variable, class name or rendered output
34
- changed. Upgrading requires nothing, and skipping this version costs nothing.
35
-
36
- One internal cleanup rides along in `AzSegmentedControl`: a dead `null`
37
- initializer and the unreachable branch guarding it were removed from the
38
- keyboard handler. Arrow / Home / End navigation behaves exactly as before.
39
-
40
- ## 1.3.1
41
-
42
- ### Patch Changes
43
-
44
- - edbe6d9: Presets no longer bundle the scoped UA preflight that reset `button` / `input` / `select` / `textarea` under `.preset-lm` / `.preset-adeo`. Token and preset imports are unchanged.
45
-
46
- ## 1.3.0
47
-
48
- ### Minor Changes
49
-
50
- - dda8cdb: Add a scoped UA preflight to themes (bundled with every preset) so Azulejo
51
- controls don't depend on the host running Tailwind Preflight. Drop the
52
- per-segment button-reset utilities from SegmentedControl. Re-export
53
- `SegmentedControlItem`, `SegmentedControlSize`, and `SegmentedControlUi`
54
- from the package entry so consumers can import the types again.
55
-
56
- ## 1.2.1
57
-
58
- ### Patch Changes
59
-
60
- - e5341cd: Documentation. Every package README now spells out both brands end to end instead
61
- of showing one snippet with an "or" comment: which preset stylesheet to import,
62
- which `.preset-*` class goes on `<html>` to select the theme at runtime,
63
- `data-theme` for light/dark, and which font package the project needs (Leroy
64
- Merlin → `@ptlm-azulejo/fonts-leroy-merlin`, Adeo → `@ptlm-azulejo/fonts-adeo`).
65
-
66
- No component behaviour, prop or token changed. The patch bump exists because npm
67
- ships `README.md` inside the tarball and renders it as the package page, so the
68
- corrected instructions only reach consumers on a release.
69
-
70
- ## 1.2.0
71
-
72
- ### Minor Changes
73
-
74
- - eb0b0f8: Make components follow the brand typeface, add the medium (500) font weight, and
75
- expose stable `data-testid` hooks.
76
-
77
- - Each preset now names its brand's typeface in `--font-family`
78
- (`presets/leroy-merlin.css` → LeroyMerlin, `presets/adeo.css` → Roboto), with
79
- `Arial, sans-serif` as the fallback stack.
80
- - Components apply that typeface on their root, so they follow the active brand
81
- instead of inheriting the host page's font. Opt out per component by setting
82
- `--font-family: inherit` on it.
83
- - `base.css` adds `--font-weight-medium: 500`, alongside the existing regular
84
- (400), semi-bold (600) and bold (700) weights.
85
- - Every component now exposes `data-testid` on its root and on meaningful
86
- sub-parts (`button` / `button-spinner`, `loader` / `loader-text`,
87
- `datepicker` / `datepicker-clear`, `segmented-control` /
88
- `segmented-control-segment`), so tests can target them without depending on
89
- CSS class names.
90
-
91
- As with upstream Mozaic, the presets **name** the typeface but ship no
92
- `@font-face` and no font binaries — loading the files stays the app's job, so you
93
- keep control of hosting, subsetting and preload. Until you load them the fallback
94
- stack renders and nothing breaks. Install the font package matching your brand
95
- alongside the preset:
96
-
97
- ```bash
98
- # Leroy Merlin
99
- yarn add @ptlm-azulejo/themes @ptlm-azulejo/fonts-leroy-merlin
100
- # Adeo
101
- yarn add @ptlm-azulejo/themes @ptlm-azulejo/fonts-adeo
102
- ```
103
-
104
- See the Fonts section of `packages/themes/README.md` for the full recipe.
105
-
106
- ## 1.1.0
107
-
108
- ### Minor Changes
109
-
110
- - 53000f7: Add Mozaic-aligned multi-brand theming support.
111
-
112
- - New `@ptlm-azulejo/themes` package with structural/status tokens in `base.css`
113
- and brand presets selected by a root class (`presets/leroy-merlin.css`,
114
- `presets/adeo.css`), via `.preset-lm` / `.preset-adeo` and `data-theme` for
115
- light/dark.
116
- - `AzButton` now consumes theme tokens through utilities mapped in
117
- `@theme inline`, working across both brands and in light/dark.
118
-
119
- **BREAKING:** components no longer bake brand colors. The consumer must now
120
- import `@ptlm-azulejo/themes/base.css` + a preset and apply the
121
- `.preset-lm`/`.preset-adeo` class (and optional `data-theme="dark"`) on the root
122
- element; otherwise components render uncolored. See the migration notes in
123
- `packages/themes/README.md`.