Skip to content

Commit

Permalink
remove tinycolor2 (#1634)
Browse files Browse the repository at this point in the history
Co-authored-by: Brandon Scott <[email protected]>
  • Loading branch information
sfavello and brandongregoryscott authored Apr 12, 2023
1 parent fa23dfd commit 1dcd02d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 26 deletions.
6 changes: 0 additions & 6 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2363,7 +2363,6 @@ [email protected]:
prop-types "^15.6.2"
react-fast-compare "^3.2.0"
react-transition-group "^4.4.1"
tinycolor2 "^1.4.1"
ui-box "^5.4.0"

extend-shallow@^2.0.1:
Expand Down Expand Up @@ -4247,11 +4246,6 @@ tiny-emitter@^2.0.0:
resolved "https://registry.yarnpkg.com/tiny-emitter/-/tiny-emitter-2.1.0.tgz#1d1a56edfc51c43e863cbb5382a72330e3555423"
integrity sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==

tinycolor2@^1.4.1:
version "1.4.2"
resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.4.2.tgz#3f6a4d1071ad07676d7fa472e1fac40a719d8803"
integrity sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA==

to-fast-properties@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
Expand Down
6 changes: 0 additions & 6 deletions examples/ssr-next/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ evergreen-ui@latest:
react-scrollbar-size "^2.0.2"
react-tiny-virtual-list "^2.1.4"
react-transition-group "^4.4.1"
tinycolor2 "^1.4.1"
ui-box "^4.0.0"

fbjs@^0.8.12, fbjs@^0.8.16:
Expand Down Expand Up @@ -508,11 +507,6 @@ through@^2.3.8:
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=

tinycolor2@^1.4.1:
version "1.4.2"
resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.4.2.tgz#3f6a4d1071ad07676d7fa472e1fac40a719d8803"
integrity sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA==

ua-parser-js@^0.7.18:
version "0.7.28"
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.28.tgz#8ba04e653f35ce210239c64661685bf9121dec31"
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
"prop-types": "^15.6.2",
"react-fast-compare": "^3.2.0",
"react-transition-group": "^4.4.1",
"tinycolor2": "^1.4.1",
"ui-box": "^5.4.0"
},
"peerDependencies": {
Expand Down Expand Up @@ -126,7 +125,6 @@
"@types/node": "^17.0.21",
"@types/react-is": "17.0.3",
"@types/testing-library__jest-dom": "5.14.3",
"@types/tinycolor2": "^1.4.3",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"babel-core": "7.0.0-bridge.0",
Expand Down
3 changes: 1 addition & 2 deletions src/themes/default/components/badge.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import tinycolor from 'tinycolor2'
import { get } from '../../../theme/src/theme-tools'

const baseStyle = {
Expand All @@ -16,7 +15,7 @@ const appearances = {
subtle: (theme, props) => {
const scheme = get(theme, `fills.${props.color}`, {
backgroundColor: props.color,
color: tinycolor(props.color).isLight() ? 'colors.dark' : 'white'
color: props.color
})

return {
Expand Down
10 changes: 0 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3436,11 +3436,6 @@
dependencies:
"@types/jest" "*"

"@types/tinycolor2@^1.4.3":
version "1.4.3"
resolved "https://registry.yarnpkg.com/@types/tinycolor2/-/tinycolor2-1.4.3.tgz#ed4a0901f954b126e6a914b4839c77462d56e706"
integrity sha512-Kf1w9NE5HEgGxCRyIcRXR/ZYtDv0V8FVPtYHwLxl0O+maGX0erE77pQlD0gpP+/KByMZ87mOA79SjifhSB3PjQ==

"@types/uglify-js@*":
version "3.13.1"
resolved "https://registry.yarnpkg.com/@types/uglify-js/-/uglify-js-3.13.1.tgz#5e889e9e81e94245c75b6450600e1c5ea2878aea"
Expand Down Expand Up @@ -14120,11 +14115,6 @@ timsort@^0.3.0:
resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4"
integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=

tinycolor2@^1.4.1:
version "1.4.2"
resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.4.2.tgz#3f6a4d1071ad07676d7fa472e1fac40a719d8803"
integrity sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA==

[email protected]:
version "3.0.2"
resolved "https://registry.yarnpkg.com/tmp-promise/-/tmp-promise-3.0.2.tgz#6e933782abff8b00c3119d63589ca1fb9caaa62a"
Expand Down

0 comments on commit 1dcd02d

Please sign in to comment.