Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from fork base #1

Open
wants to merge 49 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
f6224c8
feat: add allowHoverOnDefault prop & update docs
May 27, 2022
4a86c5b
chore: add build folder
May 30, 2022
95832f5
feat: add titleSeparator prop & update docs
Jul 6, 2022
c0b59b3
chore: update build
Jul 6, 2022
b275ec1
Merge pull request #19 from juwain/main
awran5 Sep 22, 2022
adc8285
feat: add storybook
awran5 Oct 3, 2022
8241eed
build: update dependencies
awran5 Oct 3, 2022
9acc4db
feat: add postcss
awran5 Oct 3, 2022
1a6cbb6
feat: add react types
awran5 Oct 3, 2022
cc5b318
refactor: separate reducer state
awran5 Oct 3, 2022
ad2bca7
feat: add css module
awran5 Oct 3, 2022
66a1c79
refactor: update
awran5 Oct 3, 2022
e475a1a
feat: add more props
awran5 Oct 3, 2022
8aea6ee
fix: various bugs and improvment.
awran5 Oct 3, 2022
4ddc939
feat: add storybook build
awran5 Oct 3, 2022
df3de8d
chore(release): 4.1.0
awran5 Oct 3, 2022
4eef0f2
doc: v4.1.0
awran5 Oct 3, 2022
2e501c3
build: add vercel script
awran5 Oct 3, 2022
006ce6a
4.1.1
awran5 Oct 3, 2022
b1d6f2d
chore(release): 5.0.0
awran5 Oct 3, 2022
962c126
fix: remove unnecessary css
awran5 Oct 3, 2022
667a628
chore(release): 5.1.0
awran5 Oct 3, 2022
79bd7b6
resolve next js window and navigator undefined issue
jiwooIncludeJeong Oct 7, 2022
5e5e5c1
Merge pull request #27 from jiwooIncludeJeong/main
awran5 Oct 7, 2022
ced44dd
5.1.1
awran5 Oct 7, 2022
ec47c2c
chore(release): 5.1.2
awran5 Oct 7, 2022
abb3c5b
fix: window is undefined" and "navigator is undefined" when using in …
awran5 Oct 7, 2022
861a357
build: update dependencies
awran5 Oct 11, 2022
aeeeb57
fix: window is not defined error while using Next.js
awran5 Oct 11, 2022
4c34a26
chore(release): 5.1.3
awran5 Oct 11, 2022
4e62983
docs: rename component
awran5 Oct 11, 2022
5c133e7
build: update storybook
awran5 Oct 26, 2022
37882b2
fix: option to reset rating #31
awran5 Oct 28, 2022
203fa74
docs: update docs
awran5 Oct 28, 2022
045940e
5.1.4
awran5 Oct 28, 2022
c786973
chore(release): 5.1.5
awran5 Oct 28, 2022
9ef31fa
v5.1.5
awran5 Oct 28, 2022
fbe5fcc
docs: correct spelling of CHANGELOG
awran5 Oct 28, 2022
c763647
chore(release): 5.1.6
awran5 Oct 28, 2022
de3584d
build: safe upgrade
awran5 Nov 22, 2022
1b108bf
build: remove deprecated standard-version
awran5 Nov 22, 2022
1c5cc07
build: install `auto-changelog`
awran5 Nov 22, 2022
ec381aa
build: add `vercel`
awran5 Nov 22, 2022
3c108ec
docs: add `preset-create-react-app`
awran5 Nov 22, 2022
2a6f97a
fix: incorrect `even` icons value #32
awran5 Nov 22, 2022
b2bc253
feat: new `allowTitleTag` prop
awran5 Nov 22, 2022
c537d51
5.1.7
awran5 Nov 22, 2022
e8acd39
v5.1.7
awran5 Nov 22, 2022
87cce97
docs: add `allowTitleTag`
awran5 Nov 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

57 changes: 0 additions & 57 deletions .eslintrc.js

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ example/node_modules

# builds
build
storybook-static
dist

# misc
Expand All @@ -20,3 +21,4 @@ dist
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vercel
5 changes: 4 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
src
example
.storybook
.vercel
.eslintignore
.eslintrc.js
.prettierrc
tsconfig.json
rollup.*
rollup.*
storybook-static
18 changes: 18 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/preset-create-react-app',
{
name: '@storybook/addon-docs',
options: { transcludeMarkdown: true }
}
],
framework: '@storybook/react',
core: {
builder: '@storybook/builder-webpack5',
disableTelemetry: true
}
}
14 changes: 14 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export const parameters = {
options: {
storySort: {
order: ['Introduction', 'Changelog']
}
},
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/
}
}
}
178 changes: 148 additions & 30 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,168 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
All notable changes to this project will be documented in this file.

