analytica-frontend-lib 1.1.40 → 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.
@@ -2770,15 +2770,22 @@ var CardBase = forwardRef6(
2770
2770
  const minHeightClasses = CARD_MIN_HEIGHT_CLASSES[minHeight];
2771
2771
  const layoutClasses = CARD_LAYOUT_CLASSES[layout];
2772
2772
  const cursorClasses = CARD_CURSOR_CLASSES[cursor];
2773
- const combinedClasses = [
2774
- baseClasses,
2775
- paddingClasses,
2776
- minHeightClasses,
2777
- layoutClasses,
2778
- cursorClasses,
2779
- className
2780
- ].filter(Boolean).join(" ");
2781
- return /* @__PURE__ */ jsx12("div", { ref, className: combinedClasses, ...props, children });
2773
+ return /* @__PURE__ */ jsx12(
2774
+ "div",
2775
+ {
2776
+ ref,
2777
+ className: cn(
2778
+ baseClasses,
2779
+ paddingClasses,
2780
+ minHeightClasses,
2781
+ layoutClasses,
2782
+ cursorClasses,
2783
+ className
2784
+ ),
2785
+ ...props,
2786
+ children
2787
+ }
2788
+ );
2782
2789
  }
2783
2790
  );
2784
2791
  var ACTION_CARD_CLASSES = {
@@ -3177,14 +3184,14 @@ var CardResults = forwardRef6(
3177
3184
  layout: "horizontal",
3178
3185
  padding: "none",
3179
3186
  minHeight: "medium",
3180
- className: cn("items-center cursor-pointer pr-4", className),
3187
+ className: cn("items-stretch cursor-pointer pr-4", className),
3181
3188
  ...props,
3182
3189
  children: [
3183
3190
  /* @__PURE__ */ jsx12(
3184
3191
  "div",
3185
3192
  {
3186
3193
  className: cn(
3187
- "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"
3194
+ "flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 min-h-full rounded-l-xl"
3188
3195
  ),
3189
3196
  style: {
3190
3197
  backgroundColor: color
@@ -3192,47 +3199,49 @@ var CardResults = forwardRef6(
3192
3199
  children: /* @__PURE__ */ jsx12(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
3193
3200
  }
3194
3201
  ),
3195
- /* @__PURE__ */ jsxs10(
3196
- "div",
3197
- {
3198
- className: cn(
3199
- "p-4 flex flex-wrap justify-between w-full h-full",
3200
- isRow ? "flex-row items-center gap-2" : "flex-col"
3201
- ),
3202
- children: [
3203
- /* @__PURE__ */ jsx12("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
3204
- /* @__PURE__ */ jsxs10("span", { className: "flex flex-row gap-1 items-center", children: [
3205
- /* @__PURE__ */ jsxs10(
3206
- Badge_default,
3207
- {
3208
- action: "success",
3209
- variant: "solid",
3210
- size: "large",
3211
- iconLeft: /* @__PURE__ */ jsx12(CheckCircle2, {}),
3212
- children: [
3213
- correct_answers,
3214
- " Corretas"
3215
- ]
3216
- }
3217
- ),
3218
- /* @__PURE__ */ jsxs10(
3219
- Badge_default,
3220
- {
3221
- action: "error",
3222
- variant: "solid",
3223
- size: "large",
3224
- iconLeft: /* @__PURE__ */ jsx12(XCircle2, {}),
3225
- children: [
3226
- incorrect_answers,
3227
- " Incorretas"
3228
- ]
3229
- }
3230
- )
3231
- ] })
3232
- ]
3233
- }
3234
- ),
3235
- /* @__PURE__ */ jsx12(CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
3202
+ /* @__PURE__ */ jsxs10("div", { className: "w-full flex flex-row justify-between items-center", children: [
3203
+ /* @__PURE__ */ jsxs10(
3204
+ "div",
3205
+ {
3206
+ className: cn(
3207
+ "p-4 flex flex-wrap justify-between w-full h-full",
3208
+ isRow ? "flex-row items-center gap-2" : "flex-col"
3209
+ ),
3210
+ children: [
3211
+ /* @__PURE__ */ jsx12("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
3212
+ /* @__PURE__ */ jsxs10("span", { className: "flex flex-wrap flex-row gap-1 items-center", children: [
3213
+ /* @__PURE__ */ jsxs10(
3214
+ Badge_default,
3215
+ {
3216
+ action: "success",
3217
+ variant: "solid",
3218
+ size: "large",
3219
+ iconLeft: /* @__PURE__ */ jsx12(CheckCircle2, {}),
3220
+ children: [
3221
+ correct_answers,
3222
+ " Corretas"
3223
+ ]
3224
+ }
3225
+ ),
3226
+ /* @__PURE__ */ jsxs10(
3227
+ Badge_default,
3228
+ {
3229
+ action: "error",
3230
+ variant: "solid",
3231
+ size: "large",
3232
+ iconLeft: /* @__PURE__ */ jsx12(XCircle2, {}),
3233
+ children: [
3234
+ incorrect_answers,
3235
+ " Incorretas"
3236
+ ]
3237
+ }
3238
+ )
3239
+ ] })
3240
+ ]
3241
+ }
3242
+ ),
3243
+ /* @__PURE__ */ jsx12(CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
3244
+ ] })
3236
3245
  ]
3237
3246
  }
3238
3247
  );
@@ -3864,7 +3873,7 @@ var SIMULATION_TYPE_STYLES = {
3864
3873
  simulado: {
3865
3874
  background: "bg-exam-3",
3866
3875
  badge: "exam3",
3867
- text: "Simulado"
3876
+ text: "Simulad\xE3o"
3868
3877
  },
3869
3878
  vestibular: {
3870
3879
  background: "bg-exam-4",
@@ -6064,7 +6073,6 @@ var QuizResultPerformance = forwardRef10(
6064
6073
  ({ ...props }, ref) => {
6065
6074
  const {
6066
6075
  getTotalQuestions,
6067
- timeElapsed,
6068
6076
  formatTime,
6069
6077
  getQuestionResultStatistics,
6070
6078
  getQuestionResult
@@ -6124,7 +6132,9 @@ var QuizResultPerformance = forwardRef10(
6124
6132
  /* @__PURE__ */ jsxs15("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
6125
6133
  /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-1 mb-1", children: [
6126
6134
  /* @__PURE__ */ jsx18(Clock2, { size: 12, weight: "regular", className: "text-text-800" }),
6127
- /* @__PURE__ */ jsx18("span", { className: "text-2xs font-medium text-text-800", children: formatTime(timeElapsed) })
6135
+ /* @__PURE__ */ jsx18("span", { className: "text-2xs font-medium text-text-800", children: formatTime(
6136
+ (getQuestionResultStatistics()?.timeSpent ?? 0) * 60
6137
+ ) })
6128
6138
  ] }),
6129
6139
  /* @__PURE__ */ jsxs15("div", { className: "text-2xl font-medium text-text-800 leading-7", children: [
6130
6140
  getQuestionResultStatistics()?.correctAnswers ?? "--",
@@ -6217,7 +6227,7 @@ var QuizListResult = forwardRef10(({ className, onSubjectClick, ...props }, ref)
6217
6227
  CardResults,
6218
6228
  {
6219
6229
  onClick: () => onSubjectClick?.(subject.subject.id),
6220
- className: "max-w-full",
6230
+ className: "max-w-full flex !flex-col",
6221
6231
  header: subject.subject.name,
6222
6232
  correct_answers: subject.correct,
6223
6233
  incorrect_answers: subject.incorrect,