Minor Changes
-
df2546a: BREAKING 💥
Remove
linkBox
pattern in favor of using addingposition: relative
when using thelinkOverlay
pattern.Before
import { linkBox, linkOverlay } from "styled-system/patterns"; const App = () => { return ( <div className={linkBox()}> <img src="https://via.placeholder.com/150" alt="placeholder" /> <a href="#" className={linkOverlay()}> Link </a> </div> ); };
After
import { css } from "styled-system/css"; import { linkOverlay } from "styled-system/patterns"; const App = () => { return ( <div className={css({ pos: "relative" })}> <img src="https://via.placeholder.com/150" alt="placeholder" /> <a href="#" className={linkOverlay()}> Link </a> </div> ); };
-
221c9a2: Add support for more typography related properties in text styles such as
fontFeatureSettings
,fontPalette
, etc.
Patch Changes
-
0714f31: Fix issue where
mergeCss
import instyled-system/jsx/*
could be unused. -
2116abe: Fix issue where
float
property did not allow inherited values (auto, initial, none, etc.) -
c3e797e: Fix issue where
animationName
property was not connected totheme.keyframes
, as a result, no autocompletion was
available. -
935ec86: Allow passing arrays of
SystemStyleObject
to thecss(xxx, [aaa, bbb, ccc], yyy)
fnThis is useful when you are creating your own styled component and want to benefit
from the recentcss
array property support.import { css } from 'styled-system/css' import type { HTMLStyledProps } from 'styled-system/types' type ButtonProps = HTMLStyledProps<'button'> export const Button = ({ css: cssProp = {}, children }: ButtonProps) => { - const className = css(...(Array.isArray(cssProp) ? cssProp : [cssProp])) + const className = css(cssProp) return <button className={className}>{children}</button> }
-
Updated dependencies [221c9a2]
-
Updated dependencies [c3e797e]
-
Updated dependencies [935ec86]
- @pandacss/types@0.39.0
- @pandacss/core@0.39.0
- @pandacss/shared@0.39.0
- @pandacss/logger@0.39.0
- @pandacss/token-dictionary@0.39.0
- @pandacss/is-valid-prop@0.39.0