@warp-ds/component-classes
Advanced tools
Comparing version 1.0.0-alpha.12 to 1.0.0-alpha.13
import * as components from './index.js'; | ||
const filterInternalClasses = (str) => { | ||
const classes = str.split(/\s/); | ||
return classes.filter(c => c.startsWith("i-")); | ||
} | ||
export const classes = Object.values(components) | ||
.map((e) => { | ||
if (typeof e === 'object') return Object.values(e).map(filterInternalClasses); | ||
return filterInternalClasses(e) | ||
if (typeof e === 'object') return Object.values(e).map((e) => e.split(/\s/)); | ||
return e.split(/\s/); | ||
}) | ||
.flat(Infinity); |
{ | ||
"name": "@warp-ds/component-classes", | ||
"repository": "git@github.com:warp-ds/component-classes.git", | ||
"version": "1.0.0-alpha.12", | ||
"version": "1.0.0-alpha.13", | ||
"description": "WARP component classes", | ||
@@ -6,0 +6,0 @@ "type": "module", |
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
41275
308