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.js
CHANGED
|
@@ -1742,144 +1742,90 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
1742
1742
|
text: "Vestibular"
|
|
1743
1743
|
}
|
|
1744
1744
|
};
|
|
1745
|
-
var CardSimulationHistory = (0, import_react.forwardRef)(
|
|
1746
|
-
(
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
{
|
|
1758
|
-
ref,
|
|
1759
|
-
className: `w-full max-w-[992px] h-auto ${className}`,
|
|
1760
|
-
...props,
|
|
1761
|
-
children: [
|
|
1762
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-row items-end justify-between gap-4 mb-4", children: [
|
|
1763
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text_default, { size: "2xl", weight: "bold", className: "text-text-950 flex-1", children: title }),
|
|
1764
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-row gap-2", children: [
|
|
1765
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1766
|
-
"button",
|
|
1767
|
-
{
|
|
1768
|
-
type: "button",
|
|
1769
|
-
onClick: () => onTabChange?.("create"),
|
|
1770
|
-
className: `
|
|
1771
|
-
flex flex-row justify-center items-center px-4 py-3 gap-2 rounded-md relative
|
|
1772
|
-
${activeTab === "create" ? "text-text-950" : "text-text-950 hover:bg-background-50"}
|
|
1773
|
-
`,
|
|
1774
|
-
children: [
|
|
1775
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text_default, { size: "xs", weight: "bold", className: "leading-4 tracking-wide", children: "Criar Simulado" }),
|
|
1776
|
-
activeTab === "create" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "absolute bottom-0 left-2 right-2 h-1 bg-primary-950 rounded-lg" })
|
|
1777
|
-
]
|
|
1778
|
-
}
|
|
1779
|
-
),
|
|
1780
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1781
|
-
"button",
|
|
1782
|
-
{
|
|
1783
|
-
type: "button",
|
|
1784
|
-
onClick: () => onTabChange?.("history"),
|
|
1785
|
-
className: `
|
|
1786
|
-
flex flex-row justify-center items-center px-4 py-3 gap-2 rounded-md relative
|
|
1787
|
-
${activeTab === "history" ? "text-text-950" : "text-text-950 hover:bg-background-50"}
|
|
1788
|
-
`,
|
|
1789
|
-
children: [
|
|
1790
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text_default, { size: "xs", weight: "bold", className: "leading-4 tracking-wide", children: "Hist\xF3rico" }),
|
|
1791
|
-
activeTab === "history" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "absolute bottom-0 left-2 right-2 h-1 bg-primary-950 rounded-lg" })
|
|
1792
|
-
]
|
|
1793
|
-
}
|
|
1794
|
-
)
|
|
1795
|
-
] })
|
|
1796
|
-
] }),
|
|
1797
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-0", children: [
|
|
1798
|
-
data.map((section, sectionIndex) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1799
|
-
"div",
|
|
1800
|
-
{
|
|
1801
|
-
className: `
|
|
1745
|
+
var CardSimulationHistory = (0, import_react.forwardRef)(({ data, onSimulationClick, className, ...props }, ref) => {
|
|
1746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1747
|
+
"div",
|
|
1748
|
+
{
|
|
1749
|
+
ref,
|
|
1750
|
+
className: `w-full max-w-[992px] h-auto ${className}`,
|
|
1751
|
+
...props,
|
|
1752
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-0", children: [
|
|
1753
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1754
|
+
"div",
|
|
1755
|
+
{
|
|
1756
|
+
className: `
|
|
1802
1757
|
flex flex-row justify-center items-start px-4 py-6 gap-2 w-full bg-white
|
|
1803
1758
|
${sectionIndex === 0 ? "rounded-t-3xl" : ""}
|
|
1804
1759
|
`,
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1760
|
+
children: [
|
|
1761
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1762
|
+
Text_default,
|
|
1763
|
+
{
|
|
1764
|
+
size: "xs",
|
|
1765
|
+
weight: "bold",
|
|
1766
|
+
className: "text-text-800 w-11 flex-shrink-0",
|
|
1767
|
+
children: section.date
|
|
1768
|
+
}
|
|
1769
|
+
),
|
|
1770
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
1771
|
+
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
1772
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1773
|
+
CardBase,
|
|
1774
|
+
{
|
|
1775
|
+
layout: "horizontal",
|
|
1776
|
+
padding: "medium",
|
|
1777
|
+
minHeight: "none",
|
|
1778
|
+
cursor: "pointer",
|
|
1779
|
+
className: `
|
|
1825
1780
|
${typeStyles.background} rounded-xl hover:shadow-soft-shadow-2
|
|
1826
1781
|
transition-shadow duration-200 h-auto min-h-[61px]
|
|
1827
1782
|
`,
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1842
|
-
Badge_default,
|
|
1843
|
-
{
|
|
1844
|
-
variant: "examsOutlined",
|
|
1845
|
-
action: typeStyles.badge,
|
|
1846
|
-
size: "medium",
|
|
1847
|
-
children: typeStyles.text
|
|
1848
|
-
}
|
|
1849
|
-
),
|
|
1850
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1851
|
-
Text_default,
|
|
1852
|
-
{
|
|
1853
|
-
size: "sm",
|
|
1854
|
-
className: "text-text-800 truncate",
|
|
1855
|
-
children: simulation.info
|
|
1856
|
-
}
|
|
1857
|
-
)
|
|
1858
|
-
] })
|
|
1859
|
-
] }),
|
|
1783
|
+
onClick: () => onSimulationClick?.(simulation),
|
|
1784
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
1785
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
1786
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1787
|
+
Text_default,
|
|
1788
|
+
{
|
|
1789
|
+
size: "lg",
|
|
1790
|
+
weight: "bold",
|
|
1791
|
+
className: "text-text-950 truncate",
|
|
1792
|
+
children: simulation.title
|
|
1793
|
+
}
|
|
1794
|
+
),
|
|
1795
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
1860
1796
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1861
|
-
|
|
1797
|
+
Badge_default,
|
|
1862
1798
|
{
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1799
|
+
variant: "examsOutlined",
|
|
1800
|
+
action: typeStyles.badge,
|
|
1801
|
+
size: "medium",
|
|
1802
|
+
children: typeStyles.text
|
|
1866
1803
|
}
|
|
1867
|
-
)
|
|
1804
|
+
),
|
|
1805
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
1868
1806
|
] })
|
|
1869
|
-
},
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
)
|
|
1807
|
+
] }),
|
|
1808
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1809
|
+
import_phosphor_react2.CaretRight,
|
|
1810
|
+
{
|
|
1811
|
+
size: 24,
|
|
1812
|
+
className: "text-text-800 flex-shrink-0",
|
|
1813
|
+
"data-testid": "caret-icon"
|
|
1814
|
+
}
|
|
1815
|
+
)
|
|
1816
|
+
] })
|
|
1817
|
+
},
|
|
1818
|
+
simulation.id
|
|
1819
|
+
);
|
|
1820
|
+
}) })
|
|
1821
|
+
]
|
|
1822
|
+
}
|
|
1823
|
+
) }, section.date)),
|
|
1824
|
+
data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "w-full h-6 bg-white rounded-b-3xl" })
|
|
1825
|
+
] })
|
|
1826
|
+
}
|
|
1827
|
+
);
|
|
1828
|
+
});
|
|
1883
1829
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1884
1830
|
0 && (module.exports = {
|
|
1885
1831
|
CardActivitiesResults,
|