analytica-frontend-lib 1.1.24 → 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.
@@ -70,7 +70,7 @@ interface CardResultsProps extends HTMLAttributes<HTMLDivElement> {
70
70
  declare const CardResults: react.ForwardRefExoticComponent<CardResultsProps & react.RefAttributes<HTMLDivElement>>;
71
71
  interface CardStatusProps extends HTMLAttributes<HTMLDivElement> {
72
72
  header: string;
73
- status?: 'correct' | 'incorrect';
73
+ status?: 'correct' | 'incorrect' | 'unanswered';
74
74
  label?: string;
75
75
  }
76
76
  declare const CardStatus: react.ForwardRefExoticComponent<CardStatusProps & react.RefAttributes<HTMLDivElement>>;
@@ -1242,6 +1242,18 @@ var CardResults = (0, import_react.forwardRef)(
1242
1242
  );
1243
1243
  var CardStatus = (0, import_react.forwardRef)(
1244
1244
  ({ header, className, status, label, ...props }, ref) => {
1245
+ const getLabelBadge = (status2) => {
1246
+ switch (status2) {
1247
+ case "correct":
1248
+ return "Correta";
1249
+ case "incorrect":
1250
+ return "Incorreta";
1251
+ case "unanswered":
1252
+ return "Em branco";
1253
+ default:
1254
+ return "Em branco";
1255
+ }
1256
+ };
1245
1257
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1246
1258
  CardBase,
1247
1259
  {
@@ -1260,8 +1272,8 @@ var CardStatus = (0, import_react.forwardRef)(
1260
1272
  action: status == "correct" ? "success" : "error",
1261
1273
  variant: "solid",
1262
1274
  size: "medium",
1263
- iconLeft: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CheckCircle, {}),
1264
- children: status == "correct" ? "Correta" : "Incorreta"
1275
+ iconLeft: status == "correct" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CheckCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.XCircle, {}),
1276
+ children: getLabelBadge(status)
1265
1277
  }
1266
1278
  ),
1267
1279
  label && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm text-text-800", children: label })