I think it violates the right to liberty and pursuit of happiness in the same way forbidding the possession of nuclear warheads violates the 2nd amendment: kinda, but for the greater good.
If your answer is no, please make the same argument but replace the word 'mask' with 'pants'.
The argument being made for warheads is the same as that for staying inside: not doing so would pose an outsize danger to others. Whether I agree or disagree isn't the point personally, I'm arguing that the curtailments follow from the same basic premise and are likely legal. We'll see how it plays out.