@pandacss/types
Advanced tools
Comparing version 0.0.0-dev-20230122145009 to 0.0.0-dev-20230124104736
@@ -1,4 +0,7 @@ | ||
import type { Recursive } from './shared' | ||
import type { CompositionStyleObject } from './system-types' | ||
type Recursive<T> = { | ||
[key: string]: Recursive<T> | T | ||
} | ||
export type Token<Value = any> = { | ||
@@ -5,0 +8,0 @@ value: Value |
@@ -22,2 +22,6 @@ import type { LayerStyles, TextStyles } from './composition' | ||
/** | ||
* Whether to emit the artifacts to `node_modules` as a package. | ||
*/ | ||
emitPackage?: boolean | ||
/** | ||
* Whether to update the .gitignore file. | ||
@@ -24,0 +28,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
import type { Conditional, ConditionalValue, Conditions, Nested } from './conditions' | ||
import type { ConditionalValue, Conditions, Nested } from './conditions' | ||
import type { PropertiesFallback } from './csstype' | ||
@@ -59,3 +59,3 @@ import type { SystemProperties } from './style-props' | ||
export type CompositionStyleObject<Property extends string> = Nested<{ | ||
[K in Property]?: Conditional<K extends NativeCssProperty ? NativeCssProperties[K] : unknown> | ||
[K in Property]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown | ||
}> | ||
@@ -62,0 +62,0 @@ |
@@ -82,2 +82,3 @@ import type { Recursive } from './shared' | ||
gradients: string | Gradient | ||
screens: string | ||
} | ||
@@ -84,0 +85,0 @@ |
import type { LiteralUnion } from './shared' | ||
import type { NativeCssProperty, NestedCssProperties } from './system-types' | ||
import type { TokenCategory } from './tokens' | ||
@@ -8,3 +9,8 @@ type Getter = (path: string) => any | ||
export type PropertyValues = string | string[] | { type: string } | Record<string, string> | ThemeFn | ||
export type PropertyValues = | ||
| LiteralUnion<TokenCategory> | ||
| string[] | ||
| { type: string } | ||
| Record<string, string> | ||
| ThemeFn | ||
@@ -11,0 +17,0 @@ export type PropertyTransform = (value: any, token: Getter) => NestedCssProperties | undefined |
{ | ||
"name": "@pandacss/types", | ||
"version": "0.0.0-dev-20230122145009", | ||
"version": "0.0.0-dev-20230124104736", | ||
"description": "The types for css panda", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.d.ts", |
881258
20504