Skip to content

Latest commit

 

History

History
309 lines (177 loc) · 4.75 KB

CHANGELOG.md

File metadata and controls

309 lines (177 loc) · 4.75 KB

@pandacss/is-valid-prop

0.51.1

0.51.0

0.50.0

0.49.0

0.48.1

0.48.0

0.47.1

0.47.0

0.46.1

0.46.0

0.45.2

0.45.1

0.45.0

0.44.0

0.43.0

0.42.0

0.41.0

0.40.1

0.40.0

0.39.2

0.39.1

0.39.0

0.38.0

0.37.2

0.37.1

0.37.0

0.36.1

0.36.0

Minor Changes

  • fabdabe: ## Changes

    When using strictTokens: true, if you didn't have tokens (or semanticTokens) on a given Token category, you'd still not be able to use any values in properties bound to that category. Now, strictTokens will correctly only restrict properties that have values in their token category.

    Example:

    // panda.config.ts
    
    export default defineConfig({
      // ...
      strictTokens: true,
      theme: {
        extend: {
          colors: {
            primary: { value: 'blue' },
          },
          // borderWidths: {}, // ⚠️ nothing defined here
        },
      },
    })
    // app.tsx
    css({
      // ❌ before this PR, TS would throw an error as you are supposed to only use Tokens
      // even thought you don't have any `borderWidths` tokens defined !
    
      // ✅ after this PR, TS will not throw an error anymore as you don't have any `borderWidths` tokens
      // if you add one, this will error again (as it's supposed to)
      borderWidths: '123px',
    })

    Description

    • Simplify typings for the style properties.
    • Add the csstype comments for each property.

    You will now be able to see a utility or csstype values in 2 clicks !

    How

    Instead of relying on TS to infer the correct type for each properties, we now just generate the appropriate value for each property based on the config.

    This should make it easier to understand the type of each property and might also speed up the TS suggestions as there's less to infer.

0.35.0

0.34.3

0.34.2

0.34.1

0.34.0

0.33.0

0.32.1

0.32.0

0.31.0

0.30.2

0.30.1

0.30.0

0.29.1

0.29.0

0.28.0

0.27.3

0.27.2

0.27.1

0.27.0

Minor Changes

  • 84304901: Improve performance, mostly for the CSS generation by removing a lot of postcss usage (and plugins).

    Public changes:

    • Introduce a new config.lightningcss option to use lightningcss (currently disabled by default) instead of postcss.
    • Add a new config.browserslist option to configure the browserslist used by lightningcss.
    • Add a --lightningcss flag to the panda and panda cssgen command to use lightningcss instead of postcss for this run.

    Internal changes:

    • markImportant fn from JS instead of walking through postcss AST nodes
    • use a fork of stitches stringify function instead of postcss-css-in-js to write the CSS string from a JS object
    • only compute once TokenDictionary properties
    • refactor serializeStyle to use the same code path as the rest of the pipeline with StyleEncoder / StyleDecoder and rename it to transformStyles to better convey what it does

0.26.2

0.26.1

0.26.0

0.25.0

0.24.2

0.24.1

0.24.0

0.23.0

0.22.1

0.22.0

0.21.0

0.20.1

0.20.0

0.19.0

0.18.3

0.18.2

0.18.1

0.18.0

0.17.5

0.17.4

0.17.3

0.17.2

0.17.1

0.17.0

0.16.0

0.15.5

0.15.4

0.15.3

0.15.2

0.15.1

0.15.0

0.14.0

0.13.1

0.13.0

0.12.2

0.12.1

0.12.0

0.11.1

Patch Changes

  • dfb3f85f: Add missing svg props types

0.11.0

0.10.0

Patch Changes

  • 24e783b3: Reduce the overall outdir size, introduce the new config jsxStyleProps option to disable style props and further reduce it.

    config.jsxStyleProps:

    • When set to 'all', all style props are allowed.
    • When set to 'minimal', only the css prop is allowed.
    • When set to 'none', no style props are allowed and therefore the jsxFactory will not be usable as a component:
      • <styled.div /> and styled("div") aren't valid
      • but the recipe usage is still valid styled("div", { base: { color: "red.300" }, variants: { ...} })
  • 6d4eaa68: Refactor code

0.9.0

0.8.0

0.7.0

0.6.0

0.5.1

0.5.0

0.4.0

Patch Changes

  • 54a8913c: Fix issue where patterns that include css selectors doesn't work in JSX

0.3.2

0.3.1

Patch Changes

  • efd79d83: Baseline release for the launch

0.3.0

0.0.2

Patch Changes

  • fb40fff2: Initial release of all packages

    • Internal AST parser for TS and TSX
    • Support for defining presets in config
    • Support for design tokens (core and semantic)
    • Add outExtension key to config to allow file extension options for generated javascript. .js or .mjs
    • Add jsxElement option to patterns, to allow specifying the jsx element rendered by the patterns.