@vanilla-extract/css
Advanced tools
Comparing version 1.1.1 to 1.1.2
# @vanilla-extract/css | ||
## 1.1.2 | ||
### Patch Changes | ||
- [#238](https://github.com/seek-oss/vanilla-extract/pull/238) [`1ee9ba2`](https://github.com/seek-oss/vanilla-extract/commit/1ee9ba2c5e6598450b8bac10d244b7e375e71617) Thanks [@mattcompiles](https://github.com/mattcompiles)! - Allow passing of null contract tokens in `createThemeContract` | ||
## 1.1.1 | ||
@@ -4,0 +10,0 @@ |
@@ -69,6 +69,9 @@ import type { MapLeafNodes, CSSVarFunction } from '@vanilla-extract/private'; | ||
} | ||
export declare type NullableTokens = { | ||
[key: string]: string | Tokens | null; | ||
}; | ||
export declare type Tokens = { | ||
[key: string]: string | Tokens; | ||
}; | ||
export declare type ThemeVars<ThemeContract extends Tokens> = MapLeafNodes<ThemeContract, CSSVarFunction>; | ||
export declare type ThemeVars<ThemeContract extends NullableTokens> = MapLeafNodes<ThemeContract, CSSVarFunction>; | ||
export {}; |
import { Contract, MapLeafNodes, CSSVarFunction } from '@vanilla-extract/private'; | ||
import { ThemeVars, Tokens } from './types'; | ||
import { NullableTokens, ThemeVars } from './types'; | ||
export declare function createVar(debugId?: string): CSSVarFunction; | ||
export declare function fallbackVar(...values: [string, ...Array<string>]): CSSVarFunction; | ||
export declare function assignVars<VarContract extends Contract>(varContract: VarContract, tokens: MapLeafNodes<VarContract, string>): Record<CSSVarFunction, string>; | ||
export declare function createThemeContract<ThemeTokens extends Tokens>(tokens: ThemeTokens): ThemeVars<ThemeTokens>; | ||
export declare function createThemeContract<ThemeTokens extends NullableTokens>(tokens: ThemeTokens): ThemeVars<ThemeTokens>; |
{ | ||
"name": "@vanilla-extract/css", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Zero-runtime Stylesheets-in-TypeScript", | ||
@@ -5,0 +5,0 @@ "sideEffects": true, |
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
212872
5234