analytica-frontend-lib 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3197,7 +3197,7 @@ var ProfileMenuTrigger = (0, import_react14.forwardRef)(({ className, onClick, s
3197
3197
  );
3198
3198
  });
3199
3199
  ProfileMenuTrigger.displayName = "ProfileMenuTrigger";
3200
- var ProfileMenuHeader = (0, import_react14.forwardRef)(({ className, name, email, store: _store, ...props }, ref) => {
3200
+ var ProfileMenuHeader = (0, import_react14.forwardRef)(({ className, name, email, photoUrl, store: _store, ...props }, ref) => {
3201
3201
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
3202
3202
  "div",
3203
3203
  {
@@ -3206,7 +3206,14 @@ var ProfileMenuHeader = (0, import_react14.forwardRef)(({ className, name, email
3206
3206
  className: cn("flex flex-row gap-4 items-center", className),
3207
3207
  ...props,
3208
3208
  children: [
3209
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "size-16 bg-primary-100 rounded-full flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_phosphor_react10.User, { size: 34, className: "text-primary-800" }) }),
3209
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "w-16 h-16 bg-primary-100 rounded-full flex items-center justify-center overflow-hidden", children: photoUrl ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3210
+ "img",
3211
+ {
3212
+ src: photoUrl,
3213
+ alt: "Foto de perfil",
3214
+ className: "w-full h-full object-cover"
3215
+ }
3216
+ ) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_phosphor_react10.User, { size: 34, className: "text-primary-800" }) }),
3210
3217
  /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-col ", children: [
3211
3218
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Text_default, { size: "xl", weight: "bold", color: "text-text-950", children: name }),
3212
3219
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Text_default, { size: "md", color: "text-text-600", children: email })