react-otpcode-input
Advanced tools
Comparing version 0.1.22 to 0.1.23
19
index.js
@@ -55,3 +55,3 @@ "use strict"; | ||
// import { SingleOTPInputProps } from "./lib/types"; | ||
var SingleOTPInput = _styledComponents["default"].input.attrs(_templateObject(), function (props) { | ||
var SingleOTPInput = _styledComponents["default"].input(_templateObject(), function (props) { | ||
return props.active ? "#2b2b2b" : "#e6e8ec"; | ||
@@ -82,12 +82,9 @@ }); | ||
}, identifiers.map(function (val, i) { | ||
return _react["default"].createElement(_rebass.Box, { | ||
key: i | ||
}, "0") // <SingleOTPInput | ||
// key={i} | ||
// id={`otp_${i}`} | ||
// value={otpValues[i] || ""} | ||
// active={i === active} | ||
// // autoFocus={i === active} | ||
// /> | ||
; | ||
return _react["default"].createElement(SingleOTPInput, { | ||
key: i, | ||
id: "otp_".concat(i), | ||
value: otpValues[i] || "", | ||
active: i === active // autoFocus={i === active} | ||
}); | ||
}))); | ||
@@ -94,0 +91,0 @@ }; |
{ | ||
"name": "react-otpcode-input", | ||
"version": "0.1.22", | ||
"version": "0.1.23", | ||
"description": "OTP Input Component", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
9368
119