Skip to content

@pandacss/compiler-shared@2.0.0-beta.0

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 15 Jun 22:59
· 33 commits to main since this release

Patch Changes

  • 742d649: Fix custom utility transform callbacks being decomposed instead of merged in the v2 engine.

    A custom utility whose transform returns a multi-declaration object now emits a single class keyed on the utility's
    className (matching the legacy engine) instead of shattering into separate per-property atoms. This restores:

    • GroupingspaceX: { className: 'space-x', transform: (v) => ({ marginLeft: v, marginRight: v }) } used as
      css({ spaceX: '4' }) emits .space-x_4 { margin-left: …; margin-right: … }.
    • Token resolution — the values category is resolved before the callback runs (boxColor: 'red'
      var(--colors-red)).
    • !important — preserved through the transform result.
    • Conditions returned by the transform_hover/child selectors lower to real selectors.

    Recipes that exercise utility transforms get the same token-resolution and nested-condition fix.