react-otpcode-input
Advanced tools
Comparing version 0.1.13 to 0.1.14
@@ -6,6 +6,9 @@ /// <reference types="react" /> | ||
numberOfInputs: number; | ||
onChange: () => void; | ||
value: string; | ||
autoFocus?: boolean; | ||
} | ||
class OtpInput extends React.Component<OtpInputProps, any> {} | ||
const OtpInput: React.FunctionComponent<OtpInputProps>; | ||
export default OtpInput; | ||
} |
14
index.js
@@ -12,5 +12,13 @@ "use strict"; | ||
///@ts-check | ||
var OtpInput = function OtpInput() { | ||
return _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement("div", null, "OTP")); | ||
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
var OtpInput = function OtpInput(_ref) { | ||
var numberOfInputs = _ref.numberOfInputs, | ||
onChange = _ref.onChange, | ||
value = _ref.value, | ||
props = _objectWithoutProperties(_ref, ["numberOfInputs", "onChange", "value"]); | ||
return _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement("div", null, numberOfInputs), _react["default"].createElement("div", null, "OTP")); | ||
}; | ||
@@ -17,0 +25,0 @@ |
@@ -5,5 +5,6 @@ ///@ts-check | ||
const OtpInput = () => { | ||
const OtpInput = ({ numberOfInputs, onChange, value, ...props }) => { | ||
return ( | ||
<> | ||
<div>{numberOfInputs}</div> | ||
<div>OTP</div> | ||
@@ -10,0 +11,0 @@ </> |
{ | ||
"name": "react-otpcode-input", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"description": "OTP Input Component", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4126
42