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.
@@ -1727,144 +1727,90 @@ var SIMULATION_TYPE_STYLES = {
1727
1727
  text: "Vestibular"
1728
1728
  }
1729
1729
  };
1730
- var CardSimulationHistory = forwardRef(
1731
- ({
1732
- title = "Simulados",
1733
- activeTab = "history",
1734
- data,
1735
- onTabChange,
1736
- onSimulationClick,
1737
- className,
1738
- ...props
1739
- }, ref) => {
1740
- return /* @__PURE__ */ jsxs4(
1741
- "div",
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
- children: [
1791
- /* @__PURE__ */ jsx5(
1792
- Text_default,
1793
- {
1794
- size: "xs",
1795
- weight: "bold",
1796
- className: "text-text-800 w-11 flex-shrink-0",
1797
- children: section.date
1798
- }
1799
- ),
1800
- /* @__PURE__ */ jsx5("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
1801
- const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
1802
- return /* @__PURE__ */ jsx5(
1803
- CardBase,
1804
- {
1805
- layout: "horizontal",
1806
- padding: "medium",
1807
- minHeight: "none",
1808
- cursor: "pointer",
1809
- className: `
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
- onClick: () => onSimulationClick?.(simulation),
1814
- children: /* @__PURE__ */ jsxs4("div", { className: "flex justify-between items-center w-full gap-2", children: [
1815
- /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
1816
- /* @__PURE__ */ jsx5(
1817
- Text_default,
1818
- {
1819
- size: "lg",
1820
- weight: "bold",
1821
- className: "text-text-950 truncate",
1822
- children: simulation.title
1823
- }
1824
- ),
1825
- /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-2", children: [
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
- CaretRight,
1782
+ Badge_default,
1847
1783
  {
1848
- size: 24,
1849
- className: "text-text-800 flex-shrink-0",
1850
- "data-testid": "caret-icon"
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
- simulation.id
1856
- );
1857
- }) })
1858
- ]
1859
- }
1860
- ) }, section.date)),
1861
- data.length > 0 && /* @__PURE__ */ jsx5("div", { className: "w-full h-6 bg-white rounded-b-3xl" })
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";