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.
- package/dist/Accordation/index.js +28 -2
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +28 -2
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.d.mts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +28 -2
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +28 -2
- package/dist/Card/index.mjs.map +1 -1
- package/dist/Quiz/index.js +29 -3
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +29 -3
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Quiz/useQuizStore/index.d.mts +1 -1
- package/dist/Quiz/useQuizStore/index.d.ts +1 -1
- package/dist/Quiz/useQuizStore/index.js +1 -1
- package/dist/Quiz/useQuizStore/index.js.map +1 -1
- package/dist/Quiz/useQuizStore/index.mjs +1 -1
- package/dist/Quiz/useQuizStore/index.mjs.map +1 -1
- package/dist/Search/index.js +1 -1
- package/dist/Search/index.js.map +1 -1
- package/dist/Search/index.mjs +1 -1
- package/dist/Search/index.mjs.map +1 -1
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +159 -128
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +159 -128
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/Quiz/index.js
CHANGED
|
@@ -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
|
|
4777
|
+
action: getActionBadge(status),
|
|
4752
4778
|
variant: "solid",
|
|
4753
4779
|
size: "medium",
|
|
4754
|
-
iconLeft: status
|
|
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
|
-
["
|
|
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,
|