Skip to content

Commit

Permalink
Merge pull request #43 from fedoryakubovich/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
fedoryakubovich authored Jul 26, 2019
2 parents 879018c + daa59b0 commit 3d539ac
Show file tree
Hide file tree
Showing 32 changed files with 11,474 additions and 9,915 deletions.
3 changes: 1 addition & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"presets": ["@babel/preset-react", "@babel/preset-env"],
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
"presets": ["react-app"]
}
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

64 changes: 0 additions & 64 deletions .eslintrc.json

This file was deleted.

26 changes: 24 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/dist
/.pnp
.pnp.js

# testing
/coverage
.DS_STORE

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

# library
/dist
10 changes: 0 additions & 10 deletions .npmignore

This file was deleted.

27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,20 @@ ReactDOM.render(<ReactStarsExample />, document.getElementById('root'));

## Documentation

| Name | Description | Type | Default |
| :------------- | :------------------------------------------------------- | :------- | :------- |
| value | Value | Number | 0 |
| onChange | A function, that will be invoked when value have changed | Function | null |
| isEdit | If `true` the rating is in editing mode | Boolean | true |
| isHalf | If `true` half stars are available | Boolean | true |
| count | Count of the stars | Number | 5 |
| size | Size of the stars | Number | 25 |
| starGap | Gap between the stars | Number | 0 |
| className | Class name for button container | String | '' |
| primaryColor | Star's color when star is active | String | 'orange' |
| secondaryColor | Star's color when star isn't active | String | 'grey' |
| isArrowSubmit | Left arrow or right arrow click onvokes onChange | Boolean | false |
| Name | Description | Type | Default |
| :------------- | :------------------------------------------------------- | :------- | :-------------- |
| id | Identifier | String | `${Date.now()}` |
| value | Value | Number | 0 |
| onChange | A function, that will be invoked when value have changed | Function | null |
| isEdit | If `true` the rating is in editing mode | Boolean | true |
| isHalf | If `true` half stars are available | Boolean | true |
| count | Count of the stars | Number | 5 |
| size | Size of the stars | Number | 25 |
| starGap | Gap between the stars | Number | 0 |
| className | Class name for button container | String | '' |
| primaryColor | Star's color when star is active | String | 'orange' |
| secondaryColor | Star's color when star isn't active | String | 'grey' |
| isArrowSubmit | Left arrow or right arrow click onvokes onChange | Boolean | false |

## Examples

Expand Down
31 changes: 0 additions & 31 deletions examples/ReduxFormExample/form.js

This file was deleted.

15 changes: 0 additions & 15 deletions examples/index.html

This file was deleted.

6 changes: 0 additions & 6 deletions examples/index.js

This file was deleted.

Loading

0 comments on commit 3d539ac

Please sign in to comment.