New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@beisen-phoenix/mobile-input

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beisen-phoenix/mobile-input - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

lib/index.d.ts
import React from 'react';
interface InputProps {
prefixCls?: string;
labelText?: string;

@@ -16,2 +15,3 @@ value?: any;

helpIcon?: React.ReactNode;
className?: string;
onClickHelp?: (e: React.SyntheticEvent) => void;

@@ -18,0 +18,0 @@ onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;

@@ -53,4 +53,3 @@ import "core-js/modules/es6.object.assign";

var Input = function Input(props) {
var prefixCls = props.prefixCls,
labelText = props.labelText,
var labelText = props.labelText,
required = props.required,

@@ -63,3 +62,7 @@ readOnly = props.readOnly,

onFocus = props.onFocus,
others = __rest(props, ["prefixCls", "labelText", "required", "readOnly", "helpIcon", "onClickHelp", "rightEl", "hasError", "onFocus"]);
value = props.value,
defaultValue = props.defaultValue,
onChange = props.onChange,
onBlur = props.onBlur,
others = __rest(props, ["labelText", "required", "readOnly", "helpIcon", "onClickHelp", "rightEl", "hasError", "onFocus", "value", "defaultValue", "onChange", "onBlur"]);

@@ -86,10 +89,17 @@ var _a = useState(hasError),

rightEl: rightEl,
prefixCls: prefixCls,
hasError: showError
};
var inputOtherProps = {
var inputProps = {
readOnly: readOnly,
onFocus: handleFocus
defaultValue: defaultValue,
onFocus: handleFocus,
onChange: onChange,
onBlur: onBlur
};
return React.createElement(FieldBox, __assign({}, fieldProps), React.createElement(StyledInput, __assign({}, others, inputOtherProps)));
if (props.hasOwnProperty('value')) {
inputProps['value'] = props.value;
}
return React.createElement(FieldBox, __assign({}, fieldProps, others), React.createElement(StyledInput, __assign({}, inputProps)));
};

@@ -96,0 +106,0 @@

{
"name": "@beisen-phoenix/mobile-input",
"version": "0.0.5",
"version": "0.0.6",
"description": "",

@@ -48,6 +48,6 @@ "main": "lib/index.js",

"dependencies": {
"@beisen-phoenix/mobile-field-box": "^1.0.11",
"@beisen-phoenix/mobile-inner-input": "0.0.4",
"@beisen-phoenix/mobile-field-box": "^1.0.12",
"@beisen-phoenix/mobile-inner-input": "0.0.5",
"@beisen-phoenix/mobile-style-token": "^1.0.5"
}
}
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