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

@beisen-phoenix/mobile-inner-input

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.7 to 0.0.8

1

lib/index.d.ts

@@ -7,3 +7,2 @@ import React from 'react';

readOnly?: boolean;
textAlign?: string;
translation?: {

@@ -10,0 +9,0 @@ inputHolder: string;

21

lib/index.js

@@ -19,2 +19,15 @@ import "core-js/modules/es6.object.assign";

var __rest = this && this.__rest || function (s, e) {
var t = {};
for (var p in s) {
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
}
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];
}
return t;
};
import React from 'react';

@@ -37,3 +50,2 @@ import { StyledInput } from './index.st';

defaultValue = _a === void 0 ? '' : _a,
textAlign = props.textAlign,
_b = props.placeholder,

@@ -47,3 +59,5 @@ placeholder = _b === void 0 ? '' : _b,

onChange = props.onChange,
onBlur = props.onBlur;
onBlur = props.onBlur,
others = __rest(props, ["defaultValue", "placeholder", "readOnly", "translation", "onFocus", "onChange", "onBlur"]);
var valueProps = {

@@ -66,4 +80,3 @@ defaultValue: defaultValue

return React.createElement(StyledInput, __assign({}, valueProps, {
textAlign: textAlign,
return React.createElement(StyledInput, __assign({}, valueProps, others, {
readOnly: readOnly,

@@ -70,0 +83,0 @@ placeholder: readOnly ? '' : placeholder || translation.inputHolder,

export declare const StyledInput: import("styled-components").StyledComponent<"input", any, {
readOnly?: boolean | undefined;
textAlign?: string | undefined;
}, never>;

@@ -20,7 +20,5 @@ var __makeTemplateObject = this && this.__makeTemplateObject || function (cooked, raw) {

/*#__PURE__*/
styled.input(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n ", "\n ", "\n color: ", ";\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: ", ";\n"], ["\n width: 100%;\n ", "\n ", "\n color: ", ";\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: ", ";\n"])), resetInput, token.$Fs3, function (props) {
styled.input(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n ", "\n ", "\n color: ", ";\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"], ["\n width: 100%;\n ", "\n ", "\n color: ", ";\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"])), resetInput, token.$Fs3, function (props) {
return props.readOnly ? token.$alpha(token.$M2, '0.7') : token.$M1;
}, function (props) {
return props.textAlign || 'right';
});
var templateObject_1, templateObject_2;
{
"name": "@beisen-phoenix/mobile-inner-input",
"version": "0.0.7",
"version": "0.0.8",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -26,6 +26,1 @@ 一个单纯的输入框 充满整个容器

文字对齐
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| textAlign | 文字对齐方式 可选值为css支持的所有对齐方式 | string | right |
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