refactor(navigation-bar): Update types of navbar logic
refactor(navigation-bar): Update types of navbar logic

PiperOrigin-RevId: 429439933

material-components/material-web,material-components/material-web