analytica-frontend-lib 1.0.80 → 1.0.81
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 +160 -0
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +160 -0
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.d.mts +19 -1
- package/dist/Card/index.d.ts +19 -1
- package/dist/Card/index.js +162 -0
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +161 -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 +38 -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 +162 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +161 -0
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +38 -0
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/Card/index.mjs
CHANGED
|
@@ -1698,6 +1698,166 @@ 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(
|
|
1724
|
+
({
|
|
1725
|
+
title = "Simulados",
|
|
1726
|
+
activeTab = "history",
|
|
1727
|
+
data,
|
|
1728
|
+
onTabChange,
|
|
1729
|
+
onSimulationClick,
|
|
1730
|
+
className,
|
|
1731
|
+
...props
|
|
1732
|
+
}, ref) => {
|
|
1733
|
+
return /* @__PURE__ */ jsxs4(
|
|
1734
|
+
"div",
|
|
1735
|
+
{
|
|
1736
|
+
ref,
|
|
1737
|
+
className: `w-full max-w-[992px] h-auto ${className}`,
|
|
1738
|
+
...props,
|
|
1739
|
+
children: [
|
|
1740
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex flex-row items-end justify-between gap-4 mb-4", children: [
|
|
1741
|
+
/* @__PURE__ */ jsx5(Text_default, { size: "2xl", weight: "bold", className: "text-text-950 flex-1", children: title }),
|
|
1742
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex flex-row gap-2", children: [
|
|
1743
|
+
/* @__PURE__ */ jsxs4(
|
|
1744
|
+
"button",
|
|
1745
|
+
{
|
|
1746
|
+
type: "button",
|
|
1747
|
+
onClick: () => onTabChange?.("create"),
|
|
1748
|
+
className: `
|
|
1749
|
+
flex flex-row justify-center items-center px-4 py-3 gap-2 rounded-md relative
|
|
1750
|
+
${activeTab === "create" ? "text-text-950" : "text-text-950 hover:bg-background-50"}
|
|
1751
|
+
`,
|
|
1752
|
+
children: [
|
|
1753
|
+
/* @__PURE__ */ jsx5(Text_default, { size: "xs", weight: "bold", className: "leading-4 tracking-wide", children: "Criar Simulado" }),
|
|
1754
|
+
activeTab === "create" && /* @__PURE__ */ jsx5("div", { className: "absolute bottom-0 left-2 right-2 h-1 bg-primary-950 rounded-lg" })
|
|
1755
|
+
]
|
|
1756
|
+
}
|
|
1757
|
+
),
|
|
1758
|
+
/* @__PURE__ */ jsxs4(
|
|
1759
|
+
"button",
|
|
1760
|
+
{
|
|
1761
|
+
type: "button",
|
|
1762
|
+
onClick: () => onTabChange?.("history"),
|
|
1763
|
+
className: `
|
|
1764
|
+
flex flex-row justify-center items-center px-4 py-3 gap-2 rounded-md relative
|
|
1765
|
+
${activeTab === "history" ? "text-text-950" : "text-text-950 hover:bg-background-50"}
|
|
1766
|
+
`,
|
|
1767
|
+
children: [
|
|
1768
|
+
/* @__PURE__ */ jsx5(Text_default, { size: "xs", weight: "bold", className: "leading-4 tracking-wide", children: "Hist\xF3rico" }),
|
|
1769
|
+
activeTab === "history" && /* @__PURE__ */ jsx5("div", { className: "absolute bottom-0 left-2 right-2 h-1 bg-primary-950 rounded-lg" })
|
|
1770
|
+
]
|
|
1771
|
+
}
|
|
1772
|
+
)
|
|
1773
|
+
] })
|
|
1774
|
+
] }),
|
|
1775
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-0", children: [
|
|
1776
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ jsx5("div", { className: "flex flex-col", children: /* @__PURE__ */ jsxs4(
|
|
1777
|
+
"div",
|
|
1778
|
+
{
|
|
1779
|
+
className: `
|
|
1780
|
+
flex flex-row justify-center items-start px-4 py-6 gap-2 w-full bg-white
|
|
1781
|
+
${sectionIndex === 0 ? "rounded-t-3xl" : ""}
|
|
1782
|
+
`,
|
|
1783
|
+
children: [
|
|
1784
|
+
/* @__PURE__ */ jsx5(
|
|
1785
|
+
Text_default,
|
|
1786
|
+
{
|
|
1787
|
+
size: "xs",
|
|
1788
|
+
weight: "bold",
|
|
1789
|
+
className: "text-text-800 w-11 flex-shrink-0",
|
|
1790
|
+
children: section.date
|
|
1791
|
+
}
|
|
1792
|
+
),
|
|
1793
|
+
/* @__PURE__ */ jsx5("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
1794
|
+
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
1795
|
+
return /* @__PURE__ */ jsx5(
|
|
1796
|
+
CardBase,
|
|
1797
|
+
{
|
|
1798
|
+
layout: "horizontal",
|
|
1799
|
+
padding: "medium",
|
|
1800
|
+
minHeight: "none",
|
|
1801
|
+
cursor: "pointer",
|
|
1802
|
+
className: `
|
|
1803
|
+
${typeStyles.background} rounded-xl hover:shadow-soft-shadow-2
|
|
1804
|
+
transition-shadow duration-200 h-auto min-h-[61px]
|
|
1805
|
+
`,
|
|
1806
|
+
onClick: () => onSimulationClick?.(simulation),
|
|
1807
|
+
children: /* @__PURE__ */ jsxs4("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
1808
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
1809
|
+
/* @__PURE__ */ jsx5(
|
|
1810
|
+
Text_default,
|
|
1811
|
+
{
|
|
1812
|
+
size: "lg",
|
|
1813
|
+
weight: "bold",
|
|
1814
|
+
className: "text-text-950 truncate",
|
|
1815
|
+
children: simulation.title
|
|
1816
|
+
}
|
|
1817
|
+
),
|
|
1818
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-2", children: [
|
|
1819
|
+
/* @__PURE__ */ jsx5(
|
|
1820
|
+
Badge_default,
|
|
1821
|
+
{
|
|
1822
|
+
variant: "examsOutlined",
|
|
1823
|
+
action: typeStyles.badge,
|
|
1824
|
+
size: "medium",
|
|
1825
|
+
children: typeStyles.text
|
|
1826
|
+
}
|
|
1827
|
+
),
|
|
1828
|
+
/* @__PURE__ */ jsx5(
|
|
1829
|
+
Text_default,
|
|
1830
|
+
{
|
|
1831
|
+
size: "sm",
|
|
1832
|
+
className: "text-text-800 truncate",
|
|
1833
|
+
children: simulation.info
|
|
1834
|
+
}
|
|
1835
|
+
)
|
|
1836
|
+
] })
|
|
1837
|
+
] }),
|
|
1838
|
+
/* @__PURE__ */ jsx5(
|
|
1839
|
+
CaretRight,
|
|
1840
|
+
{
|
|
1841
|
+
size: 24,
|
|
1842
|
+
className: "text-text-800 flex-shrink-0",
|
|
1843
|
+
"data-testid": "caret-icon"
|
|
1844
|
+
}
|
|
1845
|
+
)
|
|
1846
|
+
] })
|
|
1847
|
+
},
|
|
1848
|
+
simulation.id
|
|
1849
|
+
);
|
|
1850
|
+
}) })
|
|
1851
|
+
]
|
|
1852
|
+
}
|
|
1853
|
+
) }, section.date)),
|
|
1854
|
+
data.length > 0 && /* @__PURE__ */ jsx5("div", { className: "w-full h-6 bg-white rounded-b-3xl" })
|
|
1855
|
+
] })
|
|
1856
|
+
]
|
|
1857
|
+
}
|
|
1858
|
+
);
|
|
1859
|
+
}
|
|
1860
|
+
);
|
|
1701
1861
|
export {
|
|
1702
1862
|
CardActivitiesResults,
|
|
1703
1863
|
CardAudio,
|
|
@@ -1709,6 +1869,7 @@ export {
|
|
|
1709
1869
|
CardResults,
|
|
1710
1870
|
CardSettings,
|
|
1711
1871
|
CardSimulado,
|
|
1872
|
+
CardSimulationHistory,
|
|
1712
1873
|
CardStatus,
|
|
1713
1874
|
CardSupport,
|
|
1714
1875
|
CardTest,
|