🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

rc-rate

Package Overview
Dependencies
Maintainers
7
Versions
33
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

to
2.8.2

4

es/Rate.d.ts

@@ -49,5 +49,5 @@ import React from 'react';

componentDidMount(): void;
onHover: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, index: number) => void;
onHover: (event: React.MouseEvent<HTMLDivElement>, index: number) => void;
onMouseLeave: () => void;
onClick: (event: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>, index: number) => void;
onClick: (event: React.MouseEvent | React.KeyboardEvent, index: number) => void;
onFocus: () => void;

@@ -54,0 +54,0 @@ onBlur: () => void;

@@ -12,3 +12,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

@@ -319,3 +319,3 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

if ('value' in nextProps && nextProps.value !== undefined) {
return _objectSpread({}, state, {
return _objectSpread(_objectSpread({}, state), {}, {
value: nextProps.value

@@ -322,0 +322,0 @@ });

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

function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

@@ -67,3 +67,3 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

className += " ".concat(prefixCls, "-focused");
} else if (allowHalf && value + 0.5 === starValue) {
} else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
className += " ".concat(prefixCls, "-half ").concat(prefixCls, "-active");

@@ -109,3 +109,3 @@

"aria-setsize": count,
tabIndex: 0
tabIndex: disabled ? -1 : 0
}, React.createElement("div", {

@@ -112,0 +112,0 @@ className: "".concat(prefixCls, "-first")

@@ -49,5 +49,5 @@ import React from 'react';

componentDidMount(): void;
onHover: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, index: number) => void;
onHover: (event: React.MouseEvent<HTMLDivElement>, index: number) => void;
onMouseLeave: () => void;
onClick: (event: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>, index: number) => void;
onClick: (event: React.MouseEvent | React.KeyboardEvent, index: number) => void;
onFocus: () => void;

@@ -54,0 +54,0 @@ onBlur: () => void;

@@ -38,3 +38,3 @@ "use strict";

function _createSuper(Derived) { return function () { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }

@@ -337,3 +337,3 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

if ('value' in nextProps && nextProps.value !== undefined) {
return _objectSpread({}, state, {
return _objectSpread(_objectSpread({}, state), {}, {
value: nextProps.value

@@ -340,0 +340,0 @@ });

@@ -22,3 +22,3 @@ "use strict";

function _createSuper(Derived) { return function () { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }

@@ -79,3 +79,3 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

className += " ".concat(prefixCls, "-focused");
} else if (allowHalf && value + 0.5 === starValue) {
} else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
className += " ".concat(prefixCls, "-half ").concat(prefixCls, "-active");

@@ -122,3 +122,3 @@

"aria-setsize": count,
tabIndex: 0
tabIndex: disabled ? -1 : 0
}, _react.default.createElement("div", {

@@ -125,0 +125,0 @@ className: "".concat(prefixCls, "-first")

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

@@ -49,3 +49,3 @@ "engines": {

"@types/classnames": "^2.2.9",
"@types/jest": "^25.1.0",
"@types/jest": "^26.0.0",
"@types/react": "^16.9.2",

@@ -52,0 +52,0 @@ "@types/react-dom": "^16.9.0",

Sorry, the diff of this file is not supported yet