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.
package/dist/index.mjs CHANGED
@@ -4137,15 +4137,22 @@ var CardBase = forwardRef12(
4137
4137
  const minHeightClasses = CARD_MIN_HEIGHT_CLASSES[minHeight];
4138
4138
  const layoutClasses = CARD_LAYOUT_CLASSES[layout];
4139
4139
  const cursorClasses = CARD_CURSOR_CLASSES[cursor];
4140
- const combinedClasses = [
4141
- baseClasses,
4142
- paddingClasses,
4143
- minHeightClasses,
4144
- layoutClasses,
4145
- cursorClasses,
4146
- className
4147
- ].filter(Boolean).join(" ");
4148
- return /* @__PURE__ */ jsx27("div", { ref, className: combinedClasses, ...props, children });
4140
+ return /* @__PURE__ */ jsx27(
4141
+ "div",
4142
+ {
4143
+ ref,
4144
+ className: cn(
4145
+ baseClasses,
4146
+ paddingClasses,
4147
+ minHeightClasses,
4148
+ layoutClasses,
4149
+ cursorClasses,
4150
+ className
4151
+ ),
4152
+ ...props,
4153
+ children
4154
+ }
4155
+ );
4149
4156
  }
4150
4157
  );
4151
4158
  var ACTION_CARD_CLASSES = {
@@ -4544,14 +4551,14 @@ var CardResults = forwardRef12(
4544
4551
  layout: "horizontal",
4545
4552
  padding: "none",
4546
4553
  minHeight: "medium",
4547
- className: cn("items-center cursor-pointer pr-4", className),
4554
+ className: cn("items-stretch cursor-pointer pr-4", className),
4548
4555
  ...props,
4549
4556
  children: [
4550
4557
  /* @__PURE__ */ jsx27(
4551
4558
  "div",
4552
4559
  {
4553
4560
  className: cn(
4554
- "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"
4561
+ "flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 min-h-full rounded-l-xl"
4555
4562
  ),
4556
4563
  style: {
4557
4564
  backgroundColor: color
@@ -4559,47 +4566,49 @@ var CardResults = forwardRef12(
4559
4566
  children: /* @__PURE__ */ jsx27(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
4560
4567
  }
4561
4568
  ),
4562
- /* @__PURE__ */ jsxs21(
4563
- "div",
4564
- {
4565
- className: cn(
4566
- "p-4 flex flex-wrap justify-between w-full h-full",
4567
- isRow ? "flex-row items-center gap-2" : "flex-col"
4568
- ),
4569
- children: [
4570
- /* @__PURE__ */ jsx27("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
4571
- /* @__PURE__ */ jsxs21("span", { className: "flex flex-row gap-1 items-center", children: [
4572
- /* @__PURE__ */ jsxs21(
4573
- Badge_default,
4574
- {
4575
- action: "success",
4576
- variant: "solid",
4577
- size: "large",
4578
- iconLeft: /* @__PURE__ */ jsx27(CheckCircle3, {}),
4579
- children: [
4580
- correct_answers,
4581
- " Corretas"
4582
- ]
4583
- }
4584
- ),
4585
- /* @__PURE__ */ jsxs21(
4586
- Badge_default,
4587
- {
4588
- action: "error",
4589
- variant: "solid",
4590
- size: "large",
4591
- iconLeft: /* @__PURE__ */ jsx27(XCircle2, {}),
4592
- children: [
4593
- incorrect_answers,
4594
- " Incorretas"
4595
- ]
4596
- }
4597
- )
4598
- ] })
4599
- ]
4600
- }
4601
- ),
4602
- /* @__PURE__ */ jsx27(CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
4569
+ /* @__PURE__ */ jsxs21("div", { className: "w-full flex flex-row justify-between items-center", children: [
4570
+ /* @__PURE__ */ jsxs21(
4571
+ "div",
4572
+ {
4573
+ className: cn(
4574
+ "p-4 flex flex-wrap justify-between w-full h-full",
4575
+ isRow ? "flex-row items-center gap-2" : "flex-col"
4576
+ ),
4577
+ children: [
4578
+ /* @__PURE__ */ jsx27("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
4579
+ /* @__PURE__ */ jsxs21("span", { className: "flex flex-wrap flex-row gap-1 items-center", children: [
4580
+ /* @__PURE__ */ jsxs21(
4581
+ Badge_default,
4582
+ {
4583
+ action: "success",
4584
+ variant: "solid",
4585
+ size: "large",
4586
+ iconLeft: /* @__PURE__ */ jsx27(CheckCircle3, {}),
4587
+ children: [
4588
+ correct_answers,
4589
+ " Corretas"
4590
+ ]
4591
+ }
4592
+ ),
4593
+ /* @__PURE__ */ jsxs21(
4594
+ Badge_default,
4595
+ {
4596
+ action: "error",
4597
+ variant: "solid",
4598
+ size: "large",
4599
+ iconLeft: /* @__PURE__ */ jsx27(XCircle2, {}),
4600
+ children: [
4601
+ incorrect_answers,
4602
+ " Incorretas"
4603
+ ]
4604
+ }
4605
+ )
4606
+ ] })
4607
+ ]
4608
+ }
4609
+ ),
4610
+ /* @__PURE__ */ jsx27(CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
4611
+ ] })
4603
4612
  ]
4604
4613
  }
4605
4614
  );
@@ -5231,7 +5240,7 @@ var SIMULATION_TYPE_STYLES = {
5231
5240
  simulado: {
5232
5241
  background: "bg-exam-3",
5233
5242
  badge: "exam3",
5234
- text: "Simulado"
5243
+ text: "Simulad\xE3o"
5235
5244
  },
5236
5245
  vestibular: {
5237
5246
  background: "bg-exam-4",
@@ -6471,7 +6480,7 @@ var MenuItem = forwardRef17(
6471
6480
  {
6472
6481
  "data-variant": "menu2",
6473
6482
  className: `
6474
- w-full flex flex-col items-center px-2 pt-4 gap-3 cursor-pointer focus:rounded-sm justify-center hover:bg-background-100 rounded-lg
6483
+ w-fit flex flex-col items-center px-2 pt-4 gap-3 cursor-pointer focus:rounded-sm justify-center hover:bg-background-100 rounded-lg
6475
6484
  focus:outline-none focus:border-indicator-info focus:border-2
6476
6485
  ${selectedValue === value ? "" : "pb-4"}
6477
6486
  `,
@@ -9948,7 +9957,6 @@ var QuizResultPerformance = forwardRef19(
9948
9957
  ({ ...props }, ref) => {
9949
9958
  const {
9950
9959
  getTotalQuestions,
9951
- timeElapsed,
9952
9960
  formatTime: formatTime2,
9953
9961
  getQuestionResultStatistics,
9954
9962
  getQuestionResult
@@ -10008,7 +10016,9 @@ var QuizResultPerformance = forwardRef19(
10008
10016
  /* @__PURE__ */ jsxs32("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
10009
10017
  /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-1 mb-1", children: [
10010
10018
  /* @__PURE__ */ jsx39(Clock2, { size: 12, weight: "regular", className: "text-text-800" }),
10011
- /* @__PURE__ */ jsx39("span", { className: "text-2xs font-medium text-text-800", children: formatTime2(timeElapsed) })
10019
+ /* @__PURE__ */ jsx39("span", { className: "text-2xs font-medium text-text-800", children: formatTime2(
10020
+ (getQuestionResultStatistics()?.timeSpent ?? 0) * 60
10021
+ ) })
10012
10022
  ] }),
10013
10023
  /* @__PURE__ */ jsxs32("div", { className: "text-2xl font-medium text-text-800 leading-7", children: [
10014
10024
  getQuestionResultStatistics()?.correctAnswers ?? "--",
@@ -10101,7 +10111,7 @@ var QuizListResult = forwardRef19(({ className, onSubjectClick, ...props }, ref)
10101
10111
  CardResults,
10102
10112
  {
10103
10113
  onClick: () => onSubjectClick?.(subject.subject.id),
10104
- className: "max-w-full",
10114
+ className: "max-w-full flex !flex-col",
10105
10115
  header: subject.subject.name,
10106
10116
  correct_answers: subject.correct,
10107
10117
  incorrect_answers: subject.incorrect,