├── .gitignore ├── LICENSE ├── README.md ├── _header.min.txt ├── _header.txt ├── docs ├── form │ ├── Button.md │ ├── Control.md │ └── Form.md ├── input │ ├── .DS_Store │ ├── Checkbox.md │ ├── Dropdown.md │ ├── RadioGroup.md │ ├── Select.md │ ├── Text.md │ ├── TextArea.md │ └── overrides.md └── layout │ └── Paginator.md ├── gulpfile.js ├── index.js ├── lib ├── common.js ├── form.js ├── input.js └── layout.js ├── package.json ├── react-semantic-ui.js ├── react-semantic-ui.min.js ├── release-notes.md └── test ├── spec ├── form.js ├── input.js └── layout.js └── test.js /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 17 | .grunt 18 | 19 | # Compiled binary addons (http://nodejs.org/api/addons.html) 20 | build/Release 21 | 22 | # Dependency directory 23 | # Deployed apps should consider commenting this line out: 24 | # see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git 25 | node_modules 26 | 27 | /.DS_Store 28 | 29 | /.generator-release 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Joe Hudson 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. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | react-semantic-ui 2 | ================= 3 | 4 | [React](http://facebook.github.io/react/) components for [semantic-ui](http://semantic-ui.com/). See [individual component docs](https://github.com/jhudson8/react-semantic-ui/tree/master/docs) for more details. 5 | 6 | The purpose of this project is not to recreate every semantic-ui component but only where it makes sense and React components can add value. 7 | 8 | * wrap up larger sets of HTML into a meaningful component 9 | * if a component deals with user input where it can effictively manage state 10 | * if a component can benefit from data driven properties to reneer itself in a dynamic way 11 | 12 | Installation 13 | ============== 14 | * Browser: include *react-semantic-ui[.min].js* after the listed dependencies 15 | * CommonJS: ```global.rsui = require('react-semantic-ui')(require('react'));``` 16 | 17 | Dependencies 18 | -------------- 19 | * [React](http://facebook.github.io/react/) 20 | * [react-mixin-manager](https://github.com/jhudson8/react-mixin-manager) 21 | * [semantic-ui](http://semantic-ui.com/) (browser only) 22 | 23 | 24 | Examples 25 | -------- 26 | See the [documentation](https://github.com/jhudson8/react-semantic-ui/tree/master/docs) for usage details 27 | 28 | - [Buttons](http://jhudson8.github.io/react-semantic-ui/examples/form/Button.html) 29 | - [Forms and Controls](http://jhudson8.github.io/react-semantic-ui/examples/form/FormAndControl.html) 30 | - [Basic Input Fields](http://jhudson8.github.io/react-semantic-ui/examples/input/BasicFields.html) 31 | - [Checkboxes](http://jhudson8.github.io/react-semantic-ui/examples/input/Checkbox.html) 32 | - [Dropdowns](http://jhudson8.github.io/react-semantic-ui/examples/input/Dropdown.html) 33 | - [RadioGroups](http://jhudson8.github.io/react-semantic-ui/examples/input/RadioGroup.html) 34 | - [Paginators](http://jhudson8.github.io/react-semantic-ui/examples/layout/Paginator.html) 35 | - [Menu](http://jhudson8.github.io/react-semantic-ui/examples/layout/Menu.html) 36 | - [Tabs](http://jhudson8.github.io/react-semantic-ui/examples/layout/Tabs.html) 37 | - [Tables](http://jhudson8.github.io/react-semantic-ui/examples/layout/Table.html) 38 | 39 | 40 | ### Other React projects that may interest you 41 | 42 | * [jhudson8/react-mixin-manager](https://github.com/jhudson8/react-mixin-manager) 43 | * [jhudson8/react-backbone](https://github.com/jhudson8/react-backbone) 44 | * [jhudson8/react-events](https://github.com/jhudson8/react-events) 45 | * [jhudson8/react-chartjs](https://github.com/jhudson8/react-chartjs) 46 | 47 | -------------------------------------------------------------------------------- /_header.min.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * https://github.com/jhudson8/react-semantic-ui v0.1.1; MIT license; Joe Hudson 3 | */ 4 | -------------------------------------------------------------------------------- /_header.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * react-semantic-ui v0.1.1 (https://github.com/jhudson8/react-semantic-ui) 3 | * 4 | * Copyright (c) 2014 Joe Hudson 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | */ 24 | -------------------------------------------------------------------------------- /docs/form/Button.md: -------------------------------------------------------------------------------- 1 | Button 2 | ====== 3 | 4 | A standard input button which reacts to a loading state 5 | 6 | Properties 7 | ---------- 8 | - ***icon***: the [icon name](http://semantic-ui.com/elements/icon.html) 9 | - ***className***: additional button class name ("ui button" will already be applied) 10 | - ***disabled***: true if the button should be disabled 11 | - ***loading***: true if the button is in a loading state 12 | 13 | Overrides 14 | --------- 15 | - ***classNames.Button***: class name to be added to all 16 | - ***mixins.Button***: default mixins that should be applied 17 | - ***applyIcon***: ```function({children, className, disabled, icon})``` 18 | apply the icon and update any data for rendering 19 | - ***applyLoadingState***: ```function({children, className, disabled, icon})``` 20 | apply a loading state and update any data for rendering 21 | 22 | Example 23 | -------- 24 | var Button = rsui.form.Button; 25 |