I had my son when I was on H1B. I had 12-week maternity leave according to the Family Leave Act (6 weeks with full pay and 6 weeks without pay). You need to check with your HR to find out your company's policy.