File tree 3 files changed +23
-11
lines changed
3 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 99
99
"raw-loader" : " ^0.5.1" ,
100
100
"react" : " ^0.14 || ^15.5.4 || ^16.1.1" ,
101
101
"react-dom" : " ^0.14 || ^15.5.4 || ^16.1.1" ,
102
- "react-with-styles-interface-aphrodite" : " ^3.1 .1" ,
103
- "react-with-styles-interface-css-compiler" : " ^1.1.0 " ,
102
+ "react-with-styles-interface-aphrodite" : " ^4.0 .1" ,
103
+ "react-with-styles-interface-css-compiler" : " ^1.1.2 " ,
104
104
"rimraf" : " ^2.6.2" ,
105
105
"safe-publish-latest" : " ^1.1.1" ,
106
106
"sass-loader" : " ^6.0.6" ,
120
120
"react-addons-shallow-compare" : " ^15.6.2" ,
121
121
"react-moment-proptypes" : " ^1.5.0" ,
122
122
"react-portal" : " ^4.1.2" ,
123
- "react-with-styles" : " =2.2 .0" ,
123
+ "react-with-styles" : " ^3.1 .0" ,
124
124
"react-with-styles-interface-css" : " ^4.0.0"
125
125
},
126
126
"peerDependencies" : {
Original file line number Diff line number Diff line change @@ -16,14 +16,8 @@ require('../test/_helpers/ignoreSVGStrings');
16
16
registerMaxSpecificity ( 0 ) ;
17
17
registerCSSInterfaceWithDefaultTheme ( ) ;
18
18
19
- const DateRangePickerPath = './examples/DateRangePickerWrapper.jsx' ;
20
- const SingleDatePickerPath = './examples/SingleDatePickerWrapper.jsx' ;
21
- const PresetDateRangePickerPath = './examples/PresetDateRangePicker.jsx' ;
22
-
23
- const dateRangePickerCSS = compileCSS ( DateRangePickerPath ) ;
24
- const singleDatePickerCSS = compileCSS ( SingleDatePickerPath ) ;
25
- const presetDatePickerCSS = compileCSS ( PresetDateRangePickerPath ) ;
26
- const CSS = dateRangePickerCSS + singleDatePickerCSS + presetDatePickerCSS ;
19
+ const path = './scripts/renderAllComponents.jsx' ;
20
+ const CSS = compileCSS ( path ) ;
27
21
28
22
const format = new CleanCSS ( {
29
23
level : optimizeForProduction ? 2 : 0 ,
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import ReactDOM from 'react-dom' ;
3
+
4
+ import DateRangePickerWrapper from '../examples/DateRangePickerWrapper' ;
5
+ import SingleDatePickerWrapper from '../examples/SingleDatePickerWrapper' ;
6
+ import PresetDateRangePickerWrapper from '../examples/PresetDateRangePicker' ;
7
+
8
+ function App ( ) {
9
+ return (
10
+ < div >
11
+ < DateRangePickerWrapper />
12
+ < SingleDatePickerWrapper />
13
+ < PresetDateRangePickerWrapper />
14
+ </ div >
15
+ ) ;
16
+ }
17
+
18
+ ReactDOM . render ( < App /> , document . querySelector ( '#root' ) ) ;
You can’t perform that action at this time.
0 commit comments