Skip to content

Commit 8e9b0c4

Browse files
authored
Version Packages (#262)
1 parent 3db8c11 commit 8e9b0c4

File tree

24 files changed

+222
-100
lines changed

24 files changed

+222
-100
lines changed

.changeset/curly-peaches-draw.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

.changeset/rich-crews-marry.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

.changeset/seven-fans-press.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/strong-coats-float.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/webpack-react/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"@babel/preset-react": "^7.13.13",
2424
"@babel/preset-typescript": "^7.13.0",
2525
"@vanilla-extract/babel-plugin": "^1.0.1",
26-
"@vanilla-extract/css": "1.1.2",
27-
"@vanilla-extract/sprinkles": "^0.4.4",
28-
"@vanilla-extract/webpack-plugin": "^1.0.3",
26+
"@vanilla-extract/css": "1.2.0",
27+
"@vanilla-extract/sprinkles": "^1.0.0",
28+
"@vanilla-extract/webpack-plugin": "^1.1.0",
2929
"babel-loader": "^8.2.2",
3030
"css-loader": "^5.2.4",
3131
"html-webpack-plugin": "^5.3.1",

fixtures/low-level/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"author": "SEEK",
66
"private": true,
77
"dependencies": {
8-
"@vanilla-extract/css": "1.1.2"
8+
"@vanilla-extract/css": "1.2.0"
99
}
1010
}

fixtures/sprinkles/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "SEEK",
77
"private": true,
88
"dependencies": {
9-
"@vanilla-extract/css": "1.1.2",
10-
"@vanilla-extract/sprinkles": "0.4.4"
9+
"@vanilla-extract/css": "1.2.0",
10+
"@vanilla-extract/sprinkles": "1.0.0"
1111
}
1212
}

fixtures/themed/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "SEEK",
77
"private": true,
88
"dependencies": {
9-
"@vanilla-extract/css": "1.1.2",
9+
"@vanilla-extract/css": "1.2.0",
1010
"@vanilla-extract/dynamic": "1.0.0"
1111
}
1212
}

fixtures/unused-modules/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"author": "SEEK",
99
"private": true,
1010
"dependencies": {
11-
"@vanilla-extract/css": "1.1.2"
11+
"@vanilla-extract/css": "1.2.0"
1212
}
1313
}

packages/css/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# @vanilla-extract/css
22

3+
## 1.2.0
4+
5+
### Minor Changes
6+
7+
- [#259](https://github.com/seek-oss/vanilla-extract/pull/259) [`b8a6441`](https://github.com/seek-oss/vanilla-extract/commit/b8a6441e3400be388a520e3acf94f3bb6519cf0a) Thanks [@markdalgleish](https://github.com/markdalgleish)! - Allow the result of `composeStyles` to be used in selectors
8+
9+
When style compositions are used in selectors, they are now assigned an additional class so they can be uniquely identified. When selectors are processed internally, the composed classes are removed, only leaving behind the unique identifier classes. This allows you to treat them as if they were a single class within vanilla-extract selectors.
10+
11+
```ts
12+
import { style, globalStyle, composeStyles } from '@vanilla-extract/css';
13+
14+
const background = style({ background: 'mintcream' });
15+
const padding = style({ padding: 12 });
16+
17+
export const container = composeStyles(background, padding);
18+
19+
globalStyle(`${container} *`, {
20+
boxSizing: 'border-box',
21+
});
22+
```
23+
324
## 1.1.2
425

526
### Patch Changes

0 commit comments

Comments
 (0)