analytica-frontend-lib 1.2.4 → 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 })
@@ -7629,7 +7636,6 @@ var CardQuestions = (0, import_react27.forwardRef)(
7629
7636
  className,
7630
7637
  onClickButton,
7631
7638
  valueButton,
7632
- label = "00",
7633
7639
  ...props
7634
7640
  }, ref) => {
7635
7641
  const isDone = state === "done";
@@ -7647,21 +7653,15 @@ var CardQuestions = (0, import_react27.forwardRef)(
7647
7653
  children: [
7648
7654
  /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
7649
7655
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
7650
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-row gap-6 items-center", children: [
7651
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7652
- Badge_default,
7653
- {
7654
- size: "medium",
7655
- variant: "solid",
7656
- action: isDone ? "success" : "error",
7657
- children: stateLabel
7658
- }
7659
- ),
7660
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("span", { className: "flex flex-row items-center gap-1 text-text-700 text-xs", children: [
7661
- isDone ? "Nota" : "Sem nota",
7662
- isDone && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Badge_default, { size: "medium", action: "success", children: label })
7663
- ] })
7664
- ] })
7656
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex flex-row gap-6 items-center", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7657
+ Badge_default,
7658
+ {
7659
+ size: "medium",
7660
+ variant: "solid",
7661
+ action: isDone ? "success" : "error",
7662
+ children: stateLabel
7663
+ }
7664
+ ) })
7665
7665
  ] }),
7666
7666
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7667
7667
  Button_default,