star-ratings-react
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -14,3 +14,4 @@ import React, { useState } from 'react'; | ||
size = 30, | ||
color = "#ffd814" | ||
starColor = "#ffd814", | ||
textColor = "black" | ||
}) => { | ||
@@ -24,3 +25,3 @@ const [hoverRating, setHoverRating] = useState(0); | ||
const textStyle = { | ||
color: "white", | ||
color: textColor, | ||
fontSize: `${size / 1.2}px`, | ||
@@ -45,3 +46,3 @@ lineHeight: "1", | ||
width: size, | ||
color: color | ||
starColor: starColor | ||
}))), /*#__PURE__*/React.createElement("p", { | ||
@@ -57,3 +58,3 @@ style: textStyle | ||
width, | ||
color | ||
starColor | ||
}) { | ||
@@ -74,4 +75,4 @@ const starStyle = { | ||
viewBox: "0 0 43.128 43.128", | ||
fill: `${color}`, | ||
stroke: `${color}` | ||
fill: `${starColor}`, | ||
stroke: `${starColor}` | ||
}, /*#__PURE__*/React.createElement("g", { | ||
@@ -88,4 +89,4 @@ id: "SVGRepo_bgCarrier" | ||
viewBox: "0 0 43.128 43.128", | ||
fill: "", | ||
stroke: `${color}`, | ||
fill: "transparent", | ||
stroke: `${starColor}`, | ||
strokeWidth: "3" | ||
@@ -92,0 +93,0 @@ }, /*#__PURE__*/React.createElement("g", { |
@@ -22,3 +22,4 @@ 'use strict'; | ||
size = 30, | ||
color = "#ffd814" | ||
starColor = "#ffd814", | ||
textColor = "black" | ||
}) => { | ||
@@ -32,3 +33,3 @@ const [hoverRating, setHoverRating] = React.useState(0); | ||
const textStyle = { | ||
color: "white", | ||
color: textColor, | ||
fontSize: `${size / 1.2}px`, | ||
@@ -53,3 +54,3 @@ lineHeight: "1", | ||
width: size, | ||
color: color | ||
starColor: starColor | ||
}))), /*#__PURE__*/React__default["default"].createElement("p", { | ||
@@ -65,3 +66,3 @@ style: textStyle | ||
width, | ||
color | ||
starColor | ||
}) { | ||
@@ -82,4 +83,4 @@ const starStyle = { | ||
viewBox: "0 0 43.128 43.128", | ||
fill: `${color}`, | ||
stroke: `${color}` | ||
fill: `${starColor}`, | ||
stroke: `${starColor}` | ||
}, /*#__PURE__*/React__default["default"].createElement("g", { | ||
@@ -96,4 +97,4 @@ id: "SVGRepo_bgCarrier" | ||
viewBox: "0 0 43.128 43.128", | ||
fill: "", | ||
stroke: `${color}`, | ||
fill: "transparent", | ||
stroke: `${starColor}`, | ||
strokeWidth: "3" | ||
@@ -100,0 +101,0 @@ }, /*#__PURE__*/React__default["default"].createElement("g", { |
{ | ||
"name": "star-ratings-react", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A Star Rating component made in react. Easy to customise and integrate to react applications.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9606
200