Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Commit ee49199

Browse files
committed
First version
0 parents  commit ee49199

Some content is hidden

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

41 files changed

+9228
-0
lines changed

.babelrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"presets": [["env", { "loose": true, "modules": false }], "react"],
3+
"plugins": [
4+
"transform-object-rest-spread",
5+
["transform-class-properties", { "loose": true }]
6+
],
7+
"env": {
8+
"lib": {
9+
"plugins": [["transform-es2015-modules-commonjs", { "loose": true }]]
10+
},
11+
"rollup": {
12+
"plugins": ["external-helpers"]
13+
}
14+
}
15+
}

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
build/

.eslintrc.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
root: true,
3+
extends: ['airbnb', 'prettier', 'prettier/react'],
4+
parser: 'babel-eslint',
5+
env: {
6+
browser: true,
7+
},
8+
rules: {
9+
'react/jsx-filename-extension': ['error', { extensions: ['.js'] }],
10+
'react/forbid-prop-types': 'off',
11+
'react/prop-types': 'off',
12+
'react/require-default-props': 'off',
13+
14+
'no-return-assign': 'off',
15+
'import/prefer-default-export': 'off',
16+
},
17+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
build/

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
build/

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all",
4+
"semi": false
5+
}

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<h1 align="center">
2+
<img src="https://user-images.githubusercontent.com/266302/27487896-6a8cc4fa-5835-11e7-8061-b481ad72a065.png" alt="smooth-ui" title="smooth-ui" width="300">
3+
</h1>
4+
<p align="center" style="font-size: 1.2rem;">React Components library based on styled-components.</p>
5+
6+
[![Build Status][build-badge]][build]
7+
[![Code Coverage][coverage-badge]][coverage]
8+
[![Version][version-badge]][package]
9+
[![MIT License][license-badge]][license]
10+
[![Small size][size-badge]][build-min]
11+
12+
[![PRs Welcome][prs-badge]][prs] [![Chat][chat-badge]][chat]
13+
14+
[![Watch on GitHub][github-watch-badge]][github-watch]
15+
[![Star on GitHub][github-star-badge]][github-star]
16+
[![Tweet][twitter-badge]][twitter]
17+
18+
```sh
19+
npm install smooth-ui
20+
```
21+
22+
Smooth UI is an open source components library built with [React](https://reactjs.org/) and [Styled Components](https://www.styled-components.com).
23+
24+
It is focused on developer experience and accessibility. With Smooth UI, it is easy to design beautiful websites and applications.
25+
26+
## MIT
27+
28+
[build-badge]: https://img.shields.io/travis/smooth-code/smooth-ui.svg?style=flat-square
29+
[build]: https://travis-ci.org/smooth-code/smooth-ui
30+
[coverage-badge]: https://img.shields.io/codecov/c/github/smooth-code/smooth-ui.svg?style=flat-square
31+
[coverage]: https://codecov.io/github/smooth-code/smooth-ui
32+
[version-badge]: https://img.shields.io/npm/v/smooth-ui.svg?style=flat-square
33+
[package]: https://www.npmjs.com/package/smooth-ui
34+
[license-badge]: https://img.shields.io/npm/l/smooth-ui.svg?style=flat-square
35+
[license]: https://github.com/smooth-code/smooth-ui/blob/master/LICENSE
36+
[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
37+
[prs]: http://makeapullrequest.com
38+
[chat]: https://gitter.im/smooth-code/smooth-ui
39+
[chat-badge]: https://img.shields.io/gitter/room/smooth-code/smooth-ui.svg?style=flat-square
40+
[github-watch-badge]: https://img.shields.io/github/watchers/smooth-code/smooth-ui.svg?style=social
41+
[github-watch]: https://github.com/smooth-code/smooth-ui/watchers
42+
[github-star-badge]: https://img.shields.io/github/stars/smooth-code/smooth-ui.svg?style=social
43+
[github-star]: https://github.com/smooth-code/smooth-ui/stargazers
44+
[twitter]: https://twitter.com/intent/tweet?text=Check%20out%20Smooth%20UI!%20https://github.com/smooth-code/smooth-ui%20%F0%9F%91%8D
45+
[twitter-badge]: https://img.shields.io/twitter/url/https/github.com/smooth-code/smooth-ui.svg?style=social
46+
[size-badge]: http://img.badgesize.io/https://unpkg.com/smooth-ui/dist/smooth-ui.min.js?compression=gzip&style=flat-square
47+
[build-min]: https://unpkg.com/smooth-ui/dist/smooth-ui.min.js

docs/Grid.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Simple:
2+
3+
```js
4+
<Row>
5+
<Col xs style={{ background: 'red' }}>
6+
1
7+
</Col>
8+
<Col xs style={{ background: 'blue' }}>
9+
2
10+
</Col>
11+
</Row>
12+
```

docs/Introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Hello all
2+

package.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"name": "smooth-ui",
3+
"version": "1.0.0",
4+
"main": "dist/smooth-ui.cjs.js",
5+
"jsnext:main": "dist/smooth-ui.es.js",
6+
"author": "Greg Bergé <[email protected]>",
7+
"license": "MIT",
8+
"scripts": {
9+
"build": "yarn build:cp && yarn build:rollup && yarn build:lib",
10+
"build:cp": "shx mkdir -p build/ && shx cp {package.json,README.md} build/",
11+
"build:docs": "styleguidist build",
12+
"build:lib": "cross-env BABEL_ENV=lib babel --out-dir build src",
13+
"build:rollup": "cross-env BABEL_ENV=rollup rollup -c",
14+
"build:watch": "yarn build:lib --watch",
15+
"dev": "styleguidist server",
16+
"prebuild": "shx rm -rf dist/*"
17+
},
18+
"devDependencies": {
19+
"babel-cli": "^6.26.0",
20+
"babel-core": "^6.26.0",
21+
"babel-eslint": "^8.2.1",
22+
"babel-loader": "^7.1.2",
23+
"babel-plugin-external-helpers": "^6.22.0",
24+
"babel-plugin-transform-class-properties": "^6.24.1",
25+
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
26+
"babel-plugin-transform-object-rest-spread": "^6.26.0",
27+
"babel-preset-env": "^1.6.1",
28+
"babel-preset-react": "^6.24.1",
29+
"cross-env": "^5.1.3",
30+
"eslint": "^4.17.0",
31+
"eslint-config-airbnb": "^16.1.0",
32+
"eslint-config-prettier": "^2.9.0",
33+
"eslint-plugin-import": "^2.8.0",
34+
"eslint-plugin-jsx-a11y": "^6.0.3",
35+
"eslint-plugin-react": "^7.6.1",
36+
"jest": "^22.1.4",
37+
"react": "^16.2.0",
38+
"react-dom": "^16.2.0",
39+
"react-styleguidist": "^6.2.2",
40+
"rollup": "^0.55.3",
41+
"rollup-plugin-babel": "^3.0.3",
42+
"rollup-plugin-commonjs": "^8.3.0",
43+
"rollup-plugin-node-resolve": "^3.0.2",
44+
"rollup-plugin-replace": "^2.0.0",
45+
"rollup-plugin-uglify": "^3.0.0",
46+
"shx": "^0.2.2",
47+
"styled-components": "^3.1.6",
48+
"uglifyjs-webpack-plugin": "^1.1.8",
49+
"webpack": "^3.10.0"
50+
},
51+
"dependencies": {
52+
"classnames": "^2.2.5",
53+
"object.omit": "^3.0.0",
54+
"polished": "^1.9.2",
55+
"prop-types": "^15.6.0",
56+
"recompact": "^3.2.1"
57+
},
58+
"peerDependencies": {
59+
"react": "^16.2.0",
60+
"styled-components": "^3.1.6"
61+
}
62+
}

0 commit comments

Comments
 (0)