github chakra-ui/panda @pandacss/generator@0.29.0

latest releases: @pandacss/types@1.3.0, @pandacss/token-dictionary@1.3.0, @pandacss/extractor@1.3.0...
19 months ago

Minor Changes

  • f778d3e: You can now set and override defaultValues in pattern configurations.

    Here's an example of how to define a new hstack pattern with a default gap value of 40px:

    defineConfig({
      patterns: {
        hstack: {
          properties: {
            justify: { type: 'property', value: 'justifyContent' },
            gap: { type: 'property', value: 'gap' },
          },
          // you can also use a token like '10'
          defaultValues: { gap: '40px' },
          transform(props) {
            const { justify, gap, ...rest } = props
            return {
              display: 'flex',
              alignItems: 'center',
              justifyContent: justify,
              gap,
              ...rest,
            }
          },
        },
      },
    })

Patch Changes

  • 2e32794: Set display: none for hidden elements in reset css
  • Updated dependencies [5fcdeb7]
  • Updated dependencies [7c7340e]
  • Updated dependencies [f778d3e]
  • Updated dependencies [250b4d1]
  • Updated dependencies [a2fb5cc]
    • @pandacss/types@0.29.0
    • @pandacss/core@0.29.0
    • @pandacss/token-dictionary@0.29.0
    • @pandacss/is-valid-prop@0.29.0
    • @pandacss/logger@0.29.0
    • @pandacss/shared@0.29.0

Don't miss a new panda release

NewReleases is sending notifications on new releases.