@khanacademy/wonder-blocks-typography
Advanced tools
Comparing version 1.1.11 to 1.1.12
@@ -125,2 +125,15 @@ import { StyleSheet } from 'aphrodite'; | ||
function _isNativeReflectConstruct() { | ||
if (typeof Reflect === "undefined" || !Reflect.construct) return false; | ||
if (Reflect.construct.sham) return false; | ||
if (typeof Proxy === "function") return true; | ||
try { | ||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); | ||
return true; | ||
} catch (e) { | ||
return false; | ||
} | ||
} | ||
function _objectWithoutPropertiesLoose(source, excluded) { | ||
@@ -178,2 +191,21 @@ if (source == null) return {}; | ||
function _createSuper(Derived) { | ||
var hasNativeReflectConstruct = _isNativeReflectConstruct(); | ||
return function _createSuperInternal() { | ||
var Super = _getPrototypeOf(Derived), | ||
result; | ||
if (hasNativeReflectConstruct) { | ||
var NewTarget = _getPrototypeOf(this).constructor; | ||
result = Reflect.construct(Super, arguments, NewTarget); | ||
} else { | ||
result = Super.apply(this, arguments); | ||
} | ||
return _possibleConstructorReturn(this, result); | ||
}; | ||
} | ||
var _objectSpread2$1, _objectSpread3, _objectSpread4; | ||
@@ -193,3 +225,3 @@ var Regular = 400; | ||
var styles = StyleSheet.create({ | ||
Title: _objectSpread2({}, common, (_objectSpread2$1 = { | ||
Title: _objectSpread2(_objectSpread2({}, common), {}, (_objectSpread2$1 = { | ||
fontFamily: SansFamily, | ||
@@ -204,3 +236,3 @@ fontWeight: Black | ||
}), _objectSpread2$1)), | ||
Tagline: _objectSpread2({}, common, { | ||
Tagline: _objectSpread2(_objectSpread2({}, common), {}, { | ||
fontFamily: SansFamily, | ||
@@ -211,3 +243,3 @@ fontWeight: Regular, | ||
}), | ||
HeadingLarge: _objectSpread2({}, common, (_objectSpread3 = { | ||
HeadingLarge: _objectSpread2(_objectSpread2({}, common), {}, (_objectSpread3 = { | ||
fontFamily: SansFamily, | ||
@@ -222,3 +254,3 @@ fontWeight: Bold | ||
}), _objectSpread3)), | ||
HeadingMedium: _objectSpread2({}, common, (_objectSpread4 = { | ||
HeadingMedium: _objectSpread2(_objectSpread2({}, common), {}, (_objectSpread4 = { | ||
fontFamily: SansFamily, | ||
@@ -233,3 +265,3 @@ fontWeight: Bold | ||
}), _objectSpread4)), | ||
HeadingSmall: _objectSpread2({}, common, { | ||
HeadingSmall: _objectSpread2(_objectSpread2({}, common), {}, { | ||
fontFamily: SansFamily, | ||
@@ -240,3 +272,3 @@ fontWeight: Bold, | ||
}), | ||
HeadingXSmall: _objectSpread2({}, common, { | ||
HeadingXSmall: _objectSpread2(_objectSpread2({}, common), {}, { | ||
fontFamily: SansFamily, | ||
@@ -249,3 +281,3 @@ fontWeight: Bold, | ||
}), | ||
BodySerifBlock: _objectSpread2({}, common, { | ||
BodySerifBlock: _objectSpread2(_objectSpread2({}, common), {}, { | ||
fontFamily: SerifFamily, | ||
@@ -256,3 +288,3 @@ fontWeight: Regular, | ||
}), | ||
BodySerif: _objectSpread2({}, common, { | ||
BodySerif: _objectSpread2(_objectSpread2({}, common), {}, { | ||
fontFamily: SerifFamily, | ||
@@ -263,3 +295,3 @@ fontWeight: Regular, | ||
}), | ||
BodyMonospace: _objectSpread2({}, common, { | ||
BodyMonospace: _objectSpread2(_objectSpread2({}, common), {}, { | ||
fontFamily: InconsolataFamily, | ||
@@ -270,3 +302,3 @@ fontWeight: Regular, | ||
}), | ||
Body: _objectSpread2({}, common, { | ||
Body: _objectSpread2(_objectSpread2({}, common), {}, { | ||
fontFamily: SansFamily, | ||
@@ -277,3 +309,3 @@ fontWeight: Regular, | ||
}), | ||
LabelLarge: _objectSpread2({}, common, { | ||
LabelLarge: _objectSpread2(_objectSpread2({}, common), {}, { | ||
fontFamily: SansFamily, | ||
@@ -284,3 +316,3 @@ fontWeight: Bold, | ||
}), | ||
LabelMedium: _objectSpread2({}, common, { | ||
LabelMedium: _objectSpread2(_objectSpread2({}, common), {}, { | ||
fontFamily: SansFamily, | ||
@@ -291,3 +323,3 @@ fontWeight: Regular, | ||
}), | ||
LabelSmall: _objectSpread2({}, common, { | ||
LabelSmall: _objectSpread2(_objectSpread2({}, common), {}, { | ||
fontFamily: SansFamily, | ||
@@ -298,3 +330,3 @@ fontWeight: Regular, | ||
}), | ||
LabelXSmall: _objectSpread2({}, common, { | ||
LabelXSmall: _objectSpread2(_objectSpread2({}, common), {}, { | ||
fontFamily: SansFamily, | ||
@@ -305,3 +337,3 @@ fontWeight: Regular, | ||
}), | ||
Caption: _objectSpread2({}, common, { | ||
Caption: _objectSpread2(_objectSpread2({}, common), {}, { | ||
fontFamily: SansFamily, | ||
@@ -312,3 +344,3 @@ fontWeight: Regular, | ||
}), | ||
Footnote: _objectSpread2({}, common, { | ||
Footnote: _objectSpread2(_objectSpread2({}, common), {}, { | ||
fontFamily: SansFamily, | ||
@@ -326,6 +358,8 @@ fontWeight: Regular, | ||
var _super = _createSuper(Title); | ||
function Title() { | ||
_classCallCheck(this, Title); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(Title).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -341,3 +375,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.Title, style] | ||
@@ -358,6 +392,8 @@ }), children); | ||
var _super = _createSuper(HeadingLarge); | ||
function HeadingLarge() { | ||
_classCallCheck(this, HeadingLarge); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(HeadingLarge).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -373,3 +409,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.HeadingLarge, style] | ||
@@ -390,6 +426,8 @@ }), children); | ||
var _super = _createSuper(HeadingMedium); | ||
function HeadingMedium() { | ||
_classCallCheck(this, HeadingMedium); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(HeadingMedium).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -405,3 +443,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.HeadingMedium, style] | ||
@@ -422,6 +460,8 @@ }), children); | ||
var _super = _createSuper(HeadingSmall); | ||
function HeadingSmall() { | ||
_classCallCheck(this, HeadingSmall); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(HeadingSmall).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -437,3 +477,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.HeadingSmall, style] | ||
@@ -454,6 +494,8 @@ }), children); | ||
var _super = _createSuper(HeadingXSmall); | ||
function HeadingXSmall() { | ||
_classCallCheck(this, HeadingXSmall); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(HeadingXSmall).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -469,3 +511,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.HeadingXSmall, style] | ||
@@ -486,6 +528,8 @@ }), children); | ||
var _super = _createSuper(BodySerifBlock); | ||
function BodySerifBlock() { | ||
_classCallCheck(this, BodySerifBlock); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(BodySerifBlock).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -501,3 +545,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.BodySerifBlock, style] | ||
@@ -518,6 +562,8 @@ }), children); | ||
var _super = _createSuper(BodySerif); | ||
function BodySerif() { | ||
_classCallCheck(this, BodySerif); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(BodySerif).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -533,3 +579,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.BodySerif, style] | ||
@@ -550,6 +596,8 @@ }), children); | ||
var _super = _createSuper(BodyMonospace); | ||
function BodyMonospace() { | ||
_classCallCheck(this, BodyMonospace); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(BodyMonospace).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -565,3 +613,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.BodyMonospace, style] | ||
@@ -582,6 +630,8 @@ }), children); | ||
var _super = _createSuper(Body); | ||
function Body() { | ||
_classCallCheck(this, Body); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(Body).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -597,3 +647,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.Body, style] | ||
@@ -614,6 +664,8 @@ }), children); | ||
var _super = _createSuper(LabelLarge); | ||
function LabelLarge() { | ||
_classCallCheck(this, LabelLarge); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(LabelLarge).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -629,3 +681,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.LabelLarge, style] | ||
@@ -646,6 +698,8 @@ }), children); | ||
var _super = _createSuper(LabelMedium); | ||
function LabelMedium() { | ||
_classCallCheck(this, LabelMedium); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(LabelMedium).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -661,3 +715,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.LabelMedium, style] | ||
@@ -678,6 +732,8 @@ }), children); | ||
var _super = _createSuper(LabelSmall); | ||
function LabelSmall() { | ||
_classCallCheck(this, LabelSmall); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(LabelSmall).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -693,3 +749,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.LabelSmall, style] | ||
@@ -710,6 +766,8 @@ }), children); | ||
var _super = _createSuper(LabelXSmall); | ||
function LabelXSmall() { | ||
_classCallCheck(this, LabelXSmall); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(LabelXSmall).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -725,3 +783,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.LabelXSmall, style] | ||
@@ -742,6 +800,8 @@ }), children); | ||
var _super = _createSuper(Tagline); | ||
function Tagline() { | ||
_classCallCheck(this, Tagline); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(Tagline).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -757,3 +817,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.Tagline, style] | ||
@@ -774,6 +834,8 @@ }), children); | ||
var _super = _createSuper(Caption); | ||
function Caption() { | ||
_classCallCheck(this, Caption); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(Caption).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -789,3 +851,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.Caption, style] | ||
@@ -806,6 +868,8 @@ }), children); | ||
var _super = _createSuper(Footnote); | ||
function Footnote() { | ||
_classCallCheck(this, Footnote); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(Footnote).apply(this, arguments)); | ||
return _super.apply(this, arguments); | ||
} | ||
@@ -821,3 +885,3 @@ | ||
return React.createElement(Text, _extends({}, otherProps, { | ||
return /*#__PURE__*/React.createElement(Text, _extends({}, otherProps, { | ||
style: [styles.Footnote, style] | ||
@@ -824,0 +888,0 @@ }), children); |
{ | ||
"name": "@khanacademy/wonder-blocks-typography", | ||
"version": "1.1.11", | ||
"version": "1.1.12", | ||
"design": "v2", | ||
@@ -18,3 +18,3 @@ "publishConfig": { | ||
"dependencies": { | ||
"@khanacademy/wonder-blocks-core": "^2.5.1" | ||
"@khanacademy/wonder-blocks-core": "^2.5.2" | ||
}, | ||
@@ -26,6 +26,6 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@khanacademy/wonder-blocks-color": "^1.1.11", | ||
"@khanacademy/wonder-blocks-color": "^1.1.12", | ||
"wb-dev-build-settings": "^0.0.3" | ||
}, | ||
"gitHead": "3c6c92225a4eba049ead8d78e2d3eb648e5b16ab" | ||
"gitHead": "a2b5548f5d7db108c39961071d081ec5d96fa88f" | ||
} |
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
181864
2473