github chakra-ui/panda @pandacss/parser@0.8.0

latest releases: @pandacss/types@0.53.0, @pandacss/preset-panda@0.53.0, @pandacss/token-dictionary@0.53.0...
19 months ago

Minor Changes

  • 9ddf258: Introduce the new {fn}.raw method that allows for a super flexible usage and extraction 🎉 :

    <Button rootProps={css.raw({ bg: "red.400" })} />
    
    // recipe in storybook
    export const Funky: Story = {
    	args: button.raw({
    		visual: "funky",
    		shape: "circle",
    		size: "sm",
    	}),
    };
    
    // mixed with pattern
    const stackProps = {
      sm: stack.raw({ direction: "column" }),
      md: stack.raw({ direction: "row" })
    }
    
    stack(stackProps[props.size]))

Patch Changes

  • fb44901: Fix cases where Stitches styled.withConfig would be misinterpreted as a panda fn and lead to this error:

    TypeError: Cannot read properties of undefined (reading 'startsWith')
        at /panda/packages/shared/dist/index.js:433:16
        at get (/panda/packages/shared/dist/index.js:116:20)
        at Utility.setClassName (/panda/packages/core/dist/index.js:1682:66)
        at inner (/panda/packages/core/dist/index.js:1705:14)
        at Utility.getOrCreateClassName (/panda/packages/core/dist/index.js:1709:12)
        at AtomicRule.transform (/panda/packages/core/dist/index.js:1729:23)
        at /panda/packages/core/dist/index.js:323:32
        at inner (/panda/packages/shared/dist/index.js:219:12)
        at walkObject (/panda/packages/shared/dist/index.js:221:10)
        at AtomicRule.process (/panda/packages/core/dist/index.js:317:35)
  • be0ad57: Fix parser issue with TS path mappings

  • 78612d7: Fix node evaluation in extractor process (can happen when using a BinaryExpression, simple CallExpression or
    conditions)

  • Updated dependencies [fb44901]

  • Updated dependencies [e1f6318]

  • Updated dependencies [be0ad57]

  • Updated dependencies [78612d7]

    • @pandacss/extractor@0.8.0
    • @pandacss/config@0.8.0
    • @pandacss/types@0.8.0
    • @pandacss/is-valid-prop@0.8.0
    • @pandacss/logger@0.8.0
    • @pandacss/shared@0.8.0

Don't miss a new panda release

NewReleases is sending notifications on new releases.