@s-ui/react-atom-input
Advanced tools
Comparing version 3.13.0 to 3.14.0
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="3.14.0"></a> | ||
# 3.14.0 (2019-10-08) | ||
### Bug Fixes | ||
* add default prop value to onChange prop ([3000a86](https://github.com/SUI-Components/sui-components/commit/3000a86)) | ||
<a name="3.13.0"></a> | ||
@@ -7,0 +17,0 @@ # 3.13.0 (2019-10-08) |
@@ -1,2 +0,2 @@ | ||
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; | ||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; | ||
import React from 'react'; | ||
@@ -10,3 +10,3 @@ import PropTypes from 'prop-types'; | ||
var type = _ref.type, | ||
props = _objectWithoutProperties(_ref, ["type"]); | ||
props = _objectWithoutPropertiesLoose(_ref, ["type"]); | ||
@@ -13,0 +13,0 @@ switch (type) { |
@@ -1,2 +0,2 @@ | ||
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; | ||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; | ||
import React from 'react'; | ||
@@ -21,3 +21,3 @@ import PropTypes from 'prop-types'; | ||
rightAddon = _ref2.rightAddon, | ||
props = _objectWithoutProperties(_ref2, ["leftAddon", "rightAddon"]); | ||
props = _objectWithoutPropertiesLoose(_ref2, ["leftAddon", "rightAddon"]); | ||
@@ -24,0 +24,0 @@ return leftAddon || rightAddon ? React.createElement("div", { |
@@ -1,3 +0,3 @@ | ||
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; | ||
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; | ||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; | ||
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; | ||
import React from 'react'; | ||
@@ -59,3 +59,3 @@ import PropTypes from 'prop-types'; | ||
onClickRightIcon = _this$props.onClickRightIcon, | ||
props = _objectWithoutProperties(_this$props, ["leftIcon", "rightIcon", "onClickLeftIcon", "onClickRightIcon"]); | ||
props = _objectWithoutPropertiesLoose(_this$props, ["leftIcon", "rightIcon", "onClickLeftIcon", "onClickRightIcon"]); | ||
@@ -62,0 +62,0 @@ return leftIcon || rightIcon ? React.createElement("div", { |
@@ -1,3 +0,2 @@ | ||
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; | ||
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; | ||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; | ||
import React, { useState, useEffect, useRef } from 'react'; | ||
@@ -11,8 +10,7 @@ import PropTypes from 'prop-types'; | ||
maskOptions = _ref.mask, | ||
props = _objectWithoutProperties(_ref, ["name", "onChange", "mask"]); | ||
props = _objectWithoutPropertiesLoose(_ref, ["name", "onChange", "mask"]); | ||
var _useState = useState(null), | ||
_useState2 = _slicedToArray(_useState, 2), | ||
mask = _useState2[0], | ||
setMask = _useState2[1]; | ||
mask = _useState[0], | ||
setMask = _useState[1]; | ||
@@ -36,3 +34,3 @@ var refInput = useRef(null); | ||
import('imask').then(function (_ref3) { | ||
var IMask = _ref3["default"]; | ||
var IMask = _ref3.default; | ||
setMask(new IMask(refInput.current, maskOptions)); | ||
@@ -39,0 +37,0 @@ }); |
@@ -1,3 +0,2 @@ | ||
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; | ||
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; | ||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; | ||
import React, { useState } from 'react'; | ||
@@ -18,13 +17,11 @@ import PropTypes from 'prop-types'; | ||
pwHideLabel = _ref.pwHideLabel, | ||
props = _objectWithoutProperties(_ref, ["onChange", "pwShowLabel", "pwHideLabel"]); | ||
props = _objectWithoutPropertiesLoose(_ref, ["onChange", "pwShowLabel", "pwHideLabel"]); | ||
var _useState = useState(PASSWORD), | ||
_useState2 = _slicedToArray(_useState, 2), | ||
type = _useState2[0], | ||
setType = _useState2[1]; | ||
type = _useState[0], | ||
setType = _useState[1]; | ||
var _useState3 = useState(''), | ||
_useState4 = _slicedToArray(_useState3, 2), | ||
value = _useState4[0], | ||
setValue = _useState4[1]; | ||
var _useState2 = useState(''), | ||
value = _useState2[0], | ||
setValue = _useState2[1]; | ||
@@ -58,4 +55,5 @@ var toggle = function toggle() { | ||
pwShowLabel: SHOW_LABEL, | ||
pwHideLabel: HIDE_LABEL | ||
pwHideLabel: HIDE_LABEL, | ||
onChange: function onChange() {} | ||
}; | ||
export default Password; |
{ | ||
"name": "@s-ui/react-atom-input", | ||
"version": "3.13.0", | ||
"version": "3.14.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
37886
317