@ptlm-azulejo/loader 1.1.1 → 1.1.2-alpha.121

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,70 @@
1
+ # Change Log
2
+
3
+ ## 1.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fbbee70: Formatting-only release. The repository adopted Prettier as its single
8
+ formatting authority, and every shipped file was reformatted in one pass: the
9
+ theme and font stylesheets (published verbatim, so their bytes change), each
10
+ package's README, and the component sources behind `dist/`.
11
+
12
+ No public API, prop, slot, event, CSS variable, class name or rendered output
13
+ changed. Upgrading requires nothing, and skipping this version costs nothing.
14
+
15
+ One internal cleanup rides along in `AzSegmentedControl`: a dead `null`
16
+ initializer and the unreachable branch guarding it were removed from the
17
+ keyboard handler. Arrow / Home / End navigation behaves exactly as before.
18
+
19
+ ## 1.1.1
20
+
21
+ ### Patch Changes
22
+
23
+ - e5341cd: Documentation. Every package README now spells out both brands end to end instead
24
+ of showing one snippet with an "or" comment: which preset stylesheet to import,
25
+ which `.preset-*` class goes on `<html>` to select the theme at runtime,
26
+ `data-theme` for light/dark, and which font package the project needs (Leroy
27
+ Merlin → `@ptlm-azulejo/fonts-leroy-merlin`, Adeo → `@ptlm-azulejo/fonts-adeo`).
28
+
29
+ No component behaviour, prop or token changed. The patch bump exists because npm
30
+ ships `README.md` inside the tarball and renders it as the package page, so the
31
+ corrected instructions only reach consumers on a release.
32
+
33
+ ## 1.1.0
34
+
35
+ ### Minor Changes
36
+
37
+ - eb0b0f8: Make components follow the brand typeface, add the medium (500) font weight, and
38
+ expose stable `data-testid` hooks.
39
+
40
+ - Each preset now names its brand's typeface in `--font-family`
41
+ (`presets/leroy-merlin.css` → LeroyMerlin, `presets/adeo.css` → Roboto), with
42
+ `Arial, sans-serif` as the fallback stack.
43
+ - Components apply that typeface on their root, so they follow the active brand
44
+ instead of inheriting the host page's font. Opt out per component by setting
45
+ `--font-family: inherit` on it.
46
+ - `base.css` adds `--font-weight-medium: 500`, alongside the existing regular
47
+ (400), semi-bold (600) and bold (700) weights.
48
+ - Every component now exposes `data-testid` on its root and on meaningful
49
+ sub-parts (`button` / `button-spinner`, `loader` / `loader-text`,
50
+ `datepicker` / `datepicker-clear`, `segmented-control` /
51
+ `segmented-control-segment`), so tests can target them without depending on
52
+ CSS class names.
53
+
54
+ As with upstream Mozaic, the presets **name** the typeface but ship no
55
+ `@font-face` and no font binaries — loading the files stays the app's job, so you
56
+ keep control of hosting, subsetting and preload. Until you load them the fallback
57
+ stack renders and nothing breaks. Install the font package matching your brand
58
+ alongside the preset:
59
+
60
+ ```bash
61
+ # Leroy Merlin
62
+ yarn add @ptlm-azulejo/themes @ptlm-azulejo/fonts-leroy-merlin
63
+ # Adeo
64
+ yarn add @ptlm-azulejo/themes @ptlm-azulejo/fonts-adeo
65
+ ```
66
+
67
+ See the Fonts section of `packages/themes/README.md` for the full recipe.
68
+
69
+ All notable changes to this project will be documented in this file.
70
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
package/README.md CHANGED
@@ -30,10 +30,10 @@ CSS variables at runtime. Those tokens come from `@ptlm-azulejo/themes`, and **t
30
30
  brand is selected by a class on your app's `<html>` element**, so switching brand
31
31
  never touches component code.
32
32
 
