analytica-frontend-lib 1.2.97 → 1.2.99
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 +26 -13
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +26 -13
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/ActivitiesHistory/index.js +26 -13
- package/dist/ActivitiesHistory/index.js.map +1 -1
- package/dist/ActivitiesHistory/index.mjs +26 -13
- package/dist/ActivitiesHistory/index.mjs.map +1 -1
- package/dist/ActivityCardQuestionPreview/index.js +26 -13
- package/dist/ActivityCardQuestionPreview/index.js.map +1 -1
- package/dist/ActivityCardQuestionPreview/index.mjs +26 -13
- package/dist/ActivityCardQuestionPreview/index.mjs.map +1 -1
- package/dist/ActivityDetails/index.js +26 -13
- package/dist/ActivityDetails/index.js.map +1 -1
- package/dist/ActivityDetails/index.mjs +26 -13
- package/dist/ActivityDetails/index.mjs.map +1 -1
- package/dist/ActivityFilters/index.js +26 -13
- package/dist/ActivityFilters/index.js.map +1 -1
- package/dist/ActivityFilters/index.mjs +26 -13
- package/dist/ActivityFilters/index.mjs.map +1 -1
- package/dist/ActivityPreview/index.js +26 -13
- package/dist/ActivityPreview/index.js.map +1 -1
- package/dist/ActivityPreview/index.mjs +26 -13
- package/dist/ActivityPreview/index.mjs.map +1 -1
- package/dist/AlertManager/index.js +26 -13
- package/dist/AlertManager/index.js.map +1 -1
- package/dist/AlertManager/index.mjs +26 -13
- package/dist/AlertManager/index.mjs.map +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.d.ts.map +1 -1
- package/dist/Card/index.js +26 -13
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +26 -13
- package/dist/Card/index.mjs.map +1 -1
- package/dist/CorrectActivityModal/index.js +26 -13
- package/dist/CorrectActivityModal/index.js.map +1 -1
- package/dist/CorrectActivityModal/index.mjs +26 -13
- package/dist/CorrectActivityModal/index.mjs.map +1 -1
- package/dist/Quiz/index.js +26 -13
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +26 -13
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/RecommendedLessonsHistory/index.js +26 -13
- package/dist/RecommendedLessonsHistory/index.js.map +1 -1
- package/dist/RecommendedLessonsHistory/index.mjs +26 -13
- package/dist/RecommendedLessonsHistory/index.mjs.map +1 -1
- package/dist/SendActivityModal/SendActivityModal.js +26 -13
- package/dist/SendActivityModal/SendActivityModal.js.map +1 -1
- package/dist/SendActivityModal/SendActivityModal.mjs +26 -13
- package/dist/SendActivityModal/SendActivityModal.mjs.map +1 -1
- package/dist/SendActivityModal/index.js +26 -13
- package/dist/SendActivityModal/index.js.map +1 -1
- package/dist/SendActivityModal/index.mjs +26 -13
- package/dist/SendActivityModal/index.mjs.map +1 -1
- package/dist/StudentPerformanceDetailsModal/index.js +26 -13
- package/dist/StudentPerformanceDetailsModal/index.js.map +1 -1
- package/dist/StudentPerformanceDetailsModal/index.mjs +26 -13
- package/dist/StudentPerformanceDetailsModal/index.mjs.map +1 -1
- package/dist/TableProvider/index.js +26 -13
- package/dist/TableProvider/index.js.map +1 -1
- package/dist/TableProvider/index.mjs +26 -13
- package/dist/TableProvider/index.mjs.map +1 -1
- package/dist/hooks/useRecommendedClassDrafts/index.js.map +1 -1
- package/dist/hooks/useRecommendedClassDrafts/index.mjs.map +1 -1
- package/dist/index.js +29 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -14
- package/dist/index.mjs.map +1 -1
- package/dist/types/recommendedLessons/index.d.ts +6 -1
- package/dist/types/recommendedLessons/index.d.ts.map +1 -1
- package/dist/types/recommendedLessons/index.js +3 -1
- package/dist/types/recommendedLessons/index.js.map +1 -1
- package/dist/types/recommendedLessons/index.mjs +3 -1
- package/dist/types/recommendedLessons/index.mjs.map +1 -1
- package/dist/types/recommendedLessons.d.ts +6 -1
- package/dist/types/recommendedLessons.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -981,7 +981,8 @@ var CardActivitiesResults = (0, import_react2.forwardRef)(
|
|
|
981
981
|
{
|
|
982
982
|
ref,
|
|
983
983
|
className: cn(
|
|
984
|
-
"w-full flex flex-col
|
|
984
|
+
"w-full flex flex-col rounded-xl",
|
|
985
|
+
extended && "border border-border-50 bg-background",
|
|
985
986
|
className
|
|
986
987
|
),
|
|
987
988
|
...props,
|
|
@@ -1051,9 +1052,29 @@ var CardQuestions = (0, import_react2.forwardRef)(
|
|
|
1051
1052
|
valueButton,
|
|
1052
1053
|
...props
|
|
1053
1054
|
}, ref) => {
|
|
1054
|
-
const
|
|
1055
|
-
|
|
1056
|
-
|
|
1055
|
+
const getStateConfig = () => {
|
|
1056
|
+
switch (state) {
|
|
1057
|
+
case "done":
|
|
1058
|
+
return {
|
|
1059
|
+
label: "Realizado",
|
|
1060
|
+
buttonLabel: "Ver Resultado",
|
|
1061
|
+
badgeAction: "success"
|
|
1062
|
+
};
|
|
1063
|
+
case "pending":
|
|
1064
|
+
return {
|
|
1065
|
+
label: "Aguardando corre\xE7\xE3o",
|
|
1066
|
+
buttonLabel: "Ver Resultado",
|
|
1067
|
+
badgeAction: "info"
|
|
1068
|
+
};
|
|
1069
|
+
default:
|
|
1070
|
+
return {
|
|
1071
|
+
label: "N\xE3o Realizado",
|
|
1072
|
+
buttonLabel: "Responder",
|
|
1073
|
+
badgeAction: "error"
|
|
1074
|
+
};
|
|
1075
|
+
}
|
|
1076
|
+
};
|
|
1077
|
+
const { label, buttonLabel, badgeAction } = getStateConfig();
|
|
1057
1078
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1058
1079
|
CardBase,
|
|
1059
1080
|
{
|
|
@@ -1066,15 +1087,7 @@ var CardQuestions = (0, import_react2.forwardRef)(
|
|
|
1066
1087
|
children: [
|
|
1067
1088
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
1068
1089
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
|
|
1069
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex flex-row gap-6 items-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1070
|
-
Badge_default,
|
|
1071
|
-
{
|
|
1072
|
-
size: "medium",
|
|
1073
|
-
variant: "solid",
|
|
1074
|
-
action: isDone ? "success" : "error",
|
|
1075
|
-
children: stateLabel
|
|
1076
|
-
}
|
|
1077
|
-
) })
|
|
1090
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex flex-row gap-6 items-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Badge_default, { size: "medium", variant: "solid", action: badgeAction, children: label }) })
|
|
1078
1091
|
] }),
|
|
1079
1092
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1080
1093
|
Button_default,
|