Skip to content

Commit 284098c

Browse files
Version Packages (#1476)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 7a18842 commit 284098c

File tree

24 files changed

+212
-110
lines changed

24 files changed

+212
-110
lines changed

.changeset/cold-eyes-rescue.md

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

.changeset/good-wombats-doubt.md

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

.changeset/purple-cheetahs-hear.md

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

.changeset/twelve-pans-dress.md

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

packages/babel-plugin-debug-ids/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @vanilla-extract/babel-plugin-debug-ids
22

3+
## 1.1.0
4+
5+
### Minor Changes
6+
7+
- [#1450](https://github.com/vanilla-extract-css/vanilla-extract/pull/1450) [`7b256d2`](https://github.com/vanilla-extract-css/vanilla-extract/commit/7b256d2a8ee815911ee96199abe78d6b7246c415) Thanks [@wuz](https://github.com/wuz)! - Add support for the new `createViewTransition` API
8+
39
## 1.0.6
410

511
### Patch Changes

packages/babel-plugin-debug-ids/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vanilla-extract/babel-plugin-debug-ids",
3-
"version": "1.0.6",
3+
"version": "1.1.0",
44
"description": "Zero-runtime Stylesheets-in-TypeScript",
55
"main": "dist/vanilla-extract-babel-plugin-debug-ids.cjs.js",
66
"module": "dist/vanilla-extract-babel-plugin-debug-ids.esm.js",

packages/css/CHANGELOG.md

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

3+
## 1.16.0
4+
5+
### Minor Changes
6+
7+
- [#1475](https://github.com/vanilla-extract-css/vanilla-extract/pull/1475) [`cd9d8b2`](https://github.com/vanilla-extract-css/vanilla-extract/commit/cd9d8b231bbd7a7ac6674d2b28f77cff93e5be9e) Thanks [@corradopetrelli](https://github.com/corradopetrelli)! - Add `::-webkit-calendar-picker-indicator` as a valid pseudo-element
8+
9+
- [#1450](https://github.com/vanilla-extract-css/vanilla-extract/pull/1450) [`7b256d2`](https://github.com/vanilla-extract-css/vanilla-extract/commit/7b256d2a8ee815911ee96199abe78d6b7246c415) Thanks [@wuz](https://github.com/wuz)! - Add `createViewTransition` API
10+
11+
`createViewTransition` creates a single scoped view transition name for use with CSS View Transitions. This avoids potential naming collisions with other view transitions.
12+
13+
```ts
14+
import {
15+
style,
16+
createViewTransition
17+
} from '@vanilla-extract/css';
18+
19+
export const titleViewTransition = createViewTransition();
20+
21+
export const pageTitle = style({
22+
viewTransitionName: titleViewTransition
23+
});
24+
```
25+
326
## 1.15.5
427

528
### Patch Changes
@@ -54,12 +77,12 @@
5477
globalFontFace(gentium, [
5578
{
5679
src: 'local("Gentium")',
57-
fontWeight: 'normal',
80+
fontWeight: 'normal'
5881
},
5982
{
6083
src: 'local("Gentium Bold")',
61-
fontWeight: 'bold',
62-
},
84+
fontWeight: 'bold'
85+
}
6386
]);
6487
```
6588

@@ -110,16 +133,16 @@
110133
const gentium = fontFace([
111134
{
112135
src: 'local("Gentium")',
113-
fontWeight: 'normal',
136+
fontWeight: 'normal'
114137
},
115138
{
116139
src: 'local("Gentium Bold")',
117-
fontWeight: 'bold',
118-
},
140+
fontWeight: 'bold'
141+
}
119142
]);
120143

121144
export const font = style({
122-
fontFamily: gentium,
145+
fontFamily: gentium
123146
});
124147
```
125148

@@ -152,9 +175,9 @@
152175
export const standard = style({
153176
'@layer': {
154177
[typography]: {
155-
fontSize: '1rem',
156-
},
157-
},
178+
fontSize: '1rem'
179+
}
180+
}
158181
});
159182
```
160183

@@ -225,7 +248,7 @@
225248

226249
const identifier = generateIdentifier({
227250
debugId,
228-
debugFileName: false,
251+
debugFileName: false
229252
});
230253
```
231254

@@ -244,20 +267,23 @@
244267
`createContainer` creates a single scoped container name for use with CSS Container Queries. This avoids potential naming collisions with other containers.
245268

246269
```ts
247-
import { style, createContainer } from '@vanilla-extract/css';
270+
import {
271+
style,
272+
createContainer
273+
} from '@vanilla-extract/css';
248274

249275
export const sidebarContainer = createContainer();
250276

251277
export const sidebar = style({
252-
containerName: sidebarContainer,
278+
containerName: sidebarContainer
253279
});
254280

255281
export const navigation = style({
256282
'@container': {
257283
[`${sidebarContainer} (min-width: 400px)`]: {
258-
display: 'flex',
259-
},
260-
},
284+
display: 'flex'
285+
}
286+
}
261287
});
262288
```
263289

@@ -269,9 +295,9 @@
269295
export const myStyle = style({
270296
'@container': {
271297
'(min-width: 400px)': {
272-
display: 'flex',
273-
},
274-
},
298+
display: 'flex'
299+
}
300+
}
275301
});
276302
```
277303

@@ -409,9 +435,15 @@
409435

410436
const base = style({ padding: 12 });
411437

412-
export const primary = style([base, { background: 'blue' }]);
438+
export const primary = style([
439+
base,
440+
{ background: 'blue' }
441+
]);
413442

414-
export const secondary = style([base, { background: 'aqua' }]);
443+
export const secondary = style([
444+
base,
445+
{ background: 'aqua' }
446+
]);
415447
```
416448

