Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

star-ratings-react

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

star-ratings-react - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

17

dist/index.es.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc