@pandacss/types
Advanced tools
Comparing version 0.0.0-dev-20240315002504 to 0.0.0-dev-20240315003802
@@ -5,3 +5,3 @@ import type { TSConfig } from 'pkg-types' | ||
import type { PatternConfig } from './pattern' | ||
import type { Keys, PathIn, RequiredBy } from './shared' | ||
import type { Keys, LiteralUnion, PathIn, RequiredBy } from './shared' | ||
import type { StaticCssOptions } from './static-css' | ||
@@ -72,2 +72,6 @@ import type { ExtendableGlobalStyleObject, GlobalStyleObject } from './system-types' | ||
patterns: Record<string, PatternConfig> | ||
/** | ||
* The css variables for your project. | ||
*/ | ||
globalVars: GlobalVarsDefinition | ||
} | ||
@@ -84,2 +88,44 @@ | ||
export type CssPropertySyntax = | ||
| '<length>' | ||
| '<number>' | ||
| '<percentage>' | ||
| '<length-percentage>' | ||
| '<color>' | ||
| '<image>' | ||
| '<url>' | ||
| '<integer>' | ||
| '<angle>' | ||
| '<time>' | ||
| '<resolution>' | ||
| '<transform-function>' | ||
| '<length> | <percentage>' | ||
export interface CssPropertyDefinition { | ||
/** | ||
* Controls whether the custom property registration specified by @property inherits by default. | ||
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/@property/inherits | ||
*/ | ||
inherits: boolean | ||
/** | ||
* Sets the initial value for the property. | ||
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/@property/initial-value | ||
*/ | ||
initialValue: string | ||
/** | ||
* Describes the allowable syntax for the property. | ||
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/@property/syntax | ||
*/ | ||
syntax: LiteralUnion<CssPropertySyntax> | ||
} | ||
export interface GlobalVarsDefinition { | ||
[key: string]: string | CssPropertyDefinition | ||
} | ||
interface ExtendableGlobalVars { | ||
[key: string]: string | CssPropertyDefinition | ExtendableGlobalVars | undefined | ||
extend?: ExtendableGlobalVars | ||
} | ||
export interface ExtendableOptions { | ||
@@ -111,2 +157,6 @@ /** | ||
patterns?: ExtendablePatterns | ||
/** | ||
* The css variables for your project. | ||
*/ | ||
globalVars?: ExtendableGlobalVars | ||
} | ||
@@ -113,0 +163,0 @@ |
{ | ||
"name": "@pandacss/types", | ||
"version": "0.0.0-dev-20240315002504", | ||
"version": "0.0.0-dev-20240315003802", | ||
"description": "The types for css panda", | ||
@@ -33,3 +33,3 @@ "main": "dist/index.d.ts", | ||
"pkg-types": "1.0.3", | ||
"@pandacss/extractor": "0.0.0-dev-20240315002504" | ||
"@pandacss/extractor": "0.0.0-dev-20240315003802" | ||
}, | ||
@@ -36,0 +36,0 @@ "scripts": { |
963708
22661