analytica-frontend-lib 1.0.66 → 1.0.68

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
@@ -3793,7 +3793,7 @@ var MenuItem = forwardRef11(
3793
3793
  {
3794
3794
  "data-variant": "menu2",
3795
3795
  className: `
3796
- w-full flex flex-col items-center px-2 pt-4 gap-3 border-b-4 border-transparent cursor-pointer focus:rounded-sm justify-center hover:bg-background-100 rounded-lg
3796
+ 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
3797
3797
  focus:outline-none focus:border-indicator-info focus:border-2
3798
3798
  ${selectedValue === value ? "" : "pb-4"}
3799
3799
  `,
@@ -3954,6 +3954,7 @@ import {
3954
3954
  CaretRight as CaretRight2,
3955
3955
  ChatCircleText,
3956
3956
  CheckCircle as CheckCircle3,
3957
+ Clock,
3957
3958
  DotsThreeVertical,
3958
3959
  Play,
3959
3960
  SpeakerHigh,
@@ -4450,42 +4451,32 @@ var CardResults = forwardRef12(
4450
4451
  );
4451
4452
  var CardStatus = forwardRef12(
4452
4453
  ({ header, className, status, ...props }, ref) => {
4453
- return /* @__PURE__ */ jsxs21(
4454
+ return /* @__PURE__ */ jsx26(
4454
4455
  CardBase,
4455
4456
  {
4456
4457
  ref,
4457
4458
  layout: "horizontal",
4458
- padding: "none",
4459
+ padding: "medium",
4459
4460
  minHeight: "medium",
4460
- className: `items-center pr-4 ${className}`,
4461
+ className: `items-center ${className}`,
4461
4462
  ...props,
4462
- children: [
4463
- /* @__PURE__ */ jsxs21(
4464
- "div",
4465
- {
4466
- className: `
4467
- p-4 flex justify-between w-full h-full flex-row items-center gap-2
4468
- `,
4469
- children: [
4470
- /* @__PURE__ */ jsx26("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
4471
- status && /* @__PURE__ */ jsxs21("span", { className: "flex flex-row gap-1 items-center", children: [
4472
- /* @__PURE__ */ jsx26(
4473
- Badge_default,
4474
- {
4475
- action: status == "correct" ? "success" : "error",
4476
- variant: "solid",
4477
- size: "medium",
4478
- iconLeft: /* @__PURE__ */ jsx26(CheckCircle3, {}),
4479
- children: status == "correct" ? "Correta" : "Incorreta"
4480
- }
4481
- ),
4482
- /* @__PURE__ */ jsx26("p", { className: "text-sm text-text-800", children: "Respondida" })
4483
- ] })
4484
- ]
4485
- }
4486
- ),
4487
- /* @__PURE__ */ jsx26(CaretRight2, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer" })
4488
- ]
4463
+ children: /* @__PURE__ */ jsxs21("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
4464
+ /* @__PURE__ */ jsx26("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
4465
+ status && /* @__PURE__ */ jsxs21("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
4466
+ /* @__PURE__ */ jsx26(
4467
+ Badge_default,
4468
+ {
4469
+ action: status == "correct" ? "success" : "error",
4470
+ variant: "solid",
4471
+ size: "medium",
4472
+ iconLeft: /* @__PURE__ */ jsx26(CheckCircle3, {}),
4473
+ children: status == "correct" ? "Correta" : "Incorreta"
4474
+ }
4475
+ ),
4476
+ /* @__PURE__ */ jsx26("p", { className: "text-sm text-text-800", children: "Respondida" })
4477
+ ] }),
4478
+ /* @__PURE__ */ jsx26(CaretRight2, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
4479
+ ] })
4489
4480
  }
4490
4481
  );
4491
4482
  }
@@ -4847,6 +4838,49 @@ var CardAudio = forwardRef12(
4847
4838
  );
4848
4839
  }
4849
4840
  );
4841
+ var SIMULADO_BACKGROUND_CLASSES = {
4842
+ enem: "bg-exam-1",
4843
+ prova: "bg-exam-2",
4844
+ simuladao: "bg-exam-3",
4845
+ vestibular: "bg-exam-4"
4846
+ };
4847
+ var CardSimulado = forwardRef12(
4848
+ ({ title, duration, info, backgroundColor, className, ...props }, ref) => {
4849
+ const backgroundClass = SIMULADO_BACKGROUND_CLASSES[backgroundColor];
4850
+ return /* @__PURE__ */ jsx26(
4851
+ CardBase,
4852
+ {
4853
+ ref,
4854
+ layout: "horizontal",
4855
+ padding: "medium",
4856
+ minHeight: "none",
4857
+ cursor: "pointer",
4858
+ className: `${backgroundClass} hover:shadow-soft-shadow-2 transition-shadow duration-200 ${className}`,
4859
+ ...props,
4860
+ children: /* @__PURE__ */ jsxs21("div", { className: "flex justify-between items-center w-full gap-4", children: [
4861
+ /* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
4862
+ /* @__PURE__ */ jsx26(Text_default, { size: "lg", weight: "bold", className: "text-text-950 truncate", children: title }),
4863
+ /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-4 text-text-700", children: [
4864
+ duration && /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-1", children: [
4865
+ /* @__PURE__ */ jsx26(Clock, { size: 16, className: "flex-shrink-0" }),
4866
+ /* @__PURE__ */ jsx26(Text_default, { size: "sm", children: duration })
4867
+ ] }),
4868
+ /* @__PURE__ */ jsx26(Text_default, { size: "sm", className: "truncate", children: info })
4869
+ ] })
4870
+ ] }),
4871
+ /* @__PURE__ */ jsx26(
4872
+ CaretRight2,
4873
+ {
4874
+ size: 24,
4875
+ className: "text-text-800 flex-shrink-0",
4876
+ "data-testid": "caret-icon"
4877
+ }
4878
+ )
4879
+ ] })
4880
+ }
4881
+ );
4882
+ }
4883
+ );
4850
4884
 
4851
4885
  // src/components/Skeleton/Skeleton.tsx
4852
4886
  import { forwardRef as forwardRef13 } from "react";
@@ -5006,6 +5040,7 @@ export {
5006
5040
  CardProgress,
5007
5041
  CardQuestions,
5008
5042
  CardResults,
5043
+ CardSimulado,
5009
5044
  CardStatus,
5010
5045
  CardTopic,
5011
5046
  CheckBox_default as CheckBox,