@sproutsocial/seeds-typography
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -57,3 +57,2 @@ const fs = require('fs'); | ||
return { | ||
value: prop.value.value || prop.value, | ||
app: upperFirst(prop.name), | ||
@@ -64,6 +63,15 @@ sass: | ||
: sassVar(prop.package, prop.name), | ||
javascript: `{ style: ${javascriptConst(prop.package, prop.name)} }`, | ||
lineHeightProportional: prop.value.rules && prop.value.rules['line-height'], | ||
lineHeightPx: prop.value.rules && prop.value.rules['line-height'] * parseInt(prop.value.value, 10), | ||
category: prop.category | ||
javascript: | ||
prop.category === 'font size' | ||
? `{ style: ${javascriptConst(prop.package, prop.name)} }` | ||
: javascriptConst(prop.package, prop.name), | ||
category: prop.category, | ||
value: | ||
typeof prop.value == 'object' | ||
? { | ||
fontSize: prop.value.value, | ||
lineHeightProportional: prop.value.rules && prop.value.rules['line-height'], | ||
lineHeightPx: prop.value.rules && prop.value.rules['line-height'] * parseInt(prop.value.value, 10) | ||
} | ||
: prop.value | ||
}; | ||
@@ -70,0 +78,0 @@ }); |
{ | ||
"name": "@sproutsocial/seeds-typography", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"stability": "stable", | ||
@@ -16,4 +16,4 @@ "description": "SEEDS Design System Typography Styles", | ||
"devDependencies": { | ||
"@sproutsocial/seeds-utils": "^0.1.7" | ||
"@sproutsocial/seeds-utils": "^0.1.8" | ||
} | ||
} |
## Changelog | ||
### v0.4.2 | ||
- **Fixed** Fixed documentation of Javascript tokens. Were showing objects for all values, but only type scale values are objects; the rest of the values are simple constants. | ||
### v0.4.1 | ||
@@ -4,0 +7,0 @@ |
@@ -16,2 +16,3 @@ ## Examples | ||
{% include_relative _generated/typography.html %} | ||
@@ -40,6 +41,1 @@ ### Typefaces | ||
{% include_relative example-size.html %} | ||
<!-- Scripts needed to render examples --> | ||
{% include_relative example-scripts.html %} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132
16582
14