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.
@@ -1389,10 +1389,36 @@ var CardStatus = forwardRef(
1389
1389
  return "Incorreta";
1390
1390
  case "unanswered":
1391
1391
  return "Em branco";
1392
+ case "pending":
1393
+ return "Avalia\xE7\xE3o pendente";
1392
1394
  default:
1393
1395
  return "Em branco";
1394
1396
  }
1395
1397
  };
1398
+ const getIconBadge = (status2) => {
1399
+ switch (status2) {
1400
+ case "correct":
1401
+ return /* @__PURE__ */ jsx9(CheckCircle, {});
1402
+ case "incorrect":
1403
+ return /* @__PURE__ */ jsx9(XCircle, {});
1404
+ case "pending":
1405
+ return /* @__PURE__ */ jsx9(Clock, {});
1406
+ default:
1407
+ return /* @__PURE__ */ jsx9(XCircle, {});
1408
+ }
1409
+ };
1410
+ const getActionBadge = (status2) => {
1411
+ switch (status2) {
1412
+ case "correct":
1413
+ return "success";
1414
+ case "incorrect":
1415
+ return "error";
1416
+ case "pending":
1417
+ return "info";
1418
+ default:
1419
+ return "info";
1420
+ }
1421
+ };
1396
1422
  return /* @__PURE__ */ jsx9(
1397
1423
  CardBase,
1398
1424
  {
@@ -1408,10 +1434,10 @@ var CardStatus = forwardRef(
1408
1434
  status && /* @__PURE__ */ jsx9(
1409
1435
  Badge_default,
1410
1436
  {
1411
- action: status == "correct" ? "success" : "error",
1437
+ action: getActionBadge(status),
1412
1438
  variant: "solid",
1413
1439
  size: "medium",
1414
- iconLeft: status == "correct" ? /* @__PURE__ */ jsx9(CheckCircle, {}) : /* @__PURE__ */ jsx9(XCircle, {}),
1440
+ iconLeft: getIconBadge(status),
1415
1441
  children: getLabelBadge(status)
1416
1442
  }
1417
1443
  ),