@pandacss/types
Advanced tools
Comparing version 0.36.1 to 0.37.0
@@ -87,2 +87,3 @@ import type { TSConfig } from 'pkg-types' | ||
export type CssPropertySyntax = | ||
| '*' | ||
| '<length>' | ||
@@ -112,3 +113,3 @@ | '<number>' | ||
*/ | ||
initialValue: string | ||
initialValue?: string | ||
/** | ||
@@ -178,15 +179,17 @@ * Describes the allowable syntax for the property. | ||
export interface ImportMapInput { | ||
css: string | ||
recipes: string | ||
patterns: string | ||
jsx?: string | ||
css?: string | string[] | ||
recipes?: string | string[] | ||
patterns?: string | string[] | ||
jsx?: string | string[] | ||
} | ||
export interface ImportMapOutput<T = string[]> { | ||
css: T | ||
recipe: T | ||
pattern: T | ||
jsx: T | ||
export interface ImportMapOutput<T = string> { | ||
css: T[] | ||
recipe: T[] | ||
pattern: T[] | ||
jsx: T[] | ||
} | ||
type ImportMapOption = string | ImportMapInput | ||
interface FileSystemOptions { | ||
@@ -215,3 +218,3 @@ /** | ||
*/ | ||
importMap?: string | ImportMapInput | ||
importMap?: ImportMapOption | Array<ImportMapOption> | ||
/** | ||
@@ -218,0 +221,0 @@ * List of files glob to watch for changes. |
@@ -5,3 +5,3 @@ import type { Artifact, ArtifactId, DiffConfigResult } from './artifact' | ||
import type { LoggerInterface } from './logger' | ||
import type { ParserResultInterface } from './parser' | ||
import type { ParserResultInterface, ResultItem } from './parser' | ||
@@ -37,2 +37,6 @@ export interface PandaHooks { | ||
/** | ||
* @private USE IT ONLY IF YOU KNOW WHAT YOU ARE DOING | ||
*/ | ||
'parser:preprocess': JsxFactoryResultTransform['transform'] | ||
/** | ||
* Called after the file styles are extracted and processed into the resulting ParserResult object. | ||
@@ -154,2 +158,6 @@ * You can also use this hook to add your own extraction results from your custom parser to the ParserResult object. | ||
export interface JsxFactoryResultTransform { | ||
transform: (result: { type: 'jsx-factory'; data: ResultItem['data'] }) => ResultItem['data'] | ||
} | ||
export interface ParserResultAfterHookArgs { | ||
@@ -156,0 +164,0 @@ filePath: string |
@@ -88,2 +88,3 @@ import type { LiteralUnion } from './shared' | ||
| 'Background' | ||
| 'Background Gradient' | ||
| 'Shadow' | ||
@@ -90,0 +91,0 @@ | 'Table' |
{ | ||
"name": "@pandacss/types", | ||
"version": "0.36.1", | ||
"version": "0.37.0", | ||
"description": "The types for css panda", | ||
@@ -34,3 +34,3 @@ "main": "dist/index.d.ts", | ||
"ts-morph": "21.0.1", | ||
"@pandacss/extractor": "0.36.1" | ||
"@pandacss/extractor": "0.37.0" | ||
}, | ||
@@ -37,0 +37,0 @@ "scripts": { |
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
964554
22687