Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sdkit/typography

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sdkit/typography - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

8

CHANGELOG.md

@@ -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 @@

58

dist/Text.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc