@pandacss/compiler@2.0.0-beta.4
Pre-releaseMinor Changes
- 9521059: Add a
--includeflag to the scanning commands (panda,build,dev,check,cssgen,debug,info,
buildinfo) to override the config'sincludeglobs for a single run. The flag is repeatable and accepts
comma-separated values, and replaces (does not merge with) the configured globs — useful for scanning a subset of
files in CI or one-off builds.
Patch Changes
-
74dab7b:
styled-system/types/indexnow re-exports./jsxfor all JSX frameworks, not just React. Solid, Vue,
Preact, and Qwik generatedtypes/jsxbut never re-exported it, which could cause "inferred type cannot be named"
TypeScript errors. -
0202dba: Fix
globalCssand token-reference parity with extracted styles.- Expand composition props and nested utility transforms in
globalCss. - Resolve token references in raw at-rule conditions.
- Preserve
token(path, fallback)fallbacks in emitted CSS variables.
- Expand composition props and nested utility transforms in
-
23580df: Expose lint-friendly inspection data from
inspectFileSource, including extracted calls, JSX entries, token
references, component entries, and style entries with safe local key/value spans. Style entries cover every
style-writing form —css()(including thecss(a, b)multi-argument merge), style props, responsive arrays,
per-prop conditions, JSXcssprops (object andcss={[...]}array forms), and recipe styles incva/sva/
styled('div', { ... })(base,variants,compoundVariants) — and carry per-leaf value spans so tooling can
offer precise fixes everywhere. Each style entry also carries anowner(the enclosing call/JSX element) so tooling
can group sibling properties from the same style block.compiler.spec()now reports deprecation richer:tokens.deprecatedandutilities.deprecatedare maps of name →
deprecation (true, or the author'sdeprecated: 'use X instead'message), recipe definitions carry adeprecated
flag, and recipes/slotRecipes are exposed as top-levelspec.recipes/spec.slotRecipes(previously nested under
spec.recipes.recipes).Add
compiler.suggestToken(prop, value)— given a hardcoded value, returns the token to use (semantic tokens
preferred over the primitives they reference, with hex and px/rem normalization), ornull. Token references in
inspection results also carryisVar(whether the call wastoken.var(...)). -
5316642: Fix slot recipe inference to include slots that appear only in
compoundVariants. Previously, whenslots
was omitted from ansvacall, a slot used solely inside a compound variant'scsswas dropped and its styles never
emitted. -
1378d4a: Complete the SVG asset color-name shortening table (full parity with v1's 55 named colors) and fix a hex
substring-match bug where values like#fff000were incorrectly shortened towhite000. -
Updated dependencies [23580df]
- @pandacss/compiler-shared@2.0.0-beta.4
- @pandacss/config@2.0.0-beta.4