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.
@@ -114,5 +114,12 @@ interface CardAudioProps extends HTMLAttributes<HTMLDivElement> {
114
114
  }>;
115
115
  }
116
116
  declare const CardAudio: react.ForwardRefExoticComponent<CardAudioProps & react.RefAttributes<HTMLDivElement>>;
117
+ interface CardSimuladoProps extends HTMLAttributes<HTMLDivElement> {
118
+ title: string;
119
+ duration?: string;
120
+ info: string;
121
+ backgroundColor: 'enem' | 'prova' | 'simuladao' | 'vestibular';
122
+ }
123
+ declare const CardSimulado: react.ForwardRefExoticComponent<CardSimuladoProps & react.RefAttributes<HTMLDivElement>>;
117
124
 
118
- export { CardActivitiesResults, CardAudio, CardBase, CardForum, CardPerformance, CardProgress, CardQuestions, CardResults, CardSettings, CardStatus, CardSupport, CardTopic };
125
+ export { CardActivitiesResults, CardAudio, CardBase, CardForum, CardPerformance, CardProgress, CardQuestions, CardResults, CardSettings, CardSimulado, CardStatus, CardSupport, CardTopic };
@@ -114,5 +114,12 @@ interface CardAudioProps extends HTMLAttributes<HTMLDivElement> {
114
114
  }>;
115
115
  }
116
116
  declare const CardAudio: react.ForwardRefExoticComponent<CardAudioProps & react.RefAttributes<HTMLDivElement>>;
117
+ interface CardSimuladoProps extends HTMLAttributes<HTMLDivElement> {
118
+ title: string;
119
+ duration?: string;
120
+ info: string;
121
+ backgroundColor: 'enem' | 'prova' | 'simuladao' | 'vestibular';
122
+ }
123
+ declare const CardSimulado: react.ForwardRefExoticComponent<CardSimuladoProps & react.RefAttributes<HTMLDivElement>>;
117
124
 
118
- export { CardActivitiesResults, CardAudio, CardBase, CardForum, CardPerformance, CardProgress, CardQuestions, CardResults, CardSettings, CardStatus, CardSupport, CardTopic };
125
+ export { CardActivitiesResults, CardAudio, CardBase, CardForum, CardPerformance, CardProgress, CardQuestions, CardResults, CardSettings, CardSimulado, CardStatus, CardSupport, CardTopic };
@@ -29,6 +29,7 @@ __export(Card_exports, {
29
29
  CardQuestions: () => CardQuestions,
30
30
  CardResults: () => CardResults,
31
31
  CardSettings: () => CardSettings,
32
+ CardSimulado: () => CardSimulado,
32
33
  CardStatus: () => CardStatus,
33
34
  CardSupport: () => CardSupport,
34
35
  CardTopic: () => CardTopic
@@ -1162,42 +1163,32 @@ var CardResults = (0, import_react.forwardRef)(
1162
1163
  );
1163
1164
  var CardStatus = (0, import_react.forwardRef)(
1164
1165
  ({ header, className, status, ...props }, ref) => {
1165
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1166
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1166
1167
  CardBase,
1167
1168
  {
1168
1169
  ref,
1169
1170
  layout: "horizontal",
1170
- padding: "none",
1171
+ padding: "medium",
1171
1172
  minHeight: "medium",
1172
- className: `items-center pr-4 ${className}`,
1173
+ className: `items-center ${className}`,
1173
1174
  ...props,
1174
- children: [
1175
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1176
- "div",
1177
- {
1178
- className: `
1179
- p-4 flex justify-between w-full h-full flex-row items-center gap-2
1180
- `,
1181
- children: [
1182
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
1183
- status && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "flex flex-row gap-1 items-center", children: [
1184
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1185
- Badge_default,
1186
- {
1187
- action: status == "correct" ? "success" : "error",
1188
- variant: "solid",
1189
- size: "medium",
1190
- iconLeft: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CheckCircle, {}),
1191
- children: status == "correct" ? "Correta" : "Incorreta"
1192
- }
1193
- ),
1194
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm text-text-800", children: "Respondida" })
1195
- ] })
1196
- ]
1197
- }
1198
- ),
1199
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer" })
1200
- ]
1175
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
1176
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
1177
+ status && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
1178
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1179
+ Badge_default,
1180
+ {
1181
+ action: status == "correct" ? "success" : "error",
1182
+ variant: "solid",
1183
+ size: "medium",
1184
+ iconLeft: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CheckCircle, {}),
1185
+ children: status == "correct" ? "Correta" : "Incorreta"
1186
+ }
1187
+ ),
1188
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm text-text-800", children: "Respondida" })
1189
+ ] }),
1190
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
1191
+ ] })
1201
1192
  }
1202
1193
  );
1203
1194
  }
@@ -1559,6 +1550,49 @@ var CardAudio = (0, import_react.forwardRef)(
1559
1550
  );
1560
1551
  }
1561
1552
  );
1553
+ var SIMULADO_BACKGROUND_CLASSES = {
1554
+ enem: "bg-exam-1",
1555
+ prova: "bg-exam-2",
1556
+ simuladao: "bg-exam-3",
1557
+ vestibular: "bg-exam-4"
1558
+ };
1559
+ var CardSimulado = (0, import_react.forwardRef)(
1560
+ ({ title, duration, info, backgroundColor, className, ...props }, ref) => {
1561
+ const backgroundClass = SIMULADO_BACKGROUND_CLASSES[backgroundColor];
1562
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1563
+ CardBase,
1564
+ {
1565
+ ref,
1566
+ layout: "horizontal",
1567
+ padding: "medium",
1568
+ minHeight: "none",
1569
+ cursor: "pointer",
1570
+ className: `${backgroundClass} hover:shadow-soft-shadow-2 transition-shadow duration-200 ${className}`,
1571
+ ...props,
1572
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex justify-between items-center w-full gap-4", children: [
1573
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
1574
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text_default, { size: "lg", weight: "bold", className: "text-text-950 truncate", children: title }),
1575
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center gap-4 text-text-700", children: [
1576
+ duration && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center gap-1", children: [
1577
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.Clock, { size: 16, className: "flex-shrink-0" }),
1578
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text_default, { size: "sm", children: duration })
1579
+ ] }),
1580
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text_default, { size: "sm", className: "truncate", children: info })
1581
+ ] })
1582
+ ] }),
1583
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1584
+ import_phosphor_react2.CaretRight,
1585
+ {
1586
+ size: 24,
1587
+ className: "text-text-800 flex-shrink-0",
1588
+ "data-testid": "caret-icon"
1589
+ }
1590
+ )
1591
+ ] })
1592
+ }
1593
+ );
1594
+ }
1595
+ );
1562
1596
  // Annotate the CommonJS export names for ESM import in node:
1563
1597
  0 && (module.exports = {
1564
1598
  CardActivitiesResults,
@@ -1570,6 +1604,7 @@ var CardAudio = (0, import_react.forwardRef)(
1570
1604
  CardQuestions,
1571
1605
  CardResults,
1572
1606
  CardSettings,
1607
+ CardSimulado,
1573
1608
  CardStatus,
1574
1609
  CardSupport,
1575
1610
  CardTopic