### [4.0.5](https://github.com/awran5/react-simple-star-rating/compare/v4.0.4...v4.0.5) (2021-12-13)
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### [4.0.4](https://github.com/awran5/react-simple-star-rating/compare/v4.0.3...v4.0.4) (2021-12-13)
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

## [v5.1.7](https://github.com/awran5/react-simple-star-rating/compare/v5.1.7...v5.1.7)

### Bug Fixes
## [v5.1.7](https://github.com/awran5/react-simple-star-rating/compare/v5.1.6...v5.1.7) - 2022-11-22

* handle value issue [#7](https://github.com/awran5/react-simple-star-rating/issues/7) ([b28b534](https://github.com/awran5/react-simple-star-rating/commit/b28b534ce6a55bf18ff38817f1bd59610769eb4b))
### Commits

### [4.0.3](https://github.com/awran5/react-simple-star-rating/compare/v4.0.2...v4.0.3) (2021-12-11)
- fix: incorrent value when use even icons [#32](https://github.com/awran5/react-simple-star-rating/issues/32)
- feat: new `allowTitleTag` prop to disable HTML title tag
- build: safe upgrade [`de3584d`](https://github.com/awran5/react-simple-star-rating/commit/de3584dd80fa54ef67e2b98f00844ccd8edea44d)
- build: remove deprecated standard-version [`1b108bf`](https://github.com/awran5/react-simple-star-rating/commit/1b108bf05568f65c843168f835b865a7e41134e6)
- docs: add `preset-create-react-app` [`3c108ec`](https://github.com/awran5/react-simple-star-rating/commit/3c108ecd423682482bbbed4b31630376a99d0a8b)

## [v5.1.6](https://github.com/awran5/react-simple-star-rating/compare/v5.1.5...v5.1.6) - 2022-10-28

### Bug Fixes
### Commits

* click on touch devices ([cee11c2](https://github.com/awran5/react-simple-star-rating/commit/cee11c2e7fa2e23d872395fbaa1dc9f527aa4591))
- chore(release): 5.1.6 [`c763647`](https://github.com/awran5/react-simple-star-rating/commit/c7636471266799c45a23dec253b4b89bb64fe5d9)
- docs: correct spelling of CHANGELOG [`fbe5fcc`](https://github.com/awran5/react-simple-star-rating/commit/fbe5fcc863f110f488a3c730b00cde6dbd80c922)

### [4.0.2](https://github.com/awran5/react-simple-star-rating/compare/v4.0.0...v4.0.2) (2021-12-10)
## [v5.1.5](https://github.com/awran5/react-simple-star-rating/compare/v5.1.4...v5.1.5) - 2022-10-28

### Commits

### Bug Fixes
- chore(release): 5.1.5 [`c786973`](https://github.com/awran5/react-simple-star-rating/commit/c786973fcfb60bce9e2cb5029e0824a5569cbf77)

* fix [#6](https://github.com/awran5/react-simple-star-rating/issues/6) not working on mobile browsers ([d0c1c4d](https://github.com/awran5/react-simple-star-rating/commit/d0c1c4d31fa2209215ccbc3b1dfb386d0a46e49a))
* **responsive issue:** add missing CSS to fix responsive ([5e20f1e](https://github.com/awran5/react-simple-star-rating/commit/5e20f1e78ea1480620b9ffc0303a3f646dfe3bcf))
## [v5.1.4](https://github.com/awran5/react-simple-star-rating/compare/v5.1.3...v5.1.4) - 2022-10-28

## 2.0.0
### Commits

### Major Changes
- build: update storybook [`5c133e7`](https://github.com/awran5/react-simple-star-rating/commit/5c133e73daa96bfb25d558d4547332c827af43cb)
- docs: update docs [`203fa74`](https://github.com/awran5/react-simple-star-rating/commit/203fa740f89dcf5dd7cbcbdf10979e68280072c2)
- fix: option to reset rating #31 [`37882b2`](https://github.com/awran5/react-simple-star-rating/commit/37882b2cecbaabd199e33324af394ce5233beabf)

- Removed: CSS stylesheet.
- Removed: Label Prop
- Update: Package dependencies.
- Added: Eslint airbnb style.
- Added: RatingView Component
- Added: Ability to add a custom SVG icon
## [v5.1.3](https://github.com/awran5/react-simple-star-rating/compare/v5.1.2...v5.1.3) - 2022-10-11

# 4.0.0
### Fixed

- rename: `star` prop to `iconsCount`
- remove: `width`, `height` you can use `size` prop instead
- add: `readonly` prop
- add: `fillColorArray` prop to add a color range
- add: `fullIcon`, `emptyIcon`, `customIcons` for add a custom SVG icons
- add: `rtl` for RTL support
- add: `allowHalfIcon` prop to enable a fractional icon (half icon)
- add: `allowHover` enable / disable hover effect
- add: `showTooltip` prop to show a tooltip with live values with other `props` to customize
- fix: window is not defined error while using Next.js [`#28`](https://github.com/awran5/react-simple-star-rating/issues/28)

### Commits

- build: update dependencies [`861a357`](https://github.com/awran5/react-simple-star-rating/commit/861a357a6c6ac4227d7373af437b7bb3ba8d2153)
- chore(release): 5.1.3 [`4c34a26`](https://github.com/awran5/react-simple-star-rating/commit/4c34a263ace89a3b44e6a66287247f76e357a4e2)
- fix: window is undefined" and "navigator is undefined" when using in Next.js [`abb3c5b`](https://github.com/awran5/react-simple-star-rating/commit/abb3c5bcf566bee4ec07dfdab350fac93182b43b)

## [v5.1.2](https://github.com/awran5/react-simple-star-rating/compare/v5.1.1...v5.1.2) - 2022-10-07

### Commits

- chore(release): 5.1.2 [`ec47c2c`](https://github.com/awran5/react-simple-star-rating/commit/ec47c2c3354c1441cf12b6391d9b6f2b1b900788)

## [v5.1.1](https://github.com/awran5/react-simple-star-rating/compare/v5.1.0...v5.1.1) - 2022-10-07

### Merged

- resolve next js window and navigator undefined issue [`#27`](https://github.com/awran5/react-simple-star-rating/pull/27)

## [v5.1.0](https://github.com/awran5/react-simple-star-rating/compare/v5.0.0...v5.1.0) - 2022-10-03

### Commits

- chore(release): 5.1.0 [`667a628`](https://github.com/awran5/react-simple-star-rating/commit/667a628c3703d94390a6bd46479b029105142143)
- fix: remove unnecessary css [`962c126`](https://github.com/awran5/react-simple-star-rating/commit/962c1267c9c41cfd5652e0362c7dcb25a47ff1de)

## [v5.0.0](https://github.com/awran5/react-simple-star-rating/compare/v4.1.1...v5.0.0) - 2022-10-03

### Commits

- chore(release): 5.0.0 [`b1d6f2d`](https://github.com/awran5/react-simple-star-rating/commit/b1d6f2d44ecf044c21e98d3cf3aab11f81373e9a)

## [v4.1.1](https://github.com/awran5/react-simple-star-rating/compare/v4.1.0...v4.1.1) - 2022-10-03

### Commits

- doc: v4.1.0 [`4eef0f2`](https://github.com/awran5/react-simple-star-rating/commit/4eef0f2b409d12401280b81d838a8748e3092d0a)
- build: add vercel script [`2e501c3`](https://github.com/awran5/react-simple-star-rating/commit/2e501c36e7cfa36743216f6ed6f77d1c6bbfe200)

## [v4.1.0](https://github.com/awran5/react-simple-star-rating/compare/v4.0.5...v4.1.0) - 2022-10-03

### Merged

- feat: add allowHoverOnDefault prop & update docs [`#19`](https://github.com/awran5/react-simple-star-rating/pull/19)
- fix: issue #10 [`#16`](https://github.com/awran5/react-simple-star-rating/pull/16)
- fix: adds default styling for starsvg [`#14`](https://github.com/awran5/react-simple-star-rating/pull/14)
- Export Types Again (This was removed in V4) [`#8`](https://github.com/awran5/react-simple-star-rating/pull/8)

### Commits

- build: update dependencies [`8241eed`](https://github.com/awran5/react-simple-star-rating/commit/8241eede17b08730f5542bb946c188fdcf4e6eb2)
- feat: add storybook build [`4ddc939`](https://github.com/awran5/react-simple-star-rating/commit/4ddc939ab7dcb962c24e98d5676d18d740990bd5)
- feat: add storybook [`adc8285`](https://github.com/awran5/react-simple-star-rating/commit/adc8285f752df41ffe5c1a4a601decdc14a6b70b)

## [v4.0.5](https://github.com/awran5/react-simple-star-rating/compare/v4.0.4...v4.0.5) - 2021-12-13

### Commits

- docs: update docs [`d324033`](https://github.com/awran5/react-simple-star-rating/commit/d324033f49ee3ee4ae0fdcf37b329212348ab12a)
- chore(release): 4.0.5 [`82d2cdd`](https://github.com/awran5/react-simple-star-rating/commit/82d2cddd871376ae2bcd1f19eb1708ba24f04015)

## [v4.0.4](https://github.com/awran5/react-simple-star-rating/compare/v4.0.3...v4.0.4) - 2021-12-13

### Commits

- fix: handle value issue #7 [`b28b534`](https://github.com/awran5/react-simple-star-rating/commit/b28b534ce6a55bf18ff38817f1bd59610769eb4b)
- add reset example [`7e8c5f2`](https://github.com/awran5/react-simple-star-rating/commit/7e8c5f2e26b08173323c9179628855e9850b8fd8)
- chore(release): 4.0.4 [`548257c`](https://github.com/awran5/react-simple-star-rating/commit/548257c71e90c62af77e61788db52a442e5a5ddb)

## [v4.0.3](https://github.com/awran5/react-simple-star-rating/compare/v4.0.2...v4.0.3) - 2021-12-11

### Commits

- fix: click on touch devices [`cee11c2`](https://github.com/awran5/react-simple-star-rating/commit/cee11c2e7fa2e23d872395fbaa1dc9f527aa4591)
- chore(release): 4.0.3 [`883a497`](https://github.com/awran5/react-simple-star-rating/commit/883a4973597f01443c7b19b3e461c98ba54a9f4f)

## [v4.0.2](https://github.com/awran5/react-simple-star-rating/compare/v4.0.0...v4.0.2) - 2021-12-10

### Fixed

- fix: fix #6 not working on mobile browsers [`#6`](https://github.com/awran5/react-simple-star-rating/issues/6) [`#6`](https://github.com/awran5/react-simple-star-rating/issues/6)

### Commits

- switch to standard-version [`1114086`](https://github.com/awran5/react-simple-star-rating/commit/11140866efa22b39079104b500236d507adc9121)
- fix(responsive issue): add missing CSS to fix responsive [`5e20f1e`](https://github.com/awran5/react-simple-star-rating/commit/5e20f1e78ea1480620b9ffc0303a3f646dfe3bcf)
- docs: log changes [`2d1d6e1`](https://github.com/awran5/react-simple-star-rating/commit/2d1d6e11654abd2bdc087b9f4da2328f31977381)

## [v4.0.0](https://github.com/awran5/react-simple-star-rating/compare/v3.0.0...v4.0.0) - 2021-11-28

### Commits

- docs: add: more demos and examples [`4ae2ed6`](https://github.com/awran5/react-simple-star-rating/commit/4ae2ed64e110e8848fb4b3fc50619c33745e8e65)
- update [`00c657e`](https://github.com/awran5/react-simple-star-rating/commit/00c657e2f2d963782e181ca02f9a98208c3756b4)
- chore: update dependencies [`9521d14`](https://github.com/awran5/react-simple-star-rating/commit/9521d148d542d0d9e36c4aec4355f5a32577a95d)

## [v3.0.0](https://github.com/awran5/react-simple-star-rating/compare/v2.1.0...v3.0.0) - 2021-07-06

### Commits

- build: github actions [`cef37e9`](https://github.com/awran5/react-simple-star-rating/commit/cef37e9ce0ef6acc2a62eb555ed1d20df6b54da9)

## [v2.1.0](https://github.com/awran5/react-simple-star-rating/compare/v2.0.0...v2.1.0) - 2021-07-06

### Commits

- feat: moved to semantic-release [`8ff381d`](https://github.com/awran5/react-simple-star-rating/commit/8ff381dfce92cf816821e296046bc5533f982d8c)
- fix(github action setup): edit release.yml to setup github action [`ea0e87d`](https://github.com/awran5/react-simple-star-rating/commit/ea0e87dda5212360bfc87b17b79fef4f99cab28a)
- edit readme [`dcb75a6`](https://github.com/awran5/react-simple-star-rating/commit/dcb75a6d6dfd943ecdf4cdfada6acab3f540c6aa)

## v2.0.0 - 2021-07-05

### Merged

- Version Packages [`#4`](https://github.com/awran5/react-simple-star-rating/pull/4)

### Commits

- first release [`1364dd0`](https://github.com/awran5/react-simple-star-rating/commit/1364dd022d31c101f0b145ca3bc17e899bddc312)
- v2 release [`923df0d`](https://github.com/awran5/react-simple-star-rating/commit/923df0d69447bd2331478b33bcb28db42532a8fa)
- icon size fixed [`4ec1bce`](https://github.com/awran5/react-simple-star-rating/commit/4ec1bce1e452a5e0e37b74bf277ec03103377dc1)
Loading