elseware-ui 2.29.2 → 2.30.1
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/index.css +582 -48
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +123 -111
- package/dist/index.d.ts +123 -111
- package/dist/index.js +620 -331
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +615 -332
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var reactChartjs2 = require('react-chartjs-2');
|
|
|
8
8
|
var chart_js = require('chart.js');
|
|
9
9
|
var React4 = require('react');
|
|
10
10
|
var react = require('@headlessui/react');
|
|
11
|
-
var
|
|
11
|
+
var classNames17 = require('classnames');
|
|
12
12
|
var fa6 = require('react-icons/fa6');
|
|
13
13
|
var ReactWorldFlags = require('react-world-flags');
|
|
14
14
|
var emojiFlags = require('emoji-flags');
|
|
@@ -46,7 +46,7 @@ function _interopNamespace(e) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
var React4__default = /*#__PURE__*/_interopDefault(React4);
|
|
49
|
-
var
|
|
49
|
+
var classNames17__default = /*#__PURE__*/_interopDefault(classNames17);
|
|
50
50
|
var ReactWorldFlags__default = /*#__PURE__*/_interopDefault(ReactWorldFlags);
|
|
51
51
|
var emojiFlags__default = /*#__PURE__*/_interopDefault(emojiFlags);
|
|
52
52
|
var d3__namespace = /*#__PURE__*/_interopNamespace(d3);
|
|
@@ -767,7 +767,7 @@ function Accordion({
|
|
|
767
767
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
768
768
|
"div",
|
|
769
769
|
{
|
|
770
|
-
className:
|
|
770
|
+
className: classNames17__default.default({
|
|
771
771
|
"inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs": true,
|
|
772
772
|
"hover:cursor-pointer": toggleOnSummaryClick
|
|
773
773
|
}),
|
|
@@ -785,7 +785,7 @@ function Accordion({
|
|
|
785
785
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
786
786
|
fa6.FaCircleChevronDown,
|
|
787
787
|
{
|
|
788
|
-
className:
|
|
788
|
+
className: classNames17__default.default(
|
|
789
789
|
"text-xl transition-transform duration-300",
|
|
790
790
|
{ "rotate-180": collapse }
|
|
791
791
|
)
|
|
@@ -811,7 +811,7 @@ function Accordion({
|
|
|
811
811
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
812
812
|
"div",
|
|
813
813
|
{
|
|
814
|
-
className:
|
|
814
|
+
className: classNames17__default.default({
|
|
815
815
|
"border-t border-t-eui-dark-400/40 eui-text-sm": true,
|
|
816
816
|
"p-5": enableChildrenPadding
|
|
817
817
|
}),
|
|
@@ -891,7 +891,7 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
891
891
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
892
892
|
"div",
|
|
893
893
|
{
|
|
894
|
-
className:
|
|
894
|
+
className: classNames17__default.default(
|
|
895
895
|
"flex items-start gap-4 p-6 border-b border-white/10",
|
|
896
896
|
className
|
|
897
897
|
),
|
|
@@ -907,14 +907,14 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
907
907
|
}
|
|
908
908
|
var CardHeader_default = CardHeader;
|
|
909
909
|
function CardContent({ children, className }) {
|
|
910
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
910
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames17__default.default("p-6 text-gray-300 text-sm", className), children });
|
|
911
911
|
}
|
|
912
912
|
var CardContent_default = CardContent;
|
|
913
913
|
function CardFooter({ children, className }) {
|
|
914
914
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
915
915
|
"div",
|
|
916
916
|
{
|
|
917
|
-
className:
|
|
917
|
+
className: classNames17__default.default(
|
|
918
918
|
"flex items-center gap-3 p-5 border-t border-white/10 text-sm text-gray-400",
|
|
919
919
|
className
|
|
920
920
|
),
|
|
@@ -956,7 +956,7 @@ function GradientAnimation({
|
|
|
956
956
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
957
957
|
"div",
|
|
958
958
|
{
|
|
959
|
-
className:
|
|
959
|
+
className: classNames17__default.default("absolute inset-0"),
|
|
960
960
|
style: {
|
|
961
961
|
background: `linear-gradient(${cfg.angle}deg, ${cfg.colors?.join(",")})`,
|
|
962
962
|
backgroundSize: cfg.backgroundSize,
|
|
@@ -1102,7 +1102,7 @@ function MotionSurface({
|
|
|
1102
1102
|
}) {
|
|
1103
1103
|
const AnimationComponent = animationVariant === "custom" ? CustomAnimation : animationRegistry[animationVariant];
|
|
1104
1104
|
const OverlayComponent = overlay === "custom" ? CustomOverlay : overlayRegistry[overlay];
|
|
1105
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1105
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames17__default.default("relative overflow-hidden", className), children: [
|
|
1106
1106
|
AnimationComponent && /* @__PURE__ */ jsxRuntime.jsx(AnimationComponent, { config: animationConfig, animated }),
|
|
1107
1107
|
OverlayComponent && /* @__PURE__ */ jsxRuntime.jsx(OverlayComponent, { config: overlayConfig }),
|
|
1108
1108
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative z-10", children })
|
|
@@ -1555,13 +1555,13 @@ var Graph = ({
|
|
|
1555
1555
|
}
|
|
1556
1556
|
);
|
|
1557
1557
|
};
|
|
1558
|
-
var
|
|
1558
|
+
var CloudinaryContext = React4.createContext(null);
|
|
1559
1559
|
var CloudinaryProvider = ({
|
|
1560
1560
|
cloudName,
|
|
1561
1561
|
children
|
|
1562
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1562
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(CloudinaryContext.Provider, { value: { cloudName }, children });
|
|
1563
1563
|
var useCloudinaryConfig = () => {
|
|
1564
|
-
const ctx = React4.useContext(
|
|
1564
|
+
const ctx = React4.useContext(CloudinaryContext);
|
|
1565
1565
|
if (!ctx) {
|
|
1566
1566
|
throw new Error(
|
|
1567
1567
|
"CloudinaryProvider is missing. Wrap your app with <CloudinaryProvider />"
|
|
@@ -1571,10 +1571,12 @@ var useCloudinaryConfig = () => {
|
|
|
1571
1571
|
};
|
|
1572
1572
|
var DEFAULT_PUBLIC_CLOUD = "demo";
|
|
1573
1573
|
function CloudinaryImage({
|
|
1574
|
-
publicId,
|
|
1574
|
+
publicId = "sample",
|
|
1575
1575
|
cloudName,
|
|
1576
1576
|
secure = true,
|
|
1577
|
-
alt,
|
|
1577
|
+
alt = "image",
|
|
1578
|
+
fallbackSrc,
|
|
1579
|
+
loading = "lazy",
|
|
1578
1580
|
className,
|
|
1579
1581
|
...rest
|
|
1580
1582
|
}) {
|
|
@@ -1584,10 +1586,16 @@ function CloudinaryImage({
|
|
|
1584
1586
|
cloudinaryReact.Image,
|
|
1585
1587
|
{
|
|
1586
1588
|
...rest,
|
|
1587
|
-
publicId
|
|
1589
|
+
publicId,
|
|
1588
1590
|
secure,
|
|
1589
1591
|
alt,
|
|
1590
|
-
|
|
1592
|
+
loading,
|
|
1593
|
+
className: cn(className),
|
|
1594
|
+
onError: (e) => {
|
|
1595
|
+
if (fallbackSrc) {
|
|
1596
|
+
e.currentTarget.src = fallbackSrc;
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1591
1599
|
}
|
|
1592
1600
|
) });
|
|
1593
1601
|
}
|
|
@@ -1638,114 +1646,335 @@ function Info({
|
|
|
1638
1646
|
);
|
|
1639
1647
|
}
|
|
1640
1648
|
var Info_default = Info;
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1649
|
+
|
|
1650
|
+
// src/components/data-display/typography/shared/typography.levels.ts
|
|
1651
|
+
var typographyLevels = {
|
|
1652
|
+
display: {
|
|
1653
|
+
1: "text-8xl leading-[120px]",
|
|
1654
|
+
2: "text-7xl leading-[110px]",
|
|
1655
|
+
3: "text-6xl leading-[100px]"
|
|
1656
|
+
},
|
|
1657
|
+
chapter: {
|
|
1658
|
+
1: "text-5xl leading-[90px]",
|
|
1659
|
+
2: "text-4xl leading-[80px]",
|
|
1660
|
+
3: "text-3xl leading-[70px]"
|
|
1661
|
+
},
|
|
1662
|
+
section: {
|
|
1663
|
+
1: "text-2xl leading-[50px] pt-4",
|
|
1664
|
+
2: "text-xl leading-[50px]",
|
|
1665
|
+
3: "text-lg leading-[40px]"
|
|
1666
|
+
},
|
|
1667
|
+
paragraph: {
|
|
1668
|
+
1: "text-base leading-[28px]",
|
|
1669
|
+
2: "text-sm leading-[25px]",
|
|
1670
|
+
3: "text-xs leading-[20px]"
|
|
1671
|
+
},
|
|
1672
|
+
quote: {
|
|
1673
|
+
1: "text-base leading-[28px]",
|
|
1674
|
+
2: "text-sm leading-[25px]",
|
|
1675
|
+
3: "text-xs leading-[20px]"
|
|
1676
|
+
}
|
|
1645
1677
|
};
|
|
1678
|
+
|
|
1679
|
+
// src/components/data-display/typography/shared/typography.styles.ts
|
|
1680
|
+
var typographyStyles = ({
|
|
1681
|
+
variant = "default",
|
|
1682
|
+
decoration = "noUnderline",
|
|
1683
|
+
bold,
|
|
1684
|
+
italic,
|
|
1685
|
+
className
|
|
1686
|
+
}) => cn(
|
|
1687
|
+
textVariants[variant],
|
|
1688
|
+
decorations[decoration],
|
|
1689
|
+
bold && "font-bold",
|
|
1690
|
+
italic && "italic",
|
|
1691
|
+
className
|
|
1692
|
+
);
|
|
1646
1693
|
var Chapter = ({
|
|
1647
1694
|
level = 1,
|
|
1648
1695
|
children,
|
|
1649
|
-
variant
|
|
1650
|
-
decoration
|
|
1696
|
+
variant,
|
|
1697
|
+
decoration,
|
|
1651
1698
|
bold,
|
|
1652
1699
|
italic,
|
|
1653
|
-
|
|
1654
|
-
|
|
1700
|
+
className,
|
|
1701
|
+
...rest
|
|
1655
1702
|
}) => {
|
|
1703
|
+
const Tag2 = level === 1 ? "h1" : level === 2 ? "h2" : "h3";
|
|
1656
1704
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1657
|
-
|
|
1705
|
+
Tag2,
|
|
1658
1706
|
{
|
|
1659
|
-
|
|
1660
|
-
className:
|
|
1661
|
-
[
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1707
|
+
...rest,
|
|
1708
|
+
className: cn(
|
|
1709
|
+
typographyLevels.chapter[level],
|
|
1710
|
+
typographyStyles({
|
|
1711
|
+
variant,
|
|
1712
|
+
decoration,
|
|
1713
|
+
bold,
|
|
1714
|
+
italic,
|
|
1715
|
+
className
|
|
1716
|
+
})
|
|
1717
|
+
),
|
|
1718
|
+
children: children || "Chapter"
|
|
1669
1719
|
}
|
|
1670
1720
|
);
|
|
1671
1721
|
};
|
|
1672
|
-
var levels2 = {
|
|
1673
|
-
1: "text-2xl leading-[50px] pt-4",
|
|
1674
|
-
2: "text-xl leading-[50px]",
|
|
1675
|
-
3: "text-lg leading-[40px]"
|
|
1676
|
-
};
|
|
1677
1722
|
var Section = ({
|
|
1678
1723
|
level = 1,
|
|
1679
1724
|
children,
|
|
1680
|
-
variant
|
|
1681
|
-
decoration
|
|
1725
|
+
variant,
|
|
1726
|
+
decoration,
|
|
1682
1727
|
bold,
|
|
1683
1728
|
italic,
|
|
1684
|
-
|
|
1685
|
-
|
|
1729
|
+
className,
|
|
1730
|
+
...rest
|
|
1686
1731
|
}) => {
|
|
1732
|
+
const Tag2 = level === 1 ? "h4" : level === 2 ? "h5" : "h6";
|
|
1687
1733
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1688
|
-
|
|
1734
|
+
Tag2,
|
|
1689
1735
|
{
|
|
1690
|
-
|
|
1691
|
-
className:
|
|
1692
|
-
|
|
1693
|
-
[
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1736
|
+
...rest,
|
|
1737
|
+
className: cn(
|
|
1738
|
+
"opacity-80",
|
|
1739
|
+
typographyLevels.section[level],
|
|
1740
|
+
typographyStyles({
|
|
1741
|
+
variant,
|
|
1742
|
+
decoration,
|
|
1743
|
+
bold,
|
|
1744
|
+
italic,
|
|
1745
|
+
className
|
|
1746
|
+
})
|
|
1747
|
+
),
|
|
1748
|
+
children: children || "Section"
|
|
1700
1749
|
}
|
|
1701
1750
|
);
|
|
1702
1751
|
};
|
|
1703
|
-
var levels3 = {
|
|
1704
|
-
1: "text-base leading-[28px]",
|
|
1705
|
-
2: "text-sm leading-[25px]",
|
|
1706
|
-
3: "text-xs leading-[20px]"
|
|
1707
|
-
};
|
|
1708
1752
|
var Paragraph = ({
|
|
1709
1753
|
level = 1,
|
|
1710
1754
|
children,
|
|
1711
|
-
variant
|
|
1712
|
-
decoration
|
|
1755
|
+
variant,
|
|
1756
|
+
decoration,
|
|
1713
1757
|
bold,
|
|
1714
1758
|
italic,
|
|
1715
|
-
|
|
1716
|
-
|
|
1759
|
+
className,
|
|
1760
|
+
...rest
|
|
1761
|
+
}) => {
|
|
1762
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1763
|
+
"p",
|
|
1764
|
+
{
|
|
1765
|
+
...rest,
|
|
1766
|
+
className: cn(
|
|
1767
|
+
typographyLevels.paragraph[level],
|
|
1768
|
+
typographyStyles({
|
|
1769
|
+
variant,
|
|
1770
|
+
decoration,
|
|
1771
|
+
bold,
|
|
1772
|
+
italic,
|
|
1773
|
+
className
|
|
1774
|
+
})
|
|
1775
|
+
),
|
|
1776
|
+
children: children || "Paragraph"
|
|
1777
|
+
}
|
|
1778
|
+
);
|
|
1779
|
+
};
|
|
1780
|
+
var Quote = ({
|
|
1781
|
+
level = 1,
|
|
1782
|
+
children,
|
|
1783
|
+
variant,
|
|
1784
|
+
decoration,
|
|
1785
|
+
bold,
|
|
1786
|
+
italic,
|
|
1787
|
+
className,
|
|
1788
|
+
...rest
|
|
1717
1789
|
}) => {
|
|
1718
1790
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1719
1791
|
"div",
|
|
1720
1792
|
{
|
|
1721
|
-
|
|
1722
|
-
className:
|
|
1723
|
-
|
|
1724
|
-
[
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1793
|
+
...rest,
|
|
1794
|
+
className: cn(
|
|
1795
|
+
"pl-4 py-1 border-l-2 border-l-gray-400 w-full",
|
|
1796
|
+
typographyLevels.quote[level],
|
|
1797
|
+
typographyStyles({
|
|
1798
|
+
variant,
|
|
1799
|
+
decoration,
|
|
1800
|
+
bold,
|
|
1801
|
+
italic,
|
|
1802
|
+
className
|
|
1803
|
+
})
|
|
1804
|
+
),
|
|
1805
|
+
children: children || "Quote"
|
|
1731
1806
|
}
|
|
1732
1807
|
);
|
|
1733
1808
|
};
|
|
1734
|
-
var
|
|
1809
|
+
var Caption = ({
|
|
1810
|
+
children,
|
|
1811
|
+
variant,
|
|
1812
|
+
decoration,
|
|
1813
|
+
bold,
|
|
1814
|
+
italic,
|
|
1815
|
+
className,
|
|
1816
|
+
...rest
|
|
1817
|
+
}) => {
|
|
1818
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1819
|
+
"span",
|
|
1820
|
+
{
|
|
1821
|
+
...rest,
|
|
1822
|
+
className: cn(
|
|
1823
|
+
"text-xs leading-[18px] opacity-70",
|
|
1824
|
+
typographyStyles({
|
|
1825
|
+
variant,
|
|
1826
|
+
decoration,
|
|
1827
|
+
bold,
|
|
1828
|
+
italic,
|
|
1829
|
+
className
|
|
1830
|
+
})
|
|
1831
|
+
),
|
|
1832
|
+
children: children || "Caption"
|
|
1833
|
+
}
|
|
1834
|
+
);
|
|
1835
|
+
};
|
|
1836
|
+
var Label = ({
|
|
1837
|
+
children,
|
|
1838
|
+
variant,
|
|
1839
|
+
decoration,
|
|
1840
|
+
bold = true,
|
|
1841
|
+
italic,
|
|
1842
|
+
className,
|
|
1843
|
+
...rest
|
|
1844
|
+
}) => {
|
|
1735
1845
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1736
1846
|
"div",
|
|
1737
1847
|
{
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
[
|
|
1741
|
-
|
|
1742
|
-
|
|
1848
|
+
...rest,
|
|
1849
|
+
className: cn(
|
|
1850
|
+
"text-sm leading-[22px]",
|
|
1851
|
+
typographyStyles({
|
|
1852
|
+
variant,
|
|
1853
|
+
decoration,
|
|
1854
|
+
bold,
|
|
1855
|
+
italic,
|
|
1856
|
+
className
|
|
1857
|
+
})
|
|
1858
|
+
),
|
|
1859
|
+
children: children || "Label"
|
|
1860
|
+
}
|
|
1861
|
+
);
|
|
1862
|
+
};
|
|
1863
|
+
var Code = ({
|
|
1864
|
+
children,
|
|
1865
|
+
className,
|
|
1866
|
+
...rest
|
|
1867
|
+
}) => {
|
|
1868
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1869
|
+
"code",
|
|
1870
|
+
{
|
|
1871
|
+
...rest,
|
|
1872
|
+
className: cn(
|
|
1873
|
+
"px-1.5 py-0.5 rounded-md",
|
|
1874
|
+
"bg-gray-800 text-green-400",
|
|
1875
|
+
"font-mono text-sm",
|
|
1876
|
+
className
|
|
1877
|
+
),
|
|
1878
|
+
children: children || "npm install"
|
|
1879
|
+
}
|
|
1880
|
+
);
|
|
1881
|
+
};
|
|
1882
|
+
var Lead = ({
|
|
1883
|
+
children,
|
|
1884
|
+
variant,
|
|
1885
|
+
decoration,
|
|
1886
|
+
bold,
|
|
1887
|
+
italic,
|
|
1888
|
+
className,
|
|
1889
|
+
...rest
|
|
1890
|
+
}) => {
|
|
1891
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1892
|
+
"p",
|
|
1893
|
+
{
|
|
1894
|
+
...rest,
|
|
1895
|
+
className: cn(
|
|
1896
|
+
"text-xl leading-[38px] opacity-90",
|
|
1897
|
+
typographyStyles({
|
|
1898
|
+
variant,
|
|
1899
|
+
decoration,
|
|
1900
|
+
bold,
|
|
1901
|
+
italic,
|
|
1902
|
+
className
|
|
1903
|
+
})
|
|
1904
|
+
),
|
|
1905
|
+
children: children || "Lead paragraph"
|
|
1906
|
+
}
|
|
1907
|
+
);
|
|
1908
|
+
};
|
|
1909
|
+
var Overline = ({
|
|
1910
|
+
children,
|
|
1911
|
+
variant,
|
|
1912
|
+
decoration,
|
|
1913
|
+
bold = true,
|
|
1914
|
+
italic,
|
|
1915
|
+
className,
|
|
1916
|
+
...rest
|
|
1917
|
+
}) => {
|
|
1918
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1919
|
+
"div",
|
|
1920
|
+
{
|
|
1921
|
+
...rest,
|
|
1922
|
+
className: cn(
|
|
1923
|
+
"text-xs uppercase tracking-[0.2em]",
|
|
1924
|
+
typographyStyles({
|
|
1925
|
+
variant,
|
|
1926
|
+
decoration,
|
|
1927
|
+
bold,
|
|
1928
|
+
italic,
|
|
1929
|
+
className
|
|
1930
|
+
})
|
|
1931
|
+
),
|
|
1932
|
+
children: children || "Overline"
|
|
1933
|
+
}
|
|
1934
|
+
);
|
|
1935
|
+
};
|
|
1936
|
+
var Display = ({
|
|
1937
|
+
level = 1,
|
|
1938
|
+
children,
|
|
1939
|
+
variant,
|
|
1940
|
+
decoration,
|
|
1941
|
+
bold = true,
|
|
1942
|
+
italic,
|
|
1943
|
+
className,
|
|
1944
|
+
...rest
|
|
1945
|
+
}) => {
|
|
1946
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1947
|
+
"h1",
|
|
1948
|
+
{
|
|
1949
|
+
...rest,
|
|
1950
|
+
className: cn(
|
|
1951
|
+
typographyLevels.display[level],
|
|
1952
|
+
typographyStyles({
|
|
1953
|
+
variant,
|
|
1954
|
+
decoration,
|
|
1955
|
+
bold,
|
|
1956
|
+
italic,
|
|
1957
|
+
className
|
|
1958
|
+
})
|
|
1959
|
+
),
|
|
1960
|
+
children: children || "Display"
|
|
1743
1961
|
}
|
|
1744
1962
|
);
|
|
1745
1963
|
};
|
|
1746
1964
|
|
|
1747
1965
|
// src/components/data-display/typography/index.tsx
|
|
1748
|
-
var Typography = {
|
|
1966
|
+
var Typography = {
|
|
1967
|
+
Display,
|
|
1968
|
+
Chapter,
|
|
1969
|
+
Section,
|
|
1970
|
+
Paragraph,
|
|
1971
|
+
Quote,
|
|
1972
|
+
Lead,
|
|
1973
|
+
Caption,
|
|
1974
|
+
Label,
|
|
1975
|
+
Code,
|
|
1976
|
+
Overline
|
|
1977
|
+
};
|
|
1749
1978
|
var ListItem = ({
|
|
1750
1979
|
content,
|
|
1751
1980
|
TypographyComponent = /* @__PURE__ */ jsxRuntime.jsx(Paragraph, { level: 1 }),
|
|
@@ -2170,25 +2399,27 @@ function Table({
|
|
|
2170
2399
|
] });
|
|
2171
2400
|
}
|
|
2172
2401
|
var Table_default = Table;
|
|
2173
|
-
function Tag({ text,
|
|
2402
|
+
function Tag({ text, className, ...rest }) {
|
|
2174
2403
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2175
2404
|
"span",
|
|
2176
2405
|
{
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2406
|
+
...rest,
|
|
2407
|
+
className: cn(
|
|
2408
|
+
"text-xs bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 px-2 py-1 rounded mr-2 mt-1",
|
|
2409
|
+
className
|
|
2410
|
+
),
|
|
2181
2411
|
children: text
|
|
2182
2412
|
}
|
|
2183
2413
|
);
|
|
2184
2414
|
}
|
|
2185
2415
|
var Tag_default = Tag;
|
|
2186
2416
|
function Tooltip4({
|
|
2187
|
-
|
|
2417
|
+
children,
|
|
2188
2418
|
show,
|
|
2189
2419
|
offsetX = 20,
|
|
2190
2420
|
offsetY = 20,
|
|
2191
|
-
className
|
|
2421
|
+
className,
|
|
2422
|
+
...rest
|
|
2192
2423
|
}) {
|
|
2193
2424
|
const [pos, setPos] = React4.useState({ x: 0, y: 0 });
|
|
2194
2425
|
React4.useEffect(() => {
|
|
@@ -2203,18 +2434,19 @@ function Tooltip4({
|
|
|
2203
2434
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2204
2435
|
"div",
|
|
2205
2436
|
{
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2437
|
+
...rest,
|
|
2438
|
+
className: cn(
|
|
2439
|
+
"pointer-events-none absolute z-50 px-3 py-2 text-sm",
|
|
2440
|
+
"rounded-lg shadow-lg bg-neutral-900 text-white",
|
|
2441
|
+
"dark:bg-neutral-800",
|
|
2442
|
+
className
|
|
2443
|
+
),
|
|
2212
2444
|
style: {
|
|
2213
2445
|
top: pos.y,
|
|
2214
2446
|
left: pos.x,
|
|
2215
2447
|
transform: "translate(-50%, -50%)"
|
|
2216
2448
|
},
|
|
2217
|
-
children
|
|
2449
|
+
children
|
|
2218
2450
|
}
|
|
2219
2451
|
);
|
|
2220
2452
|
}
|
|
@@ -2263,7 +2495,7 @@ var ValueBadge = ({
|
|
|
2263
2495
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2264
2496
|
"div",
|
|
2265
2497
|
{
|
|
2266
|
-
className:
|
|
2498
|
+
className: cn(
|
|
2267
2499
|
"px-2 py-1 rounded-md text-xs font-semibold w-fit eg-theme-transition",
|
|
2268
2500
|
noBackground ? "bg-transparent" : style.bg,
|
|
2269
2501
|
style.color,
|
|
@@ -2274,8 +2506,48 @@ var ValueBadge = ({
|
|
|
2274
2506
|
);
|
|
2275
2507
|
};
|
|
2276
2508
|
var ValueBadge_default = ValueBadge;
|
|
2277
|
-
|
|
2278
|
-
|
|
2509
|
+
var DEFAULT_PUBLIC_CLOUD2 = "demo";
|
|
2510
|
+
function CloudinaryVideo({
|
|
2511
|
+
publicId = "dog",
|
|
2512
|
+
cloudName,
|
|
2513
|
+
secure = true,
|
|
2514
|
+
controls = true,
|
|
2515
|
+
autoPlay = false,
|
|
2516
|
+
muted = false,
|
|
2517
|
+
loop = false,
|
|
2518
|
+
playsInline = true,
|
|
2519
|
+
poster,
|
|
2520
|
+
preload = "metadata",
|
|
2521
|
+
className,
|
|
2522
|
+
...rest
|
|
2523
|
+
}) {
|
|
2524
|
+
const providerConfig = useCloudinaryConfig();
|
|
2525
|
+
const resolvedCloudName = cloudName || providerConfig?.cloudName || DEFAULT_PUBLIC_CLOUD2;
|
|
2526
|
+
const protocol = secure ? "https" : "http";
|
|
2527
|
+
const videoUrl = `
|
|
2528
|
+
${protocol}://res.cloudinary.com/
|
|
2529
|
+
${resolvedCloudName}
|
|
2530
|
+
/video/upload/
|
|
2531
|
+
${publicId}.mp4
|
|
2532
|
+
`.replace(/\s+/g, "");
|
|
2533
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2534
|
+
"video",
|
|
2535
|
+
{
|
|
2536
|
+
...rest,
|
|
2537
|
+
controls,
|
|
2538
|
+
autoPlay,
|
|
2539
|
+
muted,
|
|
2540
|
+
loop,
|
|
2541
|
+
playsInline,
|
|
2542
|
+
poster,
|
|
2543
|
+
preload,
|
|
2544
|
+
className: cn(className),
|
|
2545
|
+
children: [
|
|
2546
|
+
/* @__PURE__ */ jsxRuntime.jsx("source", { src: videoUrl, type: "video/mp4" }),
|
|
2547
|
+
"Your browser does not support the video tag."
|
|
2548
|
+
]
|
|
2549
|
+
}
|
|
2550
|
+
);
|
|
2279
2551
|
}
|
|
2280
2552
|
var CloudinaryVideo_default = CloudinaryVideo;
|
|
2281
2553
|
var FormObserver = ({ formik, onChange }) => {
|
|
@@ -2347,7 +2619,7 @@ var Form = ({
|
|
|
2347
2619
|
/* @__PURE__ */ jsxRuntime.jsx(UnsavedChangesGuard_default, { formik: formik$1, enabled: warnOnUnsavedChanges }),
|
|
2348
2620
|
/* @__PURE__ */ jsxRuntime.jsx(DirtyObserver_default, { formik: formik$1, onDirtyChange }),
|
|
2349
2621
|
/* @__PURE__ */ jsxRuntime.jsx(FormObserver_default, { formik: formik$1, onChange }),
|
|
2350
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2622
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames17__default.default(styles), children })
|
|
2351
2623
|
] })
|
|
2352
2624
|
}
|
|
2353
2625
|
);
|
|
@@ -2356,7 +2628,7 @@ var Backdrop = ({ children, styles }) => {
|
|
|
2356
2628
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2357
2629
|
"div",
|
|
2358
2630
|
{
|
|
2359
|
-
className:
|
|
2631
|
+
className: classNames17__default.default({
|
|
2360
2632
|
"bg-black/75 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden": true,
|
|
2361
2633
|
[`${styles}`]: styles
|
|
2362
2634
|
}),
|
|
@@ -2467,7 +2739,7 @@ function FormResponse({
|
|
|
2467
2739
|
return /* @__PURE__ */ jsxRuntime.jsx(Transition4.TransitionDropdown, { visibility: text ? true : false, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2468
2740
|
"div",
|
|
2469
2741
|
{
|
|
2470
|
-
className:
|
|
2742
|
+
className: classNames17__default.default({
|
|
2471
2743
|
"font-poppins font-light text-sm": true,
|
|
2472
2744
|
[`${variantsLite[variant]}`]: variant,
|
|
2473
2745
|
[`${shapes[shape]}`]: shape,
|
|
@@ -2483,18 +2755,31 @@ var getYoutubeEmbedUrl = (url) => {
|
|
|
2483
2755
|
const videoIdMatch = url.match(
|
|
2484
2756
|
/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/
|
|
2485
2757
|
);
|
|
2486
|
-
|
|
2758
|
+
if (!videoIdMatch) {
|
|
2759
|
+
return "";
|
|
2760
|
+
}
|
|
2761
|
+
return `https://www.youtube.com/embed/${videoIdMatch[1]}`;
|
|
2487
2762
|
};
|
|
2488
|
-
function
|
|
2763
|
+
function YoutubeVideo({
|
|
2489
2764
|
videoUrl,
|
|
2490
2765
|
width = 750,
|
|
2491
|
-
height = 422
|
|
2766
|
+
height = 422,
|
|
2767
|
+
autoPlay = false,
|
|
2768
|
+
muted = false,
|
|
2769
|
+
controls = true,
|
|
2770
|
+
className,
|
|
2771
|
+
...rest
|
|
2492
2772
|
}) {
|
|
2493
2773
|
const embedUrl = getYoutubeEmbedUrl(videoUrl);
|
|
2494
2774
|
if (!embedUrl) {
|
|
2495
2775
|
return /* @__PURE__ */ jsxRuntime.jsx(FormResponse_default, { text: "Invalid YouTube URL", variant: "danger" });
|
|
2496
2776
|
}
|
|
2497
|
-
|
|
2777
|
+
const params = new URLSearchParams({
|
|
2778
|
+
autoplay: autoPlay ? "1" : "0",
|
|
2779
|
+
mute: muted ? "1" : "0",
|
|
2780
|
+
controls: controls ? "1" : "0"
|
|
2781
|
+
});
|
|
2782
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center w-full", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2498
2783
|
"div",
|
|
2499
2784
|
{
|
|
2500
2785
|
className: "relative w-full",
|
|
@@ -2505,17 +2790,124 @@ function YoutubeVideoPlayer({
|
|
|
2505
2790
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2506
2791
|
"iframe",
|
|
2507
2792
|
{
|
|
2508
|
-
|
|
2793
|
+
...rest,
|
|
2794
|
+
src: `${embedUrl}?${params.toString()}`,
|
|
2509
2795
|
title: "YouTube video player",
|
|
2796
|
+
loading: "lazy",
|
|
2510
2797
|
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
2511
2798
|
allowFullScreen: true,
|
|
2512
|
-
className:
|
|
2799
|
+
className: cn(
|
|
2800
|
+
"absolute top-0 left-0 w-full h-full rounded-xl shadow-xl border-0",
|
|
2801
|
+
className
|
|
2802
|
+
)
|
|
2513
2803
|
}
|
|
2514
2804
|
)
|
|
2515
2805
|
}
|
|
2516
2806
|
) });
|
|
2517
2807
|
}
|
|
2518
|
-
var
|
|
2808
|
+
var YoutubeVideo_default = YoutubeVideo;
|
|
2809
|
+
var ThemeContext = React4.createContext(
|
|
2810
|
+
void 0
|
|
2811
|
+
);
|
|
2812
|
+
var ThemeProvider = ({
|
|
2813
|
+
defaultTheme = "dark",
|
|
2814
|
+
children
|
|
2815
|
+
}) => {
|
|
2816
|
+
const [theme, setTheme] = React4.useState(() => {
|
|
2817
|
+
return localStorage.getItem("theme") || defaultTheme;
|
|
2818
|
+
});
|
|
2819
|
+
React4.useEffect(() => {
|
|
2820
|
+
if (theme === "dark") {
|
|
2821
|
+
document.documentElement.classList.add("dark");
|
|
2822
|
+
} else {
|
|
2823
|
+
document.documentElement.classList.remove("dark");
|
|
2824
|
+
}
|
|
2825
|
+
localStorage.setItem("theme", theme);
|
|
2826
|
+
}, [theme]);
|
|
2827
|
+
const toggleTheme = () => {
|
|
2828
|
+
setTheme((prev) => prev === "dark" ? "light" : "dark");
|
|
2829
|
+
};
|
|
2830
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ThemeContext.Provider, { value: { theme, setTheme, toggleTheme }, children });
|
|
2831
|
+
};
|
|
2832
|
+
var ThemeSwitch = () => {
|
|
2833
|
+
const themeContext = React4.useContext(ThemeContext);
|
|
2834
|
+
if (!themeContext) return null;
|
|
2835
|
+
const { theme, toggleTheme } = themeContext;
|
|
2836
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2837
|
+
"button",
|
|
2838
|
+
{
|
|
2839
|
+
onClick: toggleTheme,
|
|
2840
|
+
className: "relative w-16 h-8 flex items-center bg-gray-300 dark:bg-gray-800 rounded-full p-1 transition-all",
|
|
2841
|
+
children: [
|
|
2842
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2843
|
+
fa.FaSun,
|
|
2844
|
+
{
|
|
2845
|
+
className: "absolute left-2 text-yellow-500 transition-opacity duration-300 z-10",
|
|
2846
|
+
style: { opacity: theme === "dark" ? 0 : 1 }
|
|
2847
|
+
}
|
|
2848
|
+
),
|
|
2849
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2850
|
+
fa.FaMoon,
|
|
2851
|
+
{
|
|
2852
|
+
className: "absolute right-2 text-blue-400 transition-opacity duration-300 z-10",
|
|
2853
|
+
style: { opacity: theme === "dark" ? 1 : 0 }
|
|
2854
|
+
}
|
|
2855
|
+
),
|
|
2856
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2857
|
+
"div",
|
|
2858
|
+
{
|
|
2859
|
+
className: classNames17__default.default(
|
|
2860
|
+
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
2861
|
+
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
2862
|
+
)
|
|
2863
|
+
}
|
|
2864
|
+
)
|
|
2865
|
+
]
|
|
2866
|
+
}
|
|
2867
|
+
);
|
|
2868
|
+
};
|
|
2869
|
+
|
|
2870
|
+
// src/data/enums.ts
|
|
2871
|
+
var Shape = /* @__PURE__ */ ((Shape2) => {
|
|
2872
|
+
Shape2["circle"] = "circle";
|
|
2873
|
+
Shape2["roundedSquare"] = "roundedSquare";
|
|
2874
|
+
Shape2["softRoundedSquare"] = "softRoundedSquare";
|
|
2875
|
+
Shape2["square"] = "square";
|
|
2876
|
+
return Shape2;
|
|
2877
|
+
})(Shape || {});
|
|
2878
|
+
var ShapeSwitch = () => {
|
|
2879
|
+
const { config, setConfig } = useEUIConfig();
|
|
2880
|
+
const currentShape = config.global?.shape ?? "square";
|
|
2881
|
+
const handleChange = (e) => {
|
|
2882
|
+
const shape = e.target.value;
|
|
2883
|
+
setConfig((prev) => ({
|
|
2884
|
+
...prev,
|
|
2885
|
+
global: {
|
|
2886
|
+
...prev.global,
|
|
2887
|
+
shape
|
|
2888
|
+
}
|
|
2889
|
+
}));
|
|
2890
|
+
};
|
|
2891
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-1 w-fit", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2892
|
+
"select",
|
|
2893
|
+
{
|
|
2894
|
+
value: currentShape,
|
|
2895
|
+
onChange: handleChange,
|
|
2896
|
+
className: "\n px-3 py-2 rounded-md border border-gray-300\n bg-white dark:bg-gray-800\n text-sm shadow-sm\n focus:outline-none\n ",
|
|
2897
|
+
children: Object.keys(Shape).map((shape) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: shape, children: shape }, shape))
|
|
2898
|
+
}
|
|
2899
|
+
) });
|
|
2900
|
+
};
|
|
2901
|
+
|
|
2902
|
+
// src/hooks/theme/useCurrentTheme.ts
|
|
2903
|
+
var useCurrentTheme = () => {
|
|
2904
|
+
const context = React4.useContext(ThemeContext);
|
|
2905
|
+
if (!context) {
|
|
2906
|
+
throw new Error("useCurrentTheme must be used within a ThemeProvider");
|
|
2907
|
+
}
|
|
2908
|
+
return context.theme;
|
|
2909
|
+
};
|
|
2910
|
+
var useCurrentTheme_default = useCurrentTheme;
|
|
2519
2911
|
var COUNTRY_NAMES = {
|
|
2520
2912
|
AF: "Afghanistan",
|
|
2521
2913
|
AL: "Albania",
|
|
@@ -13825,108 +14217,6 @@ var worldMapTopoJSONContries100m = {
|
|
|
13825
14217
|
translate: [-180, -85.60903777459771]
|
|
13826
14218
|
}
|
|
13827
14219
|
};
|
|
13828
|
-
var ThemeContext = React4.createContext(
|
|
13829
|
-
void 0
|
|
13830
|
-
);
|
|
13831
|
-
var ThemeProvider = ({
|
|
13832
|
-
defaultTheme = "dark",
|
|
13833
|
-
children
|
|
13834
|
-
}) => {
|
|
13835
|
-
const [theme, setTheme] = React4.useState(() => {
|
|
13836
|
-
return localStorage.getItem("theme") || defaultTheme;
|
|
13837
|
-
});
|
|
13838
|
-
React4.useEffect(() => {
|
|
13839
|
-
if (theme === "dark") {
|
|
13840
|
-
document.documentElement.classList.add("dark");
|
|
13841
|
-
} else {
|
|
13842
|
-
document.documentElement.classList.remove("dark");
|
|
13843
|
-
}
|
|
13844
|
-
localStorage.setItem("theme", theme);
|
|
13845
|
-
}, [theme]);
|
|
13846
|
-
const toggleTheme = () => {
|
|
13847
|
-
setTheme((prev) => prev === "dark" ? "light" : "dark");
|
|
13848
|
-
};
|
|
13849
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ThemeContext.Provider, { value: { theme, setTheme, toggleTheme }, children });
|
|
13850
|
-
};
|
|
13851
|
-
var ThemeSwitch = () => {
|
|
13852
|
-
const themeContext = React4.useContext(ThemeContext);
|
|
13853
|
-
if (!themeContext) return null;
|
|
13854
|
-
const { theme, toggleTheme } = themeContext;
|
|
13855
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13856
|
-
"button",
|
|
13857
|
-
{
|
|
13858
|
-
onClick: toggleTheme,
|
|
13859
|
-
className: "relative w-16 h-8 flex items-center bg-gray-300 dark:bg-gray-800 rounded-full p-1 transition-all",
|
|
13860
|
-
children: [
|
|
13861
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13862
|
-
fa.FaSun,
|
|
13863
|
-
{
|
|
13864
|
-
className: "absolute left-2 text-yellow-500 transition-opacity duration-300 z-10",
|
|
13865
|
-
style: { opacity: theme === "dark" ? 0 : 1 }
|
|
13866
|
-
}
|
|
13867
|
-
),
|
|
13868
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13869
|
-
fa.FaMoon,
|
|
13870
|
-
{
|
|
13871
|
-
className: "absolute right-2 text-blue-400 transition-opacity duration-300 z-10",
|
|
13872
|
-
style: { opacity: theme === "dark" ? 1 : 0 }
|
|
13873
|
-
}
|
|
13874
|
-
),
|
|
13875
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13876
|
-
"div",
|
|
13877
|
-
{
|
|
13878
|
-
className: classNames24__default.default(
|
|
13879
|
-
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
13880
|
-
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
13881
|
-
)
|
|
13882
|
-
}
|
|
13883
|
-
)
|
|
13884
|
-
]
|
|
13885
|
-
}
|
|
13886
|
-
);
|
|
13887
|
-
};
|
|
13888
|
-
|
|
13889
|
-
// src/data/enums.ts
|
|
13890
|
-
var Shape = /* @__PURE__ */ ((Shape2) => {
|
|
13891
|
-
Shape2["circle"] = "circle";
|
|
13892
|
-
Shape2["roundedSquare"] = "roundedSquare";
|
|
13893
|
-
Shape2["softRoundedSquare"] = "softRoundedSquare";
|
|
13894
|
-
Shape2["square"] = "square";
|
|
13895
|
-
return Shape2;
|
|
13896
|
-
})(Shape || {});
|
|
13897
|
-
var ShapeSwitch = () => {
|
|
13898
|
-
const { config, setConfig } = useEUIConfig();
|
|
13899
|
-
const currentShape = config.global?.shape ?? "square";
|
|
13900
|
-
const handleChange = (e) => {
|
|
13901
|
-
const shape = e.target.value;
|
|
13902
|
-
setConfig((prev) => ({
|
|
13903
|
-
...prev,
|
|
13904
|
-
global: {
|
|
13905
|
-
...prev.global,
|
|
13906
|
-
shape
|
|
13907
|
-
}
|
|
13908
|
-
}));
|
|
13909
|
-
};
|
|
13910
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-1 w-fit", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13911
|
-
"select",
|
|
13912
|
-
{
|
|
13913
|
-
value: currentShape,
|
|
13914
|
-
onChange: handleChange,
|
|
13915
|
-
className: "\n px-3 py-2 rounded-md border border-gray-300\n bg-white dark:bg-gray-800\n text-sm shadow-sm\n focus:outline-none\n ",
|
|
13916
|
-
children: Object.keys(Shape).map((shape) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: shape, children: shape }, shape))
|
|
13917
|
-
}
|
|
13918
|
-
) });
|
|
13919
|
-
};
|
|
13920
|
-
|
|
13921
|
-
// src/hooks/theme/useCurrentTheme.ts
|
|
13922
|
-
var useCurrentTheme = () => {
|
|
13923
|
-
const context = React4.useContext(ThemeContext);
|
|
13924
|
-
if (!context) {
|
|
13925
|
-
throw new Error("useCurrentTheme must be used within a ThemeProvider");
|
|
13926
|
-
}
|
|
13927
|
-
return context.theme;
|
|
13928
|
-
};
|
|
13929
|
-
var useCurrentTheme_default = useCurrentTheme;
|
|
13930
14220
|
function WorldMap({
|
|
13931
14221
|
data,
|
|
13932
14222
|
title = "Global Data Overview",
|
|
@@ -13934,9 +14224,10 @@ function WorldMap({
|
|
|
13934
14224
|
bubbleStroke = "stroke-teal-900",
|
|
13935
14225
|
bubbleScale = 40,
|
|
13936
14226
|
minBubble = 6,
|
|
13937
|
-
styles,
|
|
13938
14227
|
disableCountryHover = true,
|
|
13939
|
-
disableCountrySelect = true
|
|
14228
|
+
disableCountrySelect = true,
|
|
14229
|
+
className,
|
|
14230
|
+
...rest
|
|
13940
14231
|
}) {
|
|
13941
14232
|
const currentTheme = useCurrentTheme_default();
|
|
13942
14233
|
const isDarkMode = currentTheme === "dark";
|
|
@@ -13980,60 +14271,52 @@ function WorldMap({
|
|
|
13980
14271
|
setShowTooltip(true);
|
|
13981
14272
|
};
|
|
13982
14273
|
const hideTooltip = () => setShowTooltip(false);
|
|
13983
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13984
|
-
"
|
|
13985
|
-
{
|
|
13986
|
-
|
|
13987
|
-
|
|
13988
|
-
|
|
13989
|
-
|
|
13990
|
-
|
|
13991
|
-
|
|
13992
|
-
|
|
13993
|
-
{
|
|
13994
|
-
|
|
13995
|
-
|
|
13996
|
-
|
|
13997
|
-
|
|
13998
|
-
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
geography: geo,
|
|
14003
|
-
style: {
|
|
14004
|
-
default: {
|
|
14005
|
-
...mode.default,
|
|
14006
|
-
strokeWidth: 0.5,
|
|
14007
|
-
pointerEvents: disableCountryHover && disableCountrySelect ? "none" : "auto"
|
|
14008
|
-
},
|
|
14009
|
-
hover: disableCountryHover ? { ...mode.default, pointerEvents: "none" } : mode.hover,
|
|
14010
|
-
pressed: disableCountrySelect ? { ...mode.default, pointerEvents: "none" } : mode.pressed
|
|
14011
|
-
}
|
|
14274
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ...rest, className: cn(className), children: [
|
|
14275
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl font-semibold mb-4", children: title }),
|
|
14276
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full aspect-[2/1]", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14277
|
+
reactSimpleMaps.ComposableMap,
|
|
14278
|
+
{
|
|
14279
|
+
projectionConfig: { scale: 140 },
|
|
14280
|
+
width: 800,
|
|
14281
|
+
height: 400,
|
|
14282
|
+
style: { width: "100%", height: "100%" },
|
|
14283
|
+
children: [
|
|
14284
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactSimpleMaps.Geographies, { geography: worldMapTopoJSONContries100m, children: ({ geographies }) => geographies.map((geo) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
14285
|
+
reactSimpleMaps.Geography,
|
|
14286
|
+
{
|
|
14287
|
+
geography: geo,
|
|
14288
|
+
style: {
|
|
14289
|
+
default: {
|
|
14290
|
+
...mode.default,
|
|
14291
|
+
strokeWidth: 0.5,
|
|
14292
|
+
pointerEvents: disableCountryHover && disableCountrySelect ? "none" : "auto"
|
|
14012
14293
|
},
|
|
14013
|
-
|
|
14014
|
-
|
|
14015
|
-
|
|
14016
|
-
|
|
14017
|
-
|
|
14018
|
-
|
|
14019
|
-
|
|
14020
|
-
|
|
14021
|
-
|
|
14022
|
-
|
|
14023
|
-
|
|
14024
|
-
|
|
14025
|
-
|
|
14026
|
-
|
|
14027
|
-
|
|
14028
|
-
|
|
14029
|
-
|
|
14030
|
-
|
|
14031
|
-
|
|
14032
|
-
|
|
14033
|
-
|
|
14034
|
-
|
|
14035
|
-
|
|
14036
|
-
|
|
14294
|
+
hover: disableCountryHover ? { ...mode.default, pointerEvents: "none" } : mode.hover,
|
|
14295
|
+
pressed: disableCountrySelect ? { ...mode.default, pointerEvents: "none" } : mode.pressed
|
|
14296
|
+
}
|
|
14297
|
+
},
|
|
14298
|
+
geo.rsmKey
|
|
14299
|
+
)) }),
|
|
14300
|
+
resolvedData.map((point, index) => {
|
|
14301
|
+
const size = point.value / maxValue * bubbleScale + minBubble;
|
|
14302
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactSimpleMaps.Marker, { coordinates: point.coordinates, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14303
|
+
framerMotion.motion.circle,
|
|
14304
|
+
{
|
|
14305
|
+
r: size,
|
|
14306
|
+
initial: { opacity: 0, scale: 0 },
|
|
14307
|
+
animate: { opacity: 0.6, scale: 1 },
|
|
14308
|
+
transition: { duration: 0.5 },
|
|
14309
|
+
className: `${bubbleColor} ${bubbleStroke} stroke-1 cursor-pointer`,
|
|
14310
|
+
onMouseMove: (e) => handleMouseMove(e, point),
|
|
14311
|
+
onMouseLeave: hideTooltip
|
|
14312
|
+
}
|
|
14313
|
+
) }, index);
|
|
14314
|
+
})
|
|
14315
|
+
]
|
|
14316
|
+
}
|
|
14317
|
+
) }),
|
|
14318
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tooltip4, { show: showTooltip, children: tooltipContent })
|
|
14319
|
+
] });
|
|
14037
14320
|
}
|
|
14038
14321
|
var sizes3 = {
|
|
14039
14322
|
xs: "px-2 py-1 text-xs",
|
|
@@ -14077,7 +14360,7 @@ var Button = ({
|
|
|
14077
14360
|
onClick,
|
|
14078
14361
|
onMouseMove: handleMouseMove,
|
|
14079
14362
|
disabled: disabled || loading,
|
|
14080
|
-
className:
|
|
14363
|
+
className: classNames17__default.default({
|
|
14081
14364
|
"relative z-0 overflow-hidden group": true,
|
|
14082
14365
|
"flex flex-row items-center justify-center gap-2": true,
|
|
14083
14366
|
[`${variants[variant]}`]: !ghost,
|
|
@@ -14123,7 +14406,7 @@ function InputResponse({
|
|
|
14123
14406
|
return /* @__PURE__ */ jsxRuntime.jsx(Transition4.TransitionDropdown, { visibility, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14124
14407
|
"div",
|
|
14125
14408
|
{
|
|
14126
|
-
className:
|
|
14409
|
+
className: classNames17__default.default({
|
|
14127
14410
|
"font-medium text-sm py-1 px-2": true,
|
|
14128
14411
|
[`${textVariants[variant]}`]: variant,
|
|
14129
14412
|
"transition-all ease-in-out": true,
|
|
@@ -14138,7 +14421,7 @@ function InputLabel({ text, children, styles }) {
|
|
|
14138
14421
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14139
14422
|
"label",
|
|
14140
14423
|
{
|
|
14141
|
-
className:
|
|
14424
|
+
className: classNames17__default.default({
|
|
14142
14425
|
"px-0 eui-text-sm text-[13.5px] pointer-events-none select-none": true,
|
|
14143
14426
|
"transition-all ease-in-out": true,
|
|
14144
14427
|
[`${styles}`]: styles
|
|
@@ -14190,7 +14473,7 @@ var Input = ({
|
|
|
14190
14473
|
...field,
|
|
14191
14474
|
...props,
|
|
14192
14475
|
placeholder,
|
|
14193
|
-
className:
|
|
14476
|
+
className: classNames17__default.default({
|
|
14194
14477
|
"border peer w-full bg-eui-primary-300/10 pt-5 px-3 pb-2 text-md eui-text-md placeholder-transparent placeholder-shown:p-3 focus:outline-none h-[50px]": true,
|
|
14195
14478
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
14196
14479
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
@@ -14235,7 +14518,7 @@ var InputFile = ({
|
|
|
14235
14518
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14236
14519
|
"div",
|
|
14237
14520
|
{
|
|
14238
|
-
className:
|
|
14521
|
+
className: classNames17__default.default(
|
|
14239
14522
|
"border rounded-sm bg-eui-primary-300/10 px-3 pt-3 text-md text-eui-dark-100 cursor-pointer h-[50px] flex items-center",
|
|
14240
14523
|
{
|
|
14241
14524
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -14261,7 +14544,7 @@ var InputFile = ({
|
|
|
14261
14544
|
InputLabel_default,
|
|
14262
14545
|
{
|
|
14263
14546
|
text: placeholder,
|
|
14264
|
-
styles:
|
|
14547
|
+
styles: classNames17__default.default({
|
|
14265
14548
|
"absolute left-2 eui-text-sm peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none": true,
|
|
14266
14549
|
"top-[0.7px]": showFloatingLabel,
|
|
14267
14550
|
"top-[13px] text-base": !showFloatingLabel
|
|
@@ -14287,7 +14570,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
14287
14570
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsxRuntime.jsx(formik.FieldArray, { name, children: ({ push, remove, move }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14288
14571
|
"div",
|
|
14289
14572
|
{
|
|
14290
|
-
className:
|
|
14573
|
+
className: classNames17__default.default({
|
|
14291
14574
|
"flex flex-col space-y-2 w-full bg-eui-primary-300/10": true,
|
|
14292
14575
|
[`${shapes[resolvedShape]}`]: true
|
|
14293
14576
|
}),
|
|
@@ -14318,7 +14601,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
14318
14601
|
{
|
|
14319
14602
|
name: `${name}[${index}]`,
|
|
14320
14603
|
placeholder: `Item ${index + 1}`,
|
|
14321
|
-
className:
|
|
14604
|
+
className: classNames17__default.default(
|
|
14322
14605
|
"border peer w-full bg-eui-primary-300/10 pt-5 px-3 pb-2 text-md eui-text-md placeholder-transparent placeholder-shown:p-3 focus:outline-none h-[50px]",
|
|
14323
14606
|
[`${shapes[resolvedShape]}`],
|
|
14324
14607
|
errors[name]?.[index] ? "border-eui-danger-500" : "border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -14386,7 +14669,7 @@ var InputListGroup = ({
|
|
|
14386
14669
|
values[name]?.map((group, groupIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14387
14670
|
"div",
|
|
14388
14671
|
{
|
|
14389
|
-
className:
|
|
14672
|
+
className: classNames17__default.default({
|
|
14390
14673
|
"flex flex-col gap-2 bg-eui-primary-300/10 p-3": true,
|
|
14391
14674
|
[`${shapes[resolvedShape]}`]: true
|
|
14392
14675
|
}),
|
|
@@ -14398,7 +14681,7 @@ var InputListGroup = ({
|
|
|
14398
14681
|
{
|
|
14399
14682
|
name: `${name}[${groupIndex}].name`,
|
|
14400
14683
|
placeholder: `Group ${groupIndex + 1}`,
|
|
14401
|
-
className:
|
|
14684
|
+
className: classNames17__default.default(
|
|
14402
14685
|
"border w-full bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none h-[40px]",
|
|
14403
14686
|
[`${shapes[resolvedShape]}`],
|
|
14404
14687
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -14440,7 +14723,7 @@ var InputListGroup = ({
|
|
|
14440
14723
|
{
|
|
14441
14724
|
ref: provided.innerRef,
|
|
14442
14725
|
...provided.droppableProps,
|
|
14443
|
-
className:
|
|
14726
|
+
className: classNames17__default.default({
|
|
14444
14727
|
"space-y-2 bg-eui-primary-300/10 p-2": true,
|
|
14445
14728
|
[`${shapes[resolvedShape]}`]: true
|
|
14446
14729
|
}),
|
|
@@ -14455,7 +14738,7 @@ var InputListGroup = ({
|
|
|
14455
14738
|
{
|
|
14456
14739
|
ref: provided2.innerRef,
|
|
14457
14740
|
...provided2.draggableProps,
|
|
14458
|
-
className:
|
|
14741
|
+
className: classNames17__default.default({
|
|
14459
14742
|
"flex items-center gap-2 bg-eui-primary-300/10 p-2": true,
|
|
14460
14743
|
[`${shapes[resolvedShape]}`]: true
|
|
14461
14744
|
}),
|
|
@@ -14466,7 +14749,7 @@ var InputListGroup = ({
|
|
|
14466
14749
|
{
|
|
14467
14750
|
name: `${name}[${groupIndex}].items[${itemIndex}]`,
|
|
14468
14751
|
placeholder: `Item ${itemIndex + 1}`,
|
|
14469
|
-
className:
|
|
14752
|
+
className: classNames17__default.default(
|
|
14470
14753
|
"border w-full bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none h-[40px]",
|
|
14471
14754
|
[`${shapes[resolvedShape]}`],
|
|
14472
14755
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -14543,7 +14826,7 @@ var Checkbox = (props) => {
|
|
|
14543
14826
|
const { placeholder } = props;
|
|
14544
14827
|
const isMulti = isMultiCheckbox(props);
|
|
14545
14828
|
const [field, meta, helpers] = isMulti ? formik.useField(props) : formik.useField(props);
|
|
14546
|
-
const checkboxClass =
|
|
14829
|
+
const checkboxClass = classNames17__default.default(
|
|
14547
14830
|
"appearance-none cursor-pointer transition-all duration-300",
|
|
14548
14831
|
"w-5 h-5 min-w-[1.25rem] min-h-[1.25rem]",
|
|
14549
14832
|
"flex-shrink-0",
|
|
@@ -14644,7 +14927,7 @@ var DateSelector = ({
|
|
|
14644
14927
|
...field,
|
|
14645
14928
|
...props,
|
|
14646
14929
|
placeholder,
|
|
14647
|
-
className:
|
|
14930
|
+
className: classNames17__default.default({
|
|
14648
14931
|
"border border-eui-primary-400 peer w-full bg-eui-primary-300/10 pt-5 px-3 pb-2 text-md eui-text-md placeholder-transparent placeholder-shown:p-3 focus:border-eui-secondary-500 focus:outline-none h-[50px]": true,
|
|
14649
14932
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
14650
14933
|
"transition-all ease-in-out": true,
|
|
@@ -14753,7 +15036,7 @@ var ImageInput = React4.forwardRef(
|
|
|
14753
15036
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14754
15037
|
"label",
|
|
14755
15038
|
{
|
|
14756
|
-
className:
|
|
15039
|
+
className: classNames17__default.default({
|
|
14757
15040
|
"border-2 border-dashed border-gray-700 bg-gray-900 h-[200px] w-[300px] flex flex-col gap-2 items-center justify-center group": true,
|
|
14758
15041
|
"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
|
|
14759
15042
|
"transition-all ease-in-out duration-150": true
|
|
@@ -14870,7 +15153,7 @@ function Radio({
|
|
|
14870
15153
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14871
15154
|
"div",
|
|
14872
15155
|
{
|
|
14873
|
-
className:
|
|
15156
|
+
className: classNames17__default.default({
|
|
14874
15157
|
"flex flex-row gap-2 items-center mx-1 my-2": true
|
|
14875
15158
|
}),
|
|
14876
15159
|
children: [
|
|
@@ -14883,7 +15166,7 @@ function Radio({
|
|
|
14883
15166
|
...props,
|
|
14884
15167
|
value: option.value,
|
|
14885
15168
|
checked: field2.value === option.value,
|
|
14886
|
-
className:
|
|
15169
|
+
className: classNames17__default.default({
|
|
14887
15170
|
"appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
|
|
14888
15171
|
// base radio button styles
|
|
14889
15172
|
"checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
|
|
@@ -14895,7 +15178,7 @@ function Radio({
|
|
|
14895
15178
|
"label",
|
|
14896
15179
|
{
|
|
14897
15180
|
htmlFor: option.value,
|
|
14898
|
-
className:
|
|
15181
|
+
className: classNames17__default.default({
|
|
14899
15182
|
"eui-text-md text-sm": true
|
|
14900
15183
|
}),
|
|
14901
15184
|
children: option.label
|
|
@@ -14938,7 +15221,7 @@ function StarRatingInput({
|
|
|
14938
15221
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14939
15222
|
"div",
|
|
14940
15223
|
{
|
|
14941
|
-
className:
|
|
15224
|
+
className: classNames17__default.default({
|
|
14942
15225
|
"inline-flex gap-[4px] text-[20px]": true,
|
|
14943
15226
|
[`${styles}`]: styles
|
|
14944
15227
|
}),
|
|
@@ -14951,7 +15234,7 @@ function StarRatingInput({
|
|
|
14951
15234
|
onClick: () => handleOnClick(index),
|
|
14952
15235
|
onMouseEnter: () => setHover(index),
|
|
14953
15236
|
onMouseLeave: () => setHover(null),
|
|
14954
|
-
className:
|
|
15237
|
+
className: classNames17__default.default({
|
|
14955
15238
|
"text-yellow-600": index <= (hover ?? rating - 1),
|
|
14956
15239
|
"text-gray-400": index > (hover ?? rating - 1)
|
|
14957
15240
|
}),
|
|
@@ -14995,7 +15278,7 @@ function Select({
|
|
|
14995
15278
|
{
|
|
14996
15279
|
as: "select",
|
|
14997
15280
|
...props,
|
|
14998
|
-
className:
|
|
15281
|
+
className: classNames17__default.default({
|
|
14999
15282
|
"border peer w-full bg-eui-primary-300/10 pt-5 px-3 pb-2 text-md eui-text-md placeholder-transparent placeholder-shown:p-3 focus:border-eui-secondary-500 focus:outline-none h-[50px]": true,
|
|
15000
15283
|
"border-eui-primary-400": !(meta.touched && meta.error),
|
|
15001
15284
|
"border-red-500": meta.touched && meta.error,
|
|
@@ -15047,7 +15330,7 @@ function Switch({
|
|
|
15047
15330
|
"div",
|
|
15048
15331
|
{
|
|
15049
15332
|
onClick: () => helpers.setValue(!field.value),
|
|
15050
|
-
className:
|
|
15333
|
+
className: classNames17__default.default(
|
|
15051
15334
|
"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
|
|
15052
15335
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
15053
15336
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
|
|
@@ -15104,7 +15387,7 @@ function Tags({
|
|
|
15104
15387
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
15105
15388
|
"div",
|
|
15106
15389
|
{
|
|
15107
|
-
className:
|
|
15390
|
+
className: classNames17__default.default(
|
|
15108
15391
|
"border rounded-sm flex flex-wrap items-center gap-2 px-2 pt-2 pb-6 min-h-[3rem]",
|
|
15109
15392
|
{
|
|
15110
15393
|
"bg-eui-primary-300/10 eui-text-md": true,
|
|
@@ -15152,7 +15435,7 @@ function Tags({
|
|
|
15152
15435
|
InputLabel_default,
|
|
15153
15436
|
{
|
|
15154
15437
|
text: placeholder,
|
|
15155
|
-
styles:
|
|
15438
|
+
styles: classNames17__default.default(
|
|
15156
15439
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
15157
15440
|
input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
15158
15441
|
)
|
|
@@ -15193,7 +15476,7 @@ function TextArea({
|
|
|
15193
15476
|
as: "textarea",
|
|
15194
15477
|
...field,
|
|
15195
15478
|
...props,
|
|
15196
|
-
className:
|
|
15479
|
+
className: classNames17__default.default({
|
|
15197
15480
|
"border peer w-full bg-eui-primary-300/10 eui-text-md outline-none px-3 py-5 resize-none focus:resize-none focus:outline-none": true,
|
|
15198
15481
|
"transition-all ease-in-out": true,
|
|
15199
15482
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -15207,7 +15490,7 @@ function TextArea({
|
|
|
15207
15490
|
InputLabel_default,
|
|
15208
15491
|
{
|
|
15209
15492
|
text: placeholder,
|
|
15210
|
-
styles:
|
|
15493
|
+
styles: classNames17__default.default(
|
|
15211
15494
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
15212
15495
|
field.value ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
15213
15496
|
)
|
|
@@ -15238,7 +15521,7 @@ function ContentArea({
|
|
|
15238
15521
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15239
15522
|
"div",
|
|
15240
15523
|
{
|
|
15241
|
-
className:
|
|
15524
|
+
className: classNames17__default.default({
|
|
15242
15525
|
"min-h-screen h-full w-full py-3 px-5": true,
|
|
15243
15526
|
"py-3 px-5": !enablePadding,
|
|
15244
15527
|
"py-3 px-5 lg:px-[150px]": enablePadding,
|
|
@@ -15254,7 +15537,7 @@ function FlexCol({ children, gap = 3, styles }) {
|
|
|
15254
15537
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15255
15538
|
"div",
|
|
15256
15539
|
{
|
|
15257
|
-
className:
|
|
15540
|
+
className: classNames17__default.default({
|
|
15258
15541
|
[`flex flex-col gap-${gap}`]: true,
|
|
15259
15542
|
[`${styles}`]: styles
|
|
15260
15543
|
}),
|
|
@@ -15267,7 +15550,7 @@ function FlexRow({ children, gap = 3, styles }) {
|
|
|
15267
15550
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15268
15551
|
"div",
|
|
15269
15552
|
{
|
|
15270
|
-
className:
|
|
15553
|
+
className: classNames17__default.default({
|
|
15271
15554
|
[`flex flex-row gap-${gap}`]: true,
|
|
15272
15555
|
[`${styles}`]: styles
|
|
15273
15556
|
}),
|
|
@@ -15286,7 +15569,7 @@ function Grid({ children, styles }) {
|
|
|
15286
15569
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15287
15570
|
"div",
|
|
15288
15571
|
{
|
|
15289
|
-
className:
|
|
15572
|
+
className: classNames17__default.default({
|
|
15290
15573
|
[`grid`]: true,
|
|
15291
15574
|
[`${styles}`]: styles
|
|
15292
15575
|
}),
|
|
@@ -15303,7 +15586,7 @@ var Layout = ({
|
|
|
15303
15586
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15304
15587
|
"div",
|
|
15305
15588
|
{
|
|
15306
|
-
className:
|
|
15589
|
+
className: classNames17__default.default({
|
|
15307
15590
|
// "flex h-full w-screen bg-gray-100 overflow-auto": true,
|
|
15308
15591
|
"flex bg-eui-light-600": true,
|
|
15309
15592
|
"flex-col": flexDirection === "vertical",
|
|
@@ -15322,7 +15605,7 @@ var Header = ({
|
|
|
15322
15605
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15323
15606
|
"div",
|
|
15324
15607
|
{
|
|
15325
|
-
className:
|
|
15608
|
+
className: classNames17__default.default({
|
|
15326
15609
|
static: position === "static",
|
|
15327
15610
|
fixed: position === "fixed",
|
|
15328
15611
|
sticky: position === "sticky",
|
|
@@ -15362,7 +15645,7 @@ var Content = ({
|
|
|
15362
15645
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15363
15646
|
"div",
|
|
15364
15647
|
{
|
|
15365
|
-
className:
|
|
15648
|
+
className: classNames17__default.default({
|
|
15366
15649
|
"w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
|
|
15367
15650
|
"md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
|
|
15368
15651
|
// Shift when sidebar is open (desktop)
|
|
@@ -15378,7 +15661,7 @@ var Footer = ({ children, styles }) => {
|
|
|
15378
15661
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15379
15662
|
"div",
|
|
15380
15663
|
{
|
|
15381
|
-
className:
|
|
15664
|
+
className: classNames17__default.default({
|
|
15382
15665
|
"bottom-0 w-full h-fit": true,
|
|
15383
15666
|
"border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
|
|
15384
15667
|
[`${styles}`]: styles
|
|
@@ -15466,7 +15749,7 @@ function MarkdownEditor({
|
|
|
15466
15749
|
const [field, meta, helpers] = formik.useField(props);
|
|
15467
15750
|
const { theme } = useTheme_default();
|
|
15468
15751
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
15469
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
15752
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames17__default.default(theme === "dark" ? "dark" : "", styles), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15470
15753
|
editor.MDXEditor,
|
|
15471
15754
|
{
|
|
15472
15755
|
markdown: field.value,
|
|
@@ -15569,7 +15852,7 @@ function MarkdownTOC({ title = "Table of Contents" }) {
|
|
|
15569
15852
|
"button",
|
|
15570
15853
|
{
|
|
15571
15854
|
onClick: () => scrollToHeading(heading.id),
|
|
15572
|
-
className:
|
|
15855
|
+
className: classNames17__default.default(
|
|
15573
15856
|
"block w-full text-left text-sm transition-all ease-in-out duration-150",
|
|
15574
15857
|
"hover:text-primary",
|
|
15575
15858
|
activeHeading === heading.id ? "text-primary font-semibold underline" : "text-gray-500 dark:text-gray-400"
|
|
@@ -15725,7 +16008,7 @@ function BreadcrumbItem({
|
|
|
15725
16008
|
{
|
|
15726
16009
|
href,
|
|
15727
16010
|
onClick,
|
|
15728
|
-
className:
|
|
16011
|
+
className: classNames17__default.default({
|
|
15729
16012
|
"text-lg font-semibold": true,
|
|
15730
16013
|
"text-gray-400 hover:text-gray-600 cursor-pointer": !active,
|
|
15731
16014
|
"text-eui-light-800": active,
|
|
@@ -15802,7 +16085,7 @@ var Breadcrumb = ({
|
|
|
15802
16085
|
index < resolvedData.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
15803
16086
|
"span",
|
|
15804
16087
|
{
|
|
15805
|
-
className:
|
|
16088
|
+
className: classNames17__default.default({
|
|
15806
16089
|
"text-lg font-semibold text-gray-500": true,
|
|
15807
16090
|
[`px-${gap}`]: gap
|
|
15808
16091
|
}),
|
|
@@ -15816,7 +16099,7 @@ var Breadcrumb = ({
|
|
|
15816
16099
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15817
16100
|
"div",
|
|
15818
16101
|
{
|
|
15819
|
-
className:
|
|
16102
|
+
className: classNames17__default.default({
|
|
15820
16103
|
"inline-flex": true,
|
|
15821
16104
|
[`${styles}`]: styles
|
|
15822
16105
|
}),
|
|
@@ -15846,7 +16129,7 @@ var Drawer = ({
|
|
|
15846
16129
|
{
|
|
15847
16130
|
show: visibility,
|
|
15848
16131
|
enter: "transform transition duration-200 ease-out",
|
|
15849
|
-
enterFrom:
|
|
16132
|
+
enterFrom: classNames17__default.default({
|
|
15850
16133
|
"-translate-x-full": side === "left",
|
|
15851
16134
|
"translate-x-full": side === "right",
|
|
15852
16135
|
"-translate-y-full": side === "top",
|
|
@@ -15855,7 +16138,7 @@ var Drawer = ({
|
|
|
15855
16138
|
enterTo: "translate-x-0 translate-y-0",
|
|
15856
16139
|
leave: "transform transition duration-200 ease-in",
|
|
15857
16140
|
leaveFrom: "translate-x-0 translate-y-0",
|
|
15858
|
-
leaveTo:
|
|
16141
|
+
leaveTo: classNames17__default.default({
|
|
15859
16142
|
"-translate-x-full": side === "left",
|
|
15860
16143
|
"translate-x-full": side === "right",
|
|
15861
16144
|
"-translate-y-full": side === "top",
|
|
@@ -15864,7 +16147,7 @@ var Drawer = ({
|
|
|
15864
16147
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15865
16148
|
"div",
|
|
15866
16149
|
{
|
|
15867
|
-
className:
|
|
16150
|
+
className: classNames17__default.default(
|
|
15868
16151
|
"fixed shadow-lg z-50",
|
|
15869
16152
|
{
|
|
15870
16153
|
"h-full w-[300px]": isHorizontal,
|
|
@@ -15896,7 +16179,7 @@ function DrawerToggler({
|
|
|
15896
16179
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15897
16180
|
"div",
|
|
15898
16181
|
{
|
|
15899
|
-
className:
|
|
16182
|
+
className: classNames17__default.default({
|
|
15900
16183
|
"text-xl p-3 cursor-pointer": true,
|
|
15901
16184
|
"transition-all ease-in-out": true,
|
|
15902
16185
|
"text-eui-dark-500 dark:text-eui-secondary-600": !styles,
|
|
@@ -15944,7 +16227,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
15944
16227
|
childrenContent = /* @__PURE__ */ jsxRuntime.jsx(
|
|
15945
16228
|
"div",
|
|
15946
16229
|
{
|
|
15947
|
-
className:
|
|
16230
|
+
className: classNames17__default.default({
|
|
15948
16231
|
"grid w-full": true,
|
|
15949
16232
|
"grid-cols-1": isMobile,
|
|
15950
16233
|
"grid-cols-3": !isMobile,
|
|
@@ -15957,7 +16240,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
15957
16240
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15958
16241
|
"div",
|
|
15959
16242
|
{
|
|
15960
|
-
className:
|
|
16243
|
+
className: classNames17__default.default({
|
|
15961
16244
|
[`${styles}`]: styles
|
|
15962
16245
|
}),
|
|
15963
16246
|
children: childrenContent
|
|
@@ -15998,7 +16281,7 @@ var FooterNavGroup = ({
|
|
|
15998
16281
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15999
16282
|
"div",
|
|
16000
16283
|
{
|
|
16001
|
-
className:
|
|
16284
|
+
className: classNames17__default.default({
|
|
16002
16285
|
"": true,
|
|
16003
16286
|
"py-2 font-semibold eui-text-lg": !styles,
|
|
16004
16287
|
[`${styles}`]: styles
|
|
@@ -16043,7 +16326,7 @@ var FooterNavItem = ({
|
|
|
16043
16326
|
"div",
|
|
16044
16327
|
{
|
|
16045
16328
|
onClick: handleNavigation,
|
|
16046
|
-
className:
|
|
16329
|
+
className: classNames17__default.default({
|
|
16047
16330
|
"flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
|
|
16048
16331
|
"transition-all duration-200 ease-in-out": true,
|
|
16049
16332
|
"text-sm eui-text-sm": !styles,
|
|
@@ -16072,7 +16355,7 @@ var FooterNavItemTitle = ({
|
|
|
16072
16355
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16073
16356
|
"div",
|
|
16074
16357
|
{
|
|
16075
|
-
className:
|
|
16358
|
+
className: classNames17__default.default({
|
|
16076
16359
|
"": true,
|
|
16077
16360
|
"py-2 font-thin eui-text-md": !styles,
|
|
16078
16361
|
[`${styles}`]: styles
|
|
@@ -16125,7 +16408,7 @@ function HeaderNav({ data = [], styles }) {
|
|
|
16125
16408
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16126
16409
|
"div",
|
|
16127
16410
|
{
|
|
16128
|
-
className:
|
|
16411
|
+
className: classNames17__default.default({
|
|
16129
16412
|
[`${styles}`]: styles
|
|
16130
16413
|
}),
|
|
16131
16414
|
children: childrenContent
|
|
@@ -16187,7 +16470,7 @@ var HeaderNavGroup = ({
|
|
|
16187
16470
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
16188
16471
|
"div",
|
|
16189
16472
|
{
|
|
16190
|
-
className:
|
|
16473
|
+
className: classNames17__default.default({
|
|
16191
16474
|
"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
|
|
16192
16475
|
"transition-all duration-300 ease-in-out": true,
|
|
16193
16476
|
"eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
|
|
@@ -16215,7 +16498,7 @@ var HeaderNavGroup = ({
|
|
|
16215
16498
|
children && /* @__PURE__ */ jsxRuntime.jsx(
|
|
16216
16499
|
bs.BsChevronDown,
|
|
16217
16500
|
{
|
|
16218
|
-
className:
|
|
16501
|
+
className: classNames17__default.default({
|
|
16219
16502
|
"text-md": true,
|
|
16220
16503
|
"transition-all ease-in-out duration-300": true,
|
|
16221
16504
|
"rotate-180": !collapsed
|
|
@@ -16228,7 +16511,7 @@ var HeaderNavGroup = ({
|
|
|
16228
16511
|
!collapsed && children && /* @__PURE__ */ jsxRuntime.jsx(
|
|
16229
16512
|
"div",
|
|
16230
16513
|
{
|
|
16231
|
-
className:
|
|
16514
|
+
className: classNames17__default.default({
|
|
16232
16515
|
"absolute min-w-80 left-0 top-full mt-1 border border-eui-dark-300/10 dark:border-eui-dark-300/50 shadow-lg eui-shadow-lg z-50 w-full eui-bg-md": true,
|
|
16233
16516
|
"transition-all duration-300 ease-in-out": true
|
|
16234
16517
|
}),
|
|
@@ -16258,7 +16541,7 @@ var HeaderNavItem = ({
|
|
|
16258
16541
|
"div",
|
|
16259
16542
|
{
|
|
16260
16543
|
onClick: handleNavigation,
|
|
16261
|
-
className:
|
|
16544
|
+
className: classNames17__default.default({
|
|
16262
16545
|
"flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
|
|
16263
16546
|
"transition-all duration-200 ease-in-out": true,
|
|
16264
16547
|
"eui-text-md border-b border-eui-dark-500/20 dark:border-eui-secondary-900/20 bg-gradient-to-r from-eui-dark-500/10 dark:from-eui-secondary-900/10": !styles,
|
|
@@ -16287,7 +16570,7 @@ var HeaderNavItemTitle = ({
|
|
|
16287
16570
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16288
16571
|
"div",
|
|
16289
16572
|
{
|
|
16290
|
-
className:
|
|
16573
|
+
className: classNames17__default.default({
|
|
16291
16574
|
"p-3 font-thin": true,
|
|
16292
16575
|
"eui-text-md": !styles,
|
|
16293
16576
|
[`${styles}`]: styles
|
|
@@ -16327,7 +16610,7 @@ var Link = ({
|
|
|
16327
16610
|
href: href || "#",
|
|
16328
16611
|
target: targets[target],
|
|
16329
16612
|
onClick: handleClick,
|
|
16330
|
-
className:
|
|
16613
|
+
className: classNames17__default.default({
|
|
16331
16614
|
[`${textVariants[variant]}`]: variant,
|
|
16332
16615
|
[`${decorations[decoration]}`]: decoration,
|
|
16333
16616
|
"font-bold": bold,
|
|
@@ -16792,7 +17075,7 @@ function Modal({
|
|
|
16792
17075
|
"div",
|
|
16793
17076
|
{
|
|
16794
17077
|
ref: modalRef,
|
|
16795
|
-
className:
|
|
17078
|
+
className: classNames17__default.default({
|
|
16796
17079
|
"eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit": true,
|
|
16797
17080
|
[`${shapes[resolvedShape]}`]: true,
|
|
16798
17081
|
[`${styles}`]: styles
|
|
@@ -16803,7 +17086,7 @@ function Modal({
|
|
|
16803
17086
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16804
17087
|
"div",
|
|
16805
17088
|
{
|
|
16806
|
-
className:
|
|
17089
|
+
className: classNames17__default.default({
|
|
16807
17090
|
"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast": true,
|
|
16808
17091
|
"hover:cursor-pointer hover:bg-eui-dark-500": true
|
|
16809
17092
|
}),
|
|
@@ -16909,7 +17192,7 @@ function ShowMore({ text, limit }) {
|
|
|
16909
17192
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16910
17193
|
"div",
|
|
16911
17194
|
{
|
|
16912
|
-
className:
|
|
17195
|
+
className: classNames17__default.default({
|
|
16913
17196
|
"text-blue-300 px-1 pb-1 mt-1": true,
|
|
16914
17197
|
"bg-slate-900/70": !showMore,
|
|
16915
17198
|
"bg-gradient-to-t from-slate-900/50 to-transparent": showMore
|
|
@@ -17160,7 +17443,7 @@ function BoxNavItem({ icon, name, to, selected, onClick }) {
|
|
|
17160
17443
|
type: "button",
|
|
17161
17444
|
onClick: handleClick,
|
|
17162
17445
|
"aria-current": selected ? "page" : void 0,
|
|
17163
|
-
className:
|
|
17446
|
+
className: classNames17__default.default(
|
|
17164
17447
|
"w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
|
|
17165
17448
|
"hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
|
|
17166
17449
|
selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
|
|
@@ -17550,7 +17833,7 @@ function GenericLayout({
|
|
|
17550
17833
|
return /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17551
17834
|
"div",
|
|
17552
17835
|
{
|
|
17553
|
-
className:
|
|
17836
|
+
className: classNames17__default.default({
|
|
17554
17837
|
[`${styles}`]: styles
|
|
17555
17838
|
}),
|
|
17556
17839
|
children
|
|
@@ -17599,7 +17882,7 @@ function SidemenuLayout({ data, children }) {
|
|
|
17599
17882
|
return /* @__PURE__ */ jsxRuntime.jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
17600
17883
|
"div",
|
|
17601
17884
|
{
|
|
17602
|
-
className:
|
|
17885
|
+
className: classNames17__default.default({
|
|
17603
17886
|
grid: true,
|
|
17604
17887
|
"grid-cols-7 gap-10": !isMobile,
|
|
17605
17888
|
"grid-cols-1 gap-": isMobile
|
|
@@ -17627,11 +17910,11 @@ function EUIDevLayout({
|
|
|
17627
17910
|
shape: "roundedSquare"
|
|
17628
17911
|
}
|
|
17629
17912
|
},
|
|
17630
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17913
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(GenericLayout_default, { children: /* @__PURE__ */ jsxRuntime.jsxs(Layout, { children: [
|
|
17631
17914
|
header,
|
|
17632
17915
|
/* @__PURE__ */ jsxRuntime.jsx(Content, { styles: "pt-[60px]", children: /* @__PURE__ */ jsxRuntime.jsx(ContentArea_default, { enablePadding: true, children }) }),
|
|
17633
17916
|
footer
|
|
17634
|
-
] }) })
|
|
17917
|
+
] }) })
|
|
17635
17918
|
}
|
|
17636
17919
|
);
|
|
17637
17920
|
}
|
|
@@ -17672,6 +17955,7 @@ exports.Brand = Brand_default;
|
|
|
17672
17955
|
exports.Breadcrumb = Breadcrumb;
|
|
17673
17956
|
exports.BreadcrumbItem = BreadcrumbItem_default;
|
|
17674
17957
|
exports.Button = Button;
|
|
17958
|
+
exports.Caption = Caption;
|
|
17675
17959
|
exports.Card = Card_default;
|
|
17676
17960
|
exports.CardContent = CardContent_default;
|
|
17677
17961
|
exports.CardFooter = CardFooter_default;
|
|
@@ -17682,12 +17966,14 @@ exports.Chip = Chip;
|
|
|
17682
17966
|
exports.CloudinaryImage = CloudinaryImage_default;
|
|
17683
17967
|
exports.CloudinaryProvider = CloudinaryProvider;
|
|
17684
17968
|
exports.CloudinaryVideo = CloudinaryVideo_default;
|
|
17969
|
+
exports.Code = Code;
|
|
17685
17970
|
exports.Content = Content;
|
|
17686
17971
|
exports.ContentArea = ContentArea_default;
|
|
17687
17972
|
exports.DataView = DataView;
|
|
17688
17973
|
exports.DataViewTable = DataViewTable_default;
|
|
17689
17974
|
exports.DateSelector = DateSelector_default;
|
|
17690
17975
|
exports.DefaultLayout = DefaultLayout_default;
|
|
17976
|
+
exports.Display = Display;
|
|
17691
17977
|
exports.DocumentationPanel = DocumentationPanel_default;
|
|
17692
17978
|
exports.Drawer = Drawer;
|
|
17693
17979
|
exports.DrawerToggler = DrawerToggler_default;
|
|
@@ -17728,7 +18014,9 @@ exports.InputLabel = InputLabel_default;
|
|
|
17728
18014
|
exports.InputList = InputList;
|
|
17729
18015
|
exports.InputListGroup = InputListGroup;
|
|
17730
18016
|
exports.InputResponse = InputResponse_default;
|
|
18017
|
+
exports.Label = Label;
|
|
17731
18018
|
exports.Layout = Layout;
|
|
18019
|
+
exports.Lead = Lead;
|
|
17732
18020
|
exports.LineChart = LineChart_default;
|
|
17733
18021
|
exports.Link = Link;
|
|
17734
18022
|
exports.List = List_default;
|
|
@@ -17744,6 +18032,7 @@ exports.MenuItemTitle = MenuItemTitle;
|
|
|
17744
18032
|
exports.Modal = Modal_default;
|
|
17745
18033
|
exports.MotionSurface = MotionSurface_default;
|
|
17746
18034
|
exports.MultiImageInput = MultiImageInput_default;
|
|
18035
|
+
exports.Overline = Overline;
|
|
17747
18036
|
exports.Paragraph = Paragraph;
|
|
17748
18037
|
exports.PieChart = PieChart_default;
|
|
17749
18038
|
exports.PriceTag = PriceTag;
|
|
@@ -17789,7 +18078,7 @@ exports.UnderConstructionBanner = UnderConstructionBanner;
|
|
|
17789
18078
|
exports.ValueBadge = ValueBadge_default;
|
|
17790
18079
|
exports.WorldMap = WorldMap;
|
|
17791
18080
|
exports.WorldMapCountryTable = WorldMapCountryTable;
|
|
17792
|
-
exports.YoutubeVideoPlayer =
|
|
18081
|
+
exports.YoutubeVideoPlayer = YoutubeVideo_default;
|
|
17793
18082
|
exports.cn = cn;
|
|
17794
18083
|
exports.createForceLayout = createForceLayout;
|
|
17795
18084
|
exports.createGridLayout = createGridLayout;
|