Releases: vanilla-extract-css/vanilla-extract
Releases · vanilla-extract-css/vanilla-extract
@vanilla-extract/[email protected]
Minor Changes
-
#1175
ca854f5Thanks @youngkyo0504! -assignInlineVarsnow acceptsnullandundefinedvaluesVariables with a value of
nullorundefinedwill be omitted from the resulting inline style.NOTE: This only applies to the case where a theme contract is not provided.
import { assignInlineVars } from '@vanilla-extract/dynamic'; import { container, brandColor, textColor } from './styles.css.ts'; // If `tone` is `undefined`, the following inline style becomes: // { '--brandColor__8uideo0': 'pink' } const MyComponent = ({ tone }: { tone?: critical }) => ( <section className={container} style={assignInlineVars({ [brandColor]: 'pink', [textColor]: tone === 'critical' ? 'red' : null, })} > ... </section> );
-
#1175
ca854f5Thanks @youngkyo0504! -setElementVarsnow acceptsnullandundefinedvaluesVariables with a value of
nullorundefinedwill not be assigned a value.NOTE: This only applies to the case where a theme contract is not provided.
import { setElementVars } from '@vanilla-extract/dynamic'; import { brandColor, textColor } from './styles.css.ts'; const el = document.getElementById('myElement'); setElementVars(el, { [brandColor]: 'pink', [textColor]: null, });
@vanilla-extract/[email protected]
Minor Changes
- #1207
906d288Thanks @CroModder! - Add some missing simple pseudo selectors
Patch Changes
@vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
-
#1180
89224feThanks @syfxlin! - Fixes Next.js 13 CSS output on Windows when using React Server Components -
Updated dependencies [
89224fe]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
- #1160
e391baeThanks @SombreroElGringo! - Users can now provide a custom identifier hashing function
@vanilla-extract/[email protected]
Minor Changes
- #1160
e391baeThanks @SombreroElGringo! - Users can now provide a custom identifier hashing function
@vanilla-extract/[email protected]
Minor Changes
- #1160
e391baeThanks @SombreroElGringo! - Users can now provide a custom identifier hashing function
@vanilla-extract/[email protected]
Minor Changes
- #1160
e391baeThanks @SombreroElGringo! - Users can now provide a custom identifier hashing function
Patch Changes
- Updated dependencies [
e391bae]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
- #1160
e391baeThanks @SombreroElGringo! - Users can now provide a custom identifier hashing function