You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: build correct path for debug files on windows
Add missing type PatternProperties to solve a TypeScript issue (The inferred type of xxx cannot be named without a
reference)
Fix sva typings, the splitVariantProps was missing from the d.ts file
Added
Add a getVariantProps helper to the slot recipes API (sva and config slot recipes)
import{sva}from'../styled-system/css'import{getVariantProps}from'../styled-system/recipes'constbutton=sva({slots: ['root','icon'],// ...variants: {size: {sm: {// ...},md: {// ...},},variant: {primary: {// ...},danger: {// ...}}}defaultVariants: {size: 'md',variant: 'primary',}})// ✅ this will return the computed variants based on the defaultVariants + props passedconstbuttonProps=button.getVariantProps({size: "sm"})// ^? { size: "sm", variant: "primary" }
Changed
Make WithImportant<T> more performant and ensure typescript is happy. This changes will make code autocompletion and
ts-related linting much faster than before.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
To upgrade to v0.37.2:
What's Changed
Fixed
reference)
sva
typings, thesplitVariantProps
was missing from thed.ts
fileAdded
getVariantProps
helper to the slot recipes API (sva
andconfig slot recipes
)Changed
WithImportant<T>
more performant and ensure typescript is happy. This changes will make code autocompletion andts-related linting much faster than before.
Beta Was this translation helpful? Give feedback.
All reactions