elseware-ui 2.29.2 → 2.30.0
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 +112 -111
- package/dist/index.d.ts +112 -111
- package/dist/index.js +619 -336
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +614 -335
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6,12 +6,12 @@ import { Bar, Line, Pie } from 'react-chartjs-2';
|
|
|
6
6
|
import { Chart, CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend, LineElement, PointElement, ArcElement } from 'chart.js';
|
|
7
7
|
import React4, { createContext, forwardRef, useState, useImperativeHandle, useEffect, useMemo, useContext, Fragment as Fragment$1, useRef, useCallback } from 'react';
|
|
8
8
|
import { Transition } from '@headlessui/react';
|
|
9
|
-
import
|
|
9
|
+
import classNames17 from 'classnames';
|
|
10
10
|
import { FaCircleChevronDown } from 'react-icons/fa6';
|
|
11
11
|
import ReactWorldFlags from 'react-world-flags';
|
|
12
12
|
import emojiFlags from 'emoji-flags';
|
|
13
13
|
import * as d3 from 'd3';
|
|
14
|
-
import { Image, CloudinaryContext } from 'cloudinary-react';
|
|
14
|
+
import { Image, CloudinaryContext as CloudinaryContext$1 } from 'cloudinary-react';
|
|
15
15
|
import { useField, ErrorMessage, Formik, Form as Form$1, Field, useFormikContext, FieldArray } from 'formik';
|
|
16
16
|
import { toast, ToastContainer } from 'react-toastify';
|
|
17
17
|
import 'react-toastify/dist/ReactToastify.css';
|
|
@@ -739,7 +739,7 @@ function Accordion({
|
|
|
739
739
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
740
740
|
"div",
|
|
741
741
|
{
|
|
742
|
-
className:
|
|
742
|
+
className: classNames17({
|
|
743
743
|
"inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs": true,
|
|
744
744
|
"hover:cursor-pointer": toggleOnSummaryClick
|
|
745
745
|
}),
|
|
@@ -757,7 +757,7 @@ function Accordion({
|
|
|
757
757
|
children: /* @__PURE__ */ jsx(
|
|
758
758
|
FaCircleChevronDown,
|
|
759
759
|
{
|
|
760
|
-
className:
|
|
760
|
+
className: classNames17(
|
|
761
761
|
"text-xl transition-transform duration-300",
|
|
762
762
|
{ "rotate-180": collapse }
|
|
763
763
|
)
|
|
@@ -783,7 +783,7 @@ function Accordion({
|
|
|
783
783
|
children: /* @__PURE__ */ jsx(
|
|
784
784
|
"div",
|
|
785
785
|
{
|
|
786
|
-
className:
|
|
786
|
+
className: classNames17({
|
|
787
787
|
"border-t border-t-eui-dark-400/40 eui-text-sm": true,
|
|
788
788
|
"p-5": enableChildrenPadding
|
|
789
789
|
}),
|
|
@@ -863,7 +863,7 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
863
863
|
return /* @__PURE__ */ jsxs(
|
|
864
864
|
"div",
|
|
865
865
|
{
|
|
866
|
-
className:
|
|
866
|
+
className: classNames17(
|
|
867
867
|
"flex items-start gap-4 p-6 border-b border-white/10",
|
|
868
868
|
className
|
|
869
869
|
),
|
|
@@ -879,14 +879,14 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
879
879
|
}
|
|
880
880
|
var CardHeader_default = CardHeader;
|
|
881
881
|
function CardContent({ children, className }) {
|
|
882
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
882
|
+
return /* @__PURE__ */ jsx("div", { className: classNames17("p-6 text-gray-300 text-sm", className), children });
|
|
883
883
|
}
|
|
884
884
|
var CardContent_default = CardContent;
|
|
885
885
|
function CardFooter({ children, className }) {
|
|
886
886
|
return /* @__PURE__ */ jsx(
|
|
887
887
|
"div",
|
|
888
888
|
{
|
|
889
|
-
className:
|
|
889
|
+
className: classNames17(
|
|
890
890
|
"flex items-center gap-3 p-5 border-t border-white/10 text-sm text-gray-400",
|
|
891
891
|
className
|
|
892
892
|
),
|
|
@@ -928,7 +928,7 @@ function GradientAnimation({
|
|
|
928
928
|
return /* @__PURE__ */ jsx(
|
|
929
929
|
"div",
|
|
930
930
|
{
|
|
931
|
-
className:
|
|
931
|
+
className: classNames17("absolute inset-0"),
|
|
932
932
|
style: {
|
|
933
933
|
background: `linear-gradient(${cfg.angle}deg, ${cfg.colors?.join(",")})`,
|
|
934
934
|
backgroundSize: cfg.backgroundSize,
|
|
@@ -1074,7 +1074,7 @@ function MotionSurface({
|
|
|
1074
1074
|
}) {
|
|
1075
1075
|
const AnimationComponent = animationVariant === "custom" ? CustomAnimation : animationRegistry[animationVariant];
|
|
1076
1076
|
const OverlayComponent = overlay === "custom" ? CustomOverlay : overlayRegistry[overlay];
|
|
1077
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
1077
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames17("relative overflow-hidden", className), children: [
|
|
1078
1078
|
AnimationComponent && /* @__PURE__ */ jsx(AnimationComponent, { config: animationConfig, animated }),
|
|
1079
1079
|
OverlayComponent && /* @__PURE__ */ jsx(OverlayComponent, { config: overlayConfig }),
|
|
1080
1080
|
/* @__PURE__ */ jsx("div", { className: "relative z-10", children })
|
|
@@ -1527,13 +1527,9 @@ var Graph = ({
|
|
|
1527
1527
|
}
|
|
1528
1528
|
);
|
|
1529
1529
|
};
|
|
1530
|
-
var
|
|
1531
|
-
var CloudinaryProvider = ({
|
|
1532
|
-
cloudName,
|
|
1533
|
-
children
|
|
1534
|
-
}) => /* @__PURE__ */ jsx(CloudinaryContextConfig.Provider, { value: { cloudName }, children });
|
|
1530
|
+
var CloudinaryContext = createContext(null);
|
|
1535
1531
|
var useCloudinaryConfig = () => {
|
|
1536
|
-
const ctx = useContext(
|
|
1532
|
+
const ctx = useContext(CloudinaryContext);
|
|
1537
1533
|
if (!ctx) {
|
|
1538
1534
|
throw new Error(
|
|
1539
1535
|
"CloudinaryProvider is missing. Wrap your app with <CloudinaryProvider />"
|
|
@@ -1543,23 +1539,31 @@ var useCloudinaryConfig = () => {
|
|
|
1543
1539
|
};
|
|
1544
1540
|
var DEFAULT_PUBLIC_CLOUD = "demo";
|
|
1545
1541
|
function CloudinaryImage({
|
|
1546
|
-
publicId,
|
|
1542
|
+
publicId = "sample",
|
|
1547
1543
|
cloudName,
|
|
1548
1544
|
secure = true,
|
|
1549
|
-
alt,
|
|
1545
|
+
alt = "image",
|
|
1546
|
+
fallbackSrc,
|
|
1547
|
+
loading = "lazy",
|
|
1550
1548
|
className,
|
|
1551
1549
|
...rest
|
|
1552
1550
|
}) {
|
|
1553
1551
|
const providerConfig = useCloudinaryConfig();
|
|
1554
1552
|
const resolvedCloudName = cloudName || providerConfig?.cloudName || DEFAULT_PUBLIC_CLOUD;
|
|
1555
|
-
return /* @__PURE__ */ jsx(CloudinaryContext, { cloudName: resolvedCloudName, children: /* @__PURE__ */ jsx(
|
|
1553
|
+
return /* @__PURE__ */ jsx(CloudinaryContext$1, { cloudName: resolvedCloudName, children: /* @__PURE__ */ jsx(
|
|
1556
1554
|
Image,
|
|
1557
1555
|
{
|
|
1558
1556
|
...rest,
|
|
1559
|
-
publicId
|
|
1557
|
+
publicId,
|
|
1560
1558
|
secure,
|
|
1561
1559
|
alt,
|
|
1562
|
-
|
|
1560
|
+
loading,
|
|
1561
|
+
className: cn(className),
|
|
1562
|
+
onError: (e) => {
|
|
1563
|
+
if (fallbackSrc) {
|
|
1564
|
+
e.currentTarget.src = fallbackSrc;
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1563
1567
|
}
|
|
1564
1568
|
) });
|
|
1565
1569
|
}
|
|
@@ -1610,114 +1614,335 @@ function Info({
|
|
|
1610
1614
|
);
|
|
1611
1615
|
}
|
|
1612
1616
|
var Info_default = Info;
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
+
|
|
1618
|
+
// src/components/data-display/typography/shared/typography.levels.ts
|
|
1619
|
+
var typographyLevels = {
|
|
1620
|
+
display: {
|
|
1621
|
+
1: "text-8xl leading-[120px]",
|
|
1622
|
+
2: "text-7xl leading-[110px]",
|
|
1623
|
+
3: "text-6xl leading-[100px]"
|
|
1624
|
+
},
|
|
1625
|
+
chapter: {
|
|
1626
|
+
1: "text-5xl leading-[90px]",
|
|
1627
|
+
2: "text-4xl leading-[80px]",
|
|
1628
|
+
3: "text-3xl leading-[70px]"
|
|
1629
|
+
},
|
|
1630
|
+
section: {
|
|
1631
|
+
1: "text-2xl leading-[50px] pt-4",
|
|
1632
|
+
2: "text-xl leading-[50px]",
|
|
1633
|
+
3: "text-lg leading-[40px]"
|
|
1634
|
+
},
|
|
1635
|
+
paragraph: {
|
|
1636
|
+
1: "text-base leading-[28px]",
|
|
1637
|
+
2: "text-sm leading-[25px]",
|
|
1638
|
+
3: "text-xs leading-[20px]"
|
|
1639
|
+
},
|
|
1640
|
+
quote: {
|
|
1641
|
+
1: "text-base leading-[28px]",
|
|
1642
|
+
2: "text-sm leading-[25px]",
|
|
1643
|
+
3: "text-xs leading-[20px]"
|
|
1644
|
+
}
|
|
1617
1645
|
};
|
|
1646
|
+
|
|
1647
|
+
// src/components/data-display/typography/shared/typography.styles.ts
|
|
1648
|
+
var typographyStyles = ({
|
|
1649
|
+
variant = "default",
|
|
1650
|
+
decoration = "noUnderline",
|
|
1651
|
+
bold,
|
|
1652
|
+
italic,
|
|
1653
|
+
className
|
|
1654
|
+
}) => cn(
|
|
1655
|
+
textVariants[variant],
|
|
1656
|
+
decorations[decoration],
|
|
1657
|
+
bold && "font-bold",
|
|
1658
|
+
italic && "italic",
|
|
1659
|
+
className
|
|
1660
|
+
);
|
|
1618
1661
|
var Chapter = ({
|
|
1619
1662
|
level = 1,
|
|
1620
1663
|
children,
|
|
1621
|
-
variant
|
|
1622
|
-
decoration
|
|
1664
|
+
variant,
|
|
1665
|
+
decoration,
|
|
1623
1666
|
bold,
|
|
1624
1667
|
italic,
|
|
1625
|
-
|
|
1626
|
-
|
|
1668
|
+
className,
|
|
1669
|
+
...rest
|
|
1627
1670
|
}) => {
|
|
1671
|
+
const Tag2 = level === 1 ? "h1" : level === 2 ? "h2" : "h3";
|
|
1628
1672
|
return /* @__PURE__ */ jsx(
|
|
1629
|
-
|
|
1673
|
+
Tag2,
|
|
1630
1674
|
{
|
|
1631
|
-
|
|
1632
|
-
className:
|
|
1633
|
-
[
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1675
|
+
...rest,
|
|
1676
|
+
className: cn(
|
|
1677
|
+
typographyLevels.chapter[level],
|
|
1678
|
+
typographyStyles({
|
|
1679
|
+
variant,
|
|
1680
|
+
decoration,
|
|
1681
|
+
bold,
|
|
1682
|
+
italic,
|
|
1683
|
+
className
|
|
1684
|
+
})
|
|
1685
|
+
),
|
|
1686
|
+
children: children || "Chapter"
|
|
1641
1687
|
}
|
|
1642
1688
|
);
|
|
1643
1689
|
};
|
|
1644
|
-
var levels2 = {
|
|
1645
|
-
1: "text-2xl leading-[50px] pt-4",
|
|
1646
|
-
2: "text-xl leading-[50px]",
|
|
1647
|
-
3: "text-lg leading-[40px]"
|
|
1648
|
-
};
|
|
1649
1690
|
var Section = ({
|
|
1650
1691
|
level = 1,
|
|
1651
1692
|
children,
|
|
1652
|
-
variant
|
|
1653
|
-
decoration
|
|
1693
|
+
variant,
|
|
1694
|
+
decoration,
|
|
1654
1695
|
bold,
|
|
1655
1696
|
italic,
|
|
1656
|
-
|
|
1657
|
-
|
|
1697
|
+
className,
|
|
1698
|
+
...rest
|
|
1658
1699
|
}) => {
|
|
1700
|
+
const Tag2 = level === 1 ? "h4" : level === 2 ? "h5" : "h6";
|
|
1659
1701
|
return /* @__PURE__ */ jsx(
|
|
1660
|
-
|
|
1702
|
+
Tag2,
|
|
1661
1703
|
{
|
|
1662
|
-
|
|
1663
|
-
className:
|
|
1664
|
-
|
|
1665
|
-
[
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1704
|
+
...rest,
|
|
1705
|
+
className: cn(
|
|
1706
|
+
"opacity-80",
|
|
1707
|
+
typographyLevels.section[level],
|
|
1708
|
+
typographyStyles({
|
|
1709
|
+
variant,
|
|
1710
|
+
decoration,
|
|
1711
|
+
bold,
|
|
1712
|
+
italic,
|
|
1713
|
+
className
|
|
1714
|
+
})
|
|
1715
|
+
),
|
|
1716
|
+
children: children || "Section"
|
|
1672
1717
|
}
|
|
1673
1718
|
);
|
|
1674
1719
|
};
|
|
1675
|
-
var levels3 = {
|
|
1676
|
-
1: "text-base leading-[28px]",
|
|
1677
|
-
2: "text-sm leading-[25px]",
|
|
1678
|
-
3: "text-xs leading-[20px]"
|
|
1679
|
-
};
|
|
1680
1720
|
var Paragraph = ({
|
|
1681
1721
|
level = 1,
|
|
1682
1722
|
children,
|
|
1683
|
-
variant
|
|
1684
|
-
decoration
|
|
1723
|
+
variant,
|
|
1724
|
+
decoration,
|
|
1685
1725
|
bold,
|
|
1686
1726
|
italic,
|
|
1687
|
-
|
|
1688
|
-
|
|
1727
|
+
className,
|
|
1728
|
+
...rest
|
|
1729
|
+
}) => {
|
|
1730
|
+
return /* @__PURE__ */ jsx(
|
|
1731
|
+
"p",
|
|
1732
|
+
{
|
|
1733
|
+
...rest,
|
|
1734
|
+
className: cn(
|
|
1735
|
+
typographyLevels.paragraph[level],
|
|
1736
|
+
typographyStyles({
|
|
1737
|
+
variant,
|
|
1738
|
+
decoration,
|
|
1739
|
+
bold,
|
|
1740
|
+
italic,
|
|
1741
|
+
className
|
|
1742
|
+
})
|
|
1743
|
+
),
|
|
1744
|
+
children: children || "Paragraph"
|
|
1745
|
+
}
|
|
1746
|
+
);
|
|
1747
|
+
};
|
|
1748
|
+
var Quote = ({
|
|
1749
|
+
level = 1,
|
|
1750
|
+
children,
|
|
1751
|
+
variant,
|
|
1752
|
+
decoration,
|
|
1753
|
+
bold,
|
|
1754
|
+
italic,
|
|
1755
|
+
className,
|
|
1756
|
+
...rest
|
|
1689
1757
|
}) => {
|
|
1690
1758
|
return /* @__PURE__ */ jsx(
|
|
1691
1759
|
"div",
|
|
1692
1760
|
{
|
|
1693
|
-
|
|
1694
|
-
className:
|
|
1695
|
-
|
|
1696
|
-
[
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1761
|
+
...rest,
|
|
1762
|
+
className: cn(
|
|
1763
|
+
"pl-4 py-1 border-l-2 border-l-gray-400 w-full",
|
|
1764
|
+
typographyLevels.quote[level],
|
|
1765
|
+
typographyStyles({
|
|
1766
|
+
variant,
|
|
1767
|
+
decoration,
|
|
1768
|
+
bold,
|
|
1769
|
+
italic,
|
|
1770
|
+
className
|
|
1771
|
+
})
|
|
1772
|
+
),
|
|
1773
|
+
children: children || "Quote"
|
|
1774
|
+
}
|
|
1775
|
+
);
|
|
1776
|
+
};
|
|
1777
|
+
var Caption = ({
|
|
1778
|
+
children,
|
|
1779
|
+
variant,
|
|
1780
|
+
decoration,
|
|
1781
|
+
bold,
|
|
1782
|
+
italic,
|
|
1783
|
+
className,
|
|
1784
|
+
...rest
|
|
1785
|
+
}) => {
|
|
1786
|
+
return /* @__PURE__ */ jsx(
|
|
1787
|
+
"span",
|
|
1788
|
+
{
|
|
1789
|
+
...rest,
|
|
1790
|
+
className: cn(
|
|
1791
|
+
"text-xs leading-[18px] opacity-70",
|
|
1792
|
+
typographyStyles({
|
|
1793
|
+
variant,
|
|
1794
|
+
decoration,
|
|
1795
|
+
bold,
|
|
1796
|
+
italic,
|
|
1797
|
+
className
|
|
1798
|
+
})
|
|
1799
|
+
),
|
|
1800
|
+
children: children || "Caption"
|
|
1703
1801
|
}
|
|
1704
1802
|
);
|
|
1705
1803
|
};
|
|
1706
|
-
var
|
|
1804
|
+
var Label = ({
|
|
1805
|
+
children,
|
|
1806
|
+
variant,
|
|
1807
|
+
decoration,
|
|
1808
|
+
bold = true,
|
|
1809
|
+
italic,
|
|
1810
|
+
className,
|
|
1811
|
+
...rest
|
|
1812
|
+
}) => {
|
|
1707
1813
|
return /* @__PURE__ */ jsx(
|
|
1708
1814
|
"div",
|
|
1709
1815
|
{
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
[
|
|
1713
|
-
|
|
1714
|
-
|
|
1816
|
+
...rest,
|
|
1817
|
+
className: cn(
|
|
1818
|
+
"text-sm leading-[22px]",
|
|
1819
|
+
typographyStyles({
|
|
1820
|
+
variant,
|
|
1821
|
+
decoration,
|
|
1822
|
+
bold,
|
|
1823
|
+
italic,
|
|
1824
|
+
className
|
|
1825
|
+
})
|
|
1826
|
+
),
|
|
1827
|
+
children: children || "Label"
|
|
1828
|
+
}
|
|
1829
|
+
);
|
|
1830
|
+
};
|
|
1831
|
+
var Code = ({
|
|
1832
|
+
children,
|
|
1833
|
+
className,
|
|
1834
|
+
...rest
|
|
1835
|
+
}) => {
|
|
1836
|
+
return /* @__PURE__ */ jsx(
|
|
1837
|
+
"code",
|
|
1838
|
+
{
|
|
1839
|
+
...rest,
|
|
1840
|
+
className: cn(
|
|
1841
|
+
"px-1.5 py-0.5 rounded-md",
|
|
1842
|
+
"bg-gray-800 text-green-400",
|
|
1843
|
+
"font-mono text-sm",
|
|
1844
|
+
className
|
|
1845
|
+
),
|
|
1846
|
+
children: children || "npm install"
|
|
1847
|
+
}
|
|
1848
|
+
);
|
|
1849
|
+
};
|
|
1850
|
+
var Lead = ({
|
|
1851
|
+
children,
|
|
1852
|
+
variant,
|
|
1853
|
+
decoration,
|
|
1854
|
+
bold,
|
|
1855
|
+
italic,
|
|
1856
|
+
className,
|
|
1857
|
+
...rest
|
|
1858
|
+
}) => {
|
|
1859
|
+
return /* @__PURE__ */ jsx(
|
|
1860
|
+
"p",
|
|
1861
|
+
{
|
|
1862
|
+
...rest,
|
|
1863
|
+
className: cn(
|
|
1864
|
+
"text-xl leading-[38px] opacity-90",
|
|
1865
|
+
typographyStyles({
|
|
1866
|
+
variant,
|
|
1867
|
+
decoration,
|
|
1868
|
+
bold,
|
|
1869
|
+
italic,
|
|
1870
|
+
className
|
|
1871
|
+
})
|
|
1872
|
+
),
|
|
1873
|
+
children: children || "Lead paragraph"
|
|
1874
|
+
}
|
|
1875
|
+
);
|
|
1876
|
+
};
|
|
1877
|
+
var Overline = ({
|
|
1878
|
+
children,
|
|
1879
|
+
variant,
|
|
1880
|
+
decoration,
|
|
1881
|
+
bold = true,
|
|
1882
|
+
italic,
|
|
1883
|
+
className,
|
|
1884
|
+
...rest
|
|
1885
|
+
}) => {
|
|
1886
|
+
return /* @__PURE__ */ jsx(
|
|
1887
|
+
"div",
|
|
1888
|
+
{
|
|
1889
|
+
...rest,
|
|
1890
|
+
className: cn(
|
|
1891
|
+
"text-xs uppercase tracking-[0.2em]",
|
|
1892
|
+
typographyStyles({
|
|
1893
|
+
variant,
|
|
1894
|
+
decoration,
|
|
1895
|
+
bold,
|
|
1896
|
+
italic,
|
|
1897
|
+
className
|
|
1898
|
+
})
|
|
1899
|
+
),
|
|
1900
|
+
children: children || "Overline"
|
|
1901
|
+
}
|
|
1902
|
+
);
|
|
1903
|
+
};
|
|
1904
|
+
var Display = ({
|
|
1905
|
+
level = 1,
|
|
1906
|
+
children,
|
|
1907
|
+
variant,
|
|
1908
|
+
decoration,
|
|
1909
|
+
bold = true,
|
|
1910
|
+
italic,
|
|
1911
|
+
className,
|
|
1912
|
+
...rest
|
|
1913
|
+
}) => {
|
|
1914
|
+
return /* @__PURE__ */ jsx(
|
|
1915
|
+
"h1",
|
|
1916
|
+
{
|
|
1917
|
+
...rest,
|
|
1918
|
+
className: cn(
|
|
1919
|
+
typographyLevels.display[level],
|
|
1920
|
+
typographyStyles({
|
|
1921
|
+
variant,
|
|
1922
|
+
decoration,
|
|
1923
|
+
bold,
|
|
1924
|
+
italic,
|
|
1925
|
+
className
|
|
1926
|
+
})
|
|
1927
|
+
),
|
|
1928
|
+
children: children || "Display"
|
|
1715
1929
|
}
|
|
1716
1930
|
);
|
|
1717
1931
|
};
|
|
1718
1932
|
|
|
1719
1933
|
// src/components/data-display/typography/index.tsx
|
|
1720
|
-
var Typography = {
|
|
1934
|
+
var Typography = {
|
|
1935
|
+
Display,
|
|
1936
|
+
Chapter,
|
|
1937
|
+
Section,
|
|
1938
|
+
Paragraph,
|
|
1939
|
+
Quote,
|
|
1940
|
+
Lead,
|
|
1941
|
+
Caption,
|
|
1942
|
+
Label,
|
|
1943
|
+
Code,
|
|
1944
|
+
Overline
|
|
1945
|
+
};
|
|
1721
1946
|
var ListItem = ({
|
|
1722
1947
|
content,
|
|
1723
1948
|
TypographyComponent = /* @__PURE__ */ jsx(Paragraph, { level: 1 }),
|
|
@@ -2142,25 +2367,27 @@ function Table({
|
|
|
2142
2367
|
] });
|
|
2143
2368
|
}
|
|
2144
2369
|
var Table_default = Table;
|
|
2145
|
-
function Tag({ text,
|
|
2370
|
+
function Tag({ text, className, ...rest }) {
|
|
2146
2371
|
return /* @__PURE__ */ jsx(
|
|
2147
2372
|
"span",
|
|
2148
2373
|
{
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2374
|
+
...rest,
|
|
2375
|
+
className: cn(
|
|
2376
|
+
"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",
|
|
2377
|
+
className
|
|
2378
|
+
),
|
|
2153
2379
|
children: text
|
|
2154
2380
|
}
|
|
2155
2381
|
);
|
|
2156
2382
|
}
|
|
2157
2383
|
var Tag_default = Tag;
|
|
2158
2384
|
function Tooltip4({
|
|
2159
|
-
|
|
2385
|
+
children,
|
|
2160
2386
|
show,
|
|
2161
2387
|
offsetX = 20,
|
|
2162
2388
|
offsetY = 20,
|
|
2163
|
-
className
|
|
2389
|
+
className,
|
|
2390
|
+
...rest
|
|
2164
2391
|
}) {
|
|
2165
2392
|
const [pos, setPos] = useState({ x: 0, y: 0 });
|
|
2166
2393
|
useEffect(() => {
|
|
@@ -2175,18 +2402,19 @@ function Tooltip4({
|
|
|
2175
2402
|
return /* @__PURE__ */ jsx(
|
|
2176
2403
|
"div",
|
|
2177
2404
|
{
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2405
|
+
...rest,
|
|
2406
|
+
className: cn(
|
|
2407
|
+
"pointer-events-none absolute z-50 px-3 py-2 text-sm",
|
|
2408
|
+
"rounded-lg shadow-lg bg-neutral-900 text-white",
|
|
2409
|
+
"dark:bg-neutral-800",
|
|
2410
|
+
className
|
|
2411
|
+
),
|
|
2184
2412
|
style: {
|
|
2185
2413
|
top: pos.y,
|
|
2186
2414
|
left: pos.x,
|
|
2187
2415
|
transform: "translate(-50%, -50%)"
|
|
2188
2416
|
},
|
|
2189
|
-
children
|
|
2417
|
+
children
|
|
2190
2418
|
}
|
|
2191
2419
|
);
|
|
2192
2420
|
}
|
|
@@ -2235,7 +2463,7 @@ var ValueBadge = ({
|
|
|
2235
2463
|
return /* @__PURE__ */ jsx(
|
|
2236
2464
|
"div",
|
|
2237
2465
|
{
|
|
2238
|
-
className:
|
|
2466
|
+
className: cn(
|
|
2239
2467
|
"px-2 py-1 rounded-md text-xs font-semibold w-fit eg-theme-transition",
|
|
2240
2468
|
noBackground ? "bg-transparent" : style.bg,
|
|
2241
2469
|
style.color,
|
|
@@ -2246,8 +2474,48 @@ var ValueBadge = ({
|
|
|
2246
2474
|
);
|
|
2247
2475
|
};
|
|
2248
2476
|
var ValueBadge_default = ValueBadge;
|
|
2249
|
-
|
|
2250
|
-
|
|
2477
|
+
var DEFAULT_PUBLIC_CLOUD2 = "demo";
|
|
2478
|
+
function CloudinaryVideo({
|
|
2479
|
+
publicId = "dog",
|
|
2480
|
+
cloudName,
|
|
2481
|
+
secure = true,
|
|
2482
|
+
controls = true,
|
|
2483
|
+
autoPlay = false,
|
|
2484
|
+
muted = false,
|
|
2485
|
+
loop = false,
|
|
2486
|
+
playsInline = true,
|
|
2487
|
+
poster,
|
|
2488
|
+
preload = "metadata",
|
|
2489
|
+
className,
|
|
2490
|
+
...rest
|
|
2491
|
+
}) {
|
|
2492
|
+
const providerConfig = useCloudinaryConfig();
|
|
2493
|
+
const resolvedCloudName = cloudName || providerConfig?.cloudName || DEFAULT_PUBLIC_CLOUD2;
|
|
2494
|
+
const protocol = secure ? "https" : "http";
|
|
2495
|
+
const videoUrl = `
|
|
2496
|
+
${protocol}://res.cloudinary.com/
|
|
2497
|
+
${resolvedCloudName}
|
|
2498
|
+
/video/upload/
|
|
2499
|
+
${publicId}.mp4
|
|
2500
|
+
`.replace(/\s+/g, "");
|
|
2501
|
+
return /* @__PURE__ */ jsxs(
|
|
2502
|
+
"video",
|
|
2503
|
+
{
|
|
2504
|
+
...rest,
|
|
2505
|
+
controls,
|
|
2506
|
+
autoPlay,
|
|
2507
|
+
muted,
|
|
2508
|
+
loop,
|
|
2509
|
+
playsInline,
|
|
2510
|
+
poster,
|
|
2511
|
+
preload,
|
|
2512
|
+
className: cn(className),
|
|
2513
|
+
children: [
|
|
2514
|
+
/* @__PURE__ */ jsx("source", { src: videoUrl, type: "video/mp4" }),
|
|
2515
|
+
"Your browser does not support the video tag."
|
|
2516
|
+
]
|
|
2517
|
+
}
|
|
2518
|
+
);
|
|
2251
2519
|
}
|
|
2252
2520
|
var CloudinaryVideo_default = CloudinaryVideo;
|
|
2253
2521
|
var FormObserver = ({ formik, onChange }) => {
|
|
@@ -2319,7 +2587,7 @@ var Form = ({
|
|
|
2319
2587
|
/* @__PURE__ */ jsx(UnsavedChangesGuard_default, { formik, enabled: warnOnUnsavedChanges }),
|
|
2320
2588
|
/* @__PURE__ */ jsx(DirtyObserver_default, { formik, onDirtyChange }),
|
|
2321
2589
|
/* @__PURE__ */ jsx(FormObserver_default, { formik, onChange }),
|
|
2322
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
2590
|
+
/* @__PURE__ */ jsx("div", { className: classNames17(styles), children })
|
|
2323
2591
|
] })
|
|
2324
2592
|
}
|
|
2325
2593
|
);
|
|
@@ -2328,7 +2596,7 @@ var Backdrop = ({ children, styles }) => {
|
|
|
2328
2596
|
return /* @__PURE__ */ jsx(
|
|
2329
2597
|
"div",
|
|
2330
2598
|
{
|
|
2331
|
-
className:
|
|
2599
|
+
className: classNames17({
|
|
2332
2600
|
"bg-black/75 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden": true,
|
|
2333
2601
|
[`${styles}`]: styles
|
|
2334
2602
|
}),
|
|
@@ -2439,7 +2707,7 @@ function FormResponse({
|
|
|
2439
2707
|
return /* @__PURE__ */ jsx(Transition4.TransitionDropdown, { visibility: text ? true : false, children: /* @__PURE__ */ jsx(
|
|
2440
2708
|
"div",
|
|
2441
2709
|
{
|
|
2442
|
-
className:
|
|
2710
|
+
className: classNames17({
|
|
2443
2711
|
"font-poppins font-light text-sm": true,
|
|
2444
2712
|
[`${variantsLite[variant]}`]: variant,
|
|
2445
2713
|
[`${shapes[shape]}`]: shape,
|
|
@@ -2455,18 +2723,31 @@ var getYoutubeEmbedUrl = (url) => {
|
|
|
2455
2723
|
const videoIdMatch = url.match(
|
|
2456
2724
|
/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/
|
|
2457
2725
|
);
|
|
2458
|
-
|
|
2726
|
+
if (!videoIdMatch) {
|
|
2727
|
+
return "";
|
|
2728
|
+
}
|
|
2729
|
+
return `https://www.youtube.com/embed/${videoIdMatch[1]}`;
|
|
2459
2730
|
};
|
|
2460
|
-
function
|
|
2731
|
+
function YoutubeVideo({
|
|
2461
2732
|
videoUrl,
|
|
2462
2733
|
width = 750,
|
|
2463
|
-
height = 422
|
|
2734
|
+
height = 422,
|
|
2735
|
+
autoPlay = false,
|
|
2736
|
+
muted = false,
|
|
2737
|
+
controls = true,
|
|
2738
|
+
className,
|
|
2739
|
+
...rest
|
|
2464
2740
|
}) {
|
|
2465
2741
|
const embedUrl = getYoutubeEmbedUrl(videoUrl);
|
|
2466
2742
|
if (!embedUrl) {
|
|
2467
2743
|
return /* @__PURE__ */ jsx(FormResponse_default, { text: "Invalid YouTube URL", variant: "danger" });
|
|
2468
2744
|
}
|
|
2469
|
-
|
|
2745
|
+
const params = new URLSearchParams({
|
|
2746
|
+
autoplay: autoPlay ? "1" : "0",
|
|
2747
|
+
mute: muted ? "1" : "0",
|
|
2748
|
+
controls: controls ? "1" : "0"
|
|
2749
|
+
});
|
|
2750
|
+
return /* @__PURE__ */ jsx("div", { className: "flex justify-center w-full", children: /* @__PURE__ */ jsx(
|
|
2470
2751
|
"div",
|
|
2471
2752
|
{
|
|
2472
2753
|
className: "relative w-full",
|
|
@@ -2477,17 +2758,124 @@ function YoutubeVideoPlayer({
|
|
|
2477
2758
|
children: /* @__PURE__ */ jsx(
|
|
2478
2759
|
"iframe",
|
|
2479
2760
|
{
|
|
2480
|
-
|
|
2761
|
+
...rest,
|
|
2762
|
+
src: `${embedUrl}?${params.toString()}`,
|
|
2481
2763
|
title: "YouTube video player",
|
|
2764
|
+
loading: "lazy",
|
|
2482
2765
|
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
2483
2766
|
allowFullScreen: true,
|
|
2484
|
-
className:
|
|
2767
|
+
className: cn(
|
|
2768
|
+
"absolute top-0 left-0 w-full h-full rounded-xl shadow-xl border-0",
|
|
2769
|
+
className
|
|
2770
|
+
)
|
|
2485
2771
|
}
|
|
2486
2772
|
)
|
|
2487
2773
|
}
|
|
2488
2774
|
) });
|
|
2489
2775
|
}
|
|
2490
|
-
var
|
|
2776
|
+
var YoutubeVideo_default = YoutubeVideo;
|
|
2777
|
+
var ThemeContext = createContext(
|
|
2778
|
+
void 0
|
|
2779
|
+
);
|
|
2780
|
+
var ThemeProvider = ({
|
|
2781
|
+
defaultTheme = "dark",
|
|
2782
|
+
children
|
|
2783
|
+
}) => {
|
|
2784
|
+
const [theme, setTheme] = useState(() => {
|
|
2785
|
+
return localStorage.getItem("theme") || defaultTheme;
|
|
2786
|
+
});
|
|
2787
|
+
useEffect(() => {
|
|
2788
|
+
if (theme === "dark") {
|
|
2789
|
+
document.documentElement.classList.add("dark");
|
|
2790
|
+
} else {
|
|
2791
|
+
document.documentElement.classList.remove("dark");
|
|
2792
|
+
}
|
|
2793
|
+
localStorage.setItem("theme", theme);
|
|
2794
|
+
}, [theme]);
|
|
2795
|
+
const toggleTheme = () => {
|
|
2796
|
+
setTheme((prev) => prev === "dark" ? "light" : "dark");
|
|
2797
|
+
};
|
|
2798
|
+
return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: { theme, setTheme, toggleTheme }, children });
|
|
2799
|
+
};
|
|
2800
|
+
var ThemeSwitch = () => {
|
|
2801
|
+
const themeContext = useContext(ThemeContext);
|
|
2802
|
+
if (!themeContext) return null;
|
|
2803
|
+
const { theme, toggleTheme } = themeContext;
|
|
2804
|
+
return /* @__PURE__ */ jsxs(
|
|
2805
|
+
"button",
|
|
2806
|
+
{
|
|
2807
|
+
onClick: toggleTheme,
|
|
2808
|
+
className: "relative w-16 h-8 flex items-center bg-gray-300 dark:bg-gray-800 rounded-full p-1 transition-all",
|
|
2809
|
+
children: [
|
|
2810
|
+
/* @__PURE__ */ jsx(
|
|
2811
|
+
FaSun,
|
|
2812
|
+
{
|
|
2813
|
+
className: "absolute left-2 text-yellow-500 transition-opacity duration-300 z-10",
|
|
2814
|
+
style: { opacity: theme === "dark" ? 0 : 1 }
|
|
2815
|
+
}
|
|
2816
|
+
),
|
|
2817
|
+
/* @__PURE__ */ jsx(
|
|
2818
|
+
FaMoon,
|
|
2819
|
+
{
|
|
2820
|
+
className: "absolute right-2 text-blue-400 transition-opacity duration-300 z-10",
|
|
2821
|
+
style: { opacity: theme === "dark" ? 1 : 0 }
|
|
2822
|
+
}
|
|
2823
|
+
),
|
|
2824
|
+
/* @__PURE__ */ jsx(
|
|
2825
|
+
"div",
|
|
2826
|
+
{
|
|
2827
|
+
className: classNames17(
|
|
2828
|
+
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
2829
|
+
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
2830
|
+
)
|
|
2831
|
+
}
|
|
2832
|
+
)
|
|
2833
|
+
]
|
|
2834
|
+
}
|
|
2835
|
+
);
|
|
2836
|
+
};
|
|
2837
|
+
|
|
2838
|
+
// src/data/enums.ts
|
|
2839
|
+
var Shape = /* @__PURE__ */ ((Shape2) => {
|
|
2840
|
+
Shape2["circle"] = "circle";
|
|
2841
|
+
Shape2["roundedSquare"] = "roundedSquare";
|
|
2842
|
+
Shape2["softRoundedSquare"] = "softRoundedSquare";
|
|
2843
|
+
Shape2["square"] = "square";
|
|
2844
|
+
return Shape2;
|
|
2845
|
+
})(Shape || {});
|
|
2846
|
+
var ShapeSwitch = () => {
|
|
2847
|
+
const { config, setConfig } = useEUIConfig();
|
|
2848
|
+
const currentShape = config.global?.shape ?? "square";
|
|
2849
|
+
const handleChange = (e) => {
|
|
2850
|
+
const shape = e.target.value;
|
|
2851
|
+
setConfig((prev) => ({
|
|
2852
|
+
...prev,
|
|
2853
|
+
global: {
|
|
2854
|
+
...prev.global,
|
|
2855
|
+
shape
|
|
2856
|
+
}
|
|
2857
|
+
}));
|
|
2858
|
+
};
|
|
2859
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1 w-fit", children: /* @__PURE__ */ jsx(
|
|
2860
|
+
"select",
|
|
2861
|
+
{
|
|
2862
|
+
value: currentShape,
|
|
2863
|
+
onChange: handleChange,
|
|
2864
|
+
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 ",
|
|
2865
|
+
children: Object.keys(Shape).map((shape) => /* @__PURE__ */ jsx("option", { value: shape, children: shape }, shape))
|
|
2866
|
+
}
|
|
2867
|
+
) });
|
|
2868
|
+
};
|
|
2869
|
+
|
|
2870
|
+
// src/hooks/theme/useCurrentTheme.ts
|
|
2871
|
+
var useCurrentTheme = () => {
|
|
2872
|
+
const context = useContext(ThemeContext);
|
|
2873
|
+
if (!context) {
|
|
2874
|
+
throw new Error("useCurrentTheme must be used within a ThemeProvider");
|
|
2875
|
+
}
|
|
2876
|
+
return context.theme;
|
|
2877
|
+
};
|
|
2878
|
+
var useCurrentTheme_default = useCurrentTheme;
|
|
2491
2879
|
var COUNTRY_NAMES = {
|
|
2492
2880
|
AF: "Afghanistan",
|
|
2493
2881
|
AL: "Albania",
|
|
@@ -13797,108 +14185,6 @@ var worldMapTopoJSONContries100m = {
|
|
|
13797
14185
|
translate: [-180, -85.60903777459771]
|
|
13798
14186
|
}
|
|
13799
14187
|
};
|
|
13800
|
-
var ThemeContext = createContext(
|
|
13801
|
-
void 0
|
|
13802
|
-
);
|
|
13803
|
-
var ThemeProvider = ({
|
|
13804
|
-
defaultTheme = "dark",
|
|
13805
|
-
children
|
|
13806
|
-
}) => {
|
|
13807
|
-
const [theme, setTheme] = useState(() => {
|
|
13808
|
-
return localStorage.getItem("theme") || defaultTheme;
|
|
13809
|
-
});
|
|
13810
|
-
useEffect(() => {
|
|
13811
|
-
if (theme === "dark") {
|
|
13812
|
-
document.documentElement.classList.add("dark");
|
|
13813
|
-
} else {
|
|
13814
|
-
document.documentElement.classList.remove("dark");
|
|
13815
|
-
}
|
|
13816
|
-
localStorage.setItem("theme", theme);
|
|
13817
|
-
}, [theme]);
|
|
13818
|
-
const toggleTheme = () => {
|
|
13819
|
-
setTheme((prev) => prev === "dark" ? "light" : "dark");
|
|
13820
|
-
};
|
|
13821
|
-
return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: { theme, setTheme, toggleTheme }, children });
|
|
13822
|
-
};
|
|
13823
|
-
var ThemeSwitch = () => {
|
|
13824
|
-
const themeContext = useContext(ThemeContext);
|
|
13825
|
-
if (!themeContext) return null;
|
|
13826
|
-
const { theme, toggleTheme } = themeContext;
|
|
13827
|
-
return /* @__PURE__ */ jsxs(
|
|
13828
|
-
"button",
|
|
13829
|
-
{
|
|
13830
|
-
onClick: toggleTheme,
|
|
13831
|
-
className: "relative w-16 h-8 flex items-center bg-gray-300 dark:bg-gray-800 rounded-full p-1 transition-all",
|
|
13832
|
-
children: [
|
|
13833
|
-
/* @__PURE__ */ jsx(
|
|
13834
|
-
FaSun,
|
|
13835
|
-
{
|
|
13836
|
-
className: "absolute left-2 text-yellow-500 transition-opacity duration-300 z-10",
|
|
13837
|
-
style: { opacity: theme === "dark" ? 0 : 1 }
|
|
13838
|
-
}
|
|
13839
|
-
),
|
|
13840
|
-
/* @__PURE__ */ jsx(
|
|
13841
|
-
FaMoon,
|
|
13842
|
-
{
|
|
13843
|
-
className: "absolute right-2 text-blue-400 transition-opacity duration-300 z-10",
|
|
13844
|
-
style: { opacity: theme === "dark" ? 1 : 0 }
|
|
13845
|
-
}
|
|
13846
|
-
),
|
|
13847
|
-
/* @__PURE__ */ jsx(
|
|
13848
|
-
"div",
|
|
13849
|
-
{
|
|
13850
|
-
className: classNames24(
|
|
13851
|
-
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
13852
|
-
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
13853
|
-
)
|
|
13854
|
-
}
|
|
13855
|
-
)
|
|
13856
|
-
]
|
|
13857
|
-
}
|
|
13858
|
-
);
|
|
13859
|
-
};
|
|
13860
|
-
|
|
13861
|
-
// src/data/enums.ts
|
|
13862
|
-
var Shape = /* @__PURE__ */ ((Shape2) => {
|
|
13863
|
-
Shape2["circle"] = "circle";
|
|
13864
|
-
Shape2["roundedSquare"] = "roundedSquare";
|
|
13865
|
-
Shape2["softRoundedSquare"] = "softRoundedSquare";
|
|
13866
|
-
Shape2["square"] = "square";
|
|
13867
|
-
return Shape2;
|
|
13868
|
-
})(Shape || {});
|
|
13869
|
-
var ShapeSwitch = () => {
|
|
13870
|
-
const { config, setConfig } = useEUIConfig();
|
|
13871
|
-
const currentShape = config.global?.shape ?? "square";
|
|
13872
|
-
const handleChange = (e) => {
|
|
13873
|
-
const shape = e.target.value;
|
|
13874
|
-
setConfig((prev) => ({
|
|
13875
|
-
...prev,
|
|
13876
|
-
global: {
|
|
13877
|
-
...prev.global,
|
|
13878
|
-
shape
|
|
13879
|
-
}
|
|
13880
|
-
}));
|
|
13881
|
-
};
|
|
13882
|
-
return /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1 w-fit", children: /* @__PURE__ */ jsx(
|
|
13883
|
-
"select",
|
|
13884
|
-
{
|
|
13885
|
-
value: currentShape,
|
|
13886
|
-
onChange: handleChange,
|
|
13887
|
-
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 ",
|
|
13888
|
-
children: Object.keys(Shape).map((shape) => /* @__PURE__ */ jsx("option", { value: shape, children: shape }, shape))
|
|
13889
|
-
}
|
|
13890
|
-
) });
|
|
13891
|
-
};
|
|
13892
|
-
|
|
13893
|
-
// src/hooks/theme/useCurrentTheme.ts
|
|
13894
|
-
var useCurrentTheme = () => {
|
|
13895
|
-
const context = useContext(ThemeContext);
|
|
13896
|
-
if (!context) {
|
|
13897
|
-
throw new Error("useCurrentTheme must be used within a ThemeProvider");
|
|
13898
|
-
}
|
|
13899
|
-
return context.theme;
|
|
13900
|
-
};
|
|
13901
|
-
var useCurrentTheme_default = useCurrentTheme;
|
|
13902
14188
|
function WorldMap({
|
|
13903
14189
|
data,
|
|
13904
14190
|
title = "Global Data Overview",
|
|
@@ -13906,9 +14192,10 @@ function WorldMap({
|
|
|
13906
14192
|
bubbleStroke = "stroke-teal-900",
|
|
13907
14193
|
bubbleScale = 40,
|
|
13908
14194
|
minBubble = 6,
|
|
13909
|
-
styles,
|
|
13910
14195
|
disableCountryHover = true,
|
|
13911
|
-
disableCountrySelect = true
|
|
14196
|
+
disableCountrySelect = true,
|
|
14197
|
+
className,
|
|
14198
|
+
...rest
|
|
13912
14199
|
}) {
|
|
13913
14200
|
const currentTheme = useCurrentTheme_default();
|
|
13914
14201
|
const isDarkMode = currentTheme === "dark";
|
|
@@ -13952,60 +14239,52 @@ function WorldMap({
|
|
|
13952
14239
|
setShowTooltip(true);
|
|
13953
14240
|
};
|
|
13954
14241
|
const hideTooltip = () => setShowTooltip(false);
|
|
13955
|
-
return /* @__PURE__ */ jsxs(
|
|
13956
|
-
"
|
|
13957
|
-
{
|
|
13958
|
-
|
|
13959
|
-
|
|
13960
|
-
|
|
13961
|
-
|
|
13962
|
-
|
|
13963
|
-
|
|
13964
|
-
|
|
13965
|
-
{
|
|
13966
|
-
|
|
13967
|
-
|
|
13968
|
-
|
|
13969
|
-
|
|
13970
|
-
|
|
13971
|
-
|
|
13972
|
-
|
|
13973
|
-
|
|
13974
|
-
geography: geo,
|
|
13975
|
-
style: {
|
|
13976
|
-
default: {
|
|
13977
|
-
...mode.default,
|
|
13978
|
-
strokeWidth: 0.5,
|
|
13979
|
-
pointerEvents: disableCountryHover && disableCountrySelect ? "none" : "auto"
|
|
13980
|
-
},
|
|
13981
|
-
hover: disableCountryHover ? { ...mode.default, pointerEvents: "none" } : mode.hover,
|
|
13982
|
-
pressed: disableCountrySelect ? { ...mode.default, pointerEvents: "none" } : mode.pressed
|
|
13983
|
-
}
|
|
14242
|
+
return /* @__PURE__ */ jsxs("div", { ...rest, className: cn(className), children: [
|
|
14243
|
+
/* @__PURE__ */ jsx("h2", { className: "text-xl font-semibold mb-4", children: title }),
|
|
14244
|
+
/* @__PURE__ */ jsx("div", { className: "w-full aspect-[2/1]", children: /* @__PURE__ */ jsxs(
|
|
14245
|
+
ComposableMap,
|
|
14246
|
+
{
|
|
14247
|
+
projectionConfig: { scale: 140 },
|
|
14248
|
+
width: 800,
|
|
14249
|
+
height: 400,
|
|
14250
|
+
style: { width: "100%", height: "100%" },
|
|
14251
|
+
children: [
|
|
14252
|
+
/* @__PURE__ */ jsx(Geographies, { geography: worldMapTopoJSONContries100m, children: ({ geographies }) => geographies.map((geo) => /* @__PURE__ */ jsx(
|
|
14253
|
+
Geography,
|
|
14254
|
+
{
|
|
14255
|
+
geography: geo,
|
|
14256
|
+
style: {
|
|
14257
|
+
default: {
|
|
14258
|
+
...mode.default,
|
|
14259
|
+
strokeWidth: 0.5,
|
|
14260
|
+
pointerEvents: disableCountryHover && disableCountrySelect ? "none" : "auto"
|
|
13984
14261
|
},
|
|
13985
|
-
|
|
13986
|
-
|
|
13987
|
-
|
|
13988
|
-
|
|
13989
|
-
|
|
13990
|
-
|
|
13991
|
-
|
|
13992
|
-
|
|
13993
|
-
|
|
13994
|
-
|
|
13995
|
-
|
|
13996
|
-
|
|
13997
|
-
|
|
13998
|
-
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
|
|
14004
|
-
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
14262
|
+
hover: disableCountryHover ? { ...mode.default, pointerEvents: "none" } : mode.hover,
|
|
14263
|
+
pressed: disableCountrySelect ? { ...mode.default, pointerEvents: "none" } : mode.pressed
|
|
14264
|
+
}
|
|
14265
|
+
},
|
|
14266
|
+
geo.rsmKey
|
|
14267
|
+
)) }),
|
|
14268
|
+
resolvedData.map((point, index) => {
|
|
14269
|
+
const size = point.value / maxValue * bubbleScale + minBubble;
|
|
14270
|
+
return /* @__PURE__ */ jsx(Marker, { coordinates: point.coordinates, children: /* @__PURE__ */ jsx(
|
|
14271
|
+
motion.circle,
|
|
14272
|
+
{
|
|
14273
|
+
r: size,
|
|
14274
|
+
initial: { opacity: 0, scale: 0 },
|
|
14275
|
+
animate: { opacity: 0.6, scale: 1 },
|
|
14276
|
+
transition: { duration: 0.5 },
|
|
14277
|
+
className: `${bubbleColor} ${bubbleStroke} stroke-1 cursor-pointer`,
|
|
14278
|
+
onMouseMove: (e) => handleMouseMove(e, point),
|
|
14279
|
+
onMouseLeave: hideTooltip
|
|
14280
|
+
}
|
|
14281
|
+
) }, index);
|
|
14282
|
+
})
|
|
14283
|
+
]
|
|
14284
|
+
}
|
|
14285
|
+
) }),
|
|
14286
|
+
/* @__PURE__ */ jsx(Tooltip4, { show: showTooltip, children: tooltipContent })
|
|
14287
|
+
] });
|
|
14009
14288
|
}
|
|
14010
14289
|
var sizes3 = {
|
|
14011
14290
|
xs: "px-2 py-1 text-xs",
|
|
@@ -14049,7 +14328,7 @@ var Button = ({
|
|
|
14049
14328
|
onClick,
|
|
14050
14329
|
onMouseMove: handleMouseMove,
|
|
14051
14330
|
disabled: disabled || loading,
|
|
14052
|
-
className:
|
|
14331
|
+
className: classNames17({
|
|
14053
14332
|
"relative z-0 overflow-hidden group": true,
|
|
14054
14333
|
"flex flex-row items-center justify-center gap-2": true,
|
|
14055
14334
|
[`${variants[variant]}`]: !ghost,
|
|
@@ -14095,7 +14374,7 @@ function InputResponse({
|
|
|
14095
14374
|
return /* @__PURE__ */ jsx(Transition4.TransitionDropdown, { visibility, children: /* @__PURE__ */ jsx(
|
|
14096
14375
|
"div",
|
|
14097
14376
|
{
|
|
14098
|
-
className:
|
|
14377
|
+
className: classNames17({
|
|
14099
14378
|
"font-medium text-sm py-1 px-2": true,
|
|
14100
14379
|
[`${textVariants[variant]}`]: variant,
|
|
14101
14380
|
"transition-all ease-in-out": true,
|
|
@@ -14110,7 +14389,7 @@ function InputLabel({ text, children, styles }) {
|
|
|
14110
14389
|
return /* @__PURE__ */ jsx(
|
|
14111
14390
|
"label",
|
|
14112
14391
|
{
|
|
14113
|
-
className:
|
|
14392
|
+
className: classNames17({
|
|
14114
14393
|
"px-0 eui-text-sm text-[13.5px] pointer-events-none select-none": true,
|
|
14115
14394
|
"transition-all ease-in-out": true,
|
|
14116
14395
|
[`${styles}`]: styles
|
|
@@ -14162,7 +14441,7 @@ var Input = ({
|
|
|
14162
14441
|
...field,
|
|
14163
14442
|
...props,
|
|
14164
14443
|
placeholder,
|
|
14165
|
-
className:
|
|
14444
|
+
className: classNames17({
|
|
14166
14445
|
"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,
|
|
14167
14446
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
14168
14447
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
@@ -14207,7 +14486,7 @@ var InputFile = ({
|
|
|
14207
14486
|
/* @__PURE__ */ jsx(
|
|
14208
14487
|
"div",
|
|
14209
14488
|
{
|
|
14210
|
-
className:
|
|
14489
|
+
className: classNames17(
|
|
14211
14490
|
"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",
|
|
14212
14491
|
{
|
|
14213
14492
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -14233,7 +14512,7 @@ var InputFile = ({
|
|
|
14233
14512
|
InputLabel_default,
|
|
14234
14513
|
{
|
|
14235
14514
|
text: placeholder,
|
|
14236
|
-
styles:
|
|
14515
|
+
styles: classNames17({
|
|
14237
14516
|
"absolute left-2 eui-text-sm peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none": true,
|
|
14238
14517
|
"top-[0.7px]": showFloatingLabel,
|
|
14239
14518
|
"top-[13px] text-base": !showFloatingLabel
|
|
@@ -14259,7 +14538,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
14259
14538
|
/* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(FieldArray, { name, children: ({ push, remove, move }) => /* @__PURE__ */ jsxs(
|
|
14260
14539
|
"div",
|
|
14261
14540
|
{
|
|
14262
|
-
className:
|
|
14541
|
+
className: classNames17({
|
|
14263
14542
|
"flex flex-col space-y-2 w-full bg-eui-primary-300/10": true,
|
|
14264
14543
|
[`${shapes[resolvedShape]}`]: true
|
|
14265
14544
|
}),
|
|
@@ -14290,7 +14569,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
14290
14569
|
{
|
|
14291
14570
|
name: `${name}[${index}]`,
|
|
14292
14571
|
placeholder: `Item ${index + 1}`,
|
|
14293
|
-
className:
|
|
14572
|
+
className: classNames17(
|
|
14294
14573
|
"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]",
|
|
14295
14574
|
[`${shapes[resolvedShape]}`],
|
|
14296
14575
|
errors[name]?.[index] ? "border-eui-danger-500" : "border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -14358,7 +14637,7 @@ var InputListGroup = ({
|
|
|
14358
14637
|
values[name]?.map((group, groupIndex) => /* @__PURE__ */ jsxs(
|
|
14359
14638
|
"div",
|
|
14360
14639
|
{
|
|
14361
|
-
className:
|
|
14640
|
+
className: classNames17({
|
|
14362
14641
|
"flex flex-col gap-2 bg-eui-primary-300/10 p-3": true,
|
|
14363
14642
|
[`${shapes[resolvedShape]}`]: true
|
|
14364
14643
|
}),
|
|
@@ -14370,7 +14649,7 @@ var InputListGroup = ({
|
|
|
14370
14649
|
{
|
|
14371
14650
|
name: `${name}[${groupIndex}].name`,
|
|
14372
14651
|
placeholder: `Group ${groupIndex + 1}`,
|
|
14373
|
-
className:
|
|
14652
|
+
className: classNames17(
|
|
14374
14653
|
"border w-full bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none h-[40px]",
|
|
14375
14654
|
[`${shapes[resolvedShape]}`],
|
|
14376
14655
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -14412,7 +14691,7 @@ var InputListGroup = ({
|
|
|
14412
14691
|
{
|
|
14413
14692
|
ref: provided.innerRef,
|
|
14414
14693
|
...provided.droppableProps,
|
|
14415
|
-
className:
|
|
14694
|
+
className: classNames17({
|
|
14416
14695
|
"space-y-2 bg-eui-primary-300/10 p-2": true,
|
|
14417
14696
|
[`${shapes[resolvedShape]}`]: true
|
|
14418
14697
|
}),
|
|
@@ -14427,7 +14706,7 @@ var InputListGroup = ({
|
|
|
14427
14706
|
{
|
|
14428
14707
|
ref: provided2.innerRef,
|
|
14429
14708
|
...provided2.draggableProps,
|
|
14430
|
-
className:
|
|
14709
|
+
className: classNames17({
|
|
14431
14710
|
"flex items-center gap-2 bg-eui-primary-300/10 p-2": true,
|
|
14432
14711
|
[`${shapes[resolvedShape]}`]: true
|
|
14433
14712
|
}),
|
|
@@ -14438,7 +14717,7 @@ var InputListGroup = ({
|
|
|
14438
14717
|
{
|
|
14439
14718
|
name: `${name}[${groupIndex}].items[${itemIndex}]`,
|
|
14440
14719
|
placeholder: `Item ${itemIndex + 1}`,
|
|
14441
|
-
className:
|
|
14720
|
+
className: classNames17(
|
|
14442
14721
|
"border w-full bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none h-[40px]",
|
|
14443
14722
|
[`${shapes[resolvedShape]}`],
|
|
14444
14723
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -14515,7 +14794,7 @@ var Checkbox = (props) => {
|
|
|
14515
14794
|
const { placeholder } = props;
|
|
14516
14795
|
const isMulti = isMultiCheckbox(props);
|
|
14517
14796
|
const [field, meta, helpers] = isMulti ? useField(props) : useField(props);
|
|
14518
|
-
const checkboxClass =
|
|
14797
|
+
const checkboxClass = classNames17(
|
|
14519
14798
|
"appearance-none cursor-pointer transition-all duration-300",
|
|
14520
14799
|
"w-5 h-5 min-w-[1.25rem] min-h-[1.25rem]",
|
|
14521
14800
|
"flex-shrink-0",
|
|
@@ -14616,7 +14895,7 @@ var DateSelector = ({
|
|
|
14616
14895
|
...field,
|
|
14617
14896
|
...props,
|
|
14618
14897
|
placeholder,
|
|
14619
|
-
className:
|
|
14898
|
+
className: classNames17({
|
|
14620
14899
|
"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,
|
|
14621
14900
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
14622
14901
|
"transition-all ease-in-out": true,
|
|
@@ -14725,7 +15004,7 @@ var ImageInput = forwardRef(
|
|
|
14725
15004
|
/* @__PURE__ */ jsxs(
|
|
14726
15005
|
"label",
|
|
14727
15006
|
{
|
|
14728
|
-
className:
|
|
15007
|
+
className: classNames17({
|
|
14729
15008
|
"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,
|
|
14730
15009
|
"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
|
|
14731
15010
|
"transition-all ease-in-out duration-150": true
|
|
@@ -14842,7 +15121,7 @@ function Radio({
|
|
|
14842
15121
|
return /* @__PURE__ */ jsxs(
|
|
14843
15122
|
"div",
|
|
14844
15123
|
{
|
|
14845
|
-
className:
|
|
15124
|
+
className: classNames17({
|
|
14846
15125
|
"flex flex-row gap-2 items-center mx-1 my-2": true
|
|
14847
15126
|
}),
|
|
14848
15127
|
children: [
|
|
@@ -14855,7 +15134,7 @@ function Radio({
|
|
|
14855
15134
|
...props,
|
|
14856
15135
|
value: option.value,
|
|
14857
15136
|
checked: field2.value === option.value,
|
|
14858
|
-
className:
|
|
15137
|
+
className: classNames17({
|
|
14859
15138
|
"appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
|
|
14860
15139
|
// base radio button styles
|
|
14861
15140
|
"checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
|
|
@@ -14867,7 +15146,7 @@ function Radio({
|
|
|
14867
15146
|
"label",
|
|
14868
15147
|
{
|
|
14869
15148
|
htmlFor: option.value,
|
|
14870
|
-
className:
|
|
15149
|
+
className: classNames17({
|
|
14871
15150
|
"eui-text-md text-sm": true
|
|
14872
15151
|
}),
|
|
14873
15152
|
children: option.label
|
|
@@ -14910,7 +15189,7 @@ function StarRatingInput({
|
|
|
14910
15189
|
return /* @__PURE__ */ jsxs(
|
|
14911
15190
|
"div",
|
|
14912
15191
|
{
|
|
14913
|
-
className:
|
|
15192
|
+
className: classNames17({
|
|
14914
15193
|
"inline-flex gap-[4px] text-[20px]": true,
|
|
14915
15194
|
[`${styles}`]: styles
|
|
14916
15195
|
}),
|
|
@@ -14923,7 +15202,7 @@ function StarRatingInput({
|
|
|
14923
15202
|
onClick: () => handleOnClick(index),
|
|
14924
15203
|
onMouseEnter: () => setHover(index),
|
|
14925
15204
|
onMouseLeave: () => setHover(null),
|
|
14926
|
-
className:
|
|
15205
|
+
className: classNames17({
|
|
14927
15206
|
"text-yellow-600": index <= (hover ?? rating - 1),
|
|
14928
15207
|
"text-gray-400": index > (hover ?? rating - 1)
|
|
14929
15208
|
}),
|
|
@@ -14967,7 +15246,7 @@ function Select({
|
|
|
14967
15246
|
{
|
|
14968
15247
|
as: "select",
|
|
14969
15248
|
...props,
|
|
14970
|
-
className:
|
|
15249
|
+
className: classNames17({
|
|
14971
15250
|
"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,
|
|
14972
15251
|
"border-eui-primary-400": !(meta.touched && meta.error),
|
|
14973
15252
|
"border-red-500": meta.touched && meta.error,
|
|
@@ -15019,7 +15298,7 @@ function Switch({
|
|
|
15019
15298
|
"div",
|
|
15020
15299
|
{
|
|
15021
15300
|
onClick: () => helpers.setValue(!field.value),
|
|
15022
|
-
className:
|
|
15301
|
+
className: classNames17(
|
|
15023
15302
|
"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
|
|
15024
15303
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
15025
15304
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
|
|
@@ -15076,7 +15355,7 @@ function Tags({
|
|
|
15076
15355
|
/* @__PURE__ */ jsxs(
|
|
15077
15356
|
"div",
|
|
15078
15357
|
{
|
|
15079
|
-
className:
|
|
15358
|
+
className: classNames17(
|
|
15080
15359
|
"border rounded-sm flex flex-wrap items-center gap-2 px-2 pt-2 pb-6 min-h-[3rem]",
|
|
15081
15360
|
{
|
|
15082
15361
|
"bg-eui-primary-300/10 eui-text-md": true,
|
|
@@ -15124,7 +15403,7 @@ function Tags({
|
|
|
15124
15403
|
InputLabel_default,
|
|
15125
15404
|
{
|
|
15126
15405
|
text: placeholder,
|
|
15127
|
-
styles:
|
|
15406
|
+
styles: classNames17(
|
|
15128
15407
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
15129
15408
|
input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
15130
15409
|
)
|
|
@@ -15165,7 +15444,7 @@ function TextArea({
|
|
|
15165
15444
|
as: "textarea",
|
|
15166
15445
|
...field,
|
|
15167
15446
|
...props,
|
|
15168
|
-
className:
|
|
15447
|
+
className: classNames17({
|
|
15169
15448
|
"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,
|
|
15170
15449
|
"transition-all ease-in-out": true,
|
|
15171
15450
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -15179,7 +15458,7 @@ function TextArea({
|
|
|
15179
15458
|
InputLabel_default,
|
|
15180
15459
|
{
|
|
15181
15460
|
text: placeholder,
|
|
15182
|
-
styles:
|
|
15461
|
+
styles: classNames17(
|
|
15183
15462
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
15184
15463
|
field.value ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
15185
15464
|
)
|
|
@@ -15210,7 +15489,7 @@ function ContentArea({
|
|
|
15210
15489
|
return /* @__PURE__ */ jsx(
|
|
15211
15490
|
"div",
|
|
15212
15491
|
{
|
|
15213
|
-
className:
|
|
15492
|
+
className: classNames17({
|
|
15214
15493
|
"min-h-screen h-full w-full py-3 px-5": true,
|
|
15215
15494
|
"py-3 px-5": !enablePadding,
|
|
15216
15495
|
"py-3 px-5 lg:px-[150px]": enablePadding,
|
|
@@ -15226,7 +15505,7 @@ function FlexCol({ children, gap = 3, styles }) {
|
|
|
15226
15505
|
return /* @__PURE__ */ jsx(
|
|
15227
15506
|
"div",
|
|
15228
15507
|
{
|
|
15229
|
-
className:
|
|
15508
|
+
className: classNames17({
|
|
15230
15509
|
[`flex flex-col gap-${gap}`]: true,
|
|
15231
15510
|
[`${styles}`]: styles
|
|
15232
15511
|
}),
|
|
@@ -15239,7 +15518,7 @@ function FlexRow({ children, gap = 3, styles }) {
|
|
|
15239
15518
|
return /* @__PURE__ */ jsx(
|
|
15240
15519
|
"div",
|
|
15241
15520
|
{
|
|
15242
|
-
className:
|
|
15521
|
+
className: classNames17({
|
|
15243
15522
|
[`flex flex-row gap-${gap}`]: true,
|
|
15244
15523
|
[`${styles}`]: styles
|
|
15245
15524
|
}),
|
|
@@ -15258,7 +15537,7 @@ function Grid({ children, styles }) {
|
|
|
15258
15537
|
return /* @__PURE__ */ jsx(
|
|
15259
15538
|
"div",
|
|
15260
15539
|
{
|
|
15261
|
-
className:
|
|
15540
|
+
className: classNames17({
|
|
15262
15541
|
[`grid`]: true,
|
|
15263
15542
|
[`${styles}`]: styles
|
|
15264
15543
|
}),
|
|
@@ -15275,7 +15554,7 @@ var Layout = ({
|
|
|
15275
15554
|
return /* @__PURE__ */ jsx(
|
|
15276
15555
|
"div",
|
|
15277
15556
|
{
|
|
15278
|
-
className:
|
|
15557
|
+
className: classNames17({
|
|
15279
15558
|
// "flex h-full w-screen bg-gray-100 overflow-auto": true,
|
|
15280
15559
|
"flex bg-eui-light-600": true,
|
|
15281
15560
|
"flex-col": flexDirection === "vertical",
|
|
@@ -15294,7 +15573,7 @@ var Header = ({
|
|
|
15294
15573
|
return /* @__PURE__ */ jsx(
|
|
15295
15574
|
"div",
|
|
15296
15575
|
{
|
|
15297
|
-
className:
|
|
15576
|
+
className: classNames17({
|
|
15298
15577
|
static: position === "static",
|
|
15299
15578
|
fixed: position === "fixed",
|
|
15300
15579
|
sticky: position === "sticky",
|
|
@@ -15334,7 +15613,7 @@ var Content = ({
|
|
|
15334
15613
|
return /* @__PURE__ */ jsx(
|
|
15335
15614
|
"div",
|
|
15336
15615
|
{
|
|
15337
|
-
className:
|
|
15616
|
+
className: classNames17({
|
|
15338
15617
|
"w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
|
|
15339
15618
|
"md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
|
|
15340
15619
|
// Shift when sidebar is open (desktop)
|
|
@@ -15350,7 +15629,7 @@ var Footer = ({ children, styles }) => {
|
|
|
15350
15629
|
return /* @__PURE__ */ jsx(
|
|
15351
15630
|
"div",
|
|
15352
15631
|
{
|
|
15353
|
-
className:
|
|
15632
|
+
className: classNames17({
|
|
15354
15633
|
"bottom-0 w-full h-fit": true,
|
|
15355
15634
|
"border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
|
|
15356
15635
|
[`${styles}`]: styles
|
|
@@ -15438,7 +15717,7 @@ function MarkdownEditor({
|
|
|
15438
15717
|
const [field, meta, helpers] = useField(props);
|
|
15439
15718
|
const { theme } = useTheme_default();
|
|
15440
15719
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
15441
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
15720
|
+
/* @__PURE__ */ jsx("div", { className: classNames17(theme === "dark" ? "dark" : "", styles), children: /* @__PURE__ */ jsx(
|
|
15442
15721
|
MDXEditor,
|
|
15443
15722
|
{
|
|
15444
15723
|
markdown: field.value,
|
|
@@ -15541,7 +15820,7 @@ function MarkdownTOC({ title = "Table of Contents" }) {
|
|
|
15541
15820
|
"button",
|
|
15542
15821
|
{
|
|
15543
15822
|
onClick: () => scrollToHeading(heading.id),
|
|
15544
|
-
className:
|
|
15823
|
+
className: classNames17(
|
|
15545
15824
|
"block w-full text-left text-sm transition-all ease-in-out duration-150",
|
|
15546
15825
|
"hover:text-primary",
|
|
15547
15826
|
activeHeading === heading.id ? "text-primary font-semibold underline" : "text-gray-500 dark:text-gray-400"
|
|
@@ -15697,7 +15976,7 @@ function BreadcrumbItem({
|
|
|
15697
15976
|
{
|
|
15698
15977
|
href,
|
|
15699
15978
|
onClick,
|
|
15700
|
-
className:
|
|
15979
|
+
className: classNames17({
|
|
15701
15980
|
"text-lg font-semibold": true,
|
|
15702
15981
|
"text-gray-400 hover:text-gray-600 cursor-pointer": !active,
|
|
15703
15982
|
"text-eui-light-800": active,
|
|
@@ -15774,7 +16053,7 @@ var Breadcrumb = ({
|
|
|
15774
16053
|
index < resolvedData.length - 1 && /* @__PURE__ */ jsx(
|
|
15775
16054
|
"span",
|
|
15776
16055
|
{
|
|
15777
|
-
className:
|
|
16056
|
+
className: classNames17({
|
|
15778
16057
|
"text-lg font-semibold text-gray-500": true,
|
|
15779
16058
|
[`px-${gap}`]: gap
|
|
15780
16059
|
}),
|
|
@@ -15788,7 +16067,7 @@ var Breadcrumb = ({
|
|
|
15788
16067
|
return /* @__PURE__ */ jsx(
|
|
15789
16068
|
"div",
|
|
15790
16069
|
{
|
|
15791
|
-
className:
|
|
16070
|
+
className: classNames17({
|
|
15792
16071
|
"inline-flex": true,
|
|
15793
16072
|
[`${styles}`]: styles
|
|
15794
16073
|
}),
|
|
@@ -15818,7 +16097,7 @@ var Drawer = ({
|
|
|
15818
16097
|
{
|
|
15819
16098
|
show: visibility,
|
|
15820
16099
|
enter: "transform transition duration-200 ease-out",
|
|
15821
|
-
enterFrom:
|
|
16100
|
+
enterFrom: classNames17({
|
|
15822
16101
|
"-translate-x-full": side === "left",
|
|
15823
16102
|
"translate-x-full": side === "right",
|
|
15824
16103
|
"-translate-y-full": side === "top",
|
|
@@ -15827,7 +16106,7 @@ var Drawer = ({
|
|
|
15827
16106
|
enterTo: "translate-x-0 translate-y-0",
|
|
15828
16107
|
leave: "transform transition duration-200 ease-in",
|
|
15829
16108
|
leaveFrom: "translate-x-0 translate-y-0",
|
|
15830
|
-
leaveTo:
|
|
16109
|
+
leaveTo: classNames17({
|
|
15831
16110
|
"-translate-x-full": side === "left",
|
|
15832
16111
|
"translate-x-full": side === "right",
|
|
15833
16112
|
"-translate-y-full": side === "top",
|
|
@@ -15836,7 +16115,7 @@ var Drawer = ({
|
|
|
15836
16115
|
children: /* @__PURE__ */ jsx(
|
|
15837
16116
|
"div",
|
|
15838
16117
|
{
|
|
15839
|
-
className:
|
|
16118
|
+
className: classNames17(
|
|
15840
16119
|
"fixed shadow-lg z-50",
|
|
15841
16120
|
{
|
|
15842
16121
|
"h-full w-[300px]": isHorizontal,
|
|
@@ -15868,7 +16147,7 @@ function DrawerToggler({
|
|
|
15868
16147
|
return /* @__PURE__ */ jsx(
|
|
15869
16148
|
"div",
|
|
15870
16149
|
{
|
|
15871
|
-
className:
|
|
16150
|
+
className: classNames17({
|
|
15872
16151
|
"text-xl p-3 cursor-pointer": true,
|
|
15873
16152
|
"transition-all ease-in-out": true,
|
|
15874
16153
|
"text-eui-dark-500 dark:text-eui-secondary-600": !styles,
|
|
@@ -15916,7 +16195,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
15916
16195
|
childrenContent = /* @__PURE__ */ jsx(
|
|
15917
16196
|
"div",
|
|
15918
16197
|
{
|
|
15919
|
-
className:
|
|
16198
|
+
className: classNames17({
|
|
15920
16199
|
"grid w-full": true,
|
|
15921
16200
|
"grid-cols-1": isMobile,
|
|
15922
16201
|
"grid-cols-3": !isMobile,
|
|
@@ -15929,7 +16208,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
15929
16208
|
return /* @__PURE__ */ jsx(
|
|
15930
16209
|
"div",
|
|
15931
16210
|
{
|
|
15932
|
-
className:
|
|
16211
|
+
className: classNames17({
|
|
15933
16212
|
[`${styles}`]: styles
|
|
15934
16213
|
}),
|
|
15935
16214
|
children: childrenContent
|
|
@@ -15970,7 +16249,7 @@ var FooterNavGroup = ({
|
|
|
15970
16249
|
/* @__PURE__ */ jsx(
|
|
15971
16250
|
"div",
|
|
15972
16251
|
{
|
|
15973
|
-
className:
|
|
16252
|
+
className: classNames17({
|
|
15974
16253
|
"": true,
|
|
15975
16254
|
"py-2 font-semibold eui-text-lg": !styles,
|
|
15976
16255
|
[`${styles}`]: styles
|
|
@@ -16015,7 +16294,7 @@ var FooterNavItem = ({
|
|
|
16015
16294
|
"div",
|
|
16016
16295
|
{
|
|
16017
16296
|
onClick: handleNavigation,
|
|
16018
|
-
className:
|
|
16297
|
+
className: classNames17({
|
|
16019
16298
|
"flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
|
|
16020
16299
|
"transition-all duration-200 ease-in-out": true,
|
|
16021
16300
|
"text-sm eui-text-sm": !styles,
|
|
@@ -16044,7 +16323,7 @@ var FooterNavItemTitle = ({
|
|
|
16044
16323
|
return /* @__PURE__ */ jsx(
|
|
16045
16324
|
"div",
|
|
16046
16325
|
{
|
|
16047
|
-
className:
|
|
16326
|
+
className: classNames17({
|
|
16048
16327
|
"": true,
|
|
16049
16328
|
"py-2 font-thin eui-text-md": !styles,
|
|
16050
16329
|
[`${styles}`]: styles
|
|
@@ -16097,7 +16376,7 @@ function HeaderNav({ data = [], styles }) {
|
|
|
16097
16376
|
return /* @__PURE__ */ jsx(
|
|
16098
16377
|
"div",
|
|
16099
16378
|
{
|
|
16100
|
-
className:
|
|
16379
|
+
className: classNames17({
|
|
16101
16380
|
[`${styles}`]: styles
|
|
16102
16381
|
}),
|
|
16103
16382
|
children: childrenContent
|
|
@@ -16159,7 +16438,7 @@ var HeaderNavGroup = ({
|
|
|
16159
16438
|
/* @__PURE__ */ jsxs(
|
|
16160
16439
|
"div",
|
|
16161
16440
|
{
|
|
16162
|
-
className:
|
|
16441
|
+
className: classNames17({
|
|
16163
16442
|
"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
|
|
16164
16443
|
"transition-all duration-300 ease-in-out": true,
|
|
16165
16444
|
"eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
|
|
@@ -16187,7 +16466,7 @@ var HeaderNavGroup = ({
|
|
|
16187
16466
|
children && /* @__PURE__ */ jsx(
|
|
16188
16467
|
BsChevronDown,
|
|
16189
16468
|
{
|
|
16190
|
-
className:
|
|
16469
|
+
className: classNames17({
|
|
16191
16470
|
"text-md": true,
|
|
16192
16471
|
"transition-all ease-in-out duration-300": true,
|
|
16193
16472
|
"rotate-180": !collapsed
|
|
@@ -16200,7 +16479,7 @@ var HeaderNavGroup = ({
|
|
|
16200
16479
|
!collapsed && children && /* @__PURE__ */ jsx(
|
|
16201
16480
|
"div",
|
|
16202
16481
|
{
|
|
16203
|
-
className:
|
|
16482
|
+
className: classNames17({
|
|
16204
16483
|
"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,
|
|
16205
16484
|
"transition-all duration-300 ease-in-out": true
|
|
16206
16485
|
}),
|
|
@@ -16230,7 +16509,7 @@ var HeaderNavItem = ({
|
|
|
16230
16509
|
"div",
|
|
16231
16510
|
{
|
|
16232
16511
|
onClick: handleNavigation,
|
|
16233
|
-
className:
|
|
16512
|
+
className: classNames17({
|
|
16234
16513
|
"flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
|
|
16235
16514
|
"transition-all duration-200 ease-in-out": true,
|
|
16236
16515
|
"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,
|
|
@@ -16259,7 +16538,7 @@ var HeaderNavItemTitle = ({
|
|
|
16259
16538
|
return /* @__PURE__ */ jsx(
|
|
16260
16539
|
"div",
|
|
16261
16540
|
{
|
|
16262
|
-
className:
|
|
16541
|
+
className: classNames17({
|
|
16263
16542
|
"p-3 font-thin": true,
|
|
16264
16543
|
"eui-text-md": !styles,
|
|
16265
16544
|
[`${styles}`]: styles
|
|
@@ -16299,7 +16578,7 @@ var Link = ({
|
|
|
16299
16578
|
href: href || "#",
|
|
16300
16579
|
target: targets[target],
|
|
16301
16580
|
onClick: handleClick,
|
|
16302
|
-
className:
|
|
16581
|
+
className: classNames17({
|
|
16303
16582
|
[`${textVariants[variant]}`]: variant,
|
|
16304
16583
|
[`${decorations[decoration]}`]: decoration,
|
|
16305
16584
|
"font-bold": bold,
|
|
@@ -16764,7 +17043,7 @@ function Modal({
|
|
|
16764
17043
|
"div",
|
|
16765
17044
|
{
|
|
16766
17045
|
ref: modalRef,
|
|
16767
|
-
className:
|
|
17046
|
+
className: classNames17({
|
|
16768
17047
|
"eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit": true,
|
|
16769
17048
|
[`${shapes[resolvedShape]}`]: true,
|
|
16770
17049
|
[`${styles}`]: styles
|
|
@@ -16775,7 +17054,7 @@ function Modal({
|
|
|
16775
17054
|
/* @__PURE__ */ jsx(
|
|
16776
17055
|
"div",
|
|
16777
17056
|
{
|
|
16778
|
-
className:
|
|
17057
|
+
className: classNames17({
|
|
16779
17058
|
"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast": true,
|
|
16780
17059
|
"hover:cursor-pointer hover:bg-eui-dark-500": true
|
|
16781
17060
|
}),
|
|
@@ -16881,7 +17160,7 @@ function ShowMore({ text, limit }) {
|
|
|
16881
17160
|
/* @__PURE__ */ jsx(
|
|
16882
17161
|
"div",
|
|
16883
17162
|
{
|
|
16884
|
-
className:
|
|
17163
|
+
className: classNames17({
|
|
16885
17164
|
"text-blue-300 px-1 pb-1 mt-1": true,
|
|
16886
17165
|
"bg-slate-900/70": !showMore,
|
|
16887
17166
|
"bg-gradient-to-t from-slate-900/50 to-transparent": showMore
|
|
@@ -17132,7 +17411,7 @@ function BoxNavItem({ icon, name, to, selected, onClick }) {
|
|
|
17132
17411
|
type: "button",
|
|
17133
17412
|
onClick: handleClick,
|
|
17134
17413
|
"aria-current": selected ? "page" : void 0,
|
|
17135
|
-
className:
|
|
17414
|
+
className: classNames17(
|
|
17136
17415
|
"w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
|
|
17137
17416
|
"hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
|
|
17138
17417
|
selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
|
|
@@ -17522,7 +17801,7 @@ function GenericLayout({
|
|
|
17522
17801
|
return /* @__PURE__ */ jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsx(
|
|
17523
17802
|
"div",
|
|
17524
17803
|
{
|
|
17525
|
-
className:
|
|
17804
|
+
className: classNames17({
|
|
17526
17805
|
[`${styles}`]: styles
|
|
17527
17806
|
}),
|
|
17528
17807
|
children
|
|
@@ -17571,7 +17850,7 @@ function SidemenuLayout({ data, children }) {
|
|
|
17571
17850
|
return /* @__PURE__ */ jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxs(
|
|
17572
17851
|
"div",
|
|
17573
17852
|
{
|
|
17574
|
-
className:
|
|
17853
|
+
className: classNames17({
|
|
17575
17854
|
grid: true,
|
|
17576
17855
|
"grid-cols-7 gap-10": !isMobile,
|
|
17577
17856
|
"grid-cols-1 gap-": isMobile
|
|
@@ -17599,11 +17878,11 @@ function EUIDevLayout({
|
|
|
17599
17878
|
shape: "roundedSquare"
|
|
17600
17879
|
}
|
|
17601
17880
|
},
|
|
17602
|
-
children: /* @__PURE__ */ jsx(
|
|
17881
|
+
children: /* @__PURE__ */ jsx(GenericLayout_default, { children: /* @__PURE__ */ jsxs(Layout, { children: [
|
|
17603
17882
|
header,
|
|
17604
17883
|
/* @__PURE__ */ jsx(Content, { styles: "pt-[60px]", children: /* @__PURE__ */ jsx(ContentArea_default, { enablePadding: true, children }) }),
|
|
17605
17884
|
footer
|
|
17606
|
-
] }) })
|
|
17885
|
+
] }) })
|
|
17607
17886
|
}
|
|
17608
17887
|
);
|
|
17609
17888
|
}
|
|
@@ -17630,6 +17909,6 @@ function ScrollToTop({
|
|
|
17630
17909
|
}
|
|
17631
17910
|
var ScrollToTop_default = ScrollToTop;
|
|
17632
17911
|
|
|
17633
|
-
export { Accordion_default as Accordion, AsyncComponentWrapper_default as AsyncComponentWrapper, Avatar, Backdrop_default as Backdrop, Badge, BarChart_default as BarChart, Block_default as Block, BlockGroup_default as BlockGroup, BoxNav_default as BoxNav, BoxNavItem_default as BoxNavItem, Brand_default as Brand, Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, Button, Card_default as Card, CardContent_default as CardContent, CardFooter_default as CardFooter, CardHeader_default as CardHeader, Chapter, Checkbox_default as Checkbox, Chip, CloudinaryImage_default as CloudinaryImage,
|
|
17912
|
+
export { Accordion_default as Accordion, AsyncComponentWrapper_default as AsyncComponentWrapper, Avatar, Backdrop_default as Backdrop, Badge, BarChart_default as BarChart, Block_default as Block, BlockGroup_default as BlockGroup, BoxNav_default as BoxNav, BoxNavItem_default as BoxNavItem, Brand_default as Brand, Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, Button, Caption, Card_default as Card, CardContent_default as CardContent, CardFooter_default as CardFooter, CardHeader_default as CardHeader, Chapter, Checkbox_default as Checkbox, Chip, CloudinaryImage_default as CloudinaryImage, CloudinaryVideo_default as CloudinaryVideo, Code, Content, ContentArea_default as ContentArea, DataView, DataViewTable_default as DataViewTable, DateSelector_default as DateSelector, DefaultLayout_default as DefaultLayout, Display, DocumentationPanel_default as DocumentationPanel, Drawer, DrawerToggler_default as DrawerToggler, EUIDevLayout_default as EUIDevLayout, EUIProvider, Flag, Flex, FlexCol_default as FlexCol, FlexRow_default as FlexRow, Footer, FooterNav_default as FooterNav, FooterNavGroup_default as FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse_default as FormResponse, GenericLayout_default as GenericLayout, GlowWrapper_default as GlowWrapper, Graph, GraphEdge, GraphNode, GraphRenderer, Grid_default as Grid, Header, HeaderNav_default as HeaderNav, HeaderNavGroup_default as HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout_default as HomeLayout, Image2 as Image, ImageInput_default as ImageInput, Info_default as Info, Input, InputFile, InputLabel_default as InputLabel, InputList, InputListGroup, InputResponse_default as InputResponse, Label, Layout, Lead, LineChart_default as LineChart, Link, List_default as List, ListItem_default as ListItem, MarkdownEditor_default as MarkdownEditor, MarkdownProvider_default as MarkdownProvider, MarkdownTOC_default as MarkdownTOC, MarkdownViewer_default as MarkdownViewer, Menu, MenuGroup, MenuItem, MenuItemTitle, Modal_default as Modal, MotionSurface_default as MotionSurface, MultiImageInput_default as MultiImageInput, Overline, Paragraph, PieChart_default as PieChart, PriceTag, ProgressBar, Quote, Radio_default as Radio, RouteTab_default as RouteTab, RouteTabs_default as RouteTabs, ScrollToTop_default as ScrollToTop, Section, Select_default as Select, ShapeSwitch, ShowMore_default as ShowMore, Sidebar_default as Sidebar, SidebarLayout_default as SidebarLayout, SidemenuLayout_default as SidemenuLayout, Skeleton, Slider_default as Slider, StarRating_default as StarRating, StarRatingDistribution_default as StarRatingDistribution, StarRatingInput_default as StarRatingInput, Switch_default as Switch, TNDropdown, TNDropdownItem, TNDropdownTitle, TNGroup, Table_default as Table, Tag_default as Tag, Tags_default as Tags, TextArea_default as TextArea, ThemeContext, ThemeProvider, ThemeSwitch, TitleBanner, Toast, Tooltip4 as Tooltip, TopNav, Transition4 as Transition, TransitionDropdown_default as TransitionDropdown, TransitionFadeIn_default as TransitionFadeIn, Typography, UnderConstructionBanner, ValueBadge_default as ValueBadge, WorldMap, WorldMapCountryTable, YoutubeVideo_default as YoutubeVideoPlayer, cn, createForceLayout, createGridLayout, createTreeLayout, enumValues, getCurrencySymbol, getLayout, isMatch, isRenderFn, normalize, registerLayout, resolveWithGlobal, sendToast, useClickOutside, useCurrentTheme_default as useCurrentTheme, useDrawer_default as useDrawer, useEUIConfig, useIsMobile_default as useIsMobile, useModal_default as useModal, useTheme_default as useTheme };
|
|
17634
17913
|
//# sourceMappingURL=index.mjs.map
|
|
17635
17914
|
//# sourceMappingURL=index.mjs.map
|