@ptlm-azulejo/themes 1.4.0-alpha.250 → 1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/CHANGELOG.md +0 -117
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptlm-azulejo/themes",
3
- "version": "1.4.0-alpha.250",
3
+ "version": "1.4.0",
4
4
  "description": "Multi-brand theme tokens (Leroy Merlin, Adeo) for the @ptlm-azulejo components, aligned with the Mozaic Design System.",
5
5
  "type": "module",
6
6
  "exports": {
package/CHANGELOG.md DELETED
@@ -1,117 +0,0 @@
1
- # @ptlm-azulejo/themes
2
-
3
- ## 1.4.0
4
-
5
- ### Minor Changes
6
-
7
- - 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`.
8
-
9
- 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.
10
-
11
- Themes gain inverse status tokens (`--color-status-inverse-background-*` and `--color-status-inverse-standalone-*`) so toasters follow the Mozaic dark overlay surfaces.
12
-
13
- - 66c7a93: Add `--color-background-disabled` (`#d9d9d9`)(from Design System), the Mozaic disabled surface shared by form and action controls.
14
- - 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.
15
-
16
- 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.
17
-
18
- ## 1.3.2
19
-
20
- ### Patch Changes
21
-
22
- - fbbee70: Formatting-only release. The repository adopted Prettier as its single
23
- formatting authority, and every shipped file was reformatted in one pass: the
24
- theme and font stylesheets (published verbatim, so their bytes change), each
25
- package's README, and the component sources behind `dist/`.
26
-
27
- No public API, prop, slot, event, CSS variable, class name or rendered output
28
- changed. Upgrading requires nothing, and skipping this version costs nothing.
29
-
30
- One internal cleanup rides along in `AzSegmentedControl`: a dead `null`
31
- initializer and the unreachable branch guarding it were removed from the
32
- keyboard handler. Arrow / Home / End navigation behaves exactly as before.
33
-
34
- ## 1.3.1
35
-
36
- ### Patch Changes
37
-
38
- - 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.
39
-
40
- ## 1.3.0
41
-
42
- ### Minor Changes
43
-
44
- - dda8cdb: Add a scoped UA preflight to themes (bundled with every preset) so Azulejo
45
- controls don't depend on the host running Tailwind Preflight. Drop the
46
- per-segment button-reset utilities from SegmentedControl. Re-export
47
- `SegmentedControlItem`, `SegmentedControlSize`, and `SegmentedControlUi`
48
- from the package entry so consumers can import the types again.
49
-
50
- ## 1.2.1
51
-
52
- ### Patch Changes
53
-
54
- - e5341cd: Documentation. Every package README now spells out both brands end to end instead
55
- of showing one snippet with an "or" comment: which preset stylesheet to import,
56
- which `.preset-*` class goes on `<html>` to select the theme at runtime,
57
- `data-theme` for light/dark, and which font package the project needs (Leroy
58
- Merlin → `@ptlm-azulejo/fonts-leroy-merlin`, Adeo → `@ptlm-azulejo/fonts-adeo`).
59
-
60
- No component behaviour, prop or token changed. The patch bump exists because npm
61
- ships `README.md` inside the tarball and renders it as the package page, so the
62
- corrected instructions only reach consumers on a release.
63
-
64
- ## 1.2.0
65
-
66
- ### Minor Changes
67
-
68
- - eb0b0f8: Make components follow the brand typeface, add the medium (500) font weight, and
69
- expose stable `data-testid` hooks.
70
-
71
- - Each preset now names its brand's typeface in `--font-family`
72
- (`presets/leroy-merlin.css` → LeroyMerlin, `presets/adeo.css` → Roboto), with
73
- `Arial, sans-serif` as the fallback stack.
74
- - Components apply that typeface on their root, so they follow the active brand
75
- instead of inheriting the host page's font. Opt out per component by setting
76
- `--font-family: inherit` on it.
77
- - `base.css` adds `--font-weight-medium: 500`, alongside the existing regular
78
- (400), semi-bold (600) and bold (700) weights.
79
- - Every component now exposes `data-testid` on its root and on meaningful
80
- sub-parts (`button` / `button-spinner`, `loader` / `loader-text`,
81
- `datepicker` / `datepicker-clear`, `segmented-control` /
82
- `segmented-control-segment`), so tests can target them without depending on
83
- CSS class names.
84
-
85
- As with upstream Mozaic, the presets **name** the typeface but ship no
86
- `@font-face` and no font binaries — loading the files stays the app's job, so you
87
- keep control of hosting, subsetting and preload. Until you load them the fallback
88
- stack renders and nothing breaks. Install the font package matching your brand
89
- alongside the preset:
90
-
91
- ```bash
92
- # Leroy Merlin
93
- yarn add @ptlm-azulejo/themes @ptlm-azulejo/fonts-leroy-merlin
94
- # Adeo
95
- yarn add @ptlm-azulejo/themes @ptlm-azulejo/fonts-adeo
96
- ```
97
-
98
- See the Fonts section of `packages/themes/README.md` for the full recipe.
99
-
100
- ## 1.1.0
101
-
102
- ### Minor Changes
103
-
104
- - 53000f7: Add Mozaic-aligned multi-brand theming support.
105
-
106
- - New `@ptlm-azulejo/themes` package with structural/status tokens in `base.css`
107
- and brand presets selected by a root class (`presets/leroy-merlin.css`,
108
- `presets/adeo.css`), via `.preset-lm` / `.preset-adeo` and `data-theme` for
109
- light/dark.
110
- - `AzButton` now consumes theme tokens through utilities mapped in
111
- `@theme inline`, working across both brands and in light/dark.
112
-
113
- **BREAKING:** components no longer bake brand colors. The consumer must now
114
- import `@ptlm-azulejo/themes/base.css` + a preset and apply the
115
- `.preset-lm`/`.preset-adeo` class (and optional `data-theme="dark"`) on the root
116
- element; otherwise components render uncolored. See the migration notes in
117
- `packages/themes/README.md`.