Socket
Socket
Sign inDemoInstall

rc-input-number

Package Overview
Dependencies
12
Maintainers
8
Versions
216
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.6.0 to 8.6.1

11

es/InputNumber.d.ts
import { ValueType } from '@rc-component/mini-decimal';
import * as React from 'react';
import { BaseInputProps } from 'rc-input/lib/interface';
export type { ValueType };

@@ -21,11 +22,3 @@ export interface InputNumberProps<T extends ValueType = ValueType> extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onInput' | 'onChange' | 'prefix' | 'suffix'> {

addonAfter?: React.ReactNode;
classes?: {
affixWrapper?: string;
group?: string;
wrapper?: string;
};
classNames?: {
affixWrapper?: string;
group?: string;
wrapper?: string;
classNames?: BaseInputProps['classNames'] & {
input?: string;

@@ -32,0 +25,0 @@ };

10

es/InputNumber.js

@@ -7,3 +7,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

var _excluded = ["prefixCls", "className", "style", "min", "max", "step", "defaultValue", "value", "disabled", "readOnly", "upHandler", "downHandler", "keyboard", "wheel", "controls", "classNames", "stringMode", "parser", "formatter", "precision", "decimalSeparator", "onChange", "onInput", "onPressEnter", "onStep", "changeOnBlur"],
_excluded2 = ["disabled", "style", "prefixCls", "value", "prefix", "suffix", "addonBefore", "addonAfter", "classes", "className", "classNames"];
_excluded2 = ["disabled", "style", "prefixCls", "value", "prefix", "suffix", "addonBefore", "addonAfter", "className", "classNames"];
import getMiniDecimal, { getNumberPrecision, num2str, toFixed, validateNumber } from '@rc-component/mini-decimal';

@@ -479,3 +479,3 @@ import clsx from 'classnames';

return /*#__PURE__*/React.createElement("div", {
className: clsx(prefixCls, classNames === null || classNames === void 0 ? void 0 : classNames.input, className, (_clsx = {}, _defineProperty(_clsx, "".concat(prefixCls, "-focused"), focus), _defineProperty(_clsx, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_clsx, "".concat(prefixCls, "-readonly"), readOnly), _defineProperty(_clsx, "".concat(prefixCls, "-not-a-number"), decimalValue.isNaN()), _defineProperty(_clsx, "".concat(prefixCls, "-out-of-range"), !decimalValue.isInvalidate() && !isInRange(decimalValue)), _clsx)),
className: clsx(prefixCls, className, (_clsx = {}, _defineProperty(_clsx, "".concat(prefixCls, "-focused"), focus), _defineProperty(_clsx, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_clsx, "".concat(prefixCls, "-readonly"), readOnly), _defineProperty(_clsx, "".concat(prefixCls, "-not-a-number"), decimalValue.isNaN()), _defineProperty(_clsx, "".concat(prefixCls, "-out-of-range"), !decimalValue.isInvalidate() && !isInRange(decimalValue)), _clsx)),
style: style,

@@ -525,3 +525,2 @@ onFocus: function onFocus() {

addonAfter = props.addonAfter,
classes = props.classes,
className = props.className,

@@ -547,3 +546,2 @@ classNames = props.classNames,

addonBefore: addonBefore,
classes: classes,
classNames: classNames,

@@ -559,4 +557,4 @@ components: {

disabled: disabled,
classNames: classNames,
ref: composeRef(inputFocusRef, ref)
ref: composeRef(inputFocusRef, ref),
className: classNames === null || classNames === void 0 ? void 0 : classNames.input
}, rest)));

@@ -563,0 +561,0 @@ });

import { ValueType } from '@rc-component/mini-decimal';
import * as React from 'react';
import { BaseInputProps } from 'rc-input/lib/interface';
export type { ValueType };

@@ -21,11 +22,3 @@ export interface InputNumberProps<T extends ValueType = ValueType> extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onInput' | 'onChange' | 'prefix' | 'suffix'> {

addonAfter?: React.ReactNode;
classes?: {
affixWrapper?: string;
group?: string;
wrapper?: string;
};
classNames?: {
affixWrapper?: string;
group?: string;
wrapper?: string;
classNames?: BaseInputProps['classNames'] & {
input?: string;

@@ -32,0 +25,0 @@ };

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

var _excluded = ["prefixCls", "className", "style", "min", "max", "step", "defaultValue", "value", "disabled", "readOnly", "upHandler", "downHandler", "keyboard", "wheel", "controls", "classNames", "stringMode", "parser", "formatter", "precision", "decimalSeparator", "onChange", "onInput", "onPressEnter", "onStep", "changeOnBlur"],
_excluded2 = ["disabled", "style", "prefixCls", "value", "prefix", "suffix", "addonBefore", "addonAfter", "classes", "className", "classNames"];
_excluded2 = ["disabled", "style", "prefixCls", "value", "prefix", "suffix", "addonBefore", "addonAfter", "className", "classNames"];
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }

@@ -489,3 +489,3 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }

return /*#__PURE__*/React.createElement("div", {
className: (0, _classnames.default)(prefixCls, classNames === null || classNames === void 0 ? void 0 : classNames.input, className, (_clsx = {}, (0, _defineProperty2.default)(_clsx, "".concat(prefixCls, "-focused"), focus), (0, _defineProperty2.default)(_clsx, "".concat(prefixCls, "-disabled"), disabled), (0, _defineProperty2.default)(_clsx, "".concat(prefixCls, "-readonly"), readOnly), (0, _defineProperty2.default)(_clsx, "".concat(prefixCls, "-not-a-number"), decimalValue.isNaN()), (0, _defineProperty2.default)(_clsx, "".concat(prefixCls, "-out-of-range"), !decimalValue.isInvalidate() && !isInRange(decimalValue)), _clsx)),
className: (0, _classnames.default)(prefixCls, className, (_clsx = {}, (0, _defineProperty2.default)(_clsx, "".concat(prefixCls, "-focused"), focus), (0, _defineProperty2.default)(_clsx, "".concat(prefixCls, "-disabled"), disabled), (0, _defineProperty2.default)(_clsx, "".concat(prefixCls, "-readonly"), readOnly), (0, _defineProperty2.default)(_clsx, "".concat(prefixCls, "-not-a-number"), decimalValue.isNaN()), (0, _defineProperty2.default)(_clsx, "".concat(prefixCls, "-out-of-range"), !decimalValue.isInvalidate() && !isInRange(decimalValue)), _clsx)),
style: style,

@@ -535,3 +535,2 @@ onFocus: function onFocus() {

addonAfter = props.addonAfter,
classes = props.classes,
className = props.className,

@@ -557,3 +556,2 @@ classNames = props.classNames,

addonBefore: addonBefore,
classes: classes,
classNames: classNames,

@@ -569,4 +567,4 @@ components: {

disabled: disabled,
classNames: classNames,
ref: (0, _ref.composeRef)(inputFocusRef, ref)
ref: (0, _ref.composeRef)(inputFocusRef, ref),
className: classNames === null || classNames === void 0 ? void 0 : classNames.input
}, rest)));

@@ -573,0 +571,0 @@ });

{
"name": "rc-input-number",
"version": "8.6.0",
"version": "8.6.1",
"description": "React input-number component",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc