@sdkit/typography
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.3.2](http://bitbucket.org/mysuperdispatch/sdkit/compare/@sdkit/typography@1.3.1...@sdkit/typography@1.3.2) (2019-08-19) | ||
**Note:** Version bump only for package @sdkit/typography | ||
## [1.3.1](http://bitbucket.org/mysuperdispatch/sdkit/compare/@sdkit/typography@1.3.0...@sdkit/typography@1.3.1) (2019-08-07) | ||
@@ -8,0 +16,0 @@ |
@@ -12,2 +12,24 @@ "use strict"; | ||
function _templateObject2() { | ||
const data = _taggedTemplateLiteral(["\n ", ";\n"]); | ||
_templateObject2 = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _templateObject() { | ||
const data = _taggedTemplateLiteral(["\n color: ", ";\n /* Make type rendering look crisper */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n /* Disable auto-enlargement of small text in Safari */\n text-size-adjust: 100%;\n /* Enable kerning and optional ligatures */\n text-rendering: optimizeLegibility;\n\n ", ";\n"]); | ||
_templateObject = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } | ||
let TextStyles; | ||
@@ -85,15 +107,5 @@ exports.TextStyles = TextStyles; | ||
}; | ||
const TextMixin = _styledComponents.css` | ||
color: ${({ | ||
const TextMixin = (0, _styledComponents.css)(_templateObject(), ({ | ||
color | ||
}) => color}; | ||
/* Make type rendering look crisper */ | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
/* Disable auto-enlargement of small text in Safari */ | ||
text-size-adjust: 100%; | ||
/* Enable kerning and optional ligatures */ | ||
text-rendering: optimizeLegibility; | ||
${({ | ||
}) => color, ({ | ||
textType = TextStyles.Body | ||
@@ -107,21 +119,9 @@ }) => { | ||
} = styleValues[textType]; | ||
return ` | ||
font-family: ${fontFamily}, -apple-system, BlinkMacSystemFont, 'San Francisco', | ||
'Roboto', 'Segoe UI', 'Helvetica Neue', 'Ubuntu', 'Arial', sans-serif; | ||
font-weight: ${fontWeight}; | ||
return "\n font-family: ".concat(fontFamily, ", -apple-system, BlinkMacSystemFont, 'San Francisco',\n 'Roboto', 'Segoe UI', 'Helvetica Neue', 'Ubuntu', 'Arial', sans-serif;\n font-weight: ").concat(fontWeight, ";\n\n ").concat(mediaQueries.map((mediaQuery, idx) => "\n ".concat(mediaQuery, " {\n font-size: ").concat(fontSize[idx], ";\n line-height: ").concat(lineHeight[idx], ";\n }\n ")).join('\n'), ";\n "); | ||
}); | ||
exports.TextMixin = TextMixin; | ||
${mediaQueries.map((mediaQuery, idx) => ` | ||
${mediaQuery} { | ||
font-size: ${fontSize[idx]}; | ||
line-height: ${lineHeight[idx]}; | ||
} | ||
`).join('\n')}; | ||
`; | ||
}}; | ||
`; | ||
exports.TextMixin = TextMixin; | ||
const Text = _styledComponents.default.span` | ||
${TextMixin}; | ||
`; | ||
const Text = _styledComponents.default.span(_templateObject2(), TextMixin); | ||
exports.Text = Text; | ||
//# sourceMappingURL=Text.js.map |
{ | ||
"name": "@sdkit/typography", | ||
"version": "1.3.1", | ||
"description": "Typography component", | ||
"license": "MIT", | ||
"version": "1.3.2", | ||
"main": "dist/index.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"compile": "tsc && babel src -d dist -s --ignore spec.* --extensions .ts,.tsx" | ||
"prebuild": "rimraf dist", | ||
"build": "yarn build:bundle && yarn build:types", | ||
"build:bundle": "babel src -d dist -s --ignore spec.* --extensions .ts,.tsx", | ||
"build:types": "tsc --declaration --emitDeclarationOnly" | ||
}, | ||
"typings": "dist/index.d.ts", | ||
"peerDependencies": { | ||
"styled-components": ">=4.3.1" | ||
}, | ||
"typings": "dist/index.d.ts", | ||
"gitHead": "69542d4f14d2c255bc5d20a9ef3e3851015cb7ee" | ||
"gitHead": "eb37d98e05c19ffa0890db7948e4828996126e32" | ||
} |
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
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
14411
0
148