We have the definition of a vector field as a smooth section of the tangent bundle $$X:P\longrightarrow TP,$$ where $(TP,\pi',P)$ is the tangent bundle over the total space of the principal G-bundle $(P,\pi,M)$. I.e, a vector field is an assignment of a vector ($\in TP$) to every point of a smooth manifold $P$.
I have, however, come across expressions like "$X(A)$" where $X$ is (supposedly) a vector field and $A$ is a Lie algebra element (for example at 19:31 here https://www.youtube.com/watch?v=j36o4DLLK2k).
How is the vector field defined in this case? Do we simply take for granted that the lie algebra is given a manifold structure, at which point the vector field is defined in the same way, something like $X:T_eG\longrightarrow T(T_eG)$ - assigning a vector in $T(T_eG) $ to another vector in $T_eG$?
This is the fundamental vector field generated by $A\in T_eG$. For $u\in P$, this is defined by $X^A(u):=\tfrac{d}{dt}|_{t=0}u\cdot exp(tA)$. Here the dot denotes the principal right action of $G$ on $P$, whose orbits are the fibers of $P$. For each $u\in P$, mapping $A$ to $X^A(u)$ induces a linear isomorphism from $T_eG$ to the vertical subspace $\ker(T_u\pi)\subset T_uP$. So these are the vectors tangent to the fibers of $P$.