@khanacademy/wonder-blocks-typography
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -60,16 +60,31 @@ import { StyleSheet } from 'aphrodite'; | ||
function _objectSpread(target) { | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
if (enumerableOnly) symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
keys.push.apply(keys, symbols); | ||
} | ||
return keys; | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
var ownKeys = Object.keys(source); | ||
if (typeof Object.getOwnPropertySymbols === 'function') { | ||
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(source, sym).enumerable; | ||
})); | ||
if (i % 2) { | ||
ownKeys(source, true).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(source).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
ownKeys.forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} | ||
@@ -163,3 +178,3 @@ | ||
var _objectSpread2, _objectSpread3, _objectSpread4; | ||
var _objectSpread2$1, _objectSpread3, _objectSpread4; | ||
var Regular = 400; | ||
@@ -178,13 +193,13 @@ var Bold = 700; | ||
var styles = StyleSheet.create({ | ||
Title: _objectSpread({}, common, (_objectSpread2 = { | ||
Title: _objectSpread2({}, common, (_objectSpread2$1 = { | ||
fontFamily: SansFamily, | ||
fontWeight: Black | ||
}, _defineProperty(_objectSpread2, desktop, { | ||
}, _defineProperty(_objectSpread2$1, desktop, { | ||
fontSize: 36, | ||
lineHeight: "40px" | ||
}), _defineProperty(_objectSpread2, mobile, { | ||
}), _defineProperty(_objectSpread2$1, mobile, { | ||
fontSize: 28, | ||
lineHeight: "32px" | ||
}), _objectSpread2)), | ||
Tagline: _objectSpread({}, common, { | ||
}), _objectSpread2$1)), | ||
Tagline: _objectSpread2({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -195,3 +210,3 @@ fontWeight: Regular, | ||
}), | ||
HeadingLarge: _objectSpread({}, common, (_objectSpread3 = { | ||
HeadingLarge: _objectSpread2({}, common, (_objectSpread3 = { | ||
fontFamily: SansFamily, | ||
@@ -206,3 +221,3 @@ fontWeight: Bold | ||
}), _objectSpread3)), | ||
HeadingMedium: _objectSpread({}, common, (_objectSpread4 = { | ||
HeadingMedium: _objectSpread2({}, common, (_objectSpread4 = { | ||
fontFamily: SansFamily, | ||
@@ -217,3 +232,3 @@ fontWeight: Bold | ||
}), _objectSpread4)), | ||
HeadingSmall: _objectSpread({}, common, { | ||
HeadingSmall: _objectSpread2({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -224,3 +239,3 @@ fontWeight: Bold, | ||
}), | ||
HeadingXSmall: _objectSpread({}, common, { | ||
HeadingXSmall: _objectSpread2({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -233,3 +248,3 @@ fontWeight: Bold, | ||
}), | ||
BodySerifBlock: _objectSpread({}, common, { | ||
BodySerifBlock: _objectSpread2({}, common, { | ||
fontFamily: SerifFamily, | ||
@@ -240,3 +255,3 @@ fontWeight: Regular, | ||
}), | ||
BodySerif: _objectSpread({}, common, { | ||
BodySerif: _objectSpread2({}, common, { | ||
fontFamily: SerifFamily, | ||
@@ -247,3 +262,3 @@ fontWeight: Regular, | ||
}), | ||
BodyMonospace: _objectSpread({}, common, { | ||
BodyMonospace: _objectSpread2({}, common, { | ||
fontFamily: InconsolataFamily, | ||
@@ -254,3 +269,3 @@ fontWeight: Regular, | ||
}), | ||
Body: _objectSpread({}, common, { | ||
Body: _objectSpread2({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -261,3 +276,3 @@ fontWeight: Regular, | ||
}), | ||
LabelLarge: _objectSpread({}, common, { | ||
LabelLarge: _objectSpread2({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -268,3 +283,3 @@ fontWeight: Bold, | ||
}), | ||
LabelMedium: _objectSpread({}, common, { | ||
LabelMedium: _objectSpread2({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -275,3 +290,3 @@ fontWeight: Regular, | ||
}), | ||
LabelSmall: _objectSpread({}, common, { | ||
LabelSmall: _objectSpread2({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -282,3 +297,3 @@ fontWeight: Regular, | ||
}), | ||
LabelXSmall: _objectSpread({}, common, { | ||
LabelXSmall: _objectSpread2({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -289,3 +304,3 @@ fontWeight: Regular, | ||
}), | ||
Caption: _objectSpread({}, common, { | ||
Caption: _objectSpread2({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -296,3 +311,3 @@ fontWeight: Regular, | ||
}), | ||
Footnote: _objectSpread({}, common, { | ||
Footnote: _objectSpread2({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -819,2 +834,2 @@ fontWeight: Regular, | ||
export { Title, HeadingLarge, HeadingMedium, HeadingSmall, HeadingXSmall, BodySerifBlock, BodySerif, BodyMonospace, Body, LabelLarge, LabelMedium, LabelSmall, LabelXSmall, Tagline, Caption, Footnote, styles }; | ||
export { Body, BodyMonospace, BodySerif, BodySerifBlock, Caption, Footnote, HeadingLarge, HeadingMedium, HeadingSmall, HeadingXSmall, LabelLarge, LabelMedium, LabelSmall, LabelXSmall, Tagline, Title, styles }; |
{ | ||
"name": "@khanacademy/wonder-blocks-typography", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"design": "v2", | ||
@@ -18,3 +18,3 @@ "publishConfig": { | ||
"dependencies": { | ||
"@khanacademy/wonder-blocks-core": "^2.4.2" | ||
"@khanacademy/wonder-blocks-core": "^2.4.3" | ||
}, | ||
@@ -26,5 +26,6 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@khanacademy/wonder-blocks-color": "^1.1.8", | ||
"wb-dev-build-settings": "^0.0.2" | ||
} | ||
"@khanacademy/wonder-blocks-color": "^1.1.9", | ||
"wb-dev-build-settings": "^0.0.3" | ||
}, | ||
"gitHead": "be0b1f6e2cd428289f5c3e54e6a2370de2019d27" | ||
} |
Sorry, the diff of this file is too big to display
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
167516
29
2414