@ptlm-azulejo/segmented-control 0.1.2-alpha.85 → 0.1.2

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 -78
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptlm-azulejo/segmented-control",
3
- "version": "0.1.2-alpha.85",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",
package/CHANGELOG.md DELETED
@@ -1,78 +0,0 @@
1
- # Change Log
2
-
3
- ## 0.1.2
4
-
5
- ### Patch Changes
6
-
7
- - dda8cdb: Add a scoped UA preflight to themes (bundled with every preset) so Azulejo
8
- controls don't depend on the host running Tailwind Preflight. Drop the
9
- per-segment button-reset utilities from SegmentedControl. Re-export
10
- `SegmentedControlItem`, `SegmentedControlSize`, and `SegmentedControlUi`
11
- from the package entry so consumers can import the types again.
12
-
13
- ## 0.1.1
14
-
15
- ### Patch Changes
16
-
17
- - e5341cd: Documentation. Every package README now spells out both brands end to end instead
18
- of showing one snippet with an "or" comment: which preset stylesheet to import,
19
- which `.preset-*` class goes on `<html>` to select the theme at runtime,
20
- `data-theme` for light/dark, and which font package the project needs (Leroy
21
- Merlin → `@ptlm-azulejo/fonts-leroy-merlin`, Adeo → `@ptlm-azulejo/fonts-adeo`).
22
-
23
- No component behaviour, prop or token changed. The patch bump exists because npm
24
- ships `README.md` inside the tarball and renders it as the package page, so the
25
- corrected instructions only reach consumers on a release.
26
-
27
- ## 0.1.0
28
-
29
- ### Minor Changes
30
-
31
- - eb0b0f8: Make components follow the brand typeface, add the medium (500) font weight, and
32
- expose stable `data-testid` hooks.
33
-
34
- - Each preset now names its brand's typeface in `--font-family`
35
- (`presets/leroy-merlin.css` → LeroyMerlin, `presets/adeo.css` → Roboto), with
36
- `Arial, sans-serif` as the fallback stack.
37
- - Components apply that typeface on their root, so they follow the active brand
38
- instead of inheriting the host page's font. Opt out per component by setting
39
- `--font-family: inherit` on it.
40
- - `base.css` adds `--font-weight-medium: 500`, alongside the existing regular
41
- (400), semi-bold (600) and bold (700) weights.
42
- - Every component now exposes `data-testid` on its root and on meaningful
43
- sub-parts (`button` / `button-spinner`, `loader` / `loader-text`,
44
- `datepicker` / `datepicker-clear`, `segmented-control` /
45
- `segmented-control-segment`), so tests can target them without depending on
46
- CSS class names.
47
-
48
- As with upstream Mozaic, the presets **name** the typeface but ship no
49
- `@font-face` and no font binaries — loading the files stays the app's job, so you
50
- keep control of hosting, subsetting and preload. Until you load them the fallback
51
- stack renders and nothing breaks. Install the font package matching your brand
52
- alongside the preset:
53
-
54
- ```bash
55
- # Leroy Merlin
56
- yarn add @ptlm-azulejo/themes @ptlm-azulejo/fonts-leroy-merlin
57
- # Adeo
58
- yarn add @ptlm-azulejo/themes @ptlm-azulejo/fonts-adeo
59
- ```
60
-
61
- See the Fonts section of `packages/themes/README.md` for the full recipe.
62
-
63
- All notable changes to this project will be documented in this file.
64
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
65
-
66
- ## [Unreleased]
67
-
68
- ### Features
69
-
70
- - Add `AzSegmentedControl` — ADS2 segmented control (toggle group) with `v-model`, `items`, `size` (`s` / `m`), `fullWidth`, per-segment `disabled`, typed `:ui` overrides, keyboard navigation (arrows, Home/End), and motion-v `layout` selection indicator (bundled — no extra install).
71
-
72
- ### Bug Fixes
73
-
74
- - Remove redundant type and pattern comments; keep prop JSDoc for Storybook.
75
- - Drop Nuxt UI reference from Storybook `ui` argType description.
76
- - Fix keyboard roving tabindex when the first segment or current selection is disabled.
77
- - Move focus to the newly selected segment after arrow/Home/End navigation.
78
- - Guard empty `items` (no invalid grid template, hide sliding indicator).