Patch Changes
-
a48f963: Fix
strictPropertyValues
with border* propertiesWe had listed
border\*
properties as affected bystrictPropertyValues
but they shouldn't be restricted as their
syntax is too complex to be restricted. This removes anyborder*
properties that do not specifically end withStyle
likeborderTopStyle
.import { css } from "../styled-system/css"; css({ borderTop: "1px solid red", // ✅ will now be fine as it should be borderTopStyle: "abc", // ✅ will still report a TS error });
type StrictableProps = | 'alignContent' | 'alignItems' | 'alignSelf' | 'all' | 'animationComposition' | 'animationDirection' | 'animationFillMode' | 'appearance' | 'backfaceVisibility' | 'backgroundAttachment' | 'backgroundClip' | 'borderCollapse' - | 'border' - | 'borderBlock' - | 'borderBlockEnd' - | 'borderBlockStart' - | 'borderBottom' - | 'borderInline' - | 'borderInlineEnd' - | 'borderInlineStart' - | 'borderLeft' - | 'borderRight' - | 'borderTop' | 'borderBlockEndStyle' | 'borderBlockStartStyle' | 'borderBlockStyle' | 'borderBottomStyle' | 'borderInlineEndStyle' | 'borderInlineStartStyle' | 'borderInlineStyle' | 'borderLeftStyle' | 'borderRightStyle' | 'borderTopStyle' | 'boxDecorationBreak' | 'boxSizing' | 'breakAfter' | 'breakBefore' | 'breakInside' | 'captionSide' | 'clear' | 'columnFill' | 'columnRuleStyle' | 'contentVisibility' | 'direction' | 'display' | 'emptyCells' | 'flexDirection' | 'flexWrap' | 'float' | 'fontKerning' | 'forcedColorAdjust' | 'isolation' | 'lineBreak' | 'mixBlendMode' | 'objectFit' | 'outlineStyle' | 'overflow' | 'overflowX' | 'overflowY' | 'overflowBlock' | 'overflowInline' | 'overflowWrap' | 'pointerEvents' | 'position' | 'resize' | 'scrollBehavior' | 'touchAction' | 'transformBox' | 'transformStyle' | 'userSelect' | 'visibility' | 'wordBreak' | 'writingMode'
-
Updated dependencies [0bf09f2]
- @pandacss/core@0.34.2
- @pandacss/types@0.34.2
- @pandacss/is-valid-prop@0.34.2
- @pandacss/logger@0.34.2
- @pandacss/shared@0.34.2
- @pandacss/token-dictionary@0.34.2