-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate BorderBox to TypeScript #973
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
49fcb9f
Upgrade styled-components dev dependency
colebemis ebf27ec
BorderBox.js → BorderBox.tsx
colebemis 32872d6
Merge remote-tracking branch 'origin/main' into cb/ts-border-box
colebemis 6b0eefa
Revert styled-compoents version
colebemis 2c03f8b
Update snapshot
colebemis dc0df4b
Add changeset
colebemis c16519e
Merge branch 'main' into cb/ts-border-box
colebemis 6a98b95
Merge remote-tracking branch 'origin/main' into cb/ts-border-box
colebemis 78098ef
Merge branch 'cb/ts-border-box' of github.com:primer/components into …
colebemis 933b44f
Merge remote-tracking branch 'origin/main' into cb/ts-border-box
colebemis f027662
Merge branch 'main' into cb/ts-border-box
colebemis 8c74234
Use ComponentProps utility type
colebemis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,5 @@ | ||
--- | ||
'@primer/components': patch | ||
--- | ||
|
||
Migrate `BorderBox` to TypeScript |
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -1948,13 +1948,6 @@ | |
dependencies: | ||
"@types/react" "^16" | ||
|
||
"@types/react-native@*": | ||
version "0.63.46" | ||
resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.63.46.tgz#942df5af29046c6f22227495e00d5297cc1cea73" | ||
integrity sha512-SnBnWRErpISIaWk4K8kAfIKqSPdZ8fdH6HIw7kVdz6jMl/5FAf6iXeIwRfVZg1bCMh+ymNPCpSENNNEVprxj/w== | ||
dependencies: | ||
"@types/react" "*" | ||
|
||
"@types/react@*": | ||
version "17.0.0" | ||
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.0.tgz#5af3eb7fad2807092f0046a1302b7823e27919b8" | ||
|
@@ -1993,15 +1986,14 @@ | |
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e" | ||
integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw== | ||
|
||
"@types/styled-components@^4.4.0": | ||
version "4.4.3" | ||
resolved "https://registry.yarnpkg.com/@types/styled-components/-/styled-components-4.4.3.tgz#74dd00ad760845a98890a8539361d8afc32059de" | ||
integrity sha512-U0udeNOZBfUkJycmGJwmzun0FBt11rZy08weVQmE2xfUNAbX8AGOEWxWna2d+qAUKxKgMlcG+TZT0+K2FfDcnQ== | ||
"@types/styled-components@5.1.7": | ||
version "5.1.7" | ||
resolved "https://registry.yarnpkg.com/@types/styled-components/-/styled-components-5.1.7.tgz#3cd10b088c1cb1acde2e4b166b3e8275a3083710" | ||
integrity sha512-BJzPhFygYspyefAGFZTZ/8lCEY4Tk+Iqktvnko3xmJf9LrLqs3+grxPeU3O0zLl6yjbYBopD0/VikbHgXDbJtA== | ||
dependencies: | ||
"@types/hoist-non-react-statics" "*" | ||
"@types/react" "*" | ||
"@types/react-native" "*" | ||
csstype "^2.2.0" | ||
csstype "^3.0.2" | ||
|
||
"@types/[email protected]": | ||
version "5.1.10" | ||
|
@@ -2068,28 +2060,28 @@ | |
"@types/yargs-parser" "*" | ||
|
||
"@typescript-eslint/eslint-plugin@>=2.25.0": | ||
version "4.14.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.14.0.tgz#92db8e7c357ed7d69632d6843ca70b71be3a721d" | ||
integrity sha512-IJ5e2W7uFNfg4qh9eHkHRUCbgZ8VKtGwD07kannJvM5t/GU8P8+24NX8gi3Hf5jST5oWPY8kyV1s/WtfiZ4+Ww== | ||
version "4.14.1" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.14.1.tgz#22dd301ce228aaab3416b14ead10b1db3e7d3180" | ||
integrity sha512-5JriGbYhtqMS1kRcZTQxndz1lKMwwEXKbwZbkUZNnp6MJX0+OVXnG0kOlBZP4LUAxEyzu3cs+EXd/97MJXsGfw== | ||
dependencies: | ||
"@typescript-eslint/experimental-utils" "4.14.0" | ||
"@typescript-eslint/scope-manager" "4.14.0" | ||
"@typescript-eslint/experimental-utils" "4.14.1" | ||
"@typescript-eslint/scope-manager" "4.14.1" | ||
debug "^4.1.1" | ||
functional-red-black-tree "^1.0.1" | ||
lodash "^4.17.15" | ||
regexpp "^3.0.0" | ||
semver "^7.3.2" | ||
tsutils "^3.17.1" | ||
|
||
"@typescript-eslint/[email protected].0": | ||
version "4.14.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.14.0.tgz#5aa7b006736634f588a69ee343ca959cd09988df" | ||
integrity sha512-6i6eAoiPlXMKRbXzvoQD5Yn9L7k9ezzGRvzC/x1V3650rUk3c3AOjQyGYyF9BDxQQDK2ElmKOZRD0CbtdkMzQQ== | ||
"@typescript-eslint/[email protected].1": | ||
version "4.14.1" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.14.1.tgz#a5c945cb24dabb96747180e1cfc8487f8066f471" | ||
integrity sha512-2CuHWOJwvpw0LofbyG5gvYjEyoJeSvVH2PnfUQSn0KQr4v8Dql2pr43ohmx4fdPQ/eVoTSFjTi/bsGEXl/zUUQ== | ||
dependencies: | ||
"@types/json-schema" "^7.0.3" | ||
"@typescript-eslint/scope-manager" "4.14.0" | ||
"@typescript-eslint/types" "4.14.0" | ||
"@typescript-eslint/typescript-estree" "4.14.0" | ||
"@typescript-eslint/scope-manager" "4.14.1" | ||
"@typescript-eslint/types" "4.14.1" | ||
"@typescript-eslint/typescript-estree" "4.14.1" | ||
eslint-scope "^5.0.0" | ||
eslint-utils "^2.0.0" | ||
|
||
|
@@ -2103,27 +2095,27 @@ | |
eslint-scope "^4.0.0" | ||
|
||
"@typescript-eslint/parser@>=2.25.0": | ||
version "4.14.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.14.0.tgz#62d4cd2079d5c06683e9bfb200c758f292c4dee7" | ||
integrity sha512-sUDeuCjBU+ZF3Lzw0hphTyScmDDJ5QVkyE21pRoBo8iDl7WBtVFS+WDN3blY1CH3SBt7EmYCw6wfmJjF0l/uYg== | ||
version "4.14.1" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.14.1.tgz#3bd6c24710cd557d8446625284bcc9c6d52817c6" | ||
integrity sha512-mL3+gU18g9JPsHZuKMZ8Z0Ss9YP1S5xYZ7n68Z98GnPq02pYNQuRXL85b9GYhl6jpdvUc45Km7hAl71vybjUmw== | ||
dependencies: | ||
"@typescript-eslint/scope-manager" "4.14.0" | ||
"@typescript-eslint/types" "4.14.0" | ||
"@typescript-eslint/typescript-estree" "4.14.0" | ||
"@typescript-eslint/scope-manager" "4.14.1" | ||
"@typescript-eslint/types" "4.14.1" | ||
"@typescript-eslint/typescript-estree" "4.14.1" | ||
debug "^4.1.1" | ||
|
||
"@typescript-eslint/[email protected].0": | ||
version "4.14.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.14.0.tgz#55a4743095d684e1f7b7180c4bac2a0a3727f517" | ||
integrity sha512-/J+LlRMdbPh4RdL4hfP1eCwHN5bAhFAGOTsvE6SxsrM/47XQiPSgF5MDgLyp/i9kbZV9Lx80DW0OpPkzL+uf8Q== | ||
"@typescript-eslint/[email protected].1": | ||
version "4.14.1" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.14.1.tgz#8444534254c6f370e9aa974f035ced7fe713ce02" | ||
integrity sha512-F4bjJcSqXqHnC9JGUlnqSa3fC2YH5zTtmACS1Hk+WX/nFB0guuynVK5ev35D4XZbdKjulXBAQMyRr216kmxghw== | ||
dependencies: | ||
"@typescript-eslint/types" "4.14.0" | ||
"@typescript-eslint/visitor-keys" "4.14.0" | ||
"@typescript-eslint/types" "4.14.1" | ||
"@typescript-eslint/visitor-keys" "4.14.1" | ||
|
||
"@typescript-eslint/[email protected].0": | ||
version "4.14.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.14.0.tgz#d8a8202d9b58831d6fd9cee2ba12f8a5a5dd44b6" | ||
integrity sha512-VsQE4VvpldHrTFuVPY1ZnHn/Txw6cZGjL48e+iBxTi2ksa9DmebKjAeFmTVAYoSkTk7gjA7UqJ7pIsyifTsI4A== | ||
"@typescript-eslint/[email protected].1": | ||
version "4.14.1" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.14.1.tgz#b3d2eb91dafd0fd8b3fce7c61512ac66bd0364aa" | ||
integrity sha512-SkhzHdI/AllAgQSxXM89XwS1Tkic7csPdndUuTKabEwRcEfR8uQ/iPA3Dgio1rqsV3jtqZhY0QQni8rLswJM2w== | ||
|
||
"@typescript-eslint/[email protected]": | ||
version "1.13.0" | ||
|
@@ -2133,26 +2125,26 @@ | |
lodash.unescape "4.0.1" | ||
semver "5.5.0" | ||
|
||
"@typescript-eslint/[email protected].0": | ||
version "4.14.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.14.0.tgz#4bcd67486e9acafc3d0c982b23a9ab8ac8911ed7" | ||
integrity sha512-wRjZ5qLao+bvS2F7pX4qi2oLcOONIB+ru8RGBieDptq/SudYwshveORwCVU4/yMAd4GK7Fsf8Uq1tjV838erag== | ||
"@typescript-eslint/[email protected].1": | ||
version "4.14.1" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.14.1.tgz#20d3b8c8e3cdc8f764bdd5e5b0606dd83da6075b" | ||
integrity sha512-M8+7MbzKC1PvJIA8kR2sSBnex8bsR5auatLCnVlNTJczmJgqRn8M+sAlQfkEq7M4IY3WmaNJ+LJjPVRrREVSHQ== | ||
dependencies: | ||
"@typescript-eslint/types" "4.14.0" | ||
"@typescript-eslint/visitor-keys" "4.14.0" | ||
"@typescript-eslint/types" "4.14.1" | ||
"@typescript-eslint/visitor-keys" "4.14.1" | ||
debug "^4.1.1" | ||
globby "^11.0.1" | ||
is-glob "^4.0.1" | ||
lodash "^4.17.15" | ||
semver "^7.3.2" | ||
tsutils "^3.17.1" | ||
|
||
"@typescript-eslint/[email protected].0": | ||
version "4.14.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.14.0.tgz#b1090d9d2955b044b2ea2904a22496849acbdf54" | ||
integrity sha512-MeHHzUyRI50DuiPgV9+LxcM52FCJFYjJiWHtXlbyC27b80mfOwKeiKI+MHOTEpcpfmoPFm/vvQS88bYIx6PZTA== | ||
"@typescript-eslint/[email protected].1": | ||
version "4.14.1" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.14.1.tgz#e93c2ff27f47ee477a929b970ca89d60a117da91" | ||
integrity sha512-TAblbDXOI7bd0C/9PE1G+AFo7R5uc+ty1ArDoxmrC1ah61Hn6shURKy7gLdRb1qKJmjHkqu5Oq+e4Kt0jwf1IA== | ||
dependencies: | ||
"@typescript-eslint/types" "4.14.0" | ||
"@typescript-eslint/types" "4.14.1" | ||
eslint-visitor-keys "^2.0.0" | ||
|
||
"@webassemblyjs/[email protected]": | ||
|
@@ -4025,11 +4017,6 @@ cssstyle@^2.0.0: | |
dependencies: | ||
cssom "~0.3.6" | ||
|
||
csstype@^2.2.0: | ||
version "2.6.14" | ||
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.14.tgz#004822a4050345b55ad4dcc00be1d9cf2f4296de" | ||
integrity sha512-2mSc+VEpGPblzAxyeR+vZhJKgYg0Og0nnRi7pmRXFYYxSfnOnW8A5wwQb4n4cE2nIOzqKOAzLCaEX6aBmNEv8A== | ||
|
||
csstype@^3.0.2, csstype@^3.0.6: | ||
version "3.0.6" | ||
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.0.6.tgz#865d0b5833d7d8d40f4e5b8a6d76aea3de4725ef" | ||
|
@@ -4463,9 +4450,9 @@ [email protected]: | |
integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= | ||
|
||
electron-to-chromium@^1.3.634: | ||
version "1.3.643" | ||
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.643.tgz#fc196e17d01f4d874ef2307b009c0cd993ebe1c7" | ||
integrity sha512-TGomM4gj8adt/uqRgPbu9F0yhUVAR1deww5X0fvbQgpGr9suSMjLgc4IwQ9YKGkp1t03cDbZum20OfAkiTYjAg== | ||
version "1.3.645" | ||
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.645.tgz#c0b269ae2ecece5aedc02dd4586397d8096affb1" | ||
integrity sha512-T7mYop3aDpRHIQaUYcmzmh6j9MAe560n6ukqjJMbVC6bVTau7dSpvB18bcsBPPtOSe10cKxhJFtlbEzLa0LL1g== | ||
|
||
elliptic@^6.5.3: | ||
version "6.5.3" | ||
|
@@ -4533,7 +4520,12 @@ entities@^1.1.1: | |
resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56" | ||
integrity sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w== | ||
|
||
entities@^2.0.0, entities@~2.1.0: | ||
entities@^2.0.0: | ||
version "2.2.0" | ||
resolved "https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55" | ||
integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A== | ||
|
||
entities@~2.1.0: | ||
version "2.1.0" | ||
resolved "https://registry.yarnpkg.com/entities/-/entities-2.1.0.tgz#992d3129cf7df6870b96c57858c249a120f8b8b5" | ||
integrity sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w== | ||
|
@@ -5385,9 +5377,9 @@ flush-write-stream@^1.0.0: | |
readable-stream "^2.3.6" | ||
|
||
follow-redirects@^1.0.0: | ||
version "1.13.1" | ||
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.1.tgz#5f69b813376cee4fd0474a3aba835df04ab763b7" | ||
integrity sha512-SSG5xmZh1mkPGyKzjZP8zLjltIfpW32Y5QpdNJyjcfGxK3qo3NDDkZOZSFiGn1A6SclQxY9GzEwAHQ3dmYRWpg== | ||
version "1.13.2" | ||
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.2.tgz#dd73c8effc12728ba5cf4259d760ea5fb83e3147" | ||
integrity sha512-6mPTgLxYm3r6Bkkg0vNM0HTjfGrOEtsfbhagQvbxDEsEkpNhw582upBaoRZylzen6krEmxXJgt9Ju6HiI4O7BA== | ||
|
||
for-in@^1.0.2: | ||
version "1.0.2" | ||
|
@@ -5790,11 +5782,12 @@ hpack.js@^2.1.6: | |
wbuf "^1.1.0" | ||
|
||
html-element-map@^1.0.0: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/html-element-map/-/html-element-map-1.2.0.tgz#dfbb09efe882806af63d990cf6db37993f099f22" | ||
integrity sha512-0uXq8HsuG1v2TmQ8QkIhzbrqeskE4kn52Q18QJ9iAA/SnHoEKXWiUxHQtclRsCFWEUD2So34X+0+pZZu862nnw== | ||
version "1.3.0" | ||
resolved "https://registry.yarnpkg.com/html-element-map/-/html-element-map-1.3.0.tgz#fcf226985d7111e6c2b958169312ec750d02f0d3" | ||
integrity sha512-AqCt/m9YaiMwaaAyOPdq4Ga0cM+jdDWWGueUMkdROZcTeClaGpN0AQeyGchZhTegQoABmc6+IqH7oCR/8vhQYg== | ||
dependencies: | ||
array-filter "^1.0.0" | ||
call-bind "^1.0.2" | ||
|
||
html-encoding-sniffer@^1.0.2: | ||
version "1.0.2" | ||
|
@@ -10708,9 +10701,9 @@ tslib@^2.0.3: | |
integrity sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A== | ||
|
||
tsutils@^3.17.1: | ||
version "3.19.1" | ||
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.19.1.tgz#d8566e0c51c82f32f9c25a4d367cd62409a547a9" | ||
integrity sha512-GEdoBf5XI324lu7ycad7s6laADfnAqCw6wLGI+knxvw9vsIYBaJfYdmeCEG3FMMUiSm3OGgNb+m6utsWf5h9Vw== | ||
version "3.20.0" | ||
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.20.0.tgz#ea03ea45462e146b53d70ce0893de453ff24f698" | ||
integrity sha512-RYbuQuvkhuqVeXweWT3tJLKOEJ/UUw9GjNEZGWdrLLlM+611o1gwLHBpxoFJKKl25fLprp2eVthtKs5JOrNeXg== | ||
dependencies: | ||
tslib "^1.8.1" | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make this a
^
version?