I carried a dog, my pregnant partner and often picnic stuff in a Christiania box bike (classic) and couldn't recommend it more. However, that was in Copenhagen and the bicycle infrastructure might/might not be adequate for that solution depending on your locale.
I wouldn't recommend a dog in a simple basket as the restricted space wouldn't allow them to move adequately to ensure they arrive happily.