Minor Changes
-
aa90e4a:
panda analyzenow counts what your config uses, not just your source files.- Shows where each name is used, like
3 files, globalCssorvia animations.spin - Adds a
compositionsscope for text, layer, and animation styles - Counts styles a design system brings in through build info
- Fix
removeUnusedKeyframesdropping keyframes used only through an animation token - Fix
removeUnusedKeyframesdropping keyframes used underglobalCssselectors likeporh
- Shows where each name is used, like
-
f01a419: Add
jsxMatchTagto choose which JSX components Panda reads style props from. Match by name or import path;
the last matching rule wins.export default defineConfig({ jsxMatchTag: [ { from: '@tanstack/react-table', ignore: true }, { tag: /Button$/, props: ['color'] }, ], })
Patch Changes
-
675fa00: Fix slow first builds with the PostCSS plugin in projects that have imports Panda can't resolve.
-
1fb2ee8: Fix watch mode ignoring edits to a newly swapped-in preset.
-
36b18da: Fix recipe variants emitting in alphabetical order. They follow your config again, so a later variant
overrides an earlier one:variants: { visual: { solid: { padding: '1px' } }, size: { sm: { padding: '4px' } }, // `size` wins, as declared }
Slots, compound variants,
variantKeys, andvariantMapkeep config order too. -
8c179ea: Fix
TS2590: Expression produces a union type that is too complex to representwhenforwardPropsnames a
style prop on a component with many props, likestyled('input', {}, { forwardProps: ['color'] }). -
f01a419: Stop extracting data props from components Panda doesn't own. A prop like
columnson a table component no
longer emits CSS or anested_propertywarning when its value isn't a style:<DataTable columns={[{ header: 'Name', accessorKey: 'name' }]} />
-
dd1e618:
normalizeHTMLPropsfromstyled-system/helpersreturnsRecord<string, any>again, as it did up to 2.1.1.
Since 2.1.2 it returnedRecord<string, unknown>, so reading a prop off the result failed to type-check. -
bc2b4cb: If you build a component library on Panda's
jsxhelpers, your.d.tsbuilds work again. Since 2.1.2,
exporting awithProviderorwithContextcomponent could fail with TS2742 or TS4023, or copy the whole props type
into your declarations. Types likeSlotRecipeProviderComponentandWithProviderOptionsare exported from
styled-system/jsxagain, as they were in 2.1.1. -
0b93f20: Fix file paths on Windows starting with
\\?\, so they match the paths Node and your bundler use. -
d1ee159: Fix tokens whose name starts with their own category, like
colors.grey50undercolors:- Generated types now list
colors.grey50instead ofgrey50, so the token type-checks understrictTokensand the
raw name no longer does. staticCsswildcards on pattern props no longer cut nested token names short, likered.500becoming500.
- Generated types now list
-
93269f5: Report missing tokens in style strings during linting and
panda cssgen, including references with
fallbacks. Check pattern style props with rules such asprefer-token. -
5616e53: Fix
cva()andsva()calls staying in the bundle when a variant or slot has an empty style, like
false: {}. -
Updated dependencies [aa90e4a]
-
Updated dependencies [675fa00]
-
Updated dependencies [f01a419]
-
Updated dependencies [93269f5]
- @pandacss/compiler-shared@2.3.0
- @pandacss/types@2.3.0
- @pandacss/config@2.3.0