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

feat: add utility props from rn 0.71 #480

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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