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.
- 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/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 +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +158 -127
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +158 -127
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/Card/index.d.mts
CHANGED
|
@@ -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' | 'unanswered';
|
|
73
|
+
status?: 'correct' | 'incorrect' | 'unanswered' | 'pending';
|
|
74
74
|
label?: string;
|
|
75
75
|
}
|
|
76
76
|
declare const CardStatus: react.ForwardRefExoticComponent<CardStatusProps & react.RefAttributes<HTMLDivElement>>;
|
package/dist/Card/index.d.ts
CHANGED
|
@@ -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' | 'unanswered';
|
|
73
|
+
status?: 'correct' | 'incorrect' | 'unanswered' | 'pending';
|
|
74
74
|
label?: string;
|
|
75
75
|
}
|
|
76
76
|
declare const CardStatus: react.ForwardRefExoticComponent<CardStatusProps & react.RefAttributes<HTMLDivElement>>;
|
package/dist/Card/index.js
CHANGED
|
@@ -1413,10 +1413,36 @@ var CardStatus = (0, import_react2.forwardRef)(
|
|
|
1413
1413
|
return "Incorreta";
|
|
1414
1414
|
case "unanswered":
|
|
1415
1415
|
return "Em branco";
|
|
1416
|
+
case "pending":
|
|
1417
|
+
return "Avalia\xE7\xE3o pendente";
|
|
1416
1418
|
default:
|
|
1417
1419
|
return "Em branco";
|
|
1418
1420
|
}
|
|
1419
1421
|
};
|
|
1422
|
+
const getIconBadge = (status2) => {
|
|
1423
|
+
switch (status2) {
|
|
1424
|
+
case "correct":
|
|
1425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react2.CheckCircle, {});
|
|
1426
|
+
case "incorrect":
|
|
1427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react2.XCircle, {});
|
|
1428
|
+
case "pending":
|
|
1429
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react2.Clock, {});
|
|
1430
|
+
default:
|
|
1431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react2.XCircle, {});
|
|
1432
|
+
}
|
|
1433
|
+
};
|
|
1434
|
+
const getActionBadge = (status2) => {
|
|
1435
|
+
switch (status2) {
|
|
1436
|
+
case "correct":
|
|
1437
|
+
return "success";
|
|
1438
|
+
case "incorrect":
|
|
1439
|
+
return "error";
|
|
1440
|
+
case "pending":
|
|
1441
|
+
return "info";
|
|
1442
|
+
default:
|
|
1443
|
+
return "info";
|
|
1444
|
+
}
|
|
1445
|
+
};
|
|
1420
1446
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1421
1447
|
CardBase,
|
|
1422
1448
|
{
|
|
@@ -1432,10 +1458,10 @@ var CardStatus = (0, import_react2.forwardRef)(
|
|
|
1432
1458
|
status && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1433
1459
|
Badge_default,
|
|
1434
1460
|
{
|
|
1435
|
-
action: status
|
|
1461
|
+
action: getActionBadge(status),
|
|
1436
1462
|
variant: "solid",
|
|
1437
1463
|
size: "medium",
|
|
1438
|
-
iconLeft: status
|
|
1464
|
+
iconLeft: getIconBadge(status),
|
|
1439
1465
|
children: getLabelBadge(status)
|
|
1440
1466
|
}
|
|
1441
1467
|
),
|