@ptlm-azulejo/button 2.1.4-alpha.284 → 2.1.4

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 -159
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptlm-azulejo/button",
3
- "version": "2.1.4-alpha.284",
3
+ "version": "2.1.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
package/CHANGELOG.md DELETED
@@ -1,159 +0,0 @@
1
- # Change Log
2
-
3
- ## 2.1.4
4
-
5
- ### Patch Changes
6
-
7
- - 9b1ef57: Declare the MIT license in each package's `package.json` (matching the repo `LICENSE.md`).
8
-
9
- ## 2.1.3
10
-
11
- ### Patch Changes
12
-
13
- - 86fa96b: Fix `AzButton` with `appearance="inverse"` and `outlined` so text and border use inverse tokens (`--color-text-primary-inverse`, `--color-border-inverse`) instead of Standard blue-grey — the intended style for action buttons on dark inverse surfaces such as `AzToaster`.
14
- - 751e81c: Align `AzButton` Standard, ghost, and outlined colors with Mozaic’s blue-grey tokens (`--color-blue-grey-600` / `800`) from the themes presets, instead of the brand green accent fill.
15
- - 06a62d2: Keep publishing the stylesheet as `./style.css`. Vite 6 stopped hardcoding that name in library mode and started deriving it from the entry name, which would have moved the file to `index.css` and broken the documented import path. The entry points and type definitions are unchanged.
16
- - 19ed560: Rebuild on Vite 8, which bundles with Rolldown and minifies CSS with Lightning CSS. The ESM, CJS and type entry points are unchanged, and `vue` stays external in both the ESM build and the UMD global. The published CSS is equivalent but slightly larger, because Lightning CSS expands shorthands to match the configured build target.
17
-
18
- ## 2.1.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
- ## 2.1.1
35
-
36
- ### Patch Changes
37
-
38
- - e5341cd: Documentation. Every package README now spells out both brands end to end instead
39
- of showing one snippet with an "or" comment: which preset stylesheet to import,
40
- which `.preset-*` class goes on `<html>` to select the theme at runtime,
41
- `data-theme` for light/dark, and which font package the project needs (Leroy
42
- Merlin → `@ptlm-azulejo/fonts-leroy-merlin`, Adeo → `@ptlm-azulejo/fonts-adeo`).
43
-
44
- No component behaviour, prop or token changed. The patch bump exists because npm
45
- ships `README.md` inside the tarball and renders it as the package page, so the
46
- corrected instructions only reach consumers on a release.
47
-
48
- ## 2.1.0
49
-
50
- ### Minor Changes
51
-
52
- - eb0b0f8: Make components follow the brand typeface, add the medium (500) font weight, and
53
- expose stable `data-testid` hooks.
54
-
55
- - Each preset now names its brand's typeface in `--font-family`
56
- (`presets/leroy-merlin.css` → LeroyMerlin, `presets/adeo.css` → Roboto), with
57
- `Arial, sans-serif` as the fallback stack.
58
- - Components apply that typeface on their root, so they follow the active brand
59
- instead of inheriting the host page's font. Opt out per component by setting
60
- `--font-family: inherit` on it.
61
- - `base.css` adds `--font-weight-medium: 500`, alongside the existing regular
62
- (400), semi-bold (600) and bold (700) weights.
63
- - Every component now exposes `data-testid` on its root and on meaningful
64
- sub-parts (`button` / `button-spinner`, `loader` / `loader-text`,
65
- `datepicker` / `datepicker-clear`, `segmented-control` /
66
- `segmented-control-segment`), so tests can target them without depending on
67
- CSS class names.
68
-
69
- As with upstream Mozaic, the presets **name** the typeface but ship no
70
- `@font-face` and no font binaries — loading the files stays the app's job, so you
71
- keep control of hosting, subsetting and preload. Until you load them the fallback
72
- stack renders and nothing breaks. Install the font package matching your brand
73
- alongside the preset:
74
-
75
- ```bash
76
- # Leroy Merlin
77
- yarn add @ptlm-azulejo/themes @ptlm-azulejo/fonts-leroy-merlin
78
- # Adeo
79
- yarn add @ptlm-azulejo/themes @ptlm-azulejo/fonts-adeo
80
- ```
81
-
82
- See the Fonts section of `packages/themes/README.md` for the full recipe.
83
-
84
- ## 2.0.0
85
-
86
- ### Major Changes
87
-
88
- - 53000f7: Add Mozaic-aligned multi-brand theming support.
89
-
90
- - New `@ptlm-azulejo/themes` package with structural/status tokens in `base.css`
91
- and brand presets selected by a root class (`presets/leroy-merlin.css`,
92
- `presets/adeo.css`), via `.preset-lm` / `.preset-adeo` and `data-theme` for
93
- light/dark.
94
- - `AzButton` now consumes theme tokens through utilities mapped in
95
- `@theme inline`, working across both brands and in light/dark.
96
-
97
- **BREAKING:** components no longer bake brand colors. The consumer must now
98
- import `@ptlm-azulejo/themes/base.css` + a preset and apply the
99
- `.preset-lm`/`.preset-adeo` class (and optional `data-theme="dark"`) on the root
100
- element; otherwise components render uncolored. See the migration notes in
101
- `packages/themes/README.md`.
102
-
103
- All notable changes to this project will be documented in this file.
104
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
105
-
106
- ## [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)
107
-
108
- **Note:** Version bump only for package @ptlm-azulejo/button
109
-
110
- ## [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)
111
-
112
- **Note:** Version bump only for package @ptlm-azulejo/button
113
-
114
- # 1.3.0 (2026-03-12)
115
-
116
- ### Bug Fixes
117
-
118
- - [US-064] Button - align appearance prop and classObject with mozaic-vue ([152da0b](https://github.com/aplemes/library-components/commit/152da0bfcb05daec46a21cc35e361809d8d0d4fd))
119
- - revert Button default slot text to 'Button Label' ([2cbf624](https://github.com/aplemes/library-components/commit/2cbf624bf1a1f1ea79f7e294c4912a9c7d6247d5))
120
-
121
- ### Features
122
-
123
- - [US-002] - Align Button with mozaic-vue reference ([def8c29](https://github.com/aplemes/library-components/commit/def8c291c8eb9245181f667bcb40a0bacce2a63a))
124
- - [US-002] - Pacote de design tokens (@leroy-merlin-pt/tokens) ([2793d72](https://github.com/aplemes/library-components/commit/2793d72c8205c84ee428699b9d0679a6b791babb))
125
- - [US-003] - Migrar componente Button do Mozaic (@leroy-merlin-pt/button) ([e5fb1c5](https://github.com/aplemes/library-components/commit/e5fb1c5a66560920b8c64014e4e08ca147beb794))
126
- - [US-004] - Componente Input (@leroy-merlin-pt/input) ([a2a7894](https://github.com/aplemes/library-components/commit/a2a7894b057cab6b350a0b7e45cef7eea86e7a24))
127
- - add full documentation, unified Storybook and component generator ([02ec178](https://github.com/aplemes/library-components/commit/02ec178e5c5ce4f1cf75efdcbabe33d7fd9d20f9))
128
- - add README docs to all packages and align Button, IconButton, Input components ([a4df103](https://github.com/aplemes/library-components/commit/a4df103eef20c4c76f532125ae287b93223e1be4))
129
- - migrate org to [@ptlm-azulejo](https://github.com/azulejo-kit) and add Az component prefix ([c31ba38](https://github.com/aplemes/library-components/commit/c31ba38c12562e2f662b07444eca0fba1a4fe8bc))
130
- - test new release flow on Button ([b6014c0](https://github.com/aplemes/library-components/commit/b6014c028b3175a41d2ec5a737fd71b18138643b))
131
- - update Button default label and default color ([16ff665](https://github.com/aplemes/library-components/commit/16ff66512a078307efd656f21da9d913c40ff87a))
132
-
133
- # [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)
134
-
135
- ### Features
136
-
137
- - update Button default label and default color ([16ff665](https://github.com/aplemes/library-components/commit/16ff66512a078307efd656f21da9d913c40ff87a))
138
-
139
- ## [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)
140
-
141
- **Note:** Version bump only for package @leroy-merlin-pt/button
142
-
143
- ## [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)
144
-
145
- ### Bug Fixes
146
-
147
- - revert Button default slot text to 'Button Label' ([2cbf624](https://github.com/aplemes/library-components/commit/2cbf624bf1a1f1ea79f7e294c4912a9c7d6247d5))
148
-
149
- # [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)
150
-
151
- ### Features
152
-
153
- - test new release flow on Button ([b6014c0](https://github.com/aplemes/library-components/commit/b6014c028b3175a41d2ec5a737fd71b18138643b))
154
-
155
- ## [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)
156
-
157
- ### Bug Fixes
158
-
159
- - [US-064] Button - align appearance prop and classObject with mozaic-vue ([152da0b](https://github.com/aplemes/library-components/commit/152da0bfcb05daec46a21cc35e361809d8d0d4fd))