@ptlm-azulejo/button 2.1.1-alpha.84 → 2.1.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 -128
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptlm-azulejo/button",
3
- "version": "2.1.1-alpha.84",
3
+ "version": "2.1.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",
package/CHANGELOG.md DELETED
@@ -1,128 +0,0 @@
1
- # Change Log
2
-
3
- ## 2.1.1
4
-
5
- ### Patch Changes
6
-
7
- - e5341cd: Documentation. Every package README now spells out both brands end to end instead
8
- of showing one snippet with an "or" comment: which preset stylesheet to import,
9
- which `.preset-*` class goes on `<html>` to select the theme at runtime,
10
- `data-theme` for light/dark, and which font package the project needs (Leroy
11
- Merlin → `@ptlm-azulejo/fonts-leroy-merlin`, Adeo → `@ptlm-azulejo/fonts-adeo`).
12
-
13
- No component behaviour, prop or token changed. The patch bump exists because npm
14
- ships `README.md` inside the tarball and renders it as the package page, so the
15
- corrected instructions only reach consumers on a release.
16
-
17
- ## 2.1.0
18
-
19
- ### Minor Changes
20
-
21
- - eb0b0f8: Make components follow the brand typeface, add the medium (500) font weight, and
22
- expose stable `data-testid` hooks.
23
-
24
- - Each preset now names its brand's typeface in `--font-family`
25
- (`presets/leroy-merlin.css` → LeroyMerlin, `presets/adeo.css` → Roboto), with
26
- `Arial, sans-serif` as the fallback stack.
27
- - Components apply that typeface on their root, so they follow the active brand
28
- instead of inheriting the host page's font. Opt out per component by setting
29
- `--font-family: inherit` on it.
30
- - `base.css` adds `--font-weight-medium: 500`, alongside the existing regular
31
- (400), semi-bold (600) and bold (700) weights.
32
- - Every component now exposes `data-testid` on its root and on meaningful
33
- sub-parts (`button` / `button-spinner`, `loader` / `loader-text`,
34
- `datepicker` / `datepicker-clear`, `segmented-control` /
35
- `segmented-control-segment`), so tests can target them without depending on
36
- CSS class names.
37
-
38
- As with upstream Mozaic, the presets **name** the typeface but ship no
39
- `@font-face` and no font binaries — loading the files stays the app's job, so you
40
- keep control of hosting, subsetting and preload. Until you load them the fallback
41
- stack renders and nothing breaks. Install the font package matching your brand
42
- alongside the preset:
43
-
44
- ```bash
45
- # Leroy Merlin
46
- yarn add @ptlm-azulejo/themes @ptlm-azulejo/fonts-leroy-merlin
47
- # Adeo
48
- yarn add @ptlm-azulejo/themes @ptlm-azulejo/fonts-adeo
49
- ```
50
-
51
- See the Fonts section of `packages/themes/README.md` for the full recipe.
52
-
53
- ## 2.0.0
54
-
55
- ### Major Changes
56
-
57
- - 53000f7: Add Mozaic-aligned multi-brand theming support.
58
-
59
- - New `@ptlm-azulejo/themes` package with structural/status tokens in `base.css`
60
- and brand presets selected by a root class (`presets/leroy-merlin.css`,
61
- `presets/adeo.css`), via `.preset-lm` / `.preset-adeo` and `data-theme` for
62
- light/dark.
63
- - `AzButton` now consumes theme tokens through utilities mapped in
64
- `@theme inline`, working across both brands and in light/dark.
65
-
66
- **BREAKING:** components no longer bake brand colors. The consumer must now
67
- import `@ptlm-azulejo/themes/base.css` + a preset and apply the
68
- `.preset-lm`/`.preset-adeo` class (and optional `data-theme="dark"`) on the root
69
- element; otherwise components render uncolored. See the migration notes in
70
- `packages/themes/README.md`.
71
-
72
- All notable changes to this project will be documented in this file.
73
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
74
-
75
- ## [1.3.2](https://github.com/aplemes/library-components/compare/@ptlm-azulejo/button@1.3.1...@ptlm-azulejo/button@1.3.2) (2026-03-12)
76
-
77
- **Note:** Version bump only for package @ptlm-azulejo/button
78
-
79
- ## [1.3.1](https://github.com/aplemes/library-components/compare/@ptlm-azulejo/button@1.3.0...@ptlm-azulejo/button@1.3.1) (2026-03-12)
80
-
81
- **Note:** Version bump only for package @ptlm-azulejo/button
82
-
83
- # 1.3.0 (2026-03-12)
84
-
85
- ### Bug Fixes
86
-
87
- - [US-064] Button - align appearance prop and classObject with mozaic-vue ([152da0b](https://github.com/aplemes/library-components/commit/152da0bfcb05daec46a21cc35e361809d8d0d4fd))
88
- - revert Button default slot text to 'Button Label' ([2cbf624](https://github.com/aplemes/library-components/commit/2cbf624bf1a1f1ea79f7e294c4912a9c7d6247d5))
89
-
90
- ### Features
91
-
92
- - [US-002] - Align Button with mozaic-vue reference ([def8c29](https://github.com/aplemes/library-components/commit/def8c291c8eb9245181f667bcb40a0bacce2a63a))
93
- - [US-002] - Pacote de design tokens (@leroy-merlin-pt/tokens) ([2793d72](https://github.com/aplemes/library-components/commit/2793d72c8205c84ee428699b9d0679a6b791babb))
94
- - [US-003] - Migrar componente Button do Mozaic (@leroy-merlin-pt/button) ([e5fb1c5](https://github.com/aplemes/library-components/commit/e5fb1c5a66560920b8c64014e4e08ca147beb794))
95
- - [US-004] - Componente Input (@leroy-merlin-pt/input) ([a2a7894](https://github.com/aplemes/library-components/commit/a2a7894b057cab6b350a0b7e45cef7eea86e7a24))
96
- - add full documentation, unified Storybook and component generator ([02ec178](https://github.com/aplemes/library-components/commit/02ec178e5c5ce4f1cf75efdcbabe33d7fd9d20f9))
97
- - add README docs to all packages and align Button, IconButton, Input components ([a4df103](https://github.com/aplemes/library-components/commit/a4df103eef20c4c76f532125ae287b93223e1be4))
98
- - migrate org to [@ptlm-azulejo](https://github.com/azulejo-kit) and add Az component prefix ([c31ba38](https://github.com/aplemes/library-components/commit/c31ba38c12562e2f662b07444eca0fba1a4fe8bc))
99
- - test new release flow on Button ([b6014c0](https://github.com/aplemes/library-components/commit/b6014c028b3175a41d2ec5a737fd71b18138643b))
100
- - update Button default label and default color ([16ff665](https://github.com/aplemes/library-components/commit/16ff66512a078307efd656f21da9d913c40ff87a))
101
-
102
- # [1.2.0](https://github.com/aplemes/library-components/compare/@leroy-merlin-pt/button@1.1.3...@leroy-merlin-pt/button@1.2.0) (2026-03-12)
103
-
104
- ### Features
105
-
106
- - update Button default label and default color ([16ff665](https://github.com/aplemes/library-components/commit/16ff66512a078307efd656f21da9d913c40ff87a))
107
-
108
- ## [1.1.2](https://github.com/aplemes/library-components/compare/@leroy-merlin-pt/button@1.1.1...@leroy-merlin-pt/button@1.1.2) (2026-03-11)
109
-
110
- **Note:** Version bump only for package @leroy-merlin-pt/button
111
-
112
- ## [1.1.1](https://github.com/aplemes/library-components/compare/@leroy-merlin-pt/button@1.1.0...@leroy-merlin-pt/button@1.1.1) (2026-03-11)
113
-
114
- ### Bug Fixes
115
-
116
- - revert Button default slot text to 'Button Label' ([2cbf624](https://github.com/aplemes/library-components/commit/2cbf624bf1a1f1ea79f7e294c4912a9c7d6247d5))
117
-
118
- # [1.1.0](https://github.com/aplemes/library-components/compare/@leroy-merlin-pt/button@1.0.3...@leroy-merlin-pt/button@1.1.0) (2026-03-11)
119
-
120
- ### Features
121
-
122
- - test new release flow on Button ([b6014c0](https://github.com/aplemes/library-components/commit/b6014c028b3175a41d2ec5a737fd71b18138643b))
123
-
124
- ## [1.0.3](https://github.com/aplemes/library-components/compare/@leroy-merlin-pt/button@1.0.2...@leroy-merlin-pt/button@1.0.3) (2026-03-11)
125
-
126
- ### Bug Fixes
127
-
128
- - [US-064] Button - align appearance prop and classObject with mozaic-vue ([152da0b](https://github.com/aplemes/library-components/commit/152da0bfcb05daec46a21cc35e361809d8d0d4fd))