@vanilla-extract/sprinkles
Advanced tools
Comparing version 1.1.0 to 1.1.1
# @vanilla-extract/sprinkles | ||
## 1.1.1 | ||
### Patch Changes | ||
- [#307](https://github.com/seek-oss/vanilla-extract/pull/307) [`a8f181d`](https://github.com/seek-oss/vanilla-extract/commit/a8f181daa12ced5958c57bac61370726e751e1e2) Thanks [@rtkaaho](https://github.com/rtkaaho)! - Allow style objects to be passed when no conditions are present | ||
## 1.1.0 | ||
@@ -4,0 +10,0 @@ |
@@ -32,11 +32,7 @@ 'use strict'; | ||
for (const conditionName in options.conditions) { | ||
let styleValue = typeof value === 'object' ? value : { | ||
[key]: value | ||
}; | ||
const condition = options.conditions[conditionName]; | ||
let styleValue = {}; | ||
if (typeof value === 'object') { | ||
styleValue = value; | ||
} else { | ||
styleValue[key] = value; | ||
} | ||
if (condition['@supports']) { | ||
@@ -74,6 +70,7 @@ styleValue = { | ||
} else { | ||
const styleValue = typeof value === 'object' ? value : { | ||
[key]: value | ||
}; | ||
styles[key].values[valueName] = { | ||
defaultClass: css.style({ | ||
[key]: value | ||
}, `${key}_${String(valueName)}`) | ||
defaultClass: css.style(styleValue, `${key}_${String(valueName)}`) | ||
}; | ||
@@ -80,0 +77,0 @@ } |
@@ -32,11 +32,7 @@ 'use strict'; | ||
for (const conditionName in options.conditions) { | ||
let styleValue = typeof value === 'object' ? value : { | ||
[key]: value | ||
}; | ||
const condition = options.conditions[conditionName]; | ||
let styleValue = {}; | ||
if (typeof value === 'object') { | ||
styleValue = value; | ||
} else { | ||
styleValue[key] = value; | ||
} | ||
if (condition['@supports']) { | ||
@@ -74,6 +70,7 @@ styleValue = { | ||
} else { | ||
const styleValue = typeof value === 'object' ? value : { | ||
[key]: value | ||
}; | ||
styles[key].values[valueName] = { | ||
defaultClass: css.style({ | ||
[key]: value | ||
}, `${key}_${String(valueName)}`) | ||
defaultClass: css.style(styleValue, `${key}_${String(valueName)}`) | ||
}; | ||
@@ -80,0 +77,0 @@ } |
@@ -28,11 +28,7 @@ import { style, composeStyles } from '@vanilla-extract/css'; | ||
for (const conditionName in options.conditions) { | ||
let styleValue = typeof value === 'object' ? value : { | ||
[key]: value | ||
}; | ||
const condition = options.conditions[conditionName]; | ||
let styleValue = {}; | ||
if (typeof value === 'object') { | ||
styleValue = value; | ||
} else { | ||
styleValue[key] = value; | ||
} | ||
if (condition['@supports']) { | ||
@@ -70,6 +66,7 @@ styleValue = { | ||
} else { | ||
const styleValue = typeof value === 'object' ? value : { | ||
[key]: value | ||
}; | ||
styles[key].values[valueName] = { | ||
defaultClass: style({ | ||
[key]: value | ||
}, `${key}_${String(valueName)}`) | ||
defaultClass: style(styleValue, `${key}_${String(valueName)}`) | ||
}; | ||
@@ -76,0 +73,0 @@ } |
{ | ||
"name": "@vanilla-extract/sprinkles", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Zero-runtime atomic CSS framework for vanilla-extract", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -318,3 +318,3 @@ # π¨ Sprinkles | ||
Configures which properties and values should be available. Properties must be valid CSS properties. | ||
Configures which properties and values should be available. | ||
@@ -321,0 +321,0 @@ For simple mappings (i.e. valid CSS values), values can be provided as an array. |
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
77490
1118