analytica-frontend-lib 1.0.80 → 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 +106 -0
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +106 -0
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.d.mts +16 -1
- package/dist/Card/index.d.ts +16 -1
- package/dist/Card/index.js +108 -0
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +107 -0
- package/dist/Card/index.mjs.map +1 -1
- package/dist/CheckBox/index.d.mts +1 -1
- package/dist/CheckBox/index.d.ts +1 -1
- package/dist/Radio/index.d.mts +2 -2
- package/dist/Radio/index.d.ts +2 -2
- package/dist/index.css +32 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +108 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +107 -0
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +32 -0
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
|
@@ -1705,6 +1705,112 @@ var CardTest = forwardRef(
|
|
|
1705
1705
|
);
|
|
1706
1706
|
}
|
|
1707
1707
|
);
|
|
1708
|
+
var SIMULATION_TYPE_STYLES = {
|
|
1709
|
+
enem: {
|
|
1710
|
+
background: "bg-exam-1",
|
|
1711
|
+
badge: "exam1",
|
|
1712
|
+
text: "Enem"
|
|
1713
|
+
},
|
|
1714
|
+
prova: {
|
|
1715
|
+
background: "bg-exam-2",
|
|
1716
|
+
badge: "exam2",
|
|
1717
|
+
text: "Prova"
|
|
1718
|
+
},
|
|
1719
|
+
simulado: {
|
|
1720
|
+
background: "bg-exam-3",
|
|
1721
|
+
badge: "exam3",
|
|
1722
|
+
text: "Simulado"
|
|
1723
|
+
},
|
|
1724
|
+
vestibular: {
|
|
1725
|
+
background: "bg-exam-4",
|
|
1726
|
+
badge: "exam4",
|
|
1727
|
+
text: "Vestibular"
|
|
1728
|
+
}
|
|
1729
|
+
};
|
|
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: `
|
|
1742
|
+
flex flex-row justify-center items-start px-4 py-6 gap-2 w-full bg-white
|
|
1743
|
+
${sectionIndex === 0 ? "rounded-t-3xl" : ""}
|
|
1744
|
+
`,
|
|
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: `
|
|
1765
|
+
${typeStyles.background} rounded-xl hover:shadow-soft-shadow-2
|
|
1766
|
+
transition-shadow duration-200 h-auto min-h-[61px]
|
|
1767
|
+
`,
|
|
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: [
|
|
1781
|
+
/* @__PURE__ */ jsx5(
|
|
1782
|
+
Badge_default,
|
|
1783
|
+
{
|
|
1784
|
+
variant: "examsOutlined",
|
|
1785
|
+
action: typeStyles.badge,
|
|
1786
|
+
size: "medium",
|
|
1787
|
+
children: typeStyles.text
|
|
1788
|
+
}
|
|
1789
|
+
),
|
|
1790
|
+
/* @__PURE__ */ jsx5(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
1791
|
+
] })
|
|
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
|
+
});
|
|
1708
1814
|
|
|
1709
1815
|
// src/components/Accordation/Accordation.tsx
|
|
1710
1816
|
import { CaretRight as CaretRight2 } from "phosphor-react";
|