@vanilla-extract/css
Advanced tools
Comparing version 0.5.0 to 0.5.1
# @vanilla-extract/css | ||
## 0.5.1 | ||
### Patch Changes | ||
- [#146](https://github.com/seek-oss/vanilla-extract/pull/146) [`bf51ab5`](https://github.com/seek-oss/vanilla-extract/commit/bf51ab56f5b10474476ef61a00edaaf297a10218) Thanks [@markdalgleish](https://github.com/markdalgleish)! - Fix escaped characters in selectors | ||
## 0.5.0 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@vanilla-extract/css", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Zero-runtime Stylesheets-in-TypeScript", | ||
@@ -5,0 +5,0 @@ "sideEffects": true, |
@@ -33,10 +33,2 @@ 'use strict'; | ||
return selector.split(',').map(selectorPart => { | ||
if (selectorPart.indexOf(targetClassName) === -1) { | ||
throw new Error(dedent__default['default']` | ||
Invalid selector: ${replaceTarget()} | ||
Selectors must target the ampersand character ('&'), which refers to the generated class name, e.g. '&:nth-child(2n)' | ||
`); | ||
} | ||
let currentRule; | ||
@@ -66,3 +58,3 @@ | ||
Style selectors must end with the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}. | ||
Style selectors must target the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}. | ||
@@ -69,0 +61,0 @@ This is to ensure that each style block only affects the styling of a single class. |
@@ -24,10 +24,2 @@ import { getVarName } from '@vanilla-extract/private'; | ||
return selector.split(',').map(selectorPart => { | ||
if (selectorPart.indexOf(targetClassName) === -1) { | ||
throw new Error(dedent` | ||
Invalid selector: ${replaceTarget()} | ||
Selectors must target the ampersand character ('&'), which refers to the generated class name, e.g. '&:nth-child(2n)' | ||
`); | ||
} | ||
let currentRule; | ||
@@ -57,3 +49,3 @@ | ||
Style selectors must end with the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}. | ||
Style selectors must target the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}. | ||
@@ -60,0 +52,0 @@ This is to ensure that each style block only affects the styling of a single class. |
@@ -33,10 +33,2 @@ 'use strict'; | ||
return selector.split(',').map(selectorPart => { | ||
if (selectorPart.indexOf(targetClassName) === -1) { | ||
throw new Error(dedent__default['default']` | ||
Invalid selector: ${replaceTarget()} | ||
Selectors must target the ampersand character ('&'), which refers to the generated class name, e.g. '&:nth-child(2n)' | ||
`); | ||
} | ||
let currentRule; | ||
@@ -66,3 +58,3 @@ | ||
Style selectors must end with the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}. | ||
Style selectors must target the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}. | ||
@@ -69,0 +61,0 @@ This is to ensure that each style block only affects the styling of a single class. |
@@ -33,10 +33,2 @@ 'use strict'; | ||
return selector.split(',').map(selectorPart => { | ||
if (selectorPart.indexOf(targetClassName) === -1) { | ||
throw new Error(dedent__default['default']` | ||
Invalid selector: ${replaceTarget()} | ||
Selectors must target the ampersand character ('&'), which refers to the generated class name, e.g. '&:nth-child(2n)' | ||
`); | ||
} | ||
let currentRule; | ||
@@ -66,3 +58,3 @@ | ||
Style selectors must end with the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}. | ||
Style selectors must target the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}. | ||
@@ -69,0 +61,0 @@ This is to ensure that each style block only affects the styling of a single class. |
@@ -24,10 +24,2 @@ import { getVarName } from '@vanilla-extract/private'; | ||
return selector.split(',').map(selectorPart => { | ||
if (selectorPart.indexOf(targetClassName) === -1) { | ||
throw new Error(dedent` | ||
Invalid selector: ${replaceTarget()} | ||
Selectors must target the ampersand character ('&'), which refers to the generated class name, e.g. '&:nth-child(2n)' | ||
`); | ||
} | ||
let currentRule; | ||
@@ -57,3 +49,3 @@ | ||
Style selectors must end with the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}. | ||
Style selectors must target the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}. | ||
@@ -60,0 +52,0 @@ This is to ensure that each style block only affects the styling of a single class. |
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
163438
3846