@khanacademy/wonder-blocks-core
Advanced tools
Comparing version 2.6.2 to 2.7.0
@@ -1008,4 +1008,5 @@ import React, { Component, createElement, createContext } from 'react'; | ||
function StyleComponent(props) { | ||
var style = props.style, | ||
tmpOtherProps = _objectWithoutProperties(props, ["style"]); // NOTE(jeresig): We need to cast the remaining props to be the right | ||
var className = props.className, | ||
style = props.style, | ||
tmpOtherProps = _objectWithoutProperties(props, ["className", "style"]); // NOTE(jeresig): We need to cast the remaining props to be the right | ||
// value to ensure that they're typed properly. | ||
@@ -1018,7 +1019,7 @@ | ||
var _processStyleList = processStyleList([reset, defaultStyle, style]), | ||
className = _processStyleList.className, | ||
aphroditeClassName = _processStyleList.className, | ||
inlineStyles = _processStyleList.style; | ||
return /*#__PURE__*/createElement(Component, _extends({}, otherProps, { | ||
className: className, | ||
className: [aphroditeClassName, className].filter(Boolean).join(" "), | ||
style: inlineStyles | ||
@@ -1025,0 +1026,0 @@ })); |
{ | ||
"name": "@khanacademy/wonder-blocks-core", | ||
"version": "2.6.2", | ||
"version": "2.7.0", | ||
"design": "v1", | ||
@@ -30,3 +30,3 @@ "publishConfig": { | ||
"license": "MIT", | ||
"gitHead": "d54b1f3b101a92dc4a53e0f6aa4621db2e2a5b6e" | ||
"gitHead": "483662a65071f7f5539a5a40adc9e6c22d441bf8" | ||
} |
@@ -23,3 +23,3 @@ // @flow | ||
}) { | ||
const {style, ...tmpOtherProps} = props; | ||
const {className, style, ...tmpOtherProps} = props; | ||
// NOTE(jeresig): We need to cast the remaining props to be the right | ||
@@ -31,7 +31,6 @@ // value to ensure that they're typed properly. | ||
const {className, style: inlineStyles} = processStyleList([ | ||
reset, | ||
defaultStyle, | ||
style, | ||
]); | ||
const { | ||
className: aphroditeClassName, | ||
style: inlineStyles, | ||
} = processStyleList([reset, defaultStyle, style]); | ||
@@ -41,3 +40,5 @@ return ( | ||
{...otherProps} | ||
className={className} | ||
className={[aphroditeClassName, className] | ||
.filter(Boolean) | ||
.join(" ")} | ||
style={inlineStyles} | ||
@@ -44,0 +45,0 @@ /> |
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
375327
49
7667