analytica-frontend-lib 1.1.25 → 1.1.26

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.
@@ -1227,6 +1227,18 @@ var CardResults = forwardRef(
1227
1227
  );
1228
1228
  var CardStatus = forwardRef(
1229
1229
  ({ header, className, status, label, ...props }, ref) => {
1230
+ const getLabelBadge = (status2) => {
1231
+ switch (status2) {
1232
+ case "correct":
1233
+ return "Correta";
1234
+ case "incorrect":
1235
+ return "Incorreta";
1236
+ case "unanswered":
1237
+ return "Em branco";
1238
+ default:
1239
+ return "Em branco";
1240
+ }
1241
+ };
1230
1242
  return /* @__PURE__ */ jsx5(
1231
1243
  CardBase,
1232
1244
  {
@@ -1245,8 +1257,8 @@ var CardStatus = forwardRef(
1245
1257
  action: status == "correct" ? "success" : "error",
1246
1258
  variant: "solid",
1247
1259
  size: "medium",
1248
- iconLeft: /* @__PURE__ */ jsx5(CheckCircle, {}),
1249
- children: status == "correct" ? "Correta" : "Incorreta"
1260
+ iconLeft: status == "correct" ? /* @__PURE__ */ jsx5(CheckCircle, {}) : /* @__PURE__ */ jsx5(XCircle, {}),
1261
+ children: getLabelBadge(status)
1250
1262
  }
1251
1263
  ),
1252
1264
  label && /* @__PURE__ */ jsx5("p", { className: "text-sm text-text-800", children: label })