It's important to be sensitive to how difficult changes can be for young children. While your overall strategy around toilet training (e.g., reinforcing the sort of behavior you wre seeking) was sensible, you were actually a bit too severe in the application, resulting in a punitive, rather than supportive, approach to the current stress in your daughter's life. Back up a bit, adopt more patience and reassurance, restore your daughter's belongings, and then rely on rewards for successful accomplishment, and it'll be fine.