@ptlm-azulejo/button 2.0.0-alpha.51 → 2.0.0-alpha.53

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/README.md CHANGED
@@ -31,12 +31,23 @@ import '@ptlm-azulejo/button/style.css'
31
31
 
32
32
  The button also sets its own `font-family` from the preset's `--font-family`, so
33
33
  its label follows the active brand (LeroyMerlin / Roboto) rather than inheriting
34
- the page font. The preset only *names* the typeface [loading the font files is
35
- your app's job](../themes/README.md#fonts). Until then the fallback stack renders.
36
- To hand the button back to your page's font:
34
+ the page font. The preset only *names* the typeface, so you must also install the
35
+ matching font package without it `font-sans` falls back to a generic sans-serif:
36
+
37
+ ```bash
38
+ yarn add @ptlm-azulejo/fonts-leroy-merlin # or @ptlm-azulejo/fonts-adeo for .preset-adeo
39
+ ```
40
+
41
+ ```js
42
+ import '@ptlm-azulejo/fonts-leroy-merlin' // or '@ptlm-azulejo/fonts-adeo'
43
+ ```
44
+
45
+ [Loading the font files is your app's job](../themes/README.md#fonts), as with
46
+ upstream Mozaic; until then the fallback stack renders. To hand the button back to
47
+ your page's font:
37
48
 
38
49
  ```css
39
- .preset-lm .btn { --font-family: inherit; }
50
+ .preset-lm .btn { font-family: inherit; }
40
51
  ```
41
52
 
42
53
  ## Props
@@ -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,CAAA;AACrD,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CA0H7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,K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
1
  {
2
2
  "name": "@ptlm-azulejo/button",
3
- "version": "2.0.0-alpha.51",
3
+ "version": "2.0.0-alpha.53",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",