A woman has died after she was hit by a car which she had gotten out of on a driveway in Yorkshire, police have said.