React component for PIN like input
update peerDependencies to react 17 and resolve window undefined in nextjs