@vanilla-extract/sprinkles
Advanced tools
Comparing version 1.5.2 to 1.6.0
@@ -127,2 +127,3 @@ import { CSSProperties, StyleRule } from '@vanilla-extract/css'; | ||
type UnconditionalAtomicOptions<Properties extends AtomicProperties> = { | ||
'@layer'?: string; | ||
properties: Properties; | ||
@@ -129,0 +130,0 @@ }; |
@@ -66,2 +66,9 @@ 'use strict'; | ||
} | ||
if (options['@layer']) { | ||
styleValue = { | ||
'@layer': { | ||
[options['@layer']]: styleValue | ||
} | ||
}; | ||
} | ||
var className = css.style(styleValue, "".concat(key, "_").concat(String(valueName), "_").concat(_conditionName)); | ||
@@ -80,2 +87,9 @@ styles[key].values[valueName].conditions[_conditionName] = className; | ||
}; | ||
if (options['@layer']) { | ||
_styleValue = { | ||
'@layer': { | ||
[options['@layer']]: _styleValue | ||
} | ||
}; | ||
} | ||
styles[key].values[valueName] = { | ||
@@ -82,0 +96,0 @@ defaultClass: css.style(_styleValue, "".concat(key, "_").concat(String(valueName))) |
@@ -66,2 +66,9 @@ 'use strict'; | ||
} | ||
if (options['@layer']) { | ||
styleValue = { | ||
'@layer': { | ||
[options['@layer']]: styleValue | ||
} | ||
}; | ||
} | ||
var className = css.style(styleValue, "".concat(key, "_").concat(String(valueName), "_").concat(_conditionName)); | ||
@@ -80,2 +87,9 @@ styles[key].values[valueName].conditions[_conditionName] = className; | ||
}; | ||
if (options['@layer']) { | ||
_styleValue = { | ||
'@layer': { | ||
[options['@layer']]: _styleValue | ||
} | ||
}; | ||
} | ||
styles[key].values[valueName] = { | ||
@@ -82,0 +96,0 @@ defaultClass: css.style(_styleValue, "".concat(key, "_").concat(String(valueName))) |
@@ -62,2 +62,9 @@ import { composeStyles, style } from '@vanilla-extract/css'; | ||
} | ||
if (options['@layer']) { | ||
styleValue = { | ||
'@layer': { | ||
[options['@layer']]: styleValue | ||
} | ||
}; | ||
} | ||
var className = style(styleValue, "".concat(key, "_").concat(String(valueName), "_").concat(_conditionName)); | ||
@@ -76,2 +83,9 @@ styles[key].values[valueName].conditions[_conditionName] = className; | ||
}; | ||
if (options['@layer']) { | ||
_styleValue = { | ||
'@layer': { | ||
[options['@layer']]: _styleValue | ||
} | ||
}; | ||
} | ||
styles[key].values[valueName] = { | ||
@@ -78,0 +92,0 @@ defaultClass: style(_styleValue, "".concat(key, "_").concat(String(valueName))) |
{ | ||
"name": "@vanilla-extract/sprinkles", | ||
"version": "1.5.2", | ||
"version": "1.6.0", | ||
"description": "Zero-runtime atomic CSS framework for vanilla-extract", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
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
90009
1553