File tree 5 files changed +1
-26
lines changed
src/themes/default/components
5 files changed +1
-26
lines changed Original file line number Diff line number Diff line change 2363
2363
prop-types "^15.6.2"
2364
2364
react-fast-compare "^3.2.0"
2365
2365
react-transition-group "^4.4.1"
2366
- tinycolor2 "^1.4.1"
2367
2366
ui-box "^5.4.0"
2368
2367
2369
2368
extend-shallow@^2.0.1 :
@@ -4247,11 +4246,6 @@ tiny-emitter@^2.0.0:
4247
4246
resolved "https://registry.yarnpkg.com/tiny-emitter/-/tiny-emitter-2.1.0.tgz#1d1a56edfc51c43e863cbb5382a72330e3555423"
4248
4247
integrity sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==
4249
4248
4250
- tinycolor2@^1.4.1 :
4251
- version "1.4.2"
4252
- resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.4.2.tgz#3f6a4d1071ad07676d7fa472e1fac40a719d8803"
4253
- integrity sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA==
4254
-
4255
4249
to-fast-properties@^2.0.0 :
4256
4250
version "2.0.0"
4257
4251
resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
Original file line number Diff line number Diff line change @@ -224,7 +224,6 @@ evergreen-ui@latest:
224
224
react-scrollbar-size "^2.0.2"
225
225
react-tiny-virtual-list "^2.1.4"
226
226
react-transition-group "^4.4.1"
227
- tinycolor2 "^1.4.1"
228
227
ui-box "^4.0.0"
229
228
230
229
fbjs@^0.8.12, fbjs@^0.8.16 :
@@ -508,11 +507,6 @@ through@^2.3.8:
508
507
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
509
508
integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=
510
509
511
- tinycolor2@^1.4.1 :
512
- version "1.4.2"
513
- resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.4.2.tgz#3f6a4d1071ad07676d7fa472e1fac40a719d8803"
514
- integrity sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA==
515
-
516
510
ua-parser-js@^0.7.18 :
517
511
version "0.7.28"
518
512
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.28.tgz#8ba04e653f35ce210239c64661685bf9121dec31"
Original file line number Diff line number Diff line change 79
79
"prop-types" : " ^15.6.2" ,
80
80
"react-fast-compare" : " ^3.2.0" ,
81
81
"react-transition-group" : " ^4.4.1" ,
82
- "tinycolor2" : " ^1.4.1" ,
83
82
"ui-box" : " ^5.4.0"
84
83
},
85
84
"peerDependencies" : {
126
125
"@types/node" : " ^17.0.21" ,
127
126
"@types/react-is" : " 17.0.3" ,
128
127
"@types/testing-library__jest-dom" : " 5.14.3" ,
129
- "@types/tinycolor2" : " ^1.4.3" ,
130
128
"@typescript-eslint/eslint-plugin" : " ^5.14.0" ,
131
129
"@typescript-eslint/parser" : " ^5.14.0" ,
132
130
"babel-core" : " 7.0.0-bridge.0" ,
Original file line number Diff line number Diff line change 1
- import tinycolor from 'tinycolor2'
2
1
import { get } from '../../../theme/src/theme-tools'
3
2
4
3
const baseStyle = {
@@ -16,7 +15,7 @@ const appearances = {
16
15
subtle : ( theme , props ) => {
17
16
const scheme = get ( theme , `fills.${ props . color } ` , {
18
17
backgroundColor : props . color ,
19
- color : tinycolor ( props . color ) . isLight ( ) ? 'colors.dark' : 'white'
18
+ color : props . color
20
19
} )
21
20
22
21
return {
Original file line number Diff line number Diff line change 3436
3436
dependencies:
3437
3437
"@types/jest" "*"
3438
3438
3439
- "@types/tinycolor2@^1.4.3":
3440
- version "1.4.3"
3441
- resolved "https://registry.yarnpkg.com/@types/tinycolor2/-/tinycolor2-1.4.3.tgz#ed4a0901f954b126e6a914b4839c77462d56e706"
3442
- integrity sha512-Kf1w9NE5HEgGxCRyIcRXR/ZYtDv0V8FVPtYHwLxl0O+maGX0erE77pQlD0gpP+/KByMZ87mOA79SjifhSB3PjQ==
3443
-
3444
3439
"@types/uglify-js@*":
3445
3440
version "3.13.1"
3446
3441
resolved "https://registry.yarnpkg.com/@types/uglify-js/-/uglify-js-3.13.1.tgz#5e889e9e81e94245c75b6450600e1c5ea2878aea"
@@ -14120,11 +14115,6 @@ timsort@^0.3.0:
14120
14115
resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4"
14121
14116
integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=
14122
14117
14123
- tinycolor2@^1.4.1:
14124
- version "1.4.2"
14125
- resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.4.2.tgz#3f6a4d1071ad07676d7fa472e1fac40a719d8803"
14126
- integrity sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA==
14127
-
14128
14118
14129
14119
version "3.0.2"
14130
14120
resolved "https://registry.yarnpkg.com/tmp-promise/-/tmp-promise-3.0.2.tgz#6e933782abff8b00c3119d63589ca1fb9caaa62a"
You can’t perform that action at this time.
0 commit comments