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