@navita/css 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +1 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -18,7 +18,7 @@ declare function createGlobalTheme<ThemeContract extends Contract>(selector: str
18
18
  declare function createTheme<ThemeTokens extends Tokens>(tokens: ThemeTokens, debugId?: string): [className: string, vars: ThemeVars<ThemeTokens>];
19
19
  declare function createTheme<ThemeContract extends Contract>(themeContract: ThemeContract, tokens: MapLeafNodes<ThemeContract, string>): string;
20
20
 
21
- declare function createVar(name: string): string;
21
+ declare function createVar<T extends string>(name?: T): `--${T}`;
22
22
  declare function fallbackVar(...values: [string, ...Array<string>]): string;
23
23
  declare function assignVars<VarContract extends Contract>(varContract: VarContract, tokens: MapLeafNodes<VarContract, string>): Record<CSSVarFunction, string>;
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navita/css",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Public API for Navita",
5
5
  "keywords": [
6
6
  "api",