@chakra-ui/styled-system
Advanced tools
Comparing version 0.0.0-dev-20230329123951 to 0.0.0-dev-20230329140150
@@ -37,2 +37,3 @@ "use strict"; | ||
cssVar: () => cssVar, | ||
defineCssVars: () => defineCssVars, | ||
defineStyle: () => defineStyle, | ||
@@ -1076,2 +1077,14 @@ defineStyleConfig: () => defineStyleConfig, | ||
} | ||
function defineCssVars(scope, keys2) { | ||
const vars = {}; | ||
for (const key of keys2) { | ||
if (Array.isArray(key)) { | ||
const [name, fallback] = key; | ||
vars[name] = cssVar(`${scope}-${name}`, fallback); | ||
continue; | ||
} | ||
vars[key] = cssVar(`${scope}-${key}`); | ||
} | ||
return vars; | ||
} | ||
@@ -1765,2 +1778,3 @@ // ../../utilities/breakpoint-utils/src/breakpoint.ts | ||
cssVar, | ||
defineCssVars, | ||
defineStyle, | ||
@@ -1767,0 +1781,0 @@ defineStyleConfig, |
{ | ||
"name": "@chakra-ui/styled-system", | ||
"version": "0.0.0-dev-20230329123951", | ||
"version": "0.0.0-dev-20230329140150", | ||
"description": "Style function for css-in-js building component libraries", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
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
209095
6317