analytica-frontend-lib 1.1.65 → 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.
@@ -1382,10 +1382,36 @@ var CardStatus = forwardRef(
1382
1382
  return "Incorreta";
1383
1383
  case "unanswered":
1384
1384
  return "Em branco";
1385
+ case "pending":
1386
+ return "Avalia\xE7\xE3o pendente";
1385
1387
  default:
1386
1388
  return "Em branco";
1387
1389
  }
1388
1390
  };
1391
+ const getIconBadge = (status2) => {
1392
+ switch (status2) {
1393
+ case "correct":
1394
+ return /* @__PURE__ */ jsx9(CheckCircle, {});
1395
+ case "incorrect":
1396
+ return /* @__PURE__ */ jsx9(XCircle, {});
1397
+ case "pending":
1398
+ return /* @__PURE__ */ jsx9(Clock, {});
1399
+ default:
1400
+ return /* @__PURE__ */ jsx9(XCircle, {});
1401
+ }
1402
+ };
1403
+ const getActionBadge = (status2) => {
1404
+ switch (status2) {
1405
+ case "correct":
1406
+ return "success";
1407
+ case "incorrect":
1408
+ return "error";
1409
+ case "pending":
1410
+ return "info";
1411
+ default:
1412
+ return "info";
1413
+ }
1414
+ };
1389
1415
  return /* @__PURE__ */ jsx9(
1390
1416
  CardBase,
1391
1417
  {
@@ -1401,10 +1427,10 @@ var CardStatus = forwardRef(
1401
1427
  status && /* @__PURE__ */ jsx9(
1402
1428
  Badge_default,
1403
1429
  {
1404
- action: status == "correct" ? "success" : "error",
1430
+ action: getActionBadge(status),
1405
1431
  variant: "solid",
1406
1432
  size: "medium",
1407
- iconLeft: status == "correct" ? /* @__PURE__ */ jsx9(CheckCircle, {}) : /* @__PURE__ */ jsx9(XCircle, {}),
1433
+ iconLeft: getIconBadge(status),
1408
1434
  children: getLabelBadge(status)
1409
1435
  }
1410
1436
  ),