Socket
Socket
Sign inDemoInstall

@vanilla-extract/sprinkles

Package Overview
Dependencies
Maintainers
4
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vanilla-extract/sprinkles - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

6

CHANGELOG.md
# @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 @@

17

dist/vanilla-extract-sprinkles.cjs.dev.js

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc