analytica-frontend-lib 1.1.64 → 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.
- package/dist/Accordation/index.js +28 -2
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +28 -2
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.d.mts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +28 -2
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +28 -2
- package/dist/Card/index.mjs.map +1 -1
- package/dist/NotificationCard/index.d.mts +1 -1
- package/dist/NotificationCard/index.d.ts +1 -1
- package/dist/NotificationCard/index.js +23 -2
- package/dist/NotificationCard/index.js.map +1 -1
- package/dist/NotificationCard/index.mjs +21 -1
- package/dist/NotificationCard/index.mjs.map +1 -1
- package/dist/{NotificationCard-4GgB0Nsf.d.mts → NotificationCard-DMdkuVEr.d.mts} +7 -2
- package/dist/{NotificationCard-4GgB0Nsf.d.ts → NotificationCard-DMdkuVEr.d.ts} +7 -2
- package/dist/Quiz/index.js +29 -3
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +29 -3
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Quiz/useQuizStore/index.d.mts +1 -1
- package/dist/Quiz/useQuizStore/index.d.ts +1 -1
- package/dist/Quiz/useQuizStore/index.js +1 -1
- package/dist/Quiz/useQuizStore/index.js.map +1 -1
- package/dist/Quiz/useQuizStore/index.mjs +1 -1
- package/dist/Quiz/useQuizStore/index.mjs.map +1 -1
- package/dist/index.d.mts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +179 -127
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +178 -127
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1402,10 +1402,36 @@ var CardStatus = (0, import_react2.forwardRef)(
|
|
|
1402
1402
|
return "Incorreta";
|
|
1403
1403
|
case "unanswered":
|
|
1404
1404
|
return "Em branco";
|
|
1405
|
+
case "pending":
|
|
1406
|
+
return "Avalia\xE7\xE3o pendente";
|
|
1405
1407
|
default:
|
|
1406
1408
|
return "Em branco";
|
|
1407
1409
|
}
|
|
1408
1410
|
};
|
|
1411
|
+
const getIconBadge = (status2) => {
|
|
1412
|
+
switch (status2) {
|
|
1413
|
+
case "correct":
|
|
1414
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react2.CheckCircle, {});
|
|
1415
|
+
case "incorrect":
|
|
1416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react2.XCircle, {});
|
|
1417
|
+
case "pending":
|
|
1418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react2.Clock, {});
|
|
1419
|
+
default:
|
|
1420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react2.XCircle, {});
|
|
1421
|
+
}
|
|
1422
|
+
};
|
|
1423
|
+
const getActionBadge = (status2) => {
|
|
1424
|
+
switch (status2) {
|
|
1425
|
+
case "correct":
|
|
1426
|
+
return "success";
|
|
1427
|
+
case "incorrect":
|
|
1428
|
+
return "error";
|
|
1429
|
+
case "pending":
|
|
1430
|
+
return "info";
|
|
1431
|
+
default:
|
|
1432
|
+
return "info";
|
|
1433
|
+
}
|
|
1434
|
+
};
|
|
1409
1435
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1410
1436
|
CardBase,
|
|
1411
1437
|
{
|
|
@@ -1421,10 +1447,10 @@ var CardStatus = (0, import_react2.forwardRef)(
|
|
|
1421
1447
|
status && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1422
1448
|
Badge_default,
|
|
1423
1449
|
{
|
|
1424
|
-
action: status
|
|
1450
|
+
action: getActionBadge(status),
|
|
1425
1451
|
variant: "solid",
|
|
1426
1452
|
size: "medium",
|
|
1427
|
-
iconLeft: status
|
|
1453
|
+
iconLeft: getIconBadge(status),
|
|
1428
1454
|
children: getLabelBadge(status)
|
|
1429
1455
|
}
|
|
1430
1456
|
),
|