@khanacademy/wonder-blocks-core
Advanced tools
Comparing version 0.0.0-PR2226-20240523161637 to 0.0.0-PR2226-20240523171859
# @khanacademy/wonder-blocks-core | ||
## 0.0.0-PR2226-20240523161637 | ||
## 0.0.0-PR2226-20240523171859 | ||
@@ -5,0 +5,0 @@ ### Major Changes |
import * as React from 'react'; | ||
import { useContext, useRef, useEffect as useEffect$1 } from 'react'; | ||
import { cx } from 'class-variance-authority'; | ||
import { StyleSheet, css } from 'aphrodite'; | ||
@@ -33,6 +34,2 @@ | ||
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n} | ||
const cx = clsx; | ||
function styleInject(css, ref) { | ||
@@ -39,0 +36,0 @@ if ( ref === void 0 ) ref = {}; |
@@ -6,2 +6,3 @@ 'use strict'; | ||
var React = require('react'); | ||
var classVarianceAuthority = require('class-variance-authority'); | ||
var aphrodite = require('aphrodite'); | ||
@@ -57,6 +58,2 @@ | ||
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n} | ||
const cx = clsx; | ||
function styleInject(css, ref) { | ||
@@ -104,3 +101,3 @@ if ( ref === void 0 ) ref = {}; | ||
const isHeader = isHeaderRegex.test(Tag); | ||
const styleAttributes = cx(styles$1.text, isHeader && styles$1.header, style); | ||
const styleAttributes = classVarianceAuthority.cx(styles$1.text, isHeader && styles$1.header, style); | ||
const classNames = otherProps.className ? [otherProps.className, styleAttributes].join(" ") : styleAttributes; | ||
@@ -207,3 +204,3 @@ return React__namespace.createElement(Tag, _extends({}, otherProps, { | ||
style: (_aphroditeStyle2 = aphroditeStyle) == null ? void 0 : _aphroditeStyle2.style, | ||
className: cx(props.className, finalStyles) | ||
className: classVarianceAuthority.cx(props.className, finalStyles) | ||
}); | ||
@@ -210,0 +207,0 @@ console.log("common: cn", commonProps.className, commonProps.style); |
{ | ||
"name": "@khanacademy/wonder-blocks-core", | ||
"version": "0.0.0-PR2226-20240523161637", | ||
"version": "0.0.0-PR2226-20240523171859", | ||
"design": "v1", | ||
@@ -20,2 +20,3 @@ "publishConfig": { | ||
"aphrodite": "^1.2.5", | ||
"class-variance-authority": "^0.7.0", | ||
"react": "16.14.0", | ||
@@ -27,3 +28,3 @@ "react-dom": "16.14.0", | ||
"devDependencies": { | ||
"@khanacademy/wb-dev-build-settings": "0.0.0-PR2226-20240523161637" | ||
"@khanacademy/wb-dev-build-settings": "0.0.0-PR2226-20240523171859" | ||
}, | ||
@@ -30,0 +31,0 @@ "author": "", |
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
267516
7
5193