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

zmp-ui

Package Overview
Dependencies
Maintainers
3
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zmp-ui - npm Package Compare versions

Comparing version 1.5.3-rc.4 to 1.5.3-rc.5

6

cjs/components/input/BaseInput.js

@@ -37,3 +37,4 @@ "use strict";

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

@@ -93,3 +94,4 @@

ref: containerRef,
role: "presentation"
role: "presentation",
onClick: onInputTriggerClick
}, prefix && /*#__PURE__*/_react["default"].createElement("span", {

@@ -96,0 +98,0 @@ className: prefixCls + "-prefix"

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

// specify either the value prop, or the defaultValue prop, but not both.
"defaultValue", "affixWrapperClassName", "groupClassName", "inputClassName", "wrapperClassName"]);
"defaultValue", "affixWrapperClassName", "groupClassName", "inputClassName", "wrapperClassName", "onInputTriggerClick"]);
return /*#__PURE__*/_react["default"].createElement("input", (0, _extends2["default"])({}, otherProps, {

@@ -203,3 +203,6 @@ onChange: handleChange,

});
Input.defaultProps = {
onInputTriggerClick: undefined
};
var _default = Input;
exports["default"] = _default;

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

_proto.render = function render() {
var _cloneProps$ref, _cloneProps$ref$curre;
var popupVisible = this.state.popupVisible;

@@ -541,2 +543,7 @@ var _this$props8 = this.props,

if ((_cloneProps$ref = cloneProps.ref) != null && (_cloneProps$ref$curre = _cloneProps$ref.current) != null && _cloneProps$ref$curre.input) {
cloneProps.onClick = undefined;
cloneProps.onInputTriggerClick = this.onClick;
}
var trigger = /*#__PURE__*/_react["default"].cloneElement(child, cloneProps);

@@ -543,0 +550,0 @@

@@ -24,3 +24,4 @@ import React, { cloneElement, useRef } from "react";

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

@@ -78,3 +79,4 @@

ref: containerRef,
role: "presentation"
role: "presentation",
onClick: onInputTriggerClick
}, prefix && /*#__PURE__*/React.createElement("span", {

@@ -81,0 +83,0 @@ className: prefixCls + "-prefix"

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

// specify either the value prop, or the defaultValue prop, but not both.
"defaultValue", "affixWrapperClassName", "groupClassName", "inputClassName", "wrapperClassName"]);
"defaultValue", "affixWrapperClassName", "groupClassName", "inputClassName", "wrapperClassName", "onInputTriggerClick"]);
return /*#__PURE__*/React.createElement("input", _extends({}, otherProps, {

@@ -178,2 +178,5 @@ onChange: handleChange,

});
Input.defaultProps = {
onInputTriggerClick: undefined
};
export default Input;

@@ -500,2 +500,4 @@ import _extends from "@babel/runtime/helpers/extends";

_proto.render = function render() {
var _cloneProps$ref, _cloneProps$ref$curre;
var popupVisible = this.state.popupVisible;

@@ -545,2 +547,7 @@ var _this$props8 = this.props,

if ((_cloneProps$ref = cloneProps.ref) != null && (_cloneProps$ref$curre = _cloneProps$ref.current) != null && _cloneProps$ref$curre.input) {
cloneProps.onClick = undefined;
cloneProps.onInputTriggerClick = this.onClick;
}
var trigger = /*#__PURE__*/React.cloneElement(child, cloneProps);

@@ -547,0 +554,0 @@ var portal = null; // prevent unmounting after it's rendered

/**
* Zaui 1.5.3-rc.4
* Zaui 1.5.3-rc.5
* Zalo Mini App framework

@@ -10,3 +10,3 @@ * undefined

*
* Released on: January 3, 2023
* Released on: January 5, 2023
*/

@@ -13,0 +13,0 @@

@@ -50,2 +50,3 @@ import React, {

hidden?: boolean;
onInputTriggerClick?: React.MouseEventHandler<HTMLElement>;
}

@@ -72,3 +73,6 @@

export interface InputProps
extends Omit<ClearableLabeledBaseInputProps, "status" | "inputElement">,
extends Omit<
ClearableLabeledBaseInputProps,
"status" | "inputElement" | "onInputTriggerClick"
>,
Omit<

@@ -75,0 +79,0 @@ InputHTMLAttributes<HTMLInputElement>,

{
"name": "zmp-ui",
"version": "1.5.3-rc.4",
"version": "1.5.3-rc.5",
"description": "Zalo Mini App framework ",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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