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

rc-input

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-input - npm Package Compare versions

Comparing version 0.1.4 to 0.2.1

13

es/BaseInput.js

@@ -0,1 +1,2 @@

import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

@@ -8,2 +9,4 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";

var BaseInput = function BaseInput(props) {
var _inputElement$props;
var inputElement = props.inputElement,

@@ -27,3 +30,4 @@ prefixCls = props.prefixCls,

handleReset = props.handleReset,
hidden = props.hidden;
hidden = props.hidden,
inputStyle = props.inputStyle;
var containerRef = useRef(null);

@@ -65,3 +69,4 @@

value: value,
hidden: hidden
hidden: hidden,
style: _objectSpread(_objectSpread({}, (_inputElement$props = inputElement.props) === null || _inputElement$props === void 0 ? void 0 : _inputElement$props.style), inputStyle)
}); // ================== Prefix & Suffix ================== //

@@ -86,3 +91,3 @@

}, prefix), /*#__PURE__*/cloneElement(inputElement, {
style: null,
style: inputStyle !== null && inputStyle !== void 0 ? inputStyle : null,
value: value,

@@ -110,3 +115,3 @@ hidden: null

}, addonBefore), /*#__PURE__*/cloneElement(element, {
style: null,
style: inputStyle !== null && inputStyle !== void 0 ? inputStyle : null,
hidden: null

@@ -113,0 +118,0 @@ }), addonAfter && /*#__PURE__*/React.createElement("span", {

@@ -29,2 +29,3 @@ import type { CSSProperties, ReactElement, ReactNode, MouseEventHandler, KeyboardEventHandler, InputHTMLAttributes } from 'react';

hidden?: boolean;
inputStyle?: CSSProperties;
}

@@ -31,0 +32,0 @@ export interface ShowCountProps {

@@ -12,2 +12,4 @@ "use strict";

var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

@@ -28,2 +30,4 @@

var BaseInput = function BaseInput(props) {
var _inputElement$props;
var inputElement = props.inputElement,

@@ -47,3 +51,4 @@ prefixCls = props.prefixCls,

handleReset = props.handleReset,
hidden = props.hidden;
hidden = props.hidden,
inputStyle = props.inputStyle;
var containerRef = (0, _react.useRef)(null);

@@ -85,3 +90,4 @@

value: value,
hidden: hidden
hidden: hidden,
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (_inputElement$props = inputElement.props) === null || _inputElement$props === void 0 ? void 0 : _inputElement$props.style), inputStyle)
}); // ================== Prefix & Suffix ================== //

@@ -108,3 +114,3 @@

}, prefix), /*#__PURE__*/(0, _react.cloneElement)(inputElement, {
style: null,
style: inputStyle !== null && inputStyle !== void 0 ? inputStyle : null,
value: value,

@@ -132,3 +138,3 @@ hidden: null

}, addonBefore), /*#__PURE__*/(0, _react.cloneElement)(element, {
style: null,
style: inputStyle !== null && inputStyle !== void 0 ? inputStyle : null,
hidden: null

@@ -135,0 +141,0 @@ }), addonAfter && /*#__PURE__*/_react.default.createElement("span", {

@@ -29,2 +29,3 @@ import type { CSSProperties, ReactElement, ReactNode, MouseEventHandler, KeyboardEventHandler, InputHTMLAttributes } from 'react';

hidden?: boolean;
inputStyle?: CSSProperties;
}

@@ -31,0 +32,0 @@ export interface ShowCountProps {

{
"name": "rc-input",
"version": "0.1.4",
"version": "0.2.1",
"description": "React input component",

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

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