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.
package/dist/index.js CHANGED
@@ -4220,15 +4220,22 @@ var CardBase = (0, import_react14.forwardRef)(
4220
4220
  const minHeightClasses = CARD_MIN_HEIGHT_CLASSES[minHeight];
4221
4221
  const layoutClasses = CARD_LAYOUT_CLASSES[layout];
4222
4222
  const cursorClasses = CARD_CURSOR_CLASSES[cursor];
4223
- const combinedClasses = [
4224
- baseClasses,
4225
- paddingClasses,
4226
- minHeightClasses,
4227
- layoutClasses,
4228
- cursorClasses,
4229
- className
4230
- ].filter(Boolean).join(" ");
4231
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { ref, className: combinedClasses, ...props, children });
4223
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4224
+ "div",
4225
+ {
4226
+ ref,
4227
+ className: cn(
4228
+ baseClasses,
4229
+ paddingClasses,
4230
+ minHeightClasses,
4231
+ layoutClasses,
4232
+ cursorClasses,
4233
+ className
4234
+ ),
4235
+ ...props,
4236
+ children
4237
+ }
4238
+ );
4232
4239
  }
4233
4240
  );
4234
4241
  var ACTION_CARD_CLASSES = {
@@ -4627,14 +4634,14 @@ var CardResults = (0, import_react14.forwardRef)(
4627
4634
  layout: "horizontal",
4628
4635
  padding: "none",
4629
4636
  minHeight: "medium",
4630
- className: cn("items-center cursor-pointer pr-4", className),
4637
+ className: cn("items-stretch cursor-pointer pr-4", className),
4631
4638
  ...props,
4632
4639
  children: [
4633
4640
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4634
4641
  "div",
4635
4642
  {
4636
4643
  className: cn(
4637
- "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"
4644
+ "flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 min-h-full rounded-l-xl"
4638
4645
  ),
4639
4646
  style: {
4640
4647
  backgroundColor: color
@@ -4642,47 +4649,49 @@ var CardResults = (0, import_react14.forwardRef)(
4642
4649
  children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
4643
4650
  }
4644
4651
  ),
4645
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
4646
- "div",
4647
- {
4648
- className: cn(
4649
- "p-4 flex flex-wrap justify-between w-full h-full",
4650
- isRow ? "flex-row items-center gap-2" : "flex-col"
4651
- ),
4652
- children: [
4653
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
4654
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { className: "flex flex-row gap-1 items-center", children: [
4655
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
4656
- Badge_default,
4657
- {
4658
- action: "success",
4659
- variant: "solid",
4660
- size: "large",
4661
- iconLeft: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_phosphor_react12.CheckCircle, {}),
4662
- children: [
4663
- correct_answers,
4664
- " Corretas"
4665
- ]
4666
- }
4667
- ),
4668
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
4669
- Badge_default,
4670
- {
4671
- action: "error",
4672
- variant: "solid",
4673
- size: "large",
4674
- iconLeft: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_phosphor_react12.XCircle, {}),
4675
- children: [
4676
- incorrect_answers,
4677
- " Incorretas"
4678
- ]
4679
- }
4680
- )
4681
- ] })
4682
- ]
4683
- }
4684
- ),
4685
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_phosphor_react12.CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
4652
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "w-full flex flex-row justify-between items-center", children: [
4653
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
4654
+ "div",
4655
+ {
4656
+ className: cn(
4657
+ "p-4 flex flex-wrap justify-between w-full h-full",
4658
+ isRow ? "flex-row items-center gap-2" : "flex-col"
4659
+ ),
4660
+ children: [
4661
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
4662
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { className: "flex flex-wrap flex-row gap-1 items-center", children: [
4663
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
4664
+ Badge_default,
4665
+ {
4666
+ action: "success",
4667
+ variant: "solid",
4668
+ size: "large",
4669
+ iconLeft: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_phosphor_react12.CheckCircle, {}),
4670
+ children: [
4671
+ correct_answers,
4672
+ " Corretas"
4673
+ ]
4674
+ }
4675
+ ),
4676
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
4677
+ Badge_default,
4678
+ {
4679
+ action: "error",
4680
+ variant: "solid",
4681
+ size: "large",
4682
+ iconLeft: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_phosphor_react12.XCircle, {}),
4683
+ children: [
4684
+ incorrect_answers,
4685
+ " Incorretas"
4686
+ ]
4687
+ }
4688
+ )
4689
+ ] })
4690
+ ]
4691
+ }
4692
+ ),
4693
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_phosphor_react12.CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
4694
+ ] })
4686
4695
  ]
4687
4696
  }
4688
4697
  );
@@ -5314,7 +5323,7 @@ var SIMULATION_TYPE_STYLES = {
5314
5323
  simulado: {
5315
5324
  background: "bg-exam-3",
5316
5325
  badge: "exam3",
5317
- text: "Simulado"
5326
+ text: "Simulad\xE3o"
5318
5327
  },
5319
5328
  vestibular: {
5320
5329
  background: "bg-exam-4",
@@ -9975,7 +9984,6 @@ var QuizResultPerformance = (0, import_react28.forwardRef)(
9975
9984
  ({ ...props }, ref) => {
9976
9985
  const {
9977
9986
  getTotalQuestions,
9978
- timeElapsed,
9979
9987
  formatTime: formatTime2,
9980
9988
  getQuestionResultStatistics,
9981
9989
  getQuestionResult
@@ -10035,7 +10043,9 @@ var QuizResultPerformance = (0, import_react28.forwardRef)(
10035
10043
  /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
10036
10044
  /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex items-center gap-1 mb-1", children: [
10037
10045
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_phosphor_react20.Clock, { size: 12, weight: "regular", className: "text-text-800" }),
10038
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-2xs font-medium text-text-800", children: formatTime2(timeElapsed) })
10046
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-2xs font-medium text-text-800", children: formatTime2(
10047
+ (getQuestionResultStatistics()?.timeSpent ?? 0) * 60
10048
+ ) })
10039
10049
  ] }),
10040
10050
  /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "text-2xl font-medium text-text-800 leading-7", children: [
10041
10051
  getQuestionResultStatistics()?.correctAnswers ?? "--",
@@ -10128,7 +10138,7 @@ var QuizListResult = (0, import_react28.forwardRef)(({ className, onSubjectClick
10128
10138
  CardResults,
10129
10139
  {
10130
10140
  onClick: () => onSubjectClick?.(subject.subject.id),
10131
- className: "max-w-full",
10141
+ className: "max-w-full flex !flex-col",
10132
10142
  header: subject.subject.name,
10133
10143
  correct_answers: subject.correct,
10134
10144
  incorrect_answers: subject.incorrect,