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