analytica-frontend-lib 1.1.65 → 1.1.67

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.
@@ -4729,10 +4729,36 @@ var CardStatus = (0, import_react13.forwardRef)(
4729
4729
  return "Incorreta";
4730
4730
  case "unanswered":
4731
4731
  return "Em branco";
4732
+ case "pending":
4733
+ return "Avalia\xE7\xE3o pendente";
4732
4734
  default:
4733
4735
  return "Em branco";
4734
4736
  }
4735
4737
  };
4738
+ const getIconBadge = (status2) => {
4739
+ switch (status2) {
4740
+ case "correct":
4741
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_phosphor_react9.CheckCircle, {});
4742
+ case "incorrect":
4743
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_phosphor_react9.XCircle, {});
4744
+ case "pending":
4745
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_phosphor_react9.Clock, {});
4746
+ default:
4747
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_phosphor_react9.XCircle, {});
4748
+ }
4749
+ };
4750
+ const getActionBadge = (status2) => {
4751
+ switch (status2) {
4752
+ case "correct":
4753
+ return "success";
4754
+ case "incorrect":
4755
+ return "error";
4756
+ case "pending":
4757
+ return "info";
4758
+ default:
4759
+ return "info";
4760
+ }
4761
+ };
4736
4762
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4737
4763
  CardBase,
4738
4764
  {
@@ -4748,10 +4774,10 @@ var CardStatus = (0, import_react13.forwardRef)(
4748
4774
  status && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4749
4775
  Badge_default,
4750
4776
  {
4751
- action: status == "correct" ? "success" : "error",
4777
+ action: getActionBadge(status),
4752
4778
  variant: "solid",
4753
4779
  size: "medium",
4754
- iconLeft: status == "correct" ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_phosphor_react9.CheckCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_phosphor_react9.XCircle, {}),
4780
+ iconLeft: getIconBadge(status),
4755
4781
  children: getLabelBadge(status)
4756
4782
  }
4757
4783
  ),
@@ -5598,7 +5624,7 @@ var QuizContent = (0, import_react14.forwardRef)(({ paddingBottom }) => {
5598
5624
  const currentQuestion = getCurrentQuestion();
5599
5625
  const questionComponents = {
5600
5626
  ["ALTERNATIVA" /* ALTERNATIVA */]: QuizAlternative,
5601
- ["MULTIPLA_CHOICE" /* MULTIPLA_CHOICE */]: QuizMultipleChoice,
5627
+ ["MULTIPLA_ESCOLHA" /* MULTIPLA_ESCOLHA */]: QuizMultipleChoice,
5602
5628
  ["DISSERTATIVA" /* DISSERTATIVA */]: QuizDissertative,
5603
5629
  ["VERDADEIRO_FALSO" /* VERDADEIRO_FALSO */]: QuizTrueOrFalse,
5604
5630
  ["LIGAR_PONTOS" /* LIGAR_PONTOS */]: QuizConnectDots,