Skip to content

Commit 2eef5ab

Browse files
authored
Clean Up Root & Remove Modules (casesandberg#410)
1 parent fa0c18c commit 2eef5ab

Some content is hidden

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

63 files changed

+137
-10466
lines changed

.eslintignore

-2
This file was deleted.

.eslintrc.js

-1
This file was deleted.

.flowconfig

-10
This file was deleted.

.gitignore

+3-28
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,6 @@
1-
# Logs
2-
logs
31
*.log
4-
5-
# Runtime data
6-
pids
7-
*.pid
8-
*.seed
9-
10-
/lib/
11-
122
*.DS_Store
13-
14-
# Directory for instrumented libs generated by jscoverage/JSCover
15-
lib-cov
16-
17-
# Coverage directory used by tools like istanbul
18-
coverage
19-
20-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
21-
.grunt
22-
23-
# node-waf configuration
24-
.lock-wscript
25-
26-
# Compiled binary addons (http://nodejs.org/api/addons.html)
27-
build/Release
28-
29-
# Dependency directory
30-
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
313
node_modules
4+
package-lock.json
5+
6+
lib

.storybook/SyncColorField.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export default class SyncColorField extends React.Component {
1111
render() {
1212
const handleChange = ({ hex }) => this.setState({ colorField: hex })
1313

14-
return React.cloneElement(this.props.children, { onChange: handleChange })
14+
return React.cloneElement(this.props.children, {
15+
onChange: handleChange,
16+
color: this.state.colorField,
17+
})
1518
}
1619
}

CHANGELOG.md

-167
This file was deleted.

README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
* **Make Your Own** - Use the building block components to make your own
1212

13-
![Sketch and Photoshop Color Picker Built in React](https://raw.githubusercontent.com/casesandberg/react-color/master/screenshot.png)
14-
1513
## Installation & Usage
1614

1715
```sh
@@ -21,13 +19,13 @@ npm install react-color --save
2119
### Include the Component
2220

2321
```js
24-
import React from 'react';
25-
import { SketchPicker } from 'react-color';
22+
import React from 'react'
23+
import { SketchPicker } from 'react-color'
2624

2725
class Component extends React.Component {
2826

2927
render() {
30-
return <SketchPicker />;
28+
return <SketchPicker />
3129
}
3230
}
3331
```

0 commit comments

Comments
 (0)