Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
feat: add utility props from rn 0.71
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit-tailor committed Oct 16, 2023
1 parent fa3021a commit 8853ed3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/react/src/core/styled-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export const CSSPropertiesMap = {
borderTopWidth: '0',
borderEndWidth: '0',
borderStartWidth: '0',
borderEndEndRadius: '0',
borderStartStartRadius: '0',
borderStartEndRadius: '0',
borderEndStartRadius: '0',
borderWidth: '0',
bottom: 'auto',
direction: 'ltr',
Expand Down Expand Up @@ -65,6 +69,9 @@ export const CSSPropertiesMap = {
borderBottomLeftRadius: '0',
borderBottomRightRadius: '0',
borderColor: 'initial',
borderBlockColor: 'initial',
borderBlockEndColor: 'initial',
borderBlockStartColor: 'initial',
borderRadius: '0',
borderTopLeftRadius: '0',
borderTopRightRadius: '0',
Expand Down Expand Up @@ -92,6 +99,7 @@ export const CSSPropertiesMap = {
textShadowOffset: '0px 0px',
textShadowRadius: '0',
textAlignVertical: 'auto',
verticalAlign: 'auto',
letterSpacing: 'normal',
textDecorationColor: 'initial',
textDecorationStyle: 'solid',
Expand All @@ -101,6 +109,7 @@ export const CSSPropertiesMap = {
borderStartColor: 'initial',
borderTopEndRadius: '0',
borderTopStartRadius: '0',
userSelect: 'auto',
};

export const reservedKeys = {
Expand Down
9 changes: 9 additions & 0 deletions packages/react/src/propertyTokenMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@ export const propertyTokenMap = {
textDecorationColor: colors,
shadowColor: colors,

borderBlockColor: colors,
borderBlockEndColor: colors,
borderBlockStartColor: colors,

borderEndEndRadius: radii,
borderStartStartRadius: radii,
borderStartEndRadius: radii,
borderEndStartRadius: radii,

shadowOpacity: opacity,
opacity: opacity,

Expand Down

0 comments on commit 8853ed3

Please sign in to comment.