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.
Files changed (42) hide show
  1. package/dist/Accordation/index.js +76 -130
  2. package/dist/Accordation/index.js.map +1 -1
  3. package/dist/Accordation/index.mjs +76 -130
  4. package/dist/Accordation/index.mjs.map +1 -1
  5. package/dist/AlertDialog/index.js +1 -1
  6. package/dist/AlertDialog/index.js.map +1 -1
  7. package/dist/AlertDialog/index.mjs +1 -1
  8. package/dist/AlertDialog/index.mjs.map +1 -1
  9. package/dist/Card/index.d.mts +0 -3
  10. package/dist/Card/index.d.ts +0 -3
  11. package/dist/Card/index.js +76 -130
  12. package/dist/Card/index.js.map +1 -1
  13. package/dist/Card/index.mjs +76 -130
  14. package/dist/Card/index.mjs.map +1 -1
  15. package/dist/Modal/index.js +1 -1
  16. package/dist/Modal/index.js.map +1 -1
  17. package/dist/Modal/index.mjs +1 -1
  18. package/dist/Modal/index.mjs.map +1 -1
  19. package/dist/Quiz/index.d.mts +29 -0
  20. package/dist/Quiz/index.d.ts +29 -0
  21. package/dist/Quiz/index.js +3662 -0
  22. package/dist/Quiz/index.js.map +1 -0
  23. package/dist/Quiz/index.mjs +3673 -0
  24. package/dist/Quiz/index.mjs.map +1 -0
  25. package/dist/Quiz/useQuizStore/index.d.mts +108 -0
  26. package/dist/Quiz/useQuizStore/index.d.ts +108 -0
  27. package/dist/Quiz/useQuizStore/index.js +274 -0
  28. package/dist/Quiz/useQuizStore/index.js.map +1 -0
  29. package/dist/Quiz/useQuizStore/index.mjs +249 -0
  30. package/dist/Quiz/useQuizStore/index.mjs.map +1 -0
  31. package/dist/index.css +50 -3
  32. package/dist/index.css.map +1 -1
  33. package/dist/index.d.mts +2 -0
  34. package/dist/index.d.ts +2 -0
  35. package/dist/index.js +733 -132
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.mjs +731 -132
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/simulated-result-QN5HCUY5.png +0 -0
  40. package/dist/styles.css +50 -3
  41. package/dist/styles.css.map +1 -1
  42. package/package.json +2 -1
@@ -1160,8 +1160,8 @@ var CardStatus = forwardRef(
1160
1160
  ...props,
1161
1161
  children: /* @__PURE__ */ jsxs4("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
1162
1162
  /* @__PURE__ */ jsx5("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
1163
- status && /* @__PURE__ */ jsxs4("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
1164
- /* @__PURE__ */ jsx5(
1163
+ /* @__PURE__ */ jsxs4("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
1164
+ status && /* @__PURE__ */ jsx5(
1165
1165
  Badge_default,
1166
1166
  {
1167
1167
  action: status == "correct" ? "success" : "error",
@@ -1720,144 +1720,90 @@ var SIMULATION_TYPE_STYLES = {
1720
1720
  text: "Vestibular"
1721
1721
  }
1722
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: `
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
- 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: `
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
- 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
- ] }),
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
- CaretRight,
1775
+ Badge_default,
1840
1776
  {
1841
- size: 24,
1842
- className: "text-text-800 flex-shrink-0",
1843
- "data-testid": "caret-icon"
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
- 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
- );
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,