analytica-frontend-lib 1.0.67 → 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/Card/index.d.mts +8 -1
- package/dist/Card/index.d.ts +8 -1
- package/dist/Card/index.js +45 -0
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +45 -0
- package/dist/Card/index.mjs.map +1 -1
- package/dist/index.css +137 -119
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +45 -0
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +137 -119
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
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,
|
|
@@ -4858,6 +4859,49 @@ var CardAudio = (0, import_react14.forwardRef)(
|
|
|
4858
4859
|
);
|
|
4859
4860
|
}
|
|
4860
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
|
+
);
|
|
4861
4905
|
|
|
4862
4906
|
// src/components/Skeleton/Skeleton.tsx
|
|
4863
4907
|
var import_react15 = require("react");
|
|
@@ -5018,6 +5062,7 @@ var SkeletonTable = (0, import_react15.forwardRef)(
|
|
|
5018
5062
|
CardProgress,
|
|
5019
5063
|
CardQuestions,
|
|
5020
5064
|
CardResults,
|
|
5065
|
+
CardSimulado,
|
|
5021
5066
|
CardStatus,
|
|
5022
5067
|
CardTopic,
|
|
5023
5068
|
CheckBox,
|