33
- | Project | Preset stylesheet | Root class | Typeface | Font package |
34
- | --- | --- | --- | --- | --- |
35
- | Leroy Merlin | `@ptlm-azulejo/themes/presets/leroy-merlin.css` | `preset-lm` | LeroyMerlinSans | `@ptlm-azulejo/fonts-leroy-merlin` |
36
- | Adeo | `@ptlm-azulejo/themes/presets/adeo.css` | `preset-adeo` | Roboto | `@ptlm-azulejo/fonts-adeo` |
33
+ | Project | Preset stylesheet | Root class | Typeface | Font package |
34
+ | ------------ | ----------------------------------------------- | ------------- | --------------- | ---------------------------------- |
35
+ | Leroy Merlin | `@ptlm-azulejo/themes/presets/leroy-merlin.css` | `preset-lm` | LeroyMerlinSans | `@ptlm-azulejo/fonts-leroy-merlin` |
36
+ | Adeo | `@ptlm-azulejo/themes/presets/adeo.css` | `preset-adeo` | Roboto | `@ptlm-azulejo/fonts-adeo` |
37
37
 
38
38
  **Leroy Merlin projects**
39
39
 
@@ -44,7 +44,7 @@ import '@ptlm-azulejo/loader/style.css'
44
44
  ```
45
45
 
46
46
  ```html
47
- <html lang="pt" class="preset-lm">
47
+ <html lang="pt" class="preset-lm"></html>
48
48
  ```
49
49
 
50
50
  **Adeo projects**
@@ -56,7 +56,7 @@ import '@ptlm-azulejo/loader/style.css'
56
56
  ```
57
57
 
58
58
  ```html
59
- <html lang="pt" class="preset-adeo">
59
+ <html lang="pt" class="preset-adeo"></html>
60
60
  ```
61
61
 
62
62
  > The preset class is what resolves the brand at runtime. Without it — even with
@@ -70,12 +70,12 @@ Add `data-theme` alongside the brand class to pin the color scheme. Leave it off
70
70
  and the preset follows the OS `prefers-color-scheme`:
71
71
 
72
72
  ```html
73
- <html lang="pt" class="preset-lm" data-theme="dark">
73
+ <html lang="pt" class="preset-lm" data-theme="dark"></html>
74
74
  ```
75
75
 
76
76
  ### Why the font package is separate
77
77
 
78
- The preset only *names* its typeface in `--font-family` and ships no font files.
78
+ The preset only _names_ its typeface in `--font-family` and ships no font files.
79
79
  [Loading them is your app's job](../themes/README.md#fonts), as with upstream
80
80
  Mozaic, so you keep control of hosting, subsetting and preload. Without the
81
81
  matching font package, `font-sans` falls back to a generic sans-serif. A
@@ -84,11 +84,11 @@ only the active brand's file is ever downloaded.
84
84
 
85
85
  ## Props
86
86
 
87
- | Name | Type | Default | Description |
88
- | --- | --- | --- | --- |
89
- | `appearance` | `"standard"` \| `"accent"` \| `"inverse"` | `"standard"` | Specifies the visual appearance of the loader. |
90
- | `size` | `"xs"` \| `"s"` \| `"m"` \| `"l"` | `"m"` | Defines the size of the loader. |
91
- | `text` | `string` | — | Text to display alongside the loader when using the loader inside an `Overlay`. |
87
+ | Name | Type | Default | Description |
88
+ | ------------ | ----------------------------------------- | ------------ | ------------------------------------------------------------------------------- |
89
+ | `appearance` | `"standard"` \| `"accent"` \| `"inverse"` | `"standard"` | Specifies the visual appearance of the loader. |
90
+ | `size` | `"xs"` \| `"s"` \| `"m"` \| `"l"` | `"m"` | Defines the size of the loader. |
91
+ | `text` | `string` | — | Text to display alongside the loader when using the loader inside an `Overlay`. |
92
92
 
93
93
  ## Basic Usage
94
94
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../src/index.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAiI7B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,QAAQ,EAAE,KAAU,CAAC;AAElC,eAAO,MAAM,MAAM,EAAE,KAEpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAyBnB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC"}
1
+ {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../src/index.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CA+H7B,CAAA;AACD,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,QAAQ,EAAE,KAAU,CAAA;AAEjC,eAAO,MAAM,MAAM,EAAE,KAEpB,CAAA;AAED,eAA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,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptlm-azulejo/loader",
3
- "version": "1.1.1",
3
+ "version": "1.1.2-alpha.121",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",