File tree 4 files changed +493
-318
lines changed
4 files changed +493
-318
lines changed Original file line number Diff line number Diff line change
1
+ import { Component } from 'react' ;
2
+
3
+ export class ToolboxApp < P , S > extends Component < P , S > {
4
+ onCheckboxChange = ( propName : any ) => ( ) => {
5
+ const currentValue = ( this . state as any ) [ propName ] ;
6
+ this . setState ( { [ propName ] : ! currentValue } as any ) ;
7
+ } ;
8
+
9
+ onFieldTextChange = ( propName : any ) => ( e : any ) => {
10
+ const value = e . target . value ;
11
+
12
+ ( this as any ) . setState ( {
13
+ [ propName ] : value
14
+ } ) ;
15
+ }
16
+ }
Original file line number Diff line number Diff line change 2
2
"name" : " react-scroll-shadow" ,
3
3
"version" : " 1.0.1" ,
4
4
"description" : " Pure CSS shadow to indicate more content in scrollable area" ,
5
- "main" : " dist/index.js" ,
5
+ "main" : " dist/es5/ index.js" ,
6
6
"scripts" : {
7
7
"bootstrap" : " ts-react-toolbox init" ,
8
8
"dev" : " ts-react-toolbox dev" ,
20
20
"license" : " MIT" ,
21
21
"devDependencies" : {
22
22
"react-gh-corner" : " ^1.0.1" ,
23
- "ts-react-toolbox" : " ^0.1.10"
24
- },
25
- "dependencies" : {
26
- "styled-components" : " ^2.2.4"
23
+ "ts-react-toolbox" : " ^0.1.22"
27
24
},
25
+ "dependencies" : {},
28
26
"engines" : {
29
27
"node" : " >=8.5.0"
30
28
},
31
29
"peerDependencies" : {
32
30
"react" : " ^16.3.0"
33
31
},
34
- "types" : " dist/index.d.ts" ,
32
+ "types" : " dist/es5/ index.d.ts" ,
35
33
"files" : [
36
34
" dist"
37
35
],
45
43
" pure-css" ,
46
44
" scrollable" ,
47
45
" scrollbar"
48
- ]
46
+ ],
47
+ "jsnext:main" : " dist/es2015/index.js" ,
48
+ "module" : " dist/es2015/index.js"
49
49
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments