File tree Expand file tree Collapse file tree 7 files changed +25
-34
lines changed Expand file tree Collapse file tree 7 files changed +25
-34
lines changed Original file line number Diff line number Diff line change 14
14
"@types/react-dom" : " ^16.9.7" ,
15
15
"react" : " ^16.13.1" ,
16
16
"react-dom" : " ^16.13.1" ,
17
+ "react-input-verification-code" : " ^0.4.2" ,
17
18
"react-scripts" : " ^3.4.1" ,
18
- "typescript" : " ^3.7.5" ,
19
- "react-input-verification-code" : " latest"
19
+ "typescript" : " ^3.7.5"
20
20
},
21
21
"devDependencies" : {
22
22
"@babel/plugin-syntax-object-rest-spread" : " ^7.8.3"
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import * as React from 'react';
2
2
import * as ReactDOM from 'react-dom' ;
3
3
import ReactInputVerificationCode from 'react-input-verification-code' ;
4
4
5
- import 'react-input-verification-code/dist/index.css' ;
6
5
import './index.css' ;
7
6
8
7
ReactDOM . render (
Original file line number Diff line number Diff line change @@ -8527,10 +8527,10 @@ react-error-overlay@^6.0.7:
8527
8527
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.7.tgz#1dcfb459ab671d53f660a991513cb2f0a0553108"
8528
8528
integrity sha512-TAv1KJFh3RhqxNvhzxj6LeT5NWklP6rDr2a0jaTfsZ5wSZWHOGeqQyejUp3xxLfPt2UpyJEcVQB/zyPcmonNFA==
8529
8529
8530
- react-input-verification-code@latest :
8531
- version "0.3.0 "
8532
- resolved "https://registry.yarnpkg.com/react-input-verification-code/-/react-input-verification-code-0.3.0 .tgz#341e2467b850af196ffb07e3b031fa050b44155e "
8533
- integrity sha512-EivKrY4aJvFD+viWD1m4W23ziX0PP/kvqcAh4/dgJzol5UkdLS4lqeyExMAMja3651Ses7xp1b7mLwwVCdGlcQ ==
8530
+ react-input-verification-code@^0.4.2 :
8531
+ version "0.4.2 "
8532
+ resolved "https://registry.yarnpkg.com/react-input-verification-code/-/react-input-verification-code-0.4.2 .tgz#29e368b35f2c44517a2a50375a8978f32d26ad4f "
8533
+ integrity sha512-DiKMLUj1BZ4wXsJLR1XQm7b3/1+/0U6IDncp5vHCjamSYJ4TJLY78IJiy48sU9W3m+bgj8dXBZPN8pRIqqqk7g ==
8534
8534
8535
8535
react-is@^16.8.1, react-is@^16.8.4 :
8536
8536
version "16.13.1"
Original file line number Diff line number Diff line change 14
14
"@types/react-dom" : " ^16.9.7" ,
15
15
"react" : " ^16.13.1" ,
16
16
"react-dom" : " ^16.13.1" ,
17
+ "react-input-verification-code" : " ^0.4.2" ,
17
18
"react-scripts" : " ^3.4.1" ,
18
- "typescript" : " ^3.7.5" ,
19
- "react-input-verification-code" : " latest"
19
+ "typescript" : " ^3.7.5"
20
20
},
21
21
"devDependencies" : {
22
22
"@babel/plugin-syntax-object-rest-spread" : " ^7.8.3"
Original file line number Diff line number Diff line change 32
32
padding : 0 3rem ;
33
33
}
34
34
35
- .ReactInputVerificationCode__container {
36
- --itemWidth : 2.5rem !important ;
37
- --itemHeight : 3.5rem !important ;
35
+ .custom-styles {
36
+ --ReactInputVerificationCode- itemWidth : 2.5rem ;
37
+ --ReactInputVerificationCode- itemHeight : 3.5rem ;
38
38
}
39
39
40
- .ReactInputVerificationCode__input ,
41
- .ReactInputVerificationCode__item {
42
- --boxShadowSize : 0 !important ;
43
- border-radius : 0 ;
44
- }
45
-
46
- .ReactInputVerificationCode__item {
40
+ .custom-styles .ReactInputVerificationCode__item {
47
41
position : relative;
48
42
color : # 262626 ;
49
43
font-weight : 500 ;
50
44
}
51
45
52
- .ReactInputVerificationCode__item : after {
46
+ .custom-styles .ReactInputVerificationCode__item ,
47
+ .custom-styles .ReactInputVerificationCode__item .is-active {
48
+ box-shadow : none;
49
+ }
50
+
51
+ .custom-styles .ReactInputVerificationCode__item : after {
53
52
content : '' ;
54
53
display : block;
55
54
position : absolute;
61
60
transition : background-color 0.2s ease-out;
62
61
}
63
62
64
- .ReactInputVerificationCode__item .is-active : after {
63
+ .custom-styles . ReactInputVerificationCode__item .is-active : after {
65
64
background-color : # 046cde ;
66
65
}
Original file line number Diff line number Diff line change @@ -2,18 +2,11 @@ import * as React from 'react';
2
2
import * as ReactDOM from 'react-dom' ;
3
3
import ReactInputVerificationCode from 'react-input-verification-code' ;
4
4
5
- import 'react-input-verification-code/dist/index.css' ;
6
5
import './index.css' ;
7
6
8
7
ReactDOM . render (
9
- < main >
10
- < h1 > Authenticate your account</ h1 >
11
- < p >
12
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque
13
- gravida ligula nulla, eu molestie dui vehicula non. Sed volutpat mollis
14
- sapien sit amet eleifend. Sed vitae molestie lectus
15
- </ p >
8
+ < div className = 'custom-styles' >
16
9
< ReactInputVerificationCode placeholder = '' onChange = { console . log } />
17
- </ main > ,
10
+ </ div > ,
18
11
document . getElementById ( 'root' )
19
12
) ;
Original file line number Diff line number Diff line change @@ -8527,10 +8527,10 @@ react-error-overlay@^6.0.7:
8527
8527
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.7.tgz#1dcfb459ab671d53f660a991513cb2f0a0553108"
8528
8528
integrity sha512-TAv1KJFh3RhqxNvhzxj6LeT5NWklP6rDr2a0jaTfsZ5wSZWHOGeqQyejUp3xxLfPt2UpyJEcVQB/zyPcmonNFA==
8529
8529
8530
- react-input-verification-code@latest :
8531
- version "0.3.0 "
8532
- resolved "https://registry.yarnpkg.com/react-input-verification-code/-/react-input-verification-code-0.3.0 .tgz#341e2467b850af196ffb07e3b031fa050b44155e "
8533
- integrity sha512-EivKrY4aJvFD+viWD1m4W23ziX0PP/kvqcAh4/dgJzol5UkdLS4lqeyExMAMja3651Ses7xp1b7mLwwVCdGlcQ ==
8530
+ react-input-verification-code@^0.4.2 :
8531
+ version "0.4.2 "
8532
+ resolved "https://registry.yarnpkg.com/react-input-verification-code/-/react-input-verification-code-0.4.2 .tgz#29e368b35f2c44517a2a50375a8978f32d26ad4f "
8533
+ integrity sha512-DiKMLUj1BZ4wXsJLR1XQm7b3/1+/0U6IDncp5vHCjamSYJ4TJLY78IJiy48sU9W3m+bgj8dXBZPN8pRIqqqk7g ==
8534
8534
8535
8535
react-is@^16.8.1, react-is@^16.8.4 :
8536
8536
version "16.13.1"
You can’t perform that action at this time.
0 commit comments