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.d.mts CHANGED
@@ -24,7 +24,7 @@ export { default as Modal } from './Modal/index.mjs';
24
24
  export { default as DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, MenuLabel, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuSection, ProfileMenuTrigger } from './DropdownMenu/index.mjs';
25
25
  export { default as Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './Select/index.mjs';
26
26
  export { default as Menu, MenuContent, MenuItem, MenuOverflow } from './Menu/index.mjs';
27
- export { CardActivitiesResults, CardPerformance, CardProgress, CardQuestions, CardResults, CardStatus, CardTopic } from './Card/index.mjs';
27
+ export { CardActivitiesResults, CardPerformance, CardProgress, CardQuestions, CardResults, CardSimulado, CardStatus, CardTopic } from './Card/index.mjs';
28
28
  export { Skeleton, SkeletonCard, SkeletonCircle, SkeletonList, SkeletonRectangle, SkeletonRounded, SkeletonTable, SkeletonText } from './Skeleton/index.mjs';
29
29
  import 'react/jsx-runtime';
30
30
  import 'react';
package/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@ export { default as Modal } from './Modal/index.js';
24
24
  export { default as DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, MenuLabel, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuSection, ProfileMenuTrigger } from './DropdownMenu/index.js';
25
25
  export { default as Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './Select/index.js';
26
26
  export { default as Menu, MenuContent, MenuItem, MenuOverflow } from './Menu/index.js';
27
- export { CardActivitiesResults, CardPerformance, CardProgress, CardQuestions, CardResults, CardStatus, CardTopic } from './Card/index.js';
27
+ export { CardActivitiesResults, CardPerformance, CardProgress, CardQuestions, CardResults, CardSimulado, CardStatus, CardTopic } from './Card/index.js';
28
28
  export { Skeleton, SkeletonCard, SkeletonCircle, SkeletonList, SkeletonRectangle, SkeletonRounded, SkeletonTable, SkeletonText } from './Skeleton/index.js';
29
29
  import 'react/jsx-runtime';
30
30
  import 'react';
package/dist/index.js CHANGED
@@ -29,6 +29,7 @@ __export(src_exports, {
29
29
  CardProgress: () => CardProgress,
30
30
  CardQuestions: () => CardQuestions,
31
31
  CardResults: () => CardResults,
32
+ CardSimulado: () => CardSimulado,
32
33
  CardStatus: () => CardStatus,
33
34
  CardTopic: () => CardTopic,
34
35
  CheckBox: () => CheckBox_default,
@@ -3829,7 +3830,7 @@ var MenuItem = (0, import_react13.forwardRef)(
3829
3830
  {
3830
3831
  "data-variant": "menu2",
3831
3832
  className: `
3832
- 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
3833
+ 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
3833
3834
  focus:outline-none focus:border-indicator-info focus:border-2
3834
3835
  ${selectedValue === value ? "" : "pb-4"}
3835
3836
  `,
@@ -4471,42 +4472,32 @@ var CardResults = (0, import_react14.forwardRef)(
4471
4472
  );
4472
4473
  var CardStatus = (0, import_react14.forwardRef)(
4473
4474
  ({ header, className, status, ...props }, ref) => {
4474
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
4475
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4475
4476
  CardBase,
4476
4477
  {
4477
4478
  ref,
4478
4479
  layout: "horizontal",
4479
- padding: "none",
4480
+ padding: "medium",
4480
4481
  minHeight: "medium",
4481
- className: `items-center pr-4 ${className}`,
4482
+ className: `items-center ${className}`,
4482
4483
  ...props,
4483
- children: [
4484
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
4485
- "div",
4486
- {
4487
- className: `
4488
- p-4 flex justify-between w-full h-full flex-row items-center gap-2
4489
- `,
4490
- children: [
4491
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
4492
- status && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "flex flex-row gap-1 items-center", children: [
4493
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4494
- Badge_default,
4495
- {
4496
- action: status == "correct" ? "success" : "error",
4497
- variant: "solid",
4498
- size: "medium",
4499
- iconLeft: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_phosphor_react13.CheckCircle, {}),
4500
- children: status == "correct" ? "Correta" : "Incorreta"
4501
- }
4502
- ),
4503
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm text-text-800", children: "Respondida" })
4504
- ] })
4505
- ]
4506
- }
4507
- ),
4508
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_phosphor_react13.CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer" })
4509
- ]
4484
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
4485
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
4486
+ status && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
4487
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4488
+ Badge_default,
4489
+ {
4490
+ action: status == "correct" ? "success" : "error",
4491
+ variant: "solid",
4492
+ size: "medium",
4493
+ iconLeft: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_phosphor_react13.CheckCircle, {}),
4494
+ children: status == "correct" ? "Correta" : "Incorreta"
4495
+ }
4496
+ ),
4497
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm text-text-800", children: "Respondida" })
4498
+ ] }),
4499
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_phosphor_react13.CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
4500
+ ] })
4510
4501
  }
4511
4502
  );
4512
4503
  }
@@ -4868,6 +4859,49 @@ var CardAudio = (0, import_react14.forwardRef)(
4868
4859
  );
4869
4860
  }
4870
4861
  );
4862
+ var SIMULADO_BACKGROUND_CLASSES = {
4863
+ enem: "bg-exam-1",
4864
+ prova: "bg-exam-2",
4865
+ simuladao: "bg-exam-3",
4866
+ vestibular: "bg-exam-4"
4867
+ };
4868
+ var CardSimulado = (0, import_react14.forwardRef)(
4869
+ ({ title, duration, info, backgroundColor, className, ...props }, ref) => {
4870
+ const backgroundClass = SIMULADO_BACKGROUND_CLASSES[backgroundColor];
4871
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4872
+ CardBase,
4873
+ {
4874
+ ref,
4875
+ layout: "horizontal",
4876
+ padding: "medium",
4877
+ minHeight: "none",
4878
+ cursor: "pointer",
4879
+ className: `${backgroundClass} hover:shadow-soft-shadow-2 transition-shadow duration-200 ${className}`,
4880
+ ...props,
4881
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex justify-between items-center w-full gap-4", children: [
4882
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
4883
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text_default, { size: "lg", weight: "bold", className: "text-text-950 truncate", children: title }),
4884
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex items-center gap-4 text-text-700", children: [
4885
+ duration && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex items-center gap-1", children: [
4886
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_phosphor_react13.Clock, { size: 16, className: "flex-shrink-0" }),
4887
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text_default, { size: "sm", children: duration })
4888
+ ] }),
4889
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text_default, { size: "sm", className: "truncate", children: info })
4890
+ ] })
4891
+ ] }),
4892
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4893
+ import_phosphor_react13.CaretRight,
4894
+ {
4895
+ size: 24,
4896
+ className: "text-text-800 flex-shrink-0",
4897
+ "data-testid": "caret-icon"
4898
+ }
4899
+ )
4900
+ ] })
4901
+ }
4902
+ );
4903
+ }
4904
+ );
4871
4905
 
4872
4906
  // src/components/Skeleton/Skeleton.tsx
4873
4907
  var import_react15 = require("react");
@@ -5028,6 +5062,7 @@ var SkeletonTable = (0, import_react15.forwardRef)(
5028
5062
  CardProgress,
5029
5063
  CardQuestions,
5030
5064
  CardResults,
5065
+ CardSimulado,
5031
5066
  CardStatus,
5032
5067
  CardTopic,
5033
5068
  CheckBox,