Patch Changes
-
2f29aa6: Bump
postcssfrom8.5.6to8.5.14to address
CVE-2026-41305. -
1d781ff: Fix
css.d.tsforsyntax: 'template-literal'mode to match the runtime implementation.Previously the generated
styled-system/css/css.d.tsonly declared a single tagged-template signature:export declare function css(template: { raw: readonly string[] | ArrayLike<string> }): string
But the runtime already supported both multi-arg invocations (
css(styleA, styleB, ...)) and acss.rawcompanion.
Calling these features failed type-checking withTS2554("Expected 1 arguments, but got N") andTS2339("Property
'raw' does not exist").The generated
dtsis now aligned with the runtime so that both forms type-check, andcss.rawreturns
SystemStyleObjectso it composes cleanly withRecord<Variant, SystemStyleObject>patterns and
cx(css(...), externalClassName)migrations:import type { SystemStyleObject } from '../types/index' type Styles = { raw: readonly string[] | ArrayLike<string> } | SystemStyleObject | boolean | null | undefined interface CssRawFunction { (...styles: Styles[]): SystemStyleObject } interface CssFunction { (...styles: Styles[]): string raw: CssRawFunction } export declare const css: CssFunction
Closes #3534.
-
Updated dependencies [2f29aa6]
-
Updated dependencies [2ea9205]
- @pandacss/core@1.11.1
- @pandacss/types@1.11.1
- @pandacss/logger@1.11.1
- @pandacss/token-dictionary@1.11.1
- @pandacss/is-valid-prop@1.11.1
- @pandacss/shared@1.11.1