@khanacademy/wonder-blocks-typography
Advanced tools
Comparing version 0.0.0-PR2271-20240712184100 to 0.0.0-PR2275-20240717000016
# @khanacademy/wonder-blocks-typography | ||
## 0.0.0-PR2271-20240712184100 | ||
## 0.0.0-PR2275-20240717000016 | ||
### Patch Changes | ||
- Updated dependencies [7d2ef86f] | ||
- @khanacademy/wonder-blocks-core@0.0.0-PR2275-20240717000016 | ||
## 2.1.14 | ||
### Patch Changes | ||
- 559e82d5: Update to build tooling, generating smaller output | ||
- Updated dependencies [559e82d5] | ||
- @khanacademy/wonder-blocks-core@6.4.3 | ||
## 2.1.13 | ||
### Patch Changes | ||
- Updated dependencies [eab37b8b] | ||
- @khanacademy/wonder-blocks-core@0.0.0-PR2271-20240712184100 | ||
- @khanacademy/wonder-blocks-core@6.4.2 | ||
@@ -10,0 +25,0 @@ ## 2.1.12 |
@@ -0,20 +1,7 @@ | ||
import _extends from '@babel/runtime/helpers/extends'; | ||
import { StyleSheet } from 'aphrodite'; | ||
import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/objectWithoutPropertiesLoose'; | ||
import * as React from 'react'; | ||
import { Text } from '@khanacademy/wonder-blocks-core'; | ||
function _extends() { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
} | ||
const Regular = 400; | ||
@@ -150,15 +137,2 @@ const Bold = 700; | ||
function _objectWithoutPropertiesLoose(source, excluded) { | ||
if (source == null) return {}; | ||
var target = {}; | ||
var sourceKeys = Object.keys(source); | ||
var key, i; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
key = sourceKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
target[key] = source[key]; | ||
} | ||
return target; | ||
} | ||
const _excluded$f = ["style", "children", "tag"]; | ||
@@ -165,0 +139,0 @@ const Title = React.forwardRef(function Title(_ref, ref) { |
@@ -5,41 +5,32 @@ 'use strict'; | ||
var _extends = require('@babel/runtime/helpers/extends'); | ||
var aphrodite = require('aphrodite'); | ||
var _objectWithoutPropertiesLoose = require('@babel/runtime/helpers/objectWithoutPropertiesLoose'); | ||
var React = require('react'); | ||
var wonderBlocksCore = require('@khanacademy/wonder-blocks-core'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
function _interopNamespace(e) { | ||
if (e && e.__esModule) return e; | ||
var n = Object.create(null); | ||
if (e) { | ||
Object.keys(e).forEach(function (k) { | ||
if (k !== 'default') { | ||
var d = Object.getOwnPropertyDescriptor(e, k); | ||
Object.defineProperty(n, k, d.get ? d : { | ||
enumerable: true, | ||
get: function () { return e[k]; } | ||
if (e && e.__esModule) return e; | ||
var n = Object.create(null); | ||
if (e) { | ||
Object.keys(e).forEach(function (k) { | ||
if (k !== 'default') { | ||
var d = Object.getOwnPropertyDescriptor(e, k); | ||
Object.defineProperty(n, k, d.get ? d : { | ||
enumerable: true, | ||
get: function () { return e[k]; } | ||
}); | ||
} | ||
}); | ||
} | ||
}); | ||
} | ||
n["default"] = e; | ||
return Object.freeze(n); | ||
} | ||
n["default"] = e; | ||
return Object.freeze(n); | ||
} | ||
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends); | ||
var _objectWithoutPropertiesLoose__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutPropertiesLoose); | ||
var React__namespace = /*#__PURE__*/_interopNamespace(React); | ||
function _extends() { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
} | ||
const Regular = 400; | ||
@@ -57,3 +48,3 @@ const Bold = 700; | ||
const styles = aphrodite.StyleSheet.create({ | ||
Title: _extends({}, common, { | ||
Title: _extends__default["default"]({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -70,3 +61,3 @@ fontWeight: Black, | ||
}), | ||
Tagline: _extends({}, common, { | ||
Tagline: _extends__default["default"]({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -77,3 +68,3 @@ fontWeight: Regular, | ||
}), | ||
HeadingLarge: _extends({}, common, { | ||
HeadingLarge: _extends__default["default"]({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -90,3 +81,3 @@ fontWeight: Bold, | ||
}), | ||
HeadingMedium: _extends({}, common, { | ||
HeadingMedium: _extends__default["default"]({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -103,3 +94,3 @@ fontWeight: Bold, | ||
}), | ||
HeadingSmall: _extends({}, common, { | ||
HeadingSmall: _extends__default["default"]({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -110,3 +101,3 @@ fontWeight: Bold, | ||
}), | ||
HeadingXSmall: _extends({}, common, { | ||
HeadingXSmall: _extends__default["default"]({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -119,3 +110,3 @@ fontWeight: Bold, | ||
}), | ||
BodySerifBlock: _extends({}, common, { | ||
BodySerifBlock: _extends__default["default"]({}, common, { | ||
fontFamily: SerifFamily, | ||
@@ -126,3 +117,3 @@ fontWeight: Regular, | ||
}), | ||
BodySerif: _extends({}, common, { | ||
BodySerif: _extends__default["default"]({}, common, { | ||
fontFamily: SerifFamily, | ||
@@ -133,3 +124,3 @@ fontWeight: Regular, | ||
}), | ||
BodyMonospace: _extends({}, common, { | ||
BodyMonospace: _extends__default["default"]({}, common, { | ||
fontFamily: InconsolataFamily, | ||
@@ -140,3 +131,3 @@ fontWeight: Regular, | ||
}), | ||
Body: _extends({}, common, { | ||
Body: _extends__default["default"]({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -147,3 +138,3 @@ fontWeight: Regular, | ||
}), | ||
LabelLarge: _extends({}, common, { | ||
LabelLarge: _extends__default["default"]({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -154,3 +145,3 @@ fontWeight: Bold, | ||
}), | ||
LabelMedium: _extends({}, common, { | ||
LabelMedium: _extends__default["default"]({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -161,3 +152,3 @@ fontWeight: Regular, | ||
}), | ||
LabelSmall: _extends({}, common, { | ||
LabelSmall: _extends__default["default"]({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -168,3 +159,3 @@ fontWeight: Regular, | ||
}), | ||
LabelXSmall: _extends({}, common, { | ||
LabelXSmall: _extends__default["default"]({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -175,3 +166,3 @@ fontWeight: Regular, | ||
}), | ||
Caption: _extends({}, common, { | ||
Caption: _extends__default["default"]({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -182,3 +173,3 @@ fontWeight: Regular, | ||
}), | ||
Footnote: _extends({}, common, { | ||
Footnote: _extends__default["default"]({}, common, { | ||
fontFamily: SansFamily, | ||
@@ -191,15 +182,2 @@ fontWeight: Regular, | ||
function _objectWithoutPropertiesLoose(source, excluded) { | ||
if (source == null) return {}; | ||
var target = {}; | ||
var sourceKeys = Object.keys(source); | ||
var key, i; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
key = sourceKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
target[key] = source[key]; | ||
} | ||
return target; | ||
} | ||
const _excluded$f = ["style", "children", "tag"]; | ||
@@ -212,4 +190,4 @@ const Title = React__namespace.forwardRef(function Title(_ref, ref) { | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$f); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$f); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -228,4 +206,4 @@ style: [styles.Title, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$e); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$e); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -244,4 +222,4 @@ style: [styles.HeadingLarge, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$d); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$d); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -260,4 +238,4 @@ style: [styles.HeadingMedium, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$c); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$c); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -276,4 +254,4 @@ style: [styles.HeadingSmall, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$b); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$b); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -292,4 +270,4 @@ style: [styles.HeadingXSmall, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$a); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$a); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -308,4 +286,4 @@ style: [styles.BodySerifBlock, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$9); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$9); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -324,4 +302,4 @@ style: [styles.BodySerif, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$8); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$8); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -340,4 +318,4 @@ style: [styles.BodyMonospace, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$7); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$7); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -356,4 +334,4 @@ style: [styles.Body, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$6); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$6); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -372,4 +350,4 @@ style: [styles.LabelLarge, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$5); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$5); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -388,4 +366,4 @@ style: [styles.LabelMedium, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$4); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$4); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -404,4 +382,4 @@ style: [styles.LabelSmall, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$3); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$3); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -420,4 +398,4 @@ style: [styles.LabelXSmall, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$2); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -436,4 +414,4 @@ style: [styles.Tagline, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$1); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$1); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -452,4 +430,4 @@ style: [styles.Caption, style], | ||
} = _ref, | ||
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends({}, otherProps, { | ||
otherProps = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded); | ||
return React__namespace.createElement(wonderBlocksCore.Text, _extends__default["default"]({}, otherProps, { | ||
tag: tag, | ||
@@ -456,0 +434,0 @@ style: [styles.Footnote, style], |
{ | ||
"name": "@khanacademy/wonder-blocks-typography", | ||
"version": "0.0.0-PR2271-20240712184100", | ||
"version": "0.0.0-PR2275-20240717000016", | ||
"design": "v2", | ||
@@ -19,3 +19,3 @@ "publishConfig": { | ||
"@babel/runtime": "^7.18.6", | ||
"@khanacademy/wonder-blocks-core": "0.0.0-PR2271-20240712184100" | ||
"@khanacademy/wonder-blocks-core": "0.0.0-PR2275-20240717000016" | ||
}, | ||
@@ -27,4 +27,4 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@khanacademy/wb-dev-build-settings": "^1.0.0" | ||
"@khanacademy/wb-dev-build-settings": "^1.0.1" | ||
} | ||
} |
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
178957
2252
+ Added@khanacademy/wonder-blocks-core@0.0.0-PR2275-20240717000016(transitive)
- Removed@khanacademy/wonder-blocks-core@0.0.0-PR2271-20240712184100(transitive)
Updated@khanacademy/wonder-blocks-core@0.0.0-PR2275-20240717000016