-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add should forward props to box and text (#2285)
* feat: add should forward props to box and text * fix: types and changesets * fix: exclude size from being prevented * fix: modal overlay to use styled component * chore: changeset Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
003ae44
commit cf5878d
Showing
27 changed files
with
251 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@twilio-paste/modal-dialog-primitive': minor | ||
'@twilio-paste/core': minor | ||
--- | ||
|
||
[Modal primitive] update to Reach Modal version number to v0.16.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@twilio-paste/modal': patch | ||
'@twilio-paste/core': patch | ||
--- | ||
|
||
[Modal] Switch modal overlay to using a pure styled component and not Box |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@twilio-paste/styling-library': minor | ||
'@twilio-paste/core': minor | ||
--- | ||
|
||
[Styling library] two new exports from styled system, `props` and `createShouldForwardProp`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@twilio-paste/box': minor | ||
'@twilio-paste/text': minor | ||
'@twilio-paste/core': minor | ||
--- | ||
|
||
[Box, Text] Prevented styling props from being forwarded to their HTML DOM nodes in the browser for a cleaner DOM inspector view |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
packages/paste-core/primitives/box/src/CustomStyleProps.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
export const customStyleProps = { | ||
color: { | ||
property: 'color', | ||
scale: 'textColors', | ||
}, | ||
backgroundColor: { | ||
property: 'backgroundColor', | ||
scale: 'backgroundColors', | ||
}, | ||
borderColor: { | ||
property: 'borderColor', | ||
scale: 'borderColors', | ||
}, | ||
borderBottomColor: { | ||
property: 'borderBottomColor', | ||
scale: 'borderColors', | ||
}, | ||
borderLeftColor: { | ||
property: 'borderLeftColor', | ||
scale: 'borderColors', | ||
}, | ||
borderRightColor: { | ||
property: 'borderRightColor', | ||
scale: 'borderColors', | ||
}, | ||
borderTopColor: { | ||
property: 'borderTopColor', | ||
scale: 'borderColors', | ||
}, | ||
content: true, | ||
cursor: true, | ||
appearance: true, | ||
transition: true, | ||
transform: true, | ||
animation: true, | ||
transformOrigin: true, | ||
visibility: true, | ||
userSelect: true, | ||
pointerEvents: true, | ||
boxSizing: true, | ||
resize: true, | ||
listStyleType: true, | ||
listStylePosition: true, | ||
listStyleImage: true, | ||
objectFit: true, | ||
objectPosition: true, | ||
outline: true, | ||
float: true, | ||
willChange: true, | ||
clip: true, | ||
backgroundAttachment: true, | ||
textAlign: true, | ||
textTransform: true, | ||
textDecoration: true, | ||
textOverflow: true, | ||
whiteSpace: true, | ||
wordBreak: true, | ||
wordWrap: true, | ||
overflowWrap: true, | ||
opacity: true, | ||
borderCollapse: true, | ||
borderSpacing: true, | ||
tableLayout: true, | ||
fontVariantNumeric: true, | ||
columnGap: { | ||
property: 'columnGap', | ||
scale: 'space', | ||
}, | ||
rowGap: { | ||
property: 'rowGap', | ||
scale: 'space', | ||
}, | ||
}; |
Oops, something went wrong.