Correct it is called "Maternity leave". The made basically keeps the full salary. IN short 13 weeks of maternity leave with 100% wage paid throughout the period. Indonesia's maternity protection is fully funded by employers and not based on social security insurance.
Sharia law/tradition say that the formal employer is fully responsible for his employees. This responsibility goes for a range of other "accidents" as well. Make sure to have a company insurance.