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