analytica-frontend-lib 1.0.81 → 1.0.83
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 +76 -130
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +76 -130
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/AlertDialog/index.js +1 -1
- package/dist/AlertDialog/index.js.map +1 -1
- package/dist/AlertDialog/index.mjs +1 -1
- package/dist/AlertDialog/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 +76 -130
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +76 -130
- package/dist/Card/index.mjs.map +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/Modal/index.js.map +1 -1
- package/dist/Modal/index.mjs +1 -1
- package/dist/Modal/index.mjs.map +1 -1
- package/dist/Quiz/index.d.mts +29 -0
- package/dist/Quiz/index.d.ts +29 -0
- package/dist/Quiz/index.js +3662 -0
- package/dist/Quiz/index.js.map +1 -0
- package/dist/Quiz/index.mjs +3673 -0
- package/dist/Quiz/index.mjs.map +1 -0
- package/dist/Quiz/useQuizStore/index.d.mts +108 -0
- package/dist/Quiz/useQuizStore/index.d.ts +108 -0
- package/dist/Quiz/useQuizStore/index.js +274 -0
- package/dist/Quiz/useQuizStore/index.js.map +1 -0
- package/dist/Quiz/useQuizStore/index.mjs +249 -0
- package/dist/Quiz/useQuizStore/index.mjs.map +1 -0
- package/dist/index.css +50 -3
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +733 -132
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +731 -132
- package/dist/index.mjs.map +1 -1
- package/dist/simulated-result-QN5HCUY5.png +0 -0
- package/dist/styles.css +50 -3
- package/dist/styles.css.map +1 -1
- package/package.json +2 -1
|
@@ -1167,8 +1167,8 @@ var CardStatus = forwardRef(
|
|
|
1167
1167
|
...props,
|
|
1168
1168
|
children: /* @__PURE__ */ jsxs4("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
|
|
1169
1169
|
/* @__PURE__ */ jsx5("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
1170
|
-
|
|
1171
|
-
/* @__PURE__ */ jsx5(
|
|
1170
|
+
/* @__PURE__ */ jsxs4("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
|
|
1171
|
+
status && /* @__PURE__ */ jsx5(
|
|
1172
1172
|
Badge_default,
|
|
1173
1173
|
{
|
|
1174
1174
|
action: status == "correct" ? "success" : "error",
|
|
@@ -1727,144 +1727,90 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
1727
1727
|
text: "Vestibular"
|
|
1728
1728
|
}
|
|
1729
1729
|
};
|
|
1730
|
-
var CardSimulationHistory = forwardRef(
|
|
1731
|
-
(
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
{
|
|
1743
|
-
ref,
|
|
1744
|
-
className: `w-full max-w-[992px] h-auto ${className}`,
|
|
1745
|
-
...props,
|
|
1746
|
-
children: [
|
|
1747
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex flex-row items-end justify-between gap-4 mb-4", children: [
|
|
1748
|
-
/* @__PURE__ */ jsx5(Text_default, { size: "2xl", weight: "bold", className: "text-text-950 flex-1", children: title }),
|
|
1749
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex flex-row gap-2", children: [
|
|
1750
|
-
/* @__PURE__ */ jsxs4(
|
|
1751
|
-
"button",
|
|
1752
|
-
{
|
|
1753
|
-
type: "button",
|
|
1754
|
-
onClick: () => onTabChange?.("create"),
|
|
1755
|
-
className: `
|
|
1756
|
-
flex flex-row justify-center items-center px-4 py-3 gap-2 rounded-md relative
|
|
1757
|
-
${activeTab === "create" ? "text-text-950" : "text-text-950 hover:bg-background-50"}
|
|
1758
|
-
`,
|
|
1759
|
-
children: [
|
|
1760
|
-
/* @__PURE__ */ jsx5(Text_default, { size: "xs", weight: "bold", className: "leading-4 tracking-wide", children: "Criar Simulado" }),
|
|
1761
|
-
activeTab === "create" && /* @__PURE__ */ jsx5("div", { className: "absolute bottom-0 left-2 right-2 h-1 bg-primary-950 rounded-lg" })
|
|
1762
|
-
]
|
|
1763
|
-
}
|
|
1764
|
-
),
|
|
1765
|
-
/* @__PURE__ */ jsxs4(
|
|
1766
|
-
"button",
|
|
1767
|
-
{
|
|
1768
|
-
type: "button",
|
|
1769
|
-
onClick: () => onTabChange?.("history"),
|
|
1770
|
-
className: `
|
|
1771
|
-
flex flex-row justify-center items-center px-4 py-3 gap-2 rounded-md relative
|
|
1772
|
-
${activeTab === "history" ? "text-text-950" : "text-text-950 hover:bg-background-50"}
|
|
1773
|
-
`,
|
|
1774
|
-
children: [
|
|
1775
|
-
/* @__PURE__ */ jsx5(Text_default, { size: "xs", weight: "bold", className: "leading-4 tracking-wide", children: "Hist\xF3rico" }),
|
|
1776
|
-
activeTab === "history" && /* @__PURE__ */ jsx5("div", { className: "absolute bottom-0 left-2 right-2 h-1 bg-primary-950 rounded-lg" })
|
|
1777
|
-
]
|
|
1778
|
-
}
|
|
1779
|
-
)
|
|
1780
|
-
] })
|
|
1781
|
-
] }),
|
|
1782
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-0", children: [
|
|
1783
|
-
data.map((section, sectionIndex) => /* @__PURE__ */ jsx5("div", { className: "flex flex-col", children: /* @__PURE__ */ jsxs4(
|
|
1784
|
-
"div",
|
|
1785
|
-
{
|
|
1786
|
-
className: `
|
|
1730
|
+
var CardSimulationHistory = forwardRef(({ data, onSimulationClick, className, ...props }, ref) => {
|
|
1731
|
+
return /* @__PURE__ */ jsx5(
|
|
1732
|
+
"div",
|
|
1733
|
+
{
|
|
1734
|
+
ref,
|
|
1735
|
+
className: `w-full max-w-[992px] h-auto ${className}`,
|
|
1736
|
+
...props,
|
|
1737
|
+
children: /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-0", children: [
|
|
1738
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ jsx5("div", { className: "flex flex-col", children: /* @__PURE__ */ jsxs4(
|
|
1739
|
+
"div",
|
|
1740
|
+
{
|
|
1741
|
+
className: `
|
|
1787
1742
|
flex flex-row justify-center items-start px-4 py-6 gap-2 w-full bg-white
|
|
1788
1743
|
${sectionIndex === 0 ? "rounded-t-3xl" : ""}
|
|
1789
1744
|
`,
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1745
|
+
children: [
|
|
1746
|
+
/* @__PURE__ */ jsx5(
|
|
1747
|
+
Text_default,
|
|
1748
|
+
{
|
|
1749
|
+
size: "xs",
|
|
1750
|
+
weight: "bold",
|
|
1751
|
+
className: "text-text-800 w-11 flex-shrink-0",
|
|
1752
|
+
children: section.date
|
|
1753
|
+
}
|
|
1754
|
+
),
|
|
1755
|
+
/* @__PURE__ */ jsx5("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
1756
|
+
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
1757
|
+
return /* @__PURE__ */ jsx5(
|
|
1758
|
+
CardBase,
|
|
1759
|
+
{
|
|
1760
|
+
layout: "horizontal",
|
|
1761
|
+
padding: "medium",
|
|
1762
|
+
minHeight: "none",
|
|
1763
|
+
cursor: "pointer",
|
|
1764
|
+
className: `
|
|
1810
1765
|
${typeStyles.background} rounded-xl hover:shadow-soft-shadow-2
|
|
1811
1766
|
transition-shadow duration-200 h-auto min-h-[61px]
|
|
1812
1767
|
`,
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
/* @__PURE__ */ jsx5(
|
|
1827
|
-
Badge_default,
|
|
1828
|
-
{
|
|
1829
|
-
variant: "examsOutlined",
|
|
1830
|
-
action: typeStyles.badge,
|
|
1831
|
-
size: "medium",
|
|
1832
|
-
children: typeStyles.text
|
|
1833
|
-
}
|
|
1834
|
-
),
|
|
1835
|
-
/* @__PURE__ */ jsx5(
|
|
1836
|
-
Text_default,
|
|
1837
|
-
{
|
|
1838
|
-
size: "sm",
|
|
1839
|
-
className: "text-text-800 truncate",
|
|
1840
|
-
children: simulation.info
|
|
1841
|
-
}
|
|
1842
|
-
)
|
|
1843
|
-
] })
|
|
1844
|
-
] }),
|
|
1768
|
+
onClick: () => onSimulationClick?.(simulation),
|
|
1769
|
+
children: /* @__PURE__ */ jsxs4("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
1770
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
1771
|
+
/* @__PURE__ */ jsx5(
|
|
1772
|
+
Text_default,
|
|
1773
|
+
{
|
|
1774
|
+
size: "lg",
|
|
1775
|
+
weight: "bold",
|
|
1776
|
+
className: "text-text-950 truncate",
|
|
1777
|
+
children: simulation.title
|
|
1778
|
+
}
|
|
1779
|
+
),
|
|
1780
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-2", children: [
|
|
1845
1781
|
/* @__PURE__ */ jsx5(
|
|
1846
|
-
|
|
1782
|
+
Badge_default,
|
|
1847
1783
|
{
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1784
|
+
variant: "examsOutlined",
|
|
1785
|
+
action: typeStyles.badge,
|
|
1786
|
+
size: "medium",
|
|
1787
|
+
children: typeStyles.text
|
|
1851
1788
|
}
|
|
1852
|
-
)
|
|
1789
|
+
),
|
|
1790
|
+
/* @__PURE__ */ jsx5(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
1853
1791
|
] })
|
|
1854
|
-
},
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
)
|
|
1792
|
+
] }),
|
|
1793
|
+
/* @__PURE__ */ jsx5(
|
|
1794
|
+
CaretRight,
|
|
1795
|
+
{
|
|
1796
|
+
size: 24,
|
|
1797
|
+
className: "text-text-800 flex-shrink-0",
|
|
1798
|
+
"data-testid": "caret-icon"
|
|
1799
|
+
}
|
|
1800
|
+
)
|
|
1801
|
+
] })
|
|
1802
|
+
},
|
|
1803
|
+
simulation.id
|
|
1804
|
+
);
|
|
1805
|
+
}) })
|
|
1806
|
+
]
|
|
1807
|
+
}
|
|
1808
|
+
) }, section.date)),
|
|
1809
|
+
data.length > 0 && /* @__PURE__ */ jsx5("div", { className: "w-full h-6 bg-white rounded-b-3xl" })
|
|
1810
|
+
] })
|
|
1811
|
+
}
|
|
1812
|
+
);
|
|
1813
|
+
});
|
|
1868
1814
|
|
|
1869
1815
|
// src/components/Accordation/Accordation.tsx
|
|
1870
1816
|
import { CaretRight as CaretRight2 } from "phosphor-react";
|