Skip to content

Commit f9bb190

Browse files
author
Tina C Lin (RD-TW)
committed
Create @trendmicro/react-radio-button component.
0 parents  commit f9bb190

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+26572
-0
lines changed

.babelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"presets": ["es2015", "stage-0", "react"],
3+
"plugins": [
4+
"transform-decorators-legacy"
5+
]
6+
}

.eslintrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "trendmicro",
3+
"parser": "babel-eslint",
4+
"env": {
5+
"browser": true,
6+
"node": true
7+
}
8+
}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
npm-debug.log
3+
/.nyc_output
4+
/coverage
5+
/lib

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
npm-debug.log
2+
/.nyc_output
3+
/coverage

.stylintrc

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
//
2+
// https://github.com/rossPatton/stylint
3+
//
4+
{
5+
"blocks": false,
6+
"brackets": "always",
7+
"colons": "always",
8+
"colors": false,
9+
"commaSpace": "always",
10+
"commentSpace": false,
11+
"cssLiteral": "never",
12+
"depthLimit": false,
13+
"duplicates": false,
14+
"efficient": "always",
15+
"extendPref": false,
16+
"globalDupe": false,
17+
"indentPref": false,
18+
"leadingZero": "never",
19+
"maxErrors": false,
20+
"maxWarnings": false,
21+
"mixed": false,
22+
"namingConvention": false,
23+
"namingConventionStrict": false,
24+
"none": "never",
25+
"noImportant": true,
26+
"parenSpace": false,
27+
"placeholders": "always",
28+
"prefixVarsWithDollar": "always",
29+
"quotePref": false,
30+
"semicolons": "always",
31+
"sortOrder": false,
32+
"stackedProperties": "never",
33+
"trailingWhitespace": "never",
34+
"universal": false,
35+
"valid": true,
36+
"zeroUnits": "never",
37+
"zIndexNormalize": false
38+
}

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
sudo: required
2+
dist: trusty
3+
group: edge
4+
5+
language: node_js
6+
7+
os:
8+
- linux
9+
10+
node_js:
11+
- '6'
12+
- '5'
13+
- '4'
14+
15+
before_install:
16+
- npm install -g npm
17+
- npm --version
18+
19+
after_success:
20+
- npm run coveralls
21+
- npm run coverage-clean

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Trend Micro Inc.
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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# react-radio-button [![build status](https://travis-ci.org/trendmicro-frontend/react-radio-button.svg?branch=master)](https://travis-ci.org/trendmicro-frontend/react-radio-button) [![Coverage Status](https://coveralls.io/repos/github/trendmicro-frontend/react-radio-button/badge.svg?branch=master)](https://coveralls.io/github/trendmicro-frontend/react-radio-button?branch=master)
2+
3+
[![NPM](https://nodei.co/npm/@trendmicro/react-radio-button.png?downloads=true&stars=true)](https://nodei.co/npm/@trendmicro/react-radio-button/)
4+
5+
React Radio Button
6+
7+
Demo: https://trendmicro-frontend.github.io/react-radio-button
8+
9+
## Installation
10+
11+
1. Install the latest version of [react](https://github.com/facebook/react) and [react-radio-button](https://github.com/trendmicro-frontend/react-radio-button):
12+
13+
```
14+
npm install --save react @trendmicro/react-radio-button
15+
```
16+
17+
2. At this point you can import `@trendmicro/react-radio-button` and its styles in your application as follows:
18+
19+
```js
20+
import RadioButton from '@trendmicro/react-radio-button';
21+
22+
// Be sure to include styles at some point, probably during your bootstraping
23+
import '@trendmicro/react-radio-button/dist/react-radio-button.css';
24+
```
25+
26+
## Usage
27+
28+
```js
29+
<RadioButton className="radio-inline" text="Disabled label" disabled={true} checked={true} />
30+
```
31+
32+
33+
## API
34+
35+
### Properties
36+
37+
Name | Type | Default | Description
38+
:--- | :--- | :------ | :----------
39+
40+
## License
41+
42+
MIT

babel-tap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env node
2+
'use strict';
3+
4+
var which = require('which');
5+
process.execPath = which.sync('babel-node');
6+
require('tap/bin/run.js');

bower.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "@trendmicro/react-radio-button",
3+
"description": "Trend Micro Components: React Radio Button",
4+
"authors": [
5+
{
6+
"name": "Tina C Lin",
7+
"email": "tina_c_lin@trend.com.tw",
8+
"homepage": "https://github.com/trendmicro-frontend"
9+
}
10+
],
11+
"homepage": "https://github.com/trendmicro-frontend/react-radio-button",
12+
"snapshots": [],
13+
"keywords": [
14+
"react",
15+
"react-radio-button"
16+
],
17+
"license": "MIT"
18+
}

0 commit comments

Comments
 (0)