├── .babelrc ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── dist ├── .DS_Store ├── bundle.js ├── bundle.js.map ├── images │ ├── icon_nav_actionSheet.png │ ├── icon_nav_article.png │ ├── icon_nav_button.png │ ├── icon_nav_cell.png │ ├── icon_nav_dialog.png │ ├── icon_nav_icons.png │ ├── icon_nav_msg.png │ ├── icon_nav_toast.png │ ├── logo.png │ ├── qrcode.png │ ├── swipe1.jpg │ ├── swipe2.jpg │ ├── swipe3.jpg │ └── vcode.jpg └── index.html ├── index.js ├── karma.conf.js ├── lib ├── actionsheet │ ├── __test__ │ │ └── index.spec.js │ ├── index.js │ └── style.less ├── article │ ├── __test__ │ │ └── index.spec.js │ ├── index.js │ └── style.less ├── base │ ├── fn.less │ ├── icon │ │ ├── weui_font.less │ │ └── weui_icon_font.less │ ├── mixin │ │ ├── animate.less │ │ ├── animate │ │ │ ├── animated.less │ │ │ ├── bounce.less │ │ │ ├── bounceIn.less │ │ │ ├── bounceInDown.less │ │ │ ├── bounceInLeft.less │ │ │ ├── bounceInRight.less │ │ │ ├── bounceInUp.less │ │ │ ├── bounceOut.less │ │ │ ├── bounceOutDown.less │ │ │ ├── bounceOutLeft.less │ │ │ ├── bounceOutRight.less │ │ │ ├── bounceOutUp.less │ │ │ ├── fadeIn.less │ │ │ ├── fadeInDown.less │ │ │ ├── fadeInDownBig.less │ │ │ ├── fadeInLeft.less │ │ │ ├── fadeInLeftBig.less │ │ │ ├── fadeInRight.less │ │ │ ├── fadeInRightBig.less │ │ │ ├── fadeInUp.less │ │ │ ├── fadeInUpBig.less │ │ │ ├── fadeOut.less │ │ │ ├── fadeOutDown.less │ │ │ ├── fadeOutDownBig.less │ │ │ ├── fadeOutLeft.less │ │ │ ├── fadeOutLeftBig.less │ │ │ ├── fadeOutRight.less │ │ │ ├── fadeOutRightBig.less │ │ │ ├── fadeOutUp.less │ │ │ ├── fadeOutUpBig.less │ │ │ ├── flash.less │ │ │ ├── flip.less │ │ │ ├── flipInX.less │ │ │ ├── flipInY.less │ │ │ ├── flipOutX.less │ │ │ ├── flipOutY.less │ │ │ ├── hinge.less │ │ │ ├── lightSpeedIn.less │ │ │ ├── lightSpeedOut.less │ │ │ ├── pulse.less │ │ │ ├── rollIn.less │ │ │ ├── rollOut.less │ │ │ ├── rotateIn.less │ │ │ ├── rotateInDownLeft.less │ │ │ ├── rotateInDownRight.less │ │ │ ├── rotateInUpLeft.less │ │ │ ├── rotateInUpRight.less │ │ │ ├── rotateOut.less │ │ │ ├── rotateOutDownLeft.less │ │ │ ├── rotateOutDownRight.less │ │ │ ├── rotateOutUpLeft.less │ │ │ ├── rotateOutUpRight.less │ │ │ ├── shake.less │ │ │ ├── swing.less │ │ │ ├── tada.less │ │ │ ├── wiggle.less │ │ │ └── wobble.less │ │ ├── mobile.less │ │ ├── setArrow.less │ │ ├── setChecked.less │ │ ├── setOnepx.less │ │ └── text.less │ ├── reset.less │ └── variable │ │ ├── global.less │ │ ├── monokai.less │ │ ├── weui_button.less │ │ ├── weui_cell.less │ │ ├── weui_msg.less │ │ ├── weui_progress.less │ │ └── weui_step_list.less ├── button │ ├── __test__ │ │ └── index.spec.js │ ├── button-area.js │ ├── index.js │ ├── style.less │ ├── weui_btn_default.less │ ├── weui_btn_disabled.less │ ├── weui_btn_global.less │ ├── weui_btn_plain.less │ ├── weui_btn_primary.less │ └── weui_btn_warn.less ├── cells │ ├── __test__ │ │ └── cells.spec.js │ ├── cell-body.js │ ├── cell-footer.js │ ├── cell-header.js │ ├── cell.js │ ├── cells-tips.js │ ├── cells-title.js │ ├── cells.js │ ├── checkbox-cell.js │ ├── index.js │ ├── input-cell.js │ ├── input-select.js │ ├── radio-cell.js │ ├── radio-cells.js │ ├── style.less │ ├── switch-cell.js │ ├── weui_check.less │ ├── weui_check │ │ ├── weui_check_common.less │ │ ├── weui_checkbox.less │ │ └── weui_radio.less │ ├── weui_form.less │ ├── weui_form │ │ ├── weui_form_common.less │ │ ├── weui_select.less │ │ ├── weui_select_after.less │ │ ├── weui_select_before.less │ │ └── weui_vcode.less │ └── weui_switch.less ├── dialog │ ├── __test__ │ │ └── index.spec.js │ ├── index.js │ └── style.less ├── index.js ├── mask │ ├── index.js │ └── style.less ├── message │ ├── __test__ │ │ └── index.spec.js │ ├── index.js │ └── style.less ├── page │ ├── index.js │ ├── page-header.js │ └── style.less ├── progress │ ├── __test__ │ │ └── index.spec.js │ ├── index.js │ └── style.less ├── swiper │ ├── index.js │ ├── item.js │ ├── style.less │ └── swiper.js ├── toast │ ├── __test__ │ │ └── index.spec.js │ ├── index.js │ └── style.less └── utils │ ├── events.js │ └── mobiledetect.js ├── package.json ├── react-weui.sublime-project ├── react-weui.sublime-workspace ├── src ├── example │ ├── app-template.js │ ├── index.js │ ├── pages │ │ ├── main.jsx │ │ ├── page-actionsheet.jsx │ │ ├── page-article.jsx │ │ ├── page-button.jsx │ │ ├── page-cell.jsx │ │ ├── page-dialog.jsx │ │ ├── page-message.jsx │ │ ├── page-progress.jsx │ │ ├── page-ptr.jsx │ │ ├── page-swiper.jsx │ │ └── page-toast.jsx │ └── style.less └── style │ └── components │ ├── actionsheet │ ├── __test__ │ │ └── index.spec.jsx │ ├── index.jsx │ └── style.less │ ├── article │ ├── __test__ │ │ └── index.spec.jsx │ ├── index.jsx │ └── style.less │ ├── base │ ├── fn.less │ ├── icon │ │ ├── weui_font.less │ │ └── weui_icon_font.less │ ├── mixin │ │ ├── animate.less │ │ ├── animate │ │ │ ├── animated.less │ │ │ ├── bounce.less │ │ │ ├── bounceIn.less │ │ │ ├── bounceInDown.less │ │ │ ├── bounceInLeft.less │ │ │ ├── bounceInRight.less │ │ │ ├── bounceInUp.less │ │ │ ├── bounceOut.less │ │ │ ├── bounceOutDown.less │ │ │ ├── bounceOutLeft.less │ │ │ ├── bounceOutRight.less │ │ │ ├── bounceOutUp.less │ │ │ ├── fadeIn.less │ │ │ ├── fadeInDown.less │ │ │ ├── fadeInDownBig.less │ │ │ ├── fadeInLeft.less │ │ │ ├── fadeInLeftBig.less │ │ │ ├── fadeInRight.less │ │ │ ├── fadeInRightBig.less │ │ │ ├── fadeInUp.less │ │ │ ├── fadeInUpBig.less │ │ │ ├── fadeOut.less │ │ │ ├── fadeOutDown.less │ │ │ ├── fadeOutDownBig.less │ │ │ ├── fadeOutLeft.less │ │ │ ├── fadeOutLeftBig.less │ │ │ ├── fadeOutRight.less │ │ │ ├── fadeOutRightBig.less │ │ │ ├── fadeOutUp.less │ │ │ ├── fadeOutUpBig.less │ │ │ ├── flash.less │ │ │ ├── flip.less │ │ │ ├── flipInX.less │ │ │ ├── flipInY.less │ │ │ ├── flipOutX.less │ │ │ ├── flipOutY.less │ │ │ ├── hinge.less │ │ │ ├── lightSpeedIn.less │ │ │ ├── lightSpeedOut.less │ │ │ ├── pulse.less │ │ │ ├── rollIn.less │ │ │ ├── rollOut.less │ │ │ ├── rotateIn.less │ │ │ ├── rotateInDownLeft.less │ │ │ ├── rotateInDownRight.less │ │ │ ├── rotateInUpLeft.less │ │ │ ├── rotateInUpRight.less │ │ │ ├── rotateOut.less │ │ │ ├── rotateOutDownLeft.less │ │ │ ├── rotateOutDownRight.less │ │ │ ├── rotateOutUpLeft.less │ │ │ ├── rotateOutUpRight.less │ │ │ ├── shake.less │ │ │ ├── swing.less │ │ │ ├── tada.less │ │ │ ├── wiggle.less │ │ │ └── wobble.less │ │ ├── mobile.less │ │ ├── setArrow.less │ │ ├── setChecked.less │ │ ├── setOnepx.less │ │ └── text.less │ ├── reset.less │ └── variable │ │ ├── global.less │ │ ├── monokai.less │ │ ├── weui_button.less │ │ ├── weui_cell.less │ │ ├── weui_msg.less │ │ ├── weui_progress.less │ │ └── weui_step_list.less │ ├── button │ ├── __test__ │ │ └── index.spec.jsx │ ├── button-area.jsx │ ├── index.jsx │ ├── style.less │ ├── weui_btn_default.less │ ├── weui_btn_disabled.less │ ├── weui_btn_global.less │ ├── weui_btn_plain.less │ ├── weui_btn_primary.less │ └── weui_btn_warn.less │ ├── cells │ ├── __test__ │ │ └── cells.spec.jsx │ ├── cell-body.jsx │ ├── cell-footer.jsx │ ├── cell-header.jsx │ ├── cell.jsx │ ├── cells-tips.jsx │ ├── cells-title.jsx │ ├── cells.jsx │ ├── checkbox-cell.jsx │ ├── index.jsx │ ├── input-cell.jsx │ ├── input-select.jsx │ ├── radio-cell.jsx │ ├── radio-cells.jsx │ ├── style.less │ ├── switch-cell.jsx │ ├── weui_check.less │ ├── weui_check │ │ ├── weui_check_common.less │ │ ├── weui_checkbox.less │ │ └── weui_radio.less │ ├── weui_form.less │ ├── weui_form │ │ ├── weui_form_common.less │ │ ├── weui_select.less │ │ ├── weui_select_after.less │ │ ├── weui_select_before.less │ │ └── weui_vcode.less │ └── weui_switch.less │ ├── dialog │ ├── __test__ │ │ └── index.spec.jsx │ ├── index.jsx │ └── style.less │ ├── index.js │ ├── mask │ ├── index.jsx │ └── style.less │ ├── message │ ├── __test__ │ │ └── index.spec.jsx │ ├── index.jsx │ └── style.less │ ├── page │ ├── index.jsx │ ├── page-header.jsx │ └── style.less │ ├── progress │ ├── __test__ │ │ └── index.spec.jsx │ ├── index.jsx │ └── style.less │ ├── swiper │ ├── index.jsx │ ├── item.jsx │ ├── style.less │ └── swiper.js │ ├── toast │ ├── __test__ │ │ └── index.spec.jsx │ ├── index.jsx │ └── style.less │ └── utils │ ├── events.jsx │ └── mobiledetect.jsx ├── tests.webpack.js ├── webpack.config.js ├── webpack.config.test.js └── webpack.production.config.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['es2015','react'] 3 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | react-weui.sublime-project 3 | .DS_Store -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | 2 | language: node_js 3 | node_js: 4 | - "4.2.1" 5 | script: 6 | - npm test 7 | before_install: 8 | - export CHROME_BIN=chromium-browser 9 | - export DISPLAY=:99.0 10 | - sh -e /etc/init.d/xvfb start 11 | - npm install history@1.13.x 12 | - npm install sinon -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 n7best 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /dist/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/.DS_Store -------------------------------------------------------------------------------- /dist/images/icon_nav_actionSheet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/images/icon_nav_actionSheet.png -------------------------------------------------------------------------------- /dist/images/icon_nav_article.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/images/icon_nav_article.png -------------------------------------------------------------------------------- /dist/images/icon_nav_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/images/icon_nav_button.png -------------------------------------------------------------------------------- /dist/images/icon_nav_cell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/images/icon_nav_cell.png -------------------------------------------------------------------------------- /dist/images/icon_nav_dialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/images/icon_nav_dialog.png -------------------------------------------------------------------------------- /dist/images/icon_nav_icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/images/icon_nav_icons.png -------------------------------------------------------------------------------- /dist/images/icon_nav_msg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/images/icon_nav_msg.png -------------------------------------------------------------------------------- /dist/images/icon_nav_toast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/images/icon_nav_toast.png -------------------------------------------------------------------------------- /dist/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/images/logo.png -------------------------------------------------------------------------------- /dist/images/qrcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/images/qrcode.png -------------------------------------------------------------------------------- /dist/images/swipe1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/images/swipe1.jpg -------------------------------------------------------------------------------- /dist/images/swipe2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/images/swipe2.jpg -------------------------------------------------------------------------------- /dist/images/swipe3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/images/swipe3.jpg -------------------------------------------------------------------------------- /dist/images/vcode.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n7best/n7-react-weui/efb9f4e07a81b9c437c5fdcea2db5a1226194a9b/dist/images/vcode.jpg -------------------------------------------------------------------------------- /dist/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 13 |
13 | 					 16 |
16 | 					 19 |
19 | 					 22 |
22 | 					 25 |
25 | 					 28 |
28 | 					{props.children}
12 |{props.children}
12 |{props.children}
18 |21 | {actions} 22 |
23 |{props.desc}
: null; 5 | return ( 6 |