417449
When composed styles are used in selectors, they are assigned an additional class if required 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.
@@ -425,7 +457,7 @@
425457
export const container = style([background, padding]);
426458

427459
globalStyle(`${container} *`, {
428-
boxSizing: 'border-box',
460+
boxSizing: 'border-box'
429461
});
430462
```
431463

@@ -450,25 +482,25 @@
450482
// themes.css.ts
451483
import {
452484
createGlobalThemeContract,
453-
createGlobalTheme,
485+
createGlobalTheme
454486
} from '@vanilla-extract/css';
455487

456488
export const vars = createGlobalThemeContract({
457489
color: {
458-
brand: 'color-brand',
490+
brand: 'color-brand'
459491
},
460492
font: {
461-
body: 'font-body',
462-
},
493+
body: 'font-body'
494+
}
463495
});
464496

465497
createGlobalTheme(':root', vars, {
466498
color: {
467-
brand: 'blue',
499+
brand: 'blue'
468500
},
469501
font: {
470-
body: 'arial',
471-
},
502+
body: 'arial'
503+
}
472504
});
473505
```
474506

@@ -483,13 +515,13 @@
483515
export const vars = createGlobalThemeContract(
484516
{
485517
color: {
486-
brand: 'color-brand',
518+
brand: 'color-brand'
487519
},
488520
font: {
489-
body: 'font-body',
490-
},
521+
body: 'font-body'
522+
}
491523
},
492-
(value) => `prefix-${value}`,
524+
(value) => `prefix-${value}`
493525
);
494526
```
495527

@@ -502,13 +534,13 @@
502534
export const vars = createGlobalThemeContract(
503535
{
504536
color: {
505-
brand: null,
537+
brand: null
506538
},
507539
font: {
508-
body: null,
509-
},
540+
body: null
541+
}
510542
},
511-
(_value, path) => `prefix-${path.join('-')}`,
543+
(_value, path) => `prefix-${path.join('-')}`
512544
);
513545
```
514546

@@ -541,15 +573,22 @@
541573
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.
542574

543575
```ts
544-
import { style, globalStyle, composeStyles } from '@vanilla-extract/css';
576+
import {
577+
style,
578+
globalStyle,
579+
composeStyles
580+
} from '@vanilla-extract/css';
545581

546582
const background = style({ background: 'mintcream' });
547583
const padding = style({ padding: 12 });
548584

549-
export const container = composeStyles(background, padding);
585+
export const container = composeStyles(
586+
background,
587+
padding
588+
);
550589

551590
globalStyle(`${container} *`, {
552-
boxSizing: 'border-box',
591+
boxSizing: 'border-box'
553592
});
554593
```
555594

packages/css/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vanilla-extract/css",
3-
"version": "1.15.5",
3+
"version": "1.16.0",
44
"description": "Zero-runtime Stylesheets-in-TypeScript",
55
"sideEffects": true,
66
"main": "dist/vanilla-extract-css.cjs.js",

0 commit comments

Comments
 (0)