@formepdf/tailwind 0.7.11 → 0.8.0

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/dist/parsers.js +2 -2
  2. package/package.json +1 -1
package/dist/parsers.js CHANGED
@@ -76,7 +76,7 @@ function parseTypography(cls) {
76
76
  const rest = cls.substring(5);
77
77
  const def = textSizeDefaults[rest];
78
78
  if (def)
79
- return { fontSize: def.fontSize, lineHeight: def.lineHeight };
79
+ return { fontSize: def.fontSize, lineHeight: def.lineHeight / def.fontSize };
80
80
  // text-left/center/right/justify
81
81
  if (rest === "left" || rest === "center" || rest === "right" || rest === "justify") {
82
82
  return { textAlign: rest };
@@ -101,7 +101,7 @@ function parseTypography(cls) {
101
101
  return { lineHeight: namedLeading[rest] };
102
102
  const n = parseFloat(rest);
103
103
  if (!isNaN(n))
104
- return { lineHeight: n * 4 };
104
+ return { lineHeight: n * 0.25 };
105
105
  return null;
106
106
  }
107
107
  // tracking-{value}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formepdf/tailwind",
3
- "version": "0.7.11",
3
+ "version": "0.8.0",
4
4
  "description": "Tailwind CSS class support for Forme PDF templates",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",