Mouse Systems, Steve Kirsch's company, was shipping optical mice in 1982. They were standard issue on Sun workstations for years. I leave it to your judgment whether that qualifies as "mainstream".
The Mouse Systems optical mice were available for other, consumer, platforms as well. We had a Mouse Systems optical mouse (with the metal grid mousepad) for our Mac Classic in the early 90's.
A Sun 360 deskside computer was definitely consumer, it was only the size of a filing cabinet (definitely made for nuclear war though, heavily shielded).