css-in-props
Advanced tools
Comparing version 0.8.28 to 0.8.29
@@ -6,3 +6,3 @@ { | ||
"author": "symbo.ls", | ||
"version": "0.8.28", | ||
"version": "0.8.29", | ||
"repository": "https://github.com/symbo-ls/smbls", | ||
@@ -17,4 +17,4 @@ "main": "src/index.js", | ||
"scripts": { | ||
"start": "parcel showcase/index.html", | ||
"build": "parcel build showcase/index.html --public-url .", | ||
"start": "parcel index.html", | ||
"build": "parcel build index.html --public-url .", | ||
"deploy": "yarn build && gh-pages -d dist", | ||
@@ -25,3 +25,6 @@ "clean": "rm yarn.lock && rm -rf node_modules && rm -rf dist && rm -rf .cache", | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"@domql/utils": "^2.2.1", | ||
"@symbo.ls/scratch": "^0.3.19" | ||
}, | ||
"devDependencies": { | ||
@@ -28,0 +31,0 @@ "@babel/core": "^7.14.6", |
'use strict' | ||
import { classNames } from './classNames' | ||
import { keySetters } from './subprops' | ||
export * from '@symbo.ls/scratch' | ||
export const transformClassname = props => { | ||
const CLASS_NAMES = {} | ||
for (const key in props) { | ||
const setter = keySetters[key.slice(0, 1)] | ||
const hasCSS = classNames[key] | ||
if (setter) setter(key, props[key], CLASS_NAMES) | ||
else if (hasCSS) CLASS_NAMES[key] = hasCSS | ||
} | ||
return CLASS_NAMES | ||
} |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
8733
6
145
0
2
+ Added@domql/utils@^2.2.1
+ Added@symbo.ls/scratch@^0.3.19
+ Added@domql/utils@2.5.179(transitive)
+ Added@symbo.ls/scratch@0.3.35(transitive)
+ Addedamdefine@1.0.1(transitive)
+ Addedcolor-contrast-checker@1.5.0(transitive)