analytica-frontend-lib 1.1.41 → 1.1.42

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.
@@ -2774,15 +2774,22 @@ var CardBase = (0, import_react7.forwardRef)(
2774
2774
  const minHeightClasses = CARD_MIN_HEIGHT_CLASSES[minHeight];
2775
2775
  const layoutClasses = CARD_LAYOUT_CLASSES[layout];
2776
2776
  const cursorClasses = CARD_CURSOR_CLASSES[cursor];
2777
- const combinedClasses = [
2778
- baseClasses,
2779
- paddingClasses,
2780
- minHeightClasses,
2781
- layoutClasses,
2782
- cursorClasses,
2783
- className
2784
- ].filter(Boolean).join(" ");
2785
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { ref, className: combinedClasses, ...props, children });
2777
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2778
+ "div",
2779
+ {
2780
+ ref,
2781
+ className: cn(
2782
+ baseClasses,
2783
+ paddingClasses,
2784
+ minHeightClasses,
2785
+ layoutClasses,
2786
+ cursorClasses,
2787
+ className
2788
+ ),
2789
+ ...props,
2790
+ children
2791
+ }
2792
+ );
2786
2793
  }
2787
2794
  );
2788
2795
  var ACTION_CARD_CLASSES = {
@@ -3181,14 +3188,14 @@ var CardResults = (0, import_react7.forwardRef)(
3181
3188
  layout: "horizontal",
3182
3189
  padding: "none",
3183
3190
  minHeight: "medium",
3184
- className: cn("items-center cursor-pointer pr-4", className),
3191
+ className: cn("items-stretch cursor-pointer pr-4", className),
3185
3192
  ...props,
3186
3193
  children: [
3187
3194
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
3188
3195
  "div",
3189
3196
  {
3190
3197
  className: cn(
3191
- "flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 min-h-20 h-full rounded-l-xl"
3198
+ "flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 min-h-full rounded-l-xl"
3192
3199
  ),
3193
3200
  style: {
3194
3201
  backgroundColor: color
@@ -3196,47 +3203,49 @@ var CardResults = (0, import_react7.forwardRef)(
3196
3203
  children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
3197
3204
  }
3198
3205
  ),
3199
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
3200
- "div",
3201
- {
3202
- className: cn(
3203
- "p-4 flex flex-wrap justify-between w-full h-full",
3204
- isRow ? "flex-row items-center gap-2" : "flex-col"
3205
- ),
3206
- children: [
3207
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
3208
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex flex-row gap-1 items-center", children: [
3209
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
3210
- Badge_default,
3211
- {
3212
- action: "success",
3213
- variant: "solid",
3214
- size: "large",
3215
- iconLeft: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.CheckCircle, {}),
3216
- children: [
3217
- correct_answers,
3218
- " Corretas"
3219
- ]
3220
- }
3221
- ),
3222
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
3223
- Badge_default,
3224
- {
3225
- action: "error",
3226
- variant: "solid",
3227
- size: "large",
3228
- iconLeft: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.XCircle, {}),
3229
- children: [
3230
- incorrect_answers,
3231
- " Incorretas"
3232
- ]
3233
- }
3234
- )
3235
- ] })
3236
- ]
3237
- }
3238
- ),
3239
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
3206
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "w-full flex flex-row justify-between items-center", children: [
3207
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
3208
+ "div",
3209
+ {
3210
+ className: cn(
3211
+ "p-4 flex flex-wrap justify-between w-full h-full",
3212
+ isRow ? "flex-row items-center gap-2" : "flex-col"
3213
+ ),
3214
+ children: [
3215
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
3216
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex flex-wrap flex-row gap-1 items-center", children: [
3217
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
3218
+ Badge_default,
3219
+ {
3220
+ action: "success",
3221
+ variant: "solid",
3222
+ size: "large",
3223
+ iconLeft: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.CheckCircle, {}),
3224
+ children: [
3225
+ correct_answers,
3226
+ " Corretas"
3227
+ ]
3228
+ }
3229
+ ),
3230
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
3231
+ Badge_default,
3232
+ {
3233
+ action: "error",
3234
+ variant: "solid",
3235
+ size: "large",
3236
+ iconLeft: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.XCircle, {}),
3237
+ children: [
3238
+ incorrect_answers,
3239
+ " Incorretas"
3240
+ ]
3241
+ }
3242
+ )
3243
+ ] })
3244
+ ]
3245
+ }
3246
+ ),
3247
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
3248
+ ] })
3240
3249
  ]
3241
3250
  }
3242
3251
  );
@@ -3868,7 +3877,7 @@ var SIMULATION_TYPE_STYLES = {
3868
3877
  simulado: {
3869
3878
  background: "bg-exam-3",
3870
3879
  badge: "exam3",
3871
- text: "Simulado"
3880
+ text: "Simulad\xE3o"
3872
3881
  },
3873
3882
  vestibular: {
3874
3883
  background: "bg-exam-4",
@@ -6052,7 +6061,6 @@ var QuizResultPerformance = (0, import_react12.forwardRef)(
6052
6061
  ({ ...props }, ref) => {
6053
6062
  const {
6054
6063
  getTotalQuestions,
6055
- timeElapsed,
6056
6064
  formatTime,
6057
6065
  getQuestionResultStatistics,
6058
6066
  getQuestionResult
@@ -6112,7 +6120,9 @@ var QuizResultPerformance = (0, import_react12.forwardRef)(
6112
6120
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
6113
6121
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-1 mb-1", children: [
6114
6122
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.Clock, { size: 12, weight: "regular", className: "text-text-800" }),
6115
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-2xs font-medium text-text-800", children: formatTime(timeElapsed) })
6123
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-2xs font-medium text-text-800", children: formatTime(
6124
+ (getQuestionResultStatistics()?.timeSpent ?? 0) * 60
6125
+ ) })
6116
6126
  ] }),
6117
6127
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "text-2xl font-medium text-text-800 leading-7", children: [
6118
6128
  getQuestionResultStatistics()?.correctAnswers ?? "--",
@@ -6205,7 +6215,7 @@ var QuizListResult = (0, import_react12.forwardRef)(({ className, onSubjectClick
6205
6215
  CardResults,
6206
6216
  {
6207
6217
  onClick: () => onSubjectClick?.(subject.subject.id),
6208
- className: "max-w-full",
6218
+ className: "max-w-full flex !flex-col",
6209
6219
  header: subject.subject.name,
6210
6220
  correct_answers: subject.correct,
6211
6221
  incorrect_answers: subject.incorrect,