analytica-frontend-lib 1.0.80 → 1.0.82
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/Accordation/index.js +106 -0
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +106 -0
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.d.mts +16 -1
- package/dist/Card/index.d.ts +16 -1
- package/dist/Card/index.js +108 -0
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +107 -0
- package/dist/Card/index.mjs.map +1 -1
- package/dist/CheckBox/index.d.mts +1 -1
- package/dist/CheckBox/index.d.ts +1 -1
- package/dist/Radio/index.d.mts +2 -2
- package/dist/Radio/index.d.ts +2 -2
- package/dist/index.css +32 -0
- 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 +108 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +107 -0
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +32 -0
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/Card/index.mjs
CHANGED
|
@@ -1698,6 +1698,112 @@ var CardTest = forwardRef(
|
|
|
1698
1698
|
);
|
|
1699
1699
|
}
|
|
1700
1700
|
);
|
|
1701
|
+
var SIMULATION_TYPE_STYLES = {
|
|
1702
|
+
enem: {
|
|
1703
|
+
background: "bg-exam-1",
|
|
1704
|
+
badge: "exam1",
|
|
1705
|
+
text: "Enem"
|
|
1706
|
+
},
|
|
1707
|
+
prova: {
|
|
1708
|
+
background: "bg-exam-2",
|
|
1709
|
+
badge: "exam2",
|
|
1710
|
+
text: "Prova"
|
|
1711
|
+
},
|
|
1712
|
+
simulado: {
|
|
1713
|
+
background: "bg-exam-3",
|
|
1714
|
+
badge: "exam3",
|
|
1715
|
+
text: "Simulado"
|
|
1716
|
+
},
|
|
1717
|
+
vestibular: {
|
|
1718
|
+
background: "bg-exam-4",
|
|
1719
|
+
badge: "exam4",
|
|
1720
|
+
text: "Vestibular"
|
|
1721
|
+
}
|
|
1722
|
+
};
|
|
1723
|
+
var CardSimulationHistory = forwardRef(({ data, onSimulationClick, className, ...props }, ref) => {
|
|
1724
|
+
return /* @__PURE__ */ jsx5(
|
|
1725
|
+
"div",
|
|
1726
|
+
{
|
|
1727
|
+
ref,
|
|
1728
|
+
className: `w-full max-w-[992px] h-auto ${className}`,
|
|
1729
|
+
...props,
|
|
1730
|
+
children: /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-0", children: [
|
|
1731
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ jsx5("div", { className: "flex flex-col", children: /* @__PURE__ */ jsxs4(
|
|
1732
|
+
"div",
|
|
1733
|
+
{
|
|
1734
|
+
className: `
|
|
1735
|
+
flex flex-row justify-center items-start px-4 py-6 gap-2 w-full bg-white
|
|
1736
|
+
${sectionIndex === 0 ? "rounded-t-3xl" : ""}
|
|
1737
|
+
`,
|
|
1738
|
+
children: [
|
|
1739
|
+
/* @__PURE__ */ jsx5(
|
|
1740
|
+
Text_default,
|
|
1741
|
+
{
|
|
1742
|
+
size: "xs",
|
|
1743
|
+
weight: "bold",
|
|
1744
|
+
className: "text-text-800 w-11 flex-shrink-0",
|
|
1745
|
+
children: section.date
|
|
1746
|
+
}
|
|
1747
|
+
),
|
|
1748
|
+
/* @__PURE__ */ jsx5("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
1749
|
+
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
1750
|
+
return /* @__PURE__ */ jsx5(
|
|
1751
|
+
CardBase,
|
|
1752
|
+
{
|
|
1753
|
+
layout: "horizontal",
|
|
1754
|
+
padding: "medium",
|
|
1755
|
+
minHeight: "none",
|
|
1756
|
+
cursor: "pointer",
|
|
1757
|
+
className: `
|
|
1758
|
+
${typeStyles.background} rounded-xl hover:shadow-soft-shadow-2
|
|
1759
|
+
transition-shadow duration-200 h-auto min-h-[61px]
|
|
1760
|
+
`,
|
|
1761
|
+
onClick: () => onSimulationClick?.(simulation),
|
|
1762
|
+
children: /* @__PURE__ */ jsxs4("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
1763
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
1764
|
+
/* @__PURE__ */ jsx5(
|
|
1765
|
+
Text_default,
|
|
1766
|
+
{
|
|
1767
|
+
size: "lg",
|
|
1768
|
+
weight: "bold",
|
|
1769
|
+
className: "text-text-950 truncate",
|
|
1770
|
+
children: simulation.title
|
|
1771
|
+
}
|
|
1772
|
+
),
|
|
1773
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-2", children: [
|
|
1774
|
+
/* @__PURE__ */ jsx5(
|
|
1775
|
+
Badge_default,
|
|
1776
|
+
{
|
|
1777
|
+
variant: "examsOutlined",
|
|
1778
|
+
action: typeStyles.badge,
|
|
1779
|
+
size: "medium",
|
|
1780
|
+
children: typeStyles.text
|
|
1781
|
+
}
|
|
1782
|
+
),
|
|
1783
|
+
/* @__PURE__ */ jsx5(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
1784
|
+
] })
|
|
1785
|
+
] }),
|
|
1786
|
+
/* @__PURE__ */ jsx5(
|
|
1787
|
+
CaretRight,
|
|
1788
|
+
{
|
|
1789
|
+
size: 24,
|
|
1790
|
+
className: "text-text-800 flex-shrink-0",
|
|
1791
|
+
"data-testid": "caret-icon"
|
|
1792
|
+
}
|
|
1793
|
+
)
|
|
1794
|
+
] })
|
|
1795
|
+
},
|
|
1796
|
+
simulation.id
|
|
1797
|
+
);
|
|
1798
|
+
}) })
|
|
1799
|
+
]
|
|
1800
|
+
}
|
|
1801
|
+
) }, section.date)),
|
|
1802
|
+
data.length > 0 && /* @__PURE__ */ jsx5("div", { className: "w-full h-6 bg-white rounded-b-3xl" })
|
|
1803
|
+
] })
|
|
1804
|
+
}
|
|
1805
|
+
);
|
|
1806
|
+
});
|
|
1701
1807
|
export {
|
|
1702
1808
|
CardActivitiesResults,
|
|
1703
1809
|
CardAudio,
|
|
@@ -1709,6 +1815,7 @@ export {
|
|
|
1709
1815
|
CardResults,
|
|
1710
1816
|
CardSettings,
|
|
1711
1817
|
CardSimulado,
|
|
1818
|
+
CardSimulationHistory,
|
|
1712
1819
|
CardStatus,
|
|
1713
1820
|
CardSupport,
|
|
1714
1821
|
CardTest,
|