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

rc-rate

Package Overview
Dependencies
Maintainers
6
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-rate - npm Package Compare versions

Comparing version 2.8.0 to 2.8.1

4

es/Rate.d.ts

@@ -16,5 +16,3 @@ import React from 'react';

className?: string;
character?: ({ index: number }: {
index: any;
}) => React.ReactNode | React.ReactNode;
character?: (props: StarProps) => React.ReactNode | React.ReactNode;
characterRender?: (origin: React.ReactElement, props: StarProps) => React.ReactNode;

@@ -21,0 +19,0 @@ tabIndex?: number;

@@ -10,5 +10,3 @@ import React from 'react';

onClick?: (e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>, index: number) => void;
character?: ({ index: number }: {
index: any;
}) => React.ReactNode | React.ReactNode;
character?: (props: StarProps) => React.ReactNode | React.ReactNode;
characterRender?: (origin: React.ReactElement, props: StarProps) => React.ReactNode;

@@ -15,0 +13,0 @@ focused?: boolean;

@@ -96,5 +96,3 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";

value = _this$props5.value;
var characterNode = typeof character === 'function' ? character({
index: index
}) : character;
var characterNode = typeof character === 'function' ? character(this.props) : character;
var start = React.createElement("li", {

@@ -101,0 +99,0 @@ className: this.getClassName()

@@ -16,5 +16,3 @@ import React from 'react';

className?: string;
character?: ({ index: number }: {
index: any;
}) => React.ReactNode | React.ReactNode;
character?: (props: StarProps) => React.ReactNode | React.ReactNode;
characterRender?: (origin: React.ReactElement, props: StarProps) => React.ReactNode;

@@ -21,0 +19,0 @@ tabIndex?: number;

@@ -10,5 +10,3 @@ import React from 'react';

onClick?: (e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>, index: number) => void;
character?: ({ index: number }: {
index: any;
}) => React.ReactNode | React.ReactNode;
character?: (props: StarProps) => React.ReactNode | React.ReactNode;
characterRender?: (origin: React.ReactElement, props: StarProps) => React.ReactNode;

@@ -15,0 +13,0 @@ focused?: boolean;

@@ -108,5 +108,3 @@ "use strict";

value = _this$props5.value;
var characterNode = typeof character === 'function' ? character({
index: index
}) : character;
var characterNode = typeof character === 'function' ? character(this.props) : character;

@@ -113,0 +111,0 @@ var start = _react.default.createElement("li", {

{
"name": "rc-rate",
"version": "2.8.0",
"version": "2.8.1",
"description": "React Star Rate Component",

@@ -5,0 +5,0 @@ "engines": {

@@ -147,3 +147,3 @@ # rc-rate

<td>character</td>
<td>ReactNode | ({index}) => ReactNode</td>
<td>ReactNode | (props) => ReactNode</td>
<td>ā˜…</td>

@@ -150,0 +150,0 @@ <td>The each character of rate</td>

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