analytica-frontend-lib 1.0.81 → 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 +74 -128
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +74 -128
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.d.mts +0 -3
- package/dist/Card/index.d.ts +0 -3
- package/dist/Card/index.js +74 -128
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +74 -128
- package/dist/Card/index.mjs.map +1 -1
- package/dist/index.css +0 -6
- package/dist/index.css.map +1 -1
- package/dist/index.js +74 -128
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -128
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +0 -6
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/Card/index.mjs
CHANGED
|
@@ -1720,144 +1720,90 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
1720
1720
|
text: "Vestibular"
|
|
1721
1721
|
}
|
|
1722
1722
|
};
|
|
1723
|
-
var CardSimulationHistory = forwardRef(
|
|
1724
|
-
(
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
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: `
|
|
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: `
|
|
1780
1735
|
flex flex-row justify-center items-start px-4 py-6 gap-2 w-full bg-white
|
|
1781
1736
|
${sectionIndex === 0 ? "rounded-t-3xl" : ""}
|
|
1782
1737
|
`,
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
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: `
|
|
1803
1758
|
${typeStyles.background} rounded-xl hover:shadow-soft-shadow-2
|
|
1804
1759
|
transition-shadow duration-200 h-auto min-h-[61px]
|
|
1805
1760
|
`,
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
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
|
-
] }),
|
|
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: [
|
|
1838
1774
|
/* @__PURE__ */ jsx5(
|
|
1839
|
-
|
|
1775
|
+
Badge_default,
|
|
1840
1776
|
{
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1777
|
+
variant: "examsOutlined",
|
|
1778
|
+
action: typeStyles.badge,
|
|
1779
|
+
size: "medium",
|
|
1780
|
+
children: typeStyles.text
|
|
1844
1781
|
}
|
|
1845
|
-
)
|
|
1782
|
+
),
|
|
1783
|
+
/* @__PURE__ */ jsx5(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
1846
1784
|
] })
|
|
1847
|
-
},
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
)
|
|
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
|
+
});
|
|
1861
1807
|
export {
|
|
1862
1808
|
CardActivitiesResults,
|
|
1863
1809
|
CardAudio,
|