analytica-frontend-lib 1.1.64 → 1.1.66

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.
Files changed (35) hide show
  1. package/dist/Accordation/index.js +28 -2
  2. package/dist/Accordation/index.js.map +1 -1
  3. package/dist/Accordation/index.mjs +28 -2
  4. package/dist/Accordation/index.mjs.map +1 -1
  5. package/dist/Card/index.d.mts +1 -1
  6. package/dist/Card/index.d.ts +1 -1
  7. package/dist/Card/index.js +28 -2
  8. package/dist/Card/index.js.map +1 -1
  9. package/dist/Card/index.mjs +28 -2
  10. package/dist/Card/index.mjs.map +1 -1
  11. package/dist/NotificationCard/index.d.mts +1 -1
  12. package/dist/NotificationCard/index.d.ts +1 -1
  13. package/dist/NotificationCard/index.js +23 -2
  14. package/dist/NotificationCard/index.js.map +1 -1
  15. package/dist/NotificationCard/index.mjs +21 -1
  16. package/dist/NotificationCard/index.mjs.map +1 -1
  17. package/dist/{NotificationCard-4GgB0Nsf.d.mts → NotificationCard-DMdkuVEr.d.mts} +7 -2
  18. package/dist/{NotificationCard-4GgB0Nsf.d.ts → NotificationCard-DMdkuVEr.d.ts} +7 -2
  19. package/dist/Quiz/index.js +29 -3
  20. package/dist/Quiz/index.js.map +1 -1
  21. package/dist/Quiz/index.mjs +29 -3
  22. package/dist/Quiz/index.mjs.map +1 -1
  23. package/dist/Quiz/useQuizStore/index.d.mts +1 -1
  24. package/dist/Quiz/useQuizStore/index.d.ts +1 -1
  25. package/dist/Quiz/useQuizStore/index.js +1 -1
  26. package/dist/Quiz/useQuizStore/index.js.map +1 -1
  27. package/dist/Quiz/useQuizStore/index.mjs +1 -1
  28. package/dist/Quiz/useQuizStore/index.mjs.map +1 -1
  29. package/dist/index.d.mts +6 -3
  30. package/dist/index.d.ts +6 -3
  31. package/dist/index.js +179 -127
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.mjs +178 -127
  34. package/dist/index.mjs.map +1 -1
  35. package/package.json +1 -1
@@ -1402,10 +1402,36 @@ var CardStatus = (0, import_react2.forwardRef)(
1402
1402
  return "Incorreta";
1403
1403
  case "unanswered":
1404
1404
  return "Em branco";
1405
+ case "pending":
1406
+ return "Avalia\xE7\xE3o pendente";
1405
1407
  default:
1406
1408
  return "Em branco";
1407
1409
  }
1408
1410
  };
1411
+ const getIconBadge = (status2) => {
1412
+ switch (status2) {
1413
+ case "correct":
1414
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react2.CheckCircle, {});
1415
+ case "incorrect":
1416
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react2.XCircle, {});
1417
+ case "pending":
1418
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react2.Clock, {});
1419
+ default:
1420
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react2.XCircle, {});
1421
+ }
1422
+ };
1423
+ const getActionBadge = (status2) => {
1424
+ switch (status2) {
1425
+ case "correct":
1426
+ return "success";
1427
+ case "incorrect":
1428
+ return "error";
1429
+ case "pending":
1430
+ return "info";
1431
+ default:
1432
+ return "info";
1433
+ }
1434
+ };
1409
1435
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1410
1436
  CardBase,
1411
1437
  {
@@ -1421,10 +1447,10 @@ var CardStatus = (0, import_react2.forwardRef)(
1421
1447
  status && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1422
1448
  Badge_default,
1423
1449
  {
1424
- action: status == "correct" ? "success" : "error",
1450
+ action: getActionBadge(status),
1425
1451
  variant: "solid",
1426
1452
  size: "medium",
1427
- iconLeft: status == "correct" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react2.CheckCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react2.XCircle, {}),
1453
+ iconLeft: getIconBadge(status),
1428
1454
  children: getLabelBadge(status)
1429
1455
  }
1430
1456
  ),