An equilateral triangle with side length [tex]x[/tex] has area [tex]\dfrac{\sqrt3}4x^2[/tex], so that
[tex]\dfrac{\sqrt3}4x^2=2\sqrt3\implies x^2=8\implies x=2\sqrt2[/tex]
Then the triangle, and hence the square, has a perimeter of [tex]3x=6\sqrt2[/tex].
The perimeter of a square with side length [tex]y[/tex] is [tex]4y[/tex], so that
[tex]4y=6\sqrt2\implies y=\dfrac{3\sqrt2}2[/tex]
The length of the diagonal of any square is [tex]\sqrt2[/tex] longer than the length of its side, so that this square's diagonal length is
[tex]\sqrt2\,y=\dfrac{3(\sqrt2)^2}2=\boxed{3}[/tex]