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.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,9 @@ var Graph = ({
|
|
|
1555
1555
|
}
|
|
1556
1556
|
);
|
|
1557
1557
|
};
|
|
1558
|
-
var
|
|
1559
|
-
var CloudinaryProvider = ({
|
|
1560
|
-
cloudName,
|
|
1561
|
-
children
|
|
1562
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(CloudinaryContextConfig.Provider, { value: { cloudName }, children });
|
|
1558
|
+
var CloudinaryContext = React4.createContext(null);
|
|
1563
1559
|
var useCloudinaryConfig = () => {
|
|
1564
|
-
const ctx = React4.useContext(
|
|
1560
|
+
const ctx = React4.useContext(CloudinaryContext);
|
|
1565
1561
|
if (!ctx) {
|
|
1566
1562
|
throw new Error(
|
|
1567
1563
|
"CloudinaryProvider is missing. Wrap your app with <CloudinaryProvider />"
|
|
@@ -1571,10 +1567,12 @@ var useCloudinaryConfig = () => {
|
|
|
1571
1567
|
};
|
|
1572
1568
|
var DEFAULT_PUBLIC_CLOUD = "demo";
|
|
1573
1569
|
function CloudinaryImage({
|
|
1574
|
-
publicId,
|
|
1570
|
+
publicId = "sample",
|
|
1575
1571
|
cloudName,
|
|
1576
1572
|
secure = true,
|
|
1577
|
-
alt,
|
|
1573
|
+
alt = "image",
|
|
1574
|
+
fallbackSrc,
|
|
1575
|
+
loading = "lazy",
|
|
1578
1576
|
className,
|
|
1579
1577
|
...rest
|
|
1580
1578
|
}) {
|
|
@@ -1584,10 +1582,16 @@ function CloudinaryImage({
|
|
|
1584
1582
|
cloudinaryReact.Image,
|
|
1585
1583
|
{
|
|
1586
1584
|
...rest,
|
|
1587
|
-
publicId
|
|
1585
|
+
publicId,
|
|
1588
1586
|
secure,
|
|
1589
1587
|
alt,
|
|
1590
|
-
|
|
1588
|
+
loading,
|
|
1589
|
+
className: cn(className),
|
|
1590
|
+
onError: (e) => {
|
|
1591
|
+
if (fallbackSrc) {
|
|
1592
|
+
e.currentTarget.src = fallbackSrc;
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1591
1595
|
}
|
|
1592
1596
|
) });
|
|
1593
1597
|
}
|
|
@@ -1638,114 +1642,335 @@ function Info({
|
|
|
1638
1642
|
);
|
|
1639
1643
|
}
|
|
1640
1644
|
var Info_default = Info;
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
+
|
|
1646
|
+
// src/components/data-display/typography/shared/typography.levels.ts
|
|
1647
|
+
var typographyLevels = {
|
|
1648
|
+
display: {
|
|
1649
|
+
1: "text-8xl leading-[120px]",
|
|
1650
|
+
2: "text-7xl leading-[110px]",
|
|
1651
|
+
3: "text-6xl leading-[100px]"
|
|
1652
|
+
},
|
|
1653
|
+
chapter: {
|
|
1654
|
+
1: "text-5xl leading-[90px]",
|
|
1655
|
+
2: "text-4xl leading-[80px]",
|
|
1656
|
+
3: "text-3xl leading-[70px]"
|
|
1657
|
+
},
|
|
1658
|
+
section: {
|
|
1659
|
+
1: "text-2xl leading-[50px] pt-4",
|
|
1660
|
+
2: "text-xl leading-[50px]",
|
|
1661
|
+
3: "text-lg leading-[40px]"
|
|
1662
|
+
},
|
|
1663
|
+
paragraph: {
|
|
1664
|
+
1: "text-base leading-[28px]",
|
|
1665
|
+
2: "text-sm leading-[25px]",
|
|
1666
|
+
3: "text-xs leading-[20px]"
|
|
1667
|
+
},
|
|
1668
|
+
quote: {
|
|
1669
|
+
1: "text-base leading-[28px]",
|
|
1670
|
+
2: "text-sm leading-[25px]",
|
|
1671
|
+
3: "text-xs leading-[20px]"
|
|
1672
|
+
}
|
|
1645
1673
|
};
|
|
1674
|
+
|
|
1675
|
+
// src/components/data-display/typography/shared/typography.styles.ts
|
|
1676
|
+
var typographyStyles = ({
|
|
1677
|
+
variant = "default",
|
|
1678
|
+
decoration = "noUnderline",
|
|
1679
|
+
bold,
|
|
1680
|
+
italic,
|
|
1681
|
+
className
|
|
1682
|
+
}) => cn(
|
|
1683
|
+
textVariants[variant],
|
|
1684
|
+
decorations[decoration],
|
|
1685
|
+
bold && "font-bold",
|
|
1686
|
+
italic && "italic",
|
|
1687
|
+
className
|
|
1688
|
+
);
|
|
1646
1689
|
var Chapter = ({
|
|
1647
1690
|
level = 1,
|
|
1648
1691
|
children,
|
|
1649
|
-
variant
|
|
1650
|
-
decoration
|
|
1692
|
+
variant,
|
|
1693
|
+
decoration,
|
|
1651
1694
|
bold,
|
|
1652
1695
|
italic,
|
|
1653
|
-
|
|
1654
|
-
|
|
1696
|
+
className,
|
|
1697
|
+
...rest
|
|
1655
1698
|
}) => {
|
|
1699
|
+
const Tag2 = level === 1 ? "h1" : level === 2 ? "h2" : "h3";
|
|
1656
1700
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1657
|
-
|
|
1701
|
+
Tag2,
|
|
1658
1702
|
{
|
|
1659
|
-
|
|
1660
|
-
className:
|
|
1661
|
-
[
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1703
|
+
...rest,
|
|
1704
|
+
className: cn(
|
|
1705
|
+
typographyLevels.chapter[level],
|
|
1706
|
+
typographyStyles({
|
|
1707
|
+
variant,
|
|
1708
|
+
decoration,
|
|
1709
|
+
bold,
|
|
1710
|
+
italic,
|
|
1711
|
+
className
|
|
1712
|
+
})
|
|
1713
|
+
),
|
|
1714
|
+
children: children || "Chapter"
|
|
1669
1715
|
}
|
|
1670
1716
|
);
|
|
1671
1717
|
};
|
|
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
1718
|
var Section = ({
|
|
1678
1719
|
level = 1,
|
|
1679
1720
|
children,
|
|
1680
|
-
variant
|
|
1681
|
-
decoration
|
|
1721
|
+
variant,
|
|
1722
|
+
decoration,
|
|
1682
1723
|
bold,
|
|
1683
1724
|
italic,
|
|
1684
|
-
|
|
1685
|
-
|
|
1725
|
+
className,
|
|
1726
|
+
...rest
|
|
1686
1727
|
}) => {
|
|
1728
|
+
const Tag2 = level === 1 ? "h4" : level === 2 ? "h5" : "h6";
|
|
1687
1729
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1688
|
-
|
|
1730
|
+
Tag2,
|
|
1689
1731
|
{
|
|
1690
|
-
|
|
1691
|
-
className:
|
|
1692
|
-
|
|
1693
|
-
[
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1732
|
+
...rest,
|
|
1733
|
+
className: cn(
|
|
1734
|
+
"opacity-80",
|
|
1735
|
+
typographyLevels.section[level],
|
|
1736
|
+
typographyStyles({
|
|
1737
|
+
variant,
|
|
1738
|
+
decoration,
|
|
1739
|
+
bold,
|
|
1740
|
+
italic,
|
|
1741
|
+
className
|
|
1742
|
+
})
|
|
1743
|
+
),
|
|
1744
|
+
children: children || "Section"
|
|
1700
1745
|
}
|
|
1701
1746
|
);
|
|
1702
1747
|
};
|
|
1703
|
-
var levels3 = {
|
|
1704
|
-
1: "text-base leading-[28px]",
|
|
1705
|
-
2: "text-sm leading-[25px]",
|
|
1706
|
-
3: "text-xs leading-[20px]"
|
|
1707
|
-
};
|
|
1708
1748
|
var Paragraph = ({
|
|
1709
1749
|
level = 1,
|
|
1710
1750
|
children,
|
|
1711
|
-
variant
|
|
1712
|
-
decoration
|
|
1751
|
+
variant,
|
|
1752
|
+
decoration,
|
|
1713
1753
|
bold,
|
|
1714
1754
|
italic,
|
|
1715
|
-
|
|
1716
|
-
|
|
1755
|
+
className,
|
|
1756
|
+
...rest
|
|
1757
|
+
}) => {
|
|
1758
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1759
|
+
"p",
|
|
1760
|
+
{
|
|
1761
|
+
...rest,
|
|
1762
|
+
className: cn(
|
|
1763
|
+
typographyLevels.paragraph[level],
|
|
1764
|
+
typographyStyles({
|
|
1765
|
+
variant,
|
|
1766
|
+
decoration,
|
|
1767
|
+
bold,
|
|
1768
|
+
italic,
|
|
1769
|
+
className
|
|
1770
|
+
})
|
|
1771
|
+
),
|
|
1772
|
+
children: children || "Paragraph"
|
|
1773
|
+
}
|
|
1774
|
+
);
|
|
1775
|
+
};
|
|
1776
|
+
var Quote = ({
|
|
1777
|
+
level = 1,
|
|
1778
|
+
children,
|
|
1779
|
+
variant,
|
|
1780
|
+
decoration,
|
|
1781
|
+
bold,
|
|
1782
|
+
italic,
|
|
1783
|
+
className,
|
|
1784
|
+
...rest
|
|
1717
1785
|
}) => {
|
|
1718
1786
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1719
1787
|
"div",
|
|
1720
1788
|
{
|
|
1721
|
-
|
|
1722
|
-
className:
|
|
1723
|
-
|
|
1724
|
-
[
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1789
|
+
...rest,
|
|
1790
|
+
className: cn(
|
|
1791
|
+
"pl-4 py-1 border-l-2 border-l-gray-400 w-full",
|
|
1792
|
+
typographyLevels.quote[level],
|
|
1793
|
+
typographyStyles({
|
|
1794
|
+
variant,
|
|
1795
|
+
decoration,
|
|
1796
|
+
bold,
|
|
1797
|
+
italic,
|
|
1798
|
+
className
|
|
1799
|
+
})
|
|
1800
|
+
),
|
|
1801
|
+
children: children || "Quote"
|
|
1802
|
+
}
|
|
1803
|
+
);
|
|
1804
|
+
};
|
|
1805
|
+
var Caption = ({
|
|
1806
|
+
children,
|
|
1807
|
+
variant,
|
|
1808
|
+
decoration,
|
|
1809
|
+
bold,
|
|
1810
|
+
italic,
|
|
1811
|
+
className,
|
|
1812
|
+
...rest
|
|
1813
|
+
}) => {
|
|
1814
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1815
|
+
"span",
|
|
1816
|
+
{
|
|
1817
|
+
...rest,
|
|
1818
|
+
className: cn(
|
|
1819
|
+
"text-xs leading-[18px] opacity-70",
|
|
1820
|
+
typographyStyles({
|
|
1821
|
+
variant,
|
|
1822
|
+
decoration,
|
|
1823
|
+
bold,
|
|
1824
|
+
italic,
|
|
1825
|
+
className
|
|
1826
|
+
})
|
|
1827
|
+
),
|
|
1828
|
+
children: children || "Caption"
|
|
1731
1829
|
}
|
|
1732
1830
|
);
|
|
1733
1831
|
};
|
|
1734
|
-
var
|
|
1832
|
+
var Label = ({
|
|
1833
|
+
children,
|
|
1834
|
+
variant,
|
|
1835
|
+
decoration,
|
|
1836
|
+
bold = true,
|
|
1837
|
+
italic,
|
|
1838
|
+
className,
|
|
1839
|
+
...rest
|
|
1840
|
+
}) => {
|
|
1735
1841
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1736
1842
|
"div",
|
|
1737
1843
|
{
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
[
|
|
1741
|
-
|
|
1742
|
-
|
|
1844
|
+
...rest,
|
|
1845
|
+
className: cn(
|
|
1846
|
+
"text-sm leading-[22px]",
|
|
1847
|
+
typographyStyles({
|
|
1848
|
+
variant,
|
|
1849
|
+
decoration,
|
|
1850
|
+
bold,
|
|
1851
|
+
italic,
|
|
1852
|
+
className
|
|
1853
|
+
})
|
|
1854
|
+
),
|
|
1855
|
+
children: children || "Label"
|
|
1856
|
+
}
|
|
1857
|
+
);
|
|
1858
|
+
};
|
|
1859
|
+
var Code = ({
|
|
1860
|
+
children,
|
|
1861
|
+
className,
|
|
1862
|
+
...rest
|
|
1863
|
+
}) => {
|
|
1864
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1865
|
+
"code",
|
|
1866
|
+
{
|
|
1867
|
+
...rest,
|
|
1868
|
+
className: cn(
|
|
1869
|
+
"px-1.5 py-0.5 rounded-md",
|
|
1870
|
+
"bg-gray-800 text-green-400",
|
|
1871
|
+
"font-mono text-sm",
|
|
1872
|
+
className
|
|
1873
|
+
),
|
|
1874
|
+
children: children || "npm install"
|
|
1875
|
+
}
|
|
1876
|
+
);
|
|
1877
|
+
};
|
|
1878
|
+
var Lead = ({
|
|
1879
|
+
children,
|
|
1880
|
+
variant,
|
|
1881
|
+
decoration,
|
|
1882
|
+
bold,
|
|
1883
|
+
italic,
|
|
1884
|
+
className,
|
|
1885
|
+
...rest
|
|
1886
|
+
}) => {
|
|
1887
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1888
|
+
"p",
|
|
1889
|
+
{
|
|
1890
|
+
...rest,
|
|
1891
|
+
className: cn(
|
|
1892
|
+
"text-xl leading-[38px] opacity-90",
|
|
1893
|
+
typographyStyles({
|
|
1894
|
+
variant,
|
|
1895
|
+
decoration,
|
|
1896
|
+
bold,
|
|
1897
|
+
italic,
|
|
1898
|
+
className
|
|
1899
|
+
})
|
|
1900
|
+
),
|
|
1901
|
+
children: children || "Lead paragraph"
|
|
1902
|
+
}
|
|
1903
|
+
);
|
|
1904
|
+
};
|
|
1905
|
+
var Overline = ({
|
|
1906
|
+
children,
|
|
1907
|
+
variant,
|
|
1908
|
+
decoration,
|
|
1909
|
+
bold = true,
|
|
1910
|
+
italic,
|
|
1911
|
+
className,
|
|
1912
|
+
...rest
|
|
1913
|
+
}) => {
|
|
1914
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1915
|
+
"div",
|
|
1916
|
+
{
|
|
1917
|
+
...rest,
|
|
1918
|
+
className: cn(
|
|
1919
|
+
"text-xs uppercase tracking-[0.2em]",
|
|
1920
|
+
typographyStyles({
|
|
1921
|
+
variant,
|
|
1922
|
+
decoration,
|
|
1923
|
+
bold,
|
|
1924
|
+
italic,
|
|
1925
|
+
className
|
|
1926
|
+
})
|
|
1927
|
+
),
|
|
1928
|
+
children: children || "Overline"
|
|
1929
|
+
}
|
|
1930
|
+
);
|
|
1931
|
+
};
|
|
1932
|
+
var Display = ({
|
|
1933
|
+
level = 1,
|
|
1934
|
+
children,
|
|
1935
|
+
variant,
|
|
1936
|
+
decoration,
|
|
1937
|
+
bold = true,
|
|
1938
|
+
italic,
|
|
1939
|
+
className,
|
|
1940
|
+
...rest
|
|
1941
|
+
}) => {
|
|
1942
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1943
|
+
"h1",
|
|
1944
|
+
{
|
|
1945
|
+
...rest,
|
|
1946
|
+
className: cn(
|
|
1947
|
+
typographyLevels.display[level],
|
|
1948
|
+
typographyStyles({
|
|
1949
|
+
variant,
|
|
1950
|
+
decoration,
|
|
1951
|
+
bold,
|
|
1952
|
+
italic,
|
|
1953
|
+
className
|
|
1954
|
+
})
|
|
1955
|
+
),
|
|
1956
|
+
children: children || "Display"
|
|
1743
1957
|
}
|
|
1744
1958
|
);
|
|
1745
1959
|
};
|
|
1746
1960
|
|
|
1747
1961
|
// src/components/data-display/typography/index.tsx
|
|
1748
|
-
var Typography = {
|
|
1962
|
+
var Typography = {
|
|
1963
|
+
Display,
|
|
1964
|
+
Chapter,
|
|
1965
|
+
Section,
|
|
1966
|
+
Paragraph,
|
|
1967
|
+
Quote,
|
|
1968
|
+
Lead,
|
|
1969
|
+
Caption,
|
|
1970
|
+
Label,
|
|
1971
|
+
Code,
|
|
1972
|
+
Overline
|
|
1973
|
+
};
|
|
1749
1974
|
var ListItem = ({
|
|
1750
1975
|
content,
|
|
1751
1976
|
TypographyComponent = /* @__PURE__ */ jsxRuntime.jsx(Paragraph, { level: 1 }),
|
|
@@ -2170,25 +2395,27 @@ function Table({
|
|
|
2170
2395
|
] });
|
|
2171
2396
|
}
|
|
2172
2397
|
var Table_default = Table;
|
|
2173
|
-
function Tag({ text,
|
|
2398
|
+
function Tag({ text, className, ...rest }) {
|
|
2174
2399
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2175
2400
|
"span",
|
|
2176
2401
|
{
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2402
|
+
...rest,
|
|
2403
|
+
className: cn(
|
|
2404
|
+
"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",
|
|
2405
|
+
className
|
|
2406
|
+
),
|
|
2181
2407
|
children: text
|
|
2182
2408
|
}
|
|
2183
2409
|
);
|
|
2184
2410
|
}
|
|
2185
2411
|
var Tag_default = Tag;
|
|
2186
2412
|
function Tooltip4({
|
|
2187
|
-
|
|
2413
|
+
children,
|
|
2188
2414
|
show,
|
|
2189
2415
|
offsetX = 20,
|
|
2190
2416
|
offsetY = 20,
|
|
2191
|
-
className
|
|
2417
|
+
className,
|
|
2418
|
+
...rest
|
|
2192
2419
|
}) {
|
|
2193
2420
|
const [pos, setPos] = React4.useState({ x: 0, y: 0 });
|
|
2194
2421
|
React4.useEffect(() => {
|
|
@@ -2203,18 +2430,19 @@ function Tooltip4({
|
|
|
2203
2430
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2204
2431
|
"div",
|
|
2205
2432
|
{
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2433
|
+
...rest,
|
|
2434
|
+
className: cn(
|
|
2435
|
+
"pointer-events-none absolute z-50 px-3 py-2 text-sm",
|
|
2436
|
+
"rounded-lg shadow-lg bg-neutral-900 text-white",
|
|
2437
|
+
"dark:bg-neutral-800",
|
|
2438
|
+
className
|
|
2439
|
+
),
|
|
2212
2440
|
style: {
|
|
2213
2441
|
top: pos.y,
|
|
2214
2442
|
left: pos.x,
|
|
2215
2443
|
transform: "translate(-50%, -50%)"
|
|
2216
2444
|
},
|
|
2217
|
-
children
|
|
2445
|
+
children
|
|
2218
2446
|
}
|
|
2219
2447
|
);
|
|
2220
2448
|
}
|
|
@@ -2263,7 +2491,7 @@ var ValueBadge = ({
|
|
|
2263
2491
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2264
2492
|
"div",
|
|
2265
2493
|
{
|
|
2266
|
-
className:
|
|
2494
|
+
className: cn(
|
|
2267
2495
|
"px-2 py-1 rounded-md text-xs font-semibold w-fit eg-theme-transition",
|
|
2268
2496
|
noBackground ? "bg-transparent" : style.bg,
|
|
2269
2497
|
style.color,
|
|
@@ -2274,8 +2502,48 @@ var ValueBadge = ({
|
|
|
2274
2502
|
);
|
|
2275
2503
|
};
|
|
2276
2504
|
var ValueBadge_default = ValueBadge;
|
|
2277
|
-
|
|
2278
|
-
|
|
2505
|
+
var DEFAULT_PUBLIC_CLOUD2 = "demo";
|
|
2506
|
+
function CloudinaryVideo({
|
|
2507
|
+
publicId = "dog",
|
|
2508
|
+
cloudName,
|
|
2509
|
+
secure = true,
|
|
2510
|
+
controls = true,
|
|
2511
|
+
autoPlay = false,
|
|
2512
|
+
muted = false,
|
|
2513
|
+
loop = false,
|
|
2514
|
+
playsInline = true,
|
|
2515
|
+
poster,
|
|
2516
|
+
preload = "metadata",
|
|
2517
|
+
className,
|
|
2518
|
+
...rest
|
|
2519
|
+
}) {
|
|
2520
|
+
const providerConfig = useCloudinaryConfig();
|
|
2521
|
+
const resolvedCloudName = cloudName || providerConfig?.cloudName || DEFAULT_PUBLIC_CLOUD2;
|
|
2522
|
+
const protocol = secure ? "https" : "http";
|
|
2523
|
+
const videoUrl = `
|
|
2524
|
+
${protocol}://res.cloudinary.com/
|
|
2525
|
+
${resolvedCloudName}
|
|
2526
|
+
/video/upload/
|
|
2527
|
+
${publicId}.mp4
|
|
2528
|
+
`.replace(/\s+/g, "");
|
|
2529
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2530
|
+
"video",
|
|
2531
|
+
{
|
|
2532
|
+
...rest,
|
|
2533
|
+
controls,
|
|
2534
|
+
autoPlay,
|
|
2535
|
+
muted,
|
|
2536
|
+
loop,
|
|
2537
|
+
playsInline,
|
|
2538
|
+
poster,
|
|
2539
|
+
preload,
|
|
2540
|
+
className: cn(className),
|
|
2541
|
+
children: [
|
|
2542
|
+
/* @__PURE__ */ jsxRuntime.jsx("source", { src: videoUrl, type: "video/mp4" }),
|
|
2543
|
+
"Your browser does not support the video tag."
|
|
2544
|
+
]
|
|
2545
|
+
}
|
|
2546
|
+
);
|
|
2279
2547
|
}
|
|
2280
2548
|
var CloudinaryVideo_default = CloudinaryVideo;
|
|
2281
2549
|
var FormObserver = ({ formik, onChange }) => {
|
|
@@ -2347,7 +2615,7 @@ var Form = ({
|
|
|
2347
2615
|
/* @__PURE__ */ jsxRuntime.jsx(UnsavedChangesGuard_default, { formik: formik$1, enabled: warnOnUnsavedChanges }),
|
|
2348
2616
|
/* @__PURE__ */ jsxRuntime.jsx(DirtyObserver_default, { formik: formik$1, onDirtyChange }),
|
|
2349
2617
|
/* @__PURE__ */ jsxRuntime.jsx(FormObserver_default, { formik: formik$1, onChange }),
|
|
2350
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2618
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames17__default.default(styles), children })
|
|
2351
2619
|
] })
|
|
2352
2620
|
}
|
|
2353
2621
|
);
|
|
@@ -2356,7 +2624,7 @@ var Backdrop = ({ children, styles }) => {
|
|
|
2356
2624
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2357
2625
|
"div",
|
|
2358
2626
|
{
|
|
2359
|
-
className:
|
|
2627
|
+
className: classNames17__default.default({
|
|
2360
2628
|
"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
2629
|
[`${styles}`]: styles
|
|
2362
2630
|
}),
|
|
@@ -2467,7 +2735,7 @@ function FormResponse({
|
|
|
2467
2735
|
return /* @__PURE__ */ jsxRuntime.jsx(Transition4.TransitionDropdown, { visibility: text ? true : false, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2468
2736
|
"div",
|
|
2469
2737
|
{
|
|
2470
|
-
className:
|
|
2738
|
+
className: classNames17__default.default({
|
|
2471
2739
|
"font-poppins font-light text-sm": true,
|
|
2472
2740
|
[`${variantsLite[variant]}`]: variant,
|
|
2473
2741
|
[`${shapes[shape]}`]: shape,
|
|
@@ -2483,18 +2751,31 @@ var getYoutubeEmbedUrl = (url) => {
|
|
|
2483
2751
|
const videoIdMatch = url.match(
|
|
2484
2752
|
/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/
|
|
2485
2753
|
);
|
|
2486
|
-
|
|
2754
|
+
if (!videoIdMatch) {
|
|
2755
|
+
return "";
|
|
2756
|
+
}
|
|
2757
|
+
return `https://www.youtube.com/embed/${videoIdMatch[1]}`;
|
|
2487
2758
|
};
|
|
2488
|
-
function
|
|
2759
|
+
function YoutubeVideo({
|
|
2489
2760
|
videoUrl,
|
|
2490
2761
|
width = 750,
|
|
2491
|
-
height = 422
|
|
2762
|
+
height = 422,
|
|
2763
|
+
autoPlay = false,
|
|
2764
|
+
muted = false,
|
|
2765
|
+
controls = true,
|
|
2766
|
+
className,
|
|
2767
|
+
...rest
|
|
2492
2768
|
}) {
|
|
2493
2769
|
const embedUrl = getYoutubeEmbedUrl(videoUrl);
|
|
2494
2770
|
if (!embedUrl) {
|
|
2495
2771
|
return /* @__PURE__ */ jsxRuntime.jsx(FormResponse_default, { text: "Invalid YouTube URL", variant: "danger" });
|
|
2496
2772
|
}
|
|
2497
|
-
|
|
2773
|
+
const params = new URLSearchParams({
|
|
2774
|
+
autoplay: autoPlay ? "1" : "0",
|
|
2775
|
+
mute: muted ? "1" : "0",
|
|
2776
|
+
controls: controls ? "1" : "0"
|
|
2777
|
+
});
|
|
2778
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center w-full", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2498
2779
|
"div",
|
|
2499
2780
|
{
|
|
2500
2781
|
className: "relative w-full",
|
|
@@ -2505,17 +2786,124 @@ function YoutubeVideoPlayer({
|
|
|
2505
2786
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2506
2787
|
"iframe",
|
|
2507
2788
|
{
|
|
2508
|
-
|
|
2789
|
+
...rest,
|
|
2790
|
+
src: `${embedUrl}?${params.toString()}`,
|
|
2509
2791
|
title: "YouTube video player",
|
|
2792
|
+
loading: "lazy",
|
|
2510
2793
|
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
2511
2794
|
allowFullScreen: true,
|
|
2512
|
-
className:
|
|
2795
|
+
className: cn(
|
|
2796
|
+
"absolute top-0 left-0 w-full h-full rounded-xl shadow-xl border-0",
|
|
2797
|
+
className
|
|
2798
|
+
)
|
|
2513
2799
|
}
|
|
2514
2800
|
)
|
|
2515
2801
|
}
|
|
2516
2802
|
) });
|
|
2517
2803
|
}
|
|
2518
|
-
var
|
|
2804
|
+
var YoutubeVideo_default = YoutubeVideo;
|
|
2805
|
+
var ThemeContext = React4.createContext(
|
|
2806
|
+
void 0
|
|
2807
|
+
);
|
|
2808
|
+
var ThemeProvider = ({
|
|
2809
|
+
defaultTheme = "dark",
|
|
2810
|
+
children
|
|
2811
|
+
}) => {
|
|
2812
|
+
const [theme, setTheme] = React4.useState(() => {
|
|
2813
|
+
return localStorage.getItem("theme") || defaultTheme;
|
|
2814
|
+
});
|
|
2815
|
+
React4.useEffect(() => {
|
|
2816
|
+
if (theme === "dark") {
|
|
2817
|
+
document.documentElement.classList.add("dark");
|
|
2818
|
+
} else {
|
|
2819
|
+
document.documentElement.classList.remove("dark");
|
|
2820
|
+
}
|
|
2821
|
+
localStorage.setItem("theme", theme);
|
|
2822
|
+
}, [theme]);
|
|
2823
|
+
const toggleTheme = () => {
|
|
2824
|
+
setTheme((prev) => prev === "dark" ? "light" : "dark");
|
|
2825
|
+
};
|
|
2826
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ThemeContext.Provider, { value: { theme, setTheme, toggleTheme }, children });
|
|
2827
|
+
};
|
|
2828
|
+
var ThemeSwitch = () => {
|
|
2829
|
+
const themeContext = React4.useContext(ThemeContext);
|
|
2830
|
+
if (!themeContext) return null;
|
|
2831
|
+
const { theme, toggleTheme } = themeContext;
|
|
2832
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2833
|
+
"button",
|
|
2834
|
+
{
|
|
2835
|
+
onClick: toggleTheme,
|
|
2836
|
+
className: "relative w-16 h-8 flex items-center bg-gray-300 dark:bg-gray-800 rounded-full p-1 transition-all",
|
|
2837
|
+
children: [
|
|
2838
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2839
|
+
fa.FaSun,
|
|
2840
|
+
{
|
|
2841
|
+
className: "absolute left-2 text-yellow-500 transition-opacity duration-300 z-10",
|
|
2842
|
+
style: { opacity: theme === "dark" ? 0 : 1 }
|
|
2843
|
+
}
|
|
2844
|
+
),
|
|
2845
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2846
|
+
fa.FaMoon,
|
|
2847
|
+
{
|
|
2848
|
+
className: "absolute right-2 text-blue-400 transition-opacity duration-300 z-10",
|
|
2849
|
+
style: { opacity: theme === "dark" ? 1 : 0 }
|
|
2850
|
+
}
|
|
2851
|
+
),
|
|
2852
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2853
|
+
"div",
|
|
2854
|
+
{
|
|
2855
|
+
className: classNames17__default.default(
|
|
2856
|
+
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
2857
|
+
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
2858
|
+
)
|
|
2859
|
+
}
|
|
2860
|
+
)
|
|
2861
|
+
]
|
|
2862
|
+
}
|
|
2863
|
+
);
|
|
2864
|
+
};
|
|
2865
|
+
|
|
2866
|
+
// src/data/enums.ts
|
|
2867
|
+
var Shape = /* @__PURE__ */ ((Shape2) => {
|
|
2868
|
+
Shape2["circle"] = "circle";
|
|
2869
|
+
Shape2["roundedSquare"] = "roundedSquare";
|
|
2870
|
+
Shape2["softRoundedSquare"] = "softRoundedSquare";
|
|
2871
|
+
Shape2["square"] = "square";
|
|
2872
|
+
return Shape2;
|
|
2873
|
+
})(Shape || {});
|
|
2874
|
+
var ShapeSwitch = () => {
|
|
2875
|
+
const { config, setConfig } = useEUIConfig();
|
|
2876
|
+
const currentShape = config.global?.shape ?? "square";
|
|
2877
|
+
const handleChange = (e) => {
|
|
2878
|
+
const shape = e.target.value;
|
|
2879
|
+
setConfig((prev) => ({
|
|
2880
|
+
...prev,
|
|
2881
|
+
global: {
|
|
2882
|
+
...prev.global,
|
|
2883
|
+
shape
|
|
2884
|
+
}
|
|
2885
|
+
}));
|
|
2886
|
+
};
|
|
2887
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-1 w-fit", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2888
|
+
"select",
|
|
2889
|
+
{
|
|
2890
|
+
value: currentShape,
|
|
2891
|
+
onChange: handleChange,
|
|
2892
|
+
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 ",
|
|
2893
|
+
children: Object.keys(Shape).map((shape) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: shape, children: shape }, shape))
|
|
2894
|
+
}
|
|
2895
|
+
) });
|
|
2896
|
+
};
|
|
2897
|
+
|
|
2898
|
+
// src/hooks/theme/useCurrentTheme.ts
|
|
2899
|
+
var useCurrentTheme = () => {
|
|
2900
|
+
const context = React4.useContext(ThemeContext);
|
|
2901
|
+
if (!context) {
|
|
2902
|
+
throw new Error("useCurrentTheme must be used within a ThemeProvider");
|
|
2903
|
+
}
|
|
2904
|
+
return context.theme;
|
|
2905
|
+
};
|
|
2906
|
+
var useCurrentTheme_default = useCurrentTheme;
|
|
2519
2907
|
var COUNTRY_NAMES = {
|
|
2520
2908
|
AF: "Afghanistan",
|
|
2521
2909
|
AL: "Albania",
|
|
@@ -13825,108 +14213,6 @@ var worldMapTopoJSONContries100m = {
|
|
|
13825
14213
|
translate: [-180, -85.60903777459771]
|
|
13826
14214
|
}
|
|
13827
14215
|
};
|
|
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
14216
|
function WorldMap({
|
|
13931
14217
|
data,
|
|
13932
14218
|
title = "Global Data Overview",
|
|
@@ -13934,9 +14220,10 @@ function WorldMap({
|
|
|
13934
14220
|
bubbleStroke = "stroke-teal-900",
|
|
13935
14221
|
bubbleScale = 40,
|
|
13936
14222
|
minBubble = 6,
|
|
13937
|
-
styles,
|
|
13938
14223
|
disableCountryHover = true,
|
|
13939
|
-
disableCountrySelect = true
|
|
14224
|
+
disableCountrySelect = true,
|
|
14225
|
+
className,
|
|
14226
|
+
...rest
|
|
13940
14227
|
}) {
|
|
13941
14228
|
const currentTheme = useCurrentTheme_default();
|
|
13942
14229
|
const isDarkMode = currentTheme === "dark";
|
|
@@ -13980,60 +14267,52 @@ function WorldMap({
|
|
|
13980
14267
|
setShowTooltip(true);
|
|
13981
14268
|
};
|
|
13982
14269
|
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
|
-
}
|
|
14270
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ...rest, className: cn(className), children: [
|
|
14271
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl font-semibold mb-4", children: title }),
|
|
14272
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full aspect-[2/1]", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14273
|
+
reactSimpleMaps.ComposableMap,
|
|
14274
|
+
{
|
|
14275
|
+
projectionConfig: { scale: 140 },
|
|
14276
|
+
width: 800,
|
|
14277
|
+
height: 400,
|
|
14278
|
+
style: { width: "100%", height: "100%" },
|
|
14279
|
+
children: [
|
|
14280
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactSimpleMaps.Geographies, { geography: worldMapTopoJSONContries100m, children: ({ geographies }) => geographies.map((geo) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
14281
|
+
reactSimpleMaps.Geography,
|
|
14282
|
+
{
|
|
14283
|
+
geography: geo,
|
|
14284
|
+
style: {
|
|
14285
|
+
default: {
|
|
14286
|
+
...mode.default,
|
|
14287
|
+
strokeWidth: 0.5,
|
|
14288
|
+
pointerEvents: disableCountryHover && disableCountrySelect ? "none" : "auto"
|
|
14012
14289
|
},
|
|
14013
|
-
|
|
14014
|
-
|
|
14015
|
-
|
|
14016
|
-
|
|
14017
|
-
|
|
14018
|
-
|
|
14019
|
-
|
|
14020
|
-
|
|
14021
|
-
|
|
14022
|
-
|
|
14023
|
-
|
|
14024
|
-
|
|
14025
|
-
|
|
14026
|
-
|
|
14027
|
-
|
|
14028
|
-
|
|
14029
|
-
|
|
14030
|
-
|
|
14031
|
-
|
|
14032
|
-
|
|
14033
|
-
|
|
14034
|
-
|
|
14035
|
-
|
|
14036
|
-
|
|
14290
|
+
hover: disableCountryHover ? { ...mode.default, pointerEvents: "none" } : mode.hover,
|
|
14291
|
+
pressed: disableCountrySelect ? { ...mode.default, pointerEvents: "none" } : mode.pressed
|
|
14292
|
+
}
|
|
14293
|
+
},
|
|
14294
|
+
geo.rsmKey
|
|
14295
|
+
)) }),
|
|
14296
|
+
resolvedData.map((point, index) => {
|
|
14297
|
+
const size = point.value / maxValue * bubbleScale + minBubble;
|
|
14298
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactSimpleMaps.Marker, { coordinates: point.coordinates, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14299
|
+
framerMotion.motion.circle,
|
|
14300
|
+
{
|
|
14301
|
+
r: size,
|
|
14302
|
+
initial: { opacity: 0, scale: 0 },
|
|
14303
|
+
animate: { opacity: 0.6, scale: 1 },
|
|
14304
|
+
transition: { duration: 0.5 },
|
|
14305
|
+
className: `${bubbleColor} ${bubbleStroke} stroke-1 cursor-pointer`,
|
|
14306
|
+
onMouseMove: (e) => handleMouseMove(e, point),
|
|
14307
|
+
onMouseLeave: hideTooltip
|
|
14308
|
+
}
|
|
14309
|
+
) }, index);
|
|
14310
|
+
})
|
|
14311
|
+
]
|
|
14312
|
+
}
|
|
14313
|
+
) }),
|
|
14314
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tooltip4, { show: showTooltip, children: tooltipContent })
|
|
14315
|
+
] });
|
|
14037
14316
|
}
|
|
14038
14317
|
var sizes3 = {
|
|
14039
14318
|
xs: "px-2 py-1 text-xs",
|
|
@@ -14077,7 +14356,7 @@ var Button = ({
|
|
|
14077
14356
|
onClick,
|
|
14078
14357
|
onMouseMove: handleMouseMove,
|
|
14079
14358
|
disabled: disabled || loading,
|
|
14080
|
-
className:
|
|
14359
|
+
className: classNames17__default.default({
|
|
14081
14360
|
"relative z-0 overflow-hidden group": true,
|
|
14082
14361
|
"flex flex-row items-center justify-center gap-2": true,
|
|
14083
14362
|
[`${variants[variant]}`]: !ghost,
|
|
@@ -14123,7 +14402,7 @@ function InputResponse({
|
|
|
14123
14402
|
return /* @__PURE__ */ jsxRuntime.jsx(Transition4.TransitionDropdown, { visibility, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14124
14403
|
"div",
|
|
14125
14404
|
{
|
|
14126
|
-
className:
|
|
14405
|
+
className: classNames17__default.default({
|
|
14127
14406
|
"font-medium text-sm py-1 px-2": true,
|
|
14128
14407
|
[`${textVariants[variant]}`]: variant,
|
|
14129
14408
|
"transition-all ease-in-out": true,
|
|
@@ -14138,7 +14417,7 @@ function InputLabel({ text, children, styles }) {
|
|
|
14138
14417
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14139
14418
|
"label",
|
|
14140
14419
|
{
|
|
14141
|
-
className:
|
|
14420
|
+
className: classNames17__default.default({
|
|
14142
14421
|
"px-0 eui-text-sm text-[13.5px] pointer-events-none select-none": true,
|
|
14143
14422
|
"transition-all ease-in-out": true,
|
|
14144
14423
|
[`${styles}`]: styles
|
|
@@ -14190,7 +14469,7 @@ var Input = ({
|
|
|
14190
14469
|
...field,
|
|
14191
14470
|
...props,
|
|
14192
14471
|
placeholder,
|
|
14193
|
-
className:
|
|
14472
|
+
className: classNames17__default.default({
|
|
14194
14473
|
"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
14474
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
14196
14475
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
@@ -14235,7 +14514,7 @@ var InputFile = ({
|
|
|
14235
14514
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14236
14515
|
"div",
|
|
14237
14516
|
{
|
|
14238
|
-
className:
|
|
14517
|
+
className: classNames17__default.default(
|
|
14239
14518
|
"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
14519
|
{
|
|
14241
14520
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -14261,7 +14540,7 @@ var InputFile = ({
|
|
|
14261
14540
|
InputLabel_default,
|
|
14262
14541
|
{
|
|
14263
14542
|
text: placeholder,
|
|
14264
|
-
styles:
|
|
14543
|
+
styles: classNames17__default.default({
|
|
14265
14544
|
"absolute left-2 eui-text-sm peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none": true,
|
|
14266
14545
|
"top-[0.7px]": showFloatingLabel,
|
|
14267
14546
|
"top-[13px] text-base": !showFloatingLabel
|
|
@@ -14287,7 +14566,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
14287
14566
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsxRuntime.jsx(formik.FieldArray, { name, children: ({ push, remove, move }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14288
14567
|
"div",
|
|
14289
14568
|
{
|
|
14290
|
-
className:
|
|
14569
|
+
className: classNames17__default.default({
|
|
14291
14570
|
"flex flex-col space-y-2 w-full bg-eui-primary-300/10": true,
|
|
14292
14571
|
[`${shapes[resolvedShape]}`]: true
|
|
14293
14572
|
}),
|
|
@@ -14318,7 +14597,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
14318
14597
|
{
|
|
14319
14598
|
name: `${name}[${index}]`,
|
|
14320
14599
|
placeholder: `Item ${index + 1}`,
|
|
14321
|
-
className:
|
|
14600
|
+
className: classNames17__default.default(
|
|
14322
14601
|
"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
14602
|
[`${shapes[resolvedShape]}`],
|
|
14324
14603
|
errors[name]?.[index] ? "border-eui-danger-500" : "border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -14386,7 +14665,7 @@ var InputListGroup = ({
|
|
|
14386
14665
|
values[name]?.map((group, groupIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14387
14666
|
"div",
|
|
14388
14667
|
{
|
|
14389
|
-
className:
|
|
14668
|
+
className: classNames17__default.default({
|
|
14390
14669
|
"flex flex-col gap-2 bg-eui-primary-300/10 p-3": true,
|
|
14391
14670
|
[`${shapes[resolvedShape]}`]: true
|
|
14392
14671
|
}),
|
|
@@ -14398,7 +14677,7 @@ var InputListGroup = ({
|
|
|
14398
14677
|
{
|
|
14399
14678
|
name: `${name}[${groupIndex}].name`,
|
|
14400
14679
|
placeholder: `Group ${groupIndex + 1}`,
|
|
14401
|
-
className:
|
|
14680
|
+
className: classNames17__default.default(
|
|
14402
14681
|
"border w-full bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none h-[40px]",
|
|
14403
14682
|
[`${shapes[resolvedShape]}`],
|
|
14404
14683
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -14440,7 +14719,7 @@ var InputListGroup = ({
|
|
|
14440
14719
|
{
|
|
14441
14720
|
ref: provided.innerRef,
|
|
14442
14721
|
...provided.droppableProps,
|
|
14443
|
-
className:
|
|
14722
|
+
className: classNames17__default.default({
|
|
14444
14723
|
"space-y-2 bg-eui-primary-300/10 p-2": true,
|
|
14445
14724
|
[`${shapes[resolvedShape]}`]: true
|
|
14446
14725
|
}),
|
|
@@ -14455,7 +14734,7 @@ var InputListGroup = ({
|
|
|
14455
14734
|
{
|
|
14456
14735
|
ref: provided2.innerRef,
|
|
14457
14736
|
...provided2.draggableProps,
|
|
14458
|
-
className:
|
|
14737
|
+
className: classNames17__default.default({
|
|
14459
14738
|
"flex items-center gap-2 bg-eui-primary-300/10 p-2": true,
|
|
14460
14739
|
[`${shapes[resolvedShape]}`]: true
|
|
14461
14740
|
}),
|
|
@@ -14466,7 +14745,7 @@ var InputListGroup = ({
|
|
|
14466
14745
|
{
|
|
14467
14746
|
name: `${name}[${groupIndex}].items[${itemIndex}]`,
|
|
14468
14747
|
placeholder: `Item ${itemIndex + 1}`,
|
|
14469
|
-
className:
|
|
14748
|
+
className: classNames17__default.default(
|
|
14470
14749
|
"border w-full bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none h-[40px]",
|
|
14471
14750
|
[`${shapes[resolvedShape]}`],
|
|
14472
14751
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -14543,7 +14822,7 @@ var Checkbox = (props) => {
|
|
|
14543
14822
|
const { placeholder } = props;
|
|
14544
14823
|
const isMulti = isMultiCheckbox(props);
|
|
14545
14824
|
const [field, meta, helpers] = isMulti ? formik.useField(props) : formik.useField(props);
|
|
14546
|
-
const checkboxClass =
|
|
14825
|
+
const checkboxClass = classNames17__default.default(
|
|
14547
14826
|
"appearance-none cursor-pointer transition-all duration-300",
|
|
14548
14827
|
"w-5 h-5 min-w-[1.25rem] min-h-[1.25rem]",
|
|
14549
14828
|
"flex-shrink-0",
|
|
@@ -14644,7 +14923,7 @@ var DateSelector = ({
|
|
|
14644
14923
|
...field,
|
|
14645
14924
|
...props,
|
|
14646
14925
|
placeholder,
|
|
14647
|
-
className:
|
|
14926
|
+
className: classNames17__default.default({
|
|
14648
14927
|
"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
14928
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
14650
14929
|
"transition-all ease-in-out": true,
|
|
@@ -14753,7 +15032,7 @@ var ImageInput = React4.forwardRef(
|
|
|
14753
15032
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14754
15033
|
"label",
|
|
14755
15034
|
{
|
|
14756
|
-
className:
|
|
15035
|
+
className: classNames17__default.default({
|
|
14757
15036
|
"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
15037
|
"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
|
|
14759
15038
|
"transition-all ease-in-out duration-150": true
|
|
@@ -14870,7 +15149,7 @@ function Radio({
|
|
|
14870
15149
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14871
15150
|
"div",
|
|
14872
15151
|
{
|
|
14873
|
-
className:
|
|
15152
|
+
className: classNames17__default.default({
|
|
14874
15153
|
"flex flex-row gap-2 items-center mx-1 my-2": true
|
|
14875
15154
|
}),
|
|
14876
15155
|
children: [
|
|
@@ -14883,7 +15162,7 @@ function Radio({
|
|
|
14883
15162
|
...props,
|
|
14884
15163
|
value: option.value,
|
|
14885
15164
|
checked: field2.value === option.value,
|
|
14886
|
-
className:
|
|
15165
|
+
className: classNames17__default.default({
|
|
14887
15166
|
"appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
|
|
14888
15167
|
// base radio button styles
|
|
14889
15168
|
"checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
|
|
@@ -14895,7 +15174,7 @@ function Radio({
|
|
|
14895
15174
|
"label",
|
|
14896
15175
|
{
|
|
14897
15176
|
htmlFor: option.value,
|
|
14898
|
-
className:
|
|
15177
|
+
className: classNames17__default.default({
|
|
14899
15178
|
"eui-text-md text-sm": true
|
|
14900
15179
|
}),
|
|
14901
15180
|
children: option.label
|
|
@@ -14938,7 +15217,7 @@ function StarRatingInput({
|
|
|
14938
15217
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14939
15218
|
"div",
|
|
14940
15219
|
{
|
|
14941
|
-
className:
|
|
15220
|
+
className: classNames17__default.default({
|
|
14942
15221
|
"inline-flex gap-[4px] text-[20px]": true,
|
|
14943
15222
|
[`${styles}`]: styles
|
|
14944
15223
|
}),
|
|
@@ -14951,7 +15230,7 @@ function StarRatingInput({
|
|
|
14951
15230
|
onClick: () => handleOnClick(index),
|
|
14952
15231
|
onMouseEnter: () => setHover(index),
|
|
14953
15232
|
onMouseLeave: () => setHover(null),
|
|
14954
|
-
className:
|
|
15233
|
+
className: classNames17__default.default({
|
|
14955
15234
|
"text-yellow-600": index <= (hover ?? rating - 1),
|
|
14956
15235
|
"text-gray-400": index > (hover ?? rating - 1)
|
|
14957
15236
|
}),
|
|
@@ -14995,7 +15274,7 @@ function Select({
|
|
|
14995
15274
|
{
|
|
14996
15275
|
as: "select",
|
|
14997
15276
|
...props,
|
|
14998
|
-
className:
|
|
15277
|
+
className: classNames17__default.default({
|
|
14999
15278
|
"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
15279
|
"border-eui-primary-400": !(meta.touched && meta.error),
|
|
15001
15280
|
"border-red-500": meta.touched && meta.error,
|
|
@@ -15047,7 +15326,7 @@ function Switch({
|
|
|
15047
15326
|
"div",
|
|
15048
15327
|
{
|
|
15049
15328
|
onClick: () => helpers.setValue(!field.value),
|
|
15050
|
-
className:
|
|
15329
|
+
className: classNames17__default.default(
|
|
15051
15330
|
"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
|
|
15052
15331
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
15053
15332
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
|
|
@@ -15104,7 +15383,7 @@ function Tags({
|
|
|
15104
15383
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
15105
15384
|
"div",
|
|
15106
15385
|
{
|
|
15107
|
-
className:
|
|
15386
|
+
className: classNames17__default.default(
|
|
15108
15387
|
"border rounded-sm flex flex-wrap items-center gap-2 px-2 pt-2 pb-6 min-h-[3rem]",
|
|
15109
15388
|
{
|
|
15110
15389
|
"bg-eui-primary-300/10 eui-text-md": true,
|
|
@@ -15152,7 +15431,7 @@ function Tags({
|
|
|
15152
15431
|
InputLabel_default,
|
|
15153
15432
|
{
|
|
15154
15433
|
text: placeholder,
|
|
15155
|
-
styles:
|
|
15434
|
+
styles: classNames17__default.default(
|
|
15156
15435
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
15157
15436
|
input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
15158
15437
|
)
|
|
@@ -15193,7 +15472,7 @@ function TextArea({
|
|
|
15193
15472
|
as: "textarea",
|
|
15194
15473
|
...field,
|
|
15195
15474
|
...props,
|
|
15196
|
-
className:
|
|
15475
|
+
className: classNames17__default.default({
|
|
15197
15476
|
"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
15477
|
"transition-all ease-in-out": true,
|
|
15199
15478
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -15207,7 +15486,7 @@ function TextArea({
|
|
|
15207
15486
|
InputLabel_default,
|
|
15208
15487
|
{
|
|
15209
15488
|
text: placeholder,
|
|
15210
|
-
styles:
|
|
15489
|
+
styles: classNames17__default.default(
|
|
15211
15490
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
15212
15491
|
field.value ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
15213
15492
|
)
|
|
@@ -15238,7 +15517,7 @@ function ContentArea({
|
|
|
15238
15517
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15239
15518
|
"div",
|
|
15240
15519
|
{
|
|
15241
|
-
className:
|
|
15520
|
+
className: classNames17__default.default({
|
|
15242
15521
|
"min-h-screen h-full w-full py-3 px-5": true,
|
|
15243
15522
|
"py-3 px-5": !enablePadding,
|
|
15244
15523
|
"py-3 px-5 lg:px-[150px]": enablePadding,
|
|
@@ -15254,7 +15533,7 @@ function FlexCol({ children, gap = 3, styles }) {
|
|
|
15254
15533
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15255
15534
|
"div",
|
|
15256
15535
|
{
|
|
15257
|
-
className:
|
|
15536
|
+
className: classNames17__default.default({
|
|
15258
15537
|
[`flex flex-col gap-${gap}`]: true,
|
|
15259
15538
|
[`${styles}`]: styles
|
|
15260
15539
|
}),
|
|
@@ -15267,7 +15546,7 @@ function FlexRow({ children, gap = 3, styles }) {
|
|
|
15267
15546
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15268
15547
|
"div",
|
|
15269
15548
|
{
|
|
15270
|
-
className:
|
|
15549
|
+
className: classNames17__default.default({
|
|
15271
15550
|
[`flex flex-row gap-${gap}`]: true,
|
|
15272
15551
|
[`${styles}`]: styles
|
|
15273
15552
|
}),
|
|
@@ -15286,7 +15565,7 @@ function Grid({ children, styles }) {
|
|
|
15286
15565
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15287
15566
|
"div",
|
|
15288
15567
|
{
|
|
15289
|
-
className:
|
|
15568
|
+
className: classNames17__default.default({
|
|
15290
15569
|
[`grid`]: true,
|
|
15291
15570
|
[`${styles}`]: styles
|
|
15292
15571
|
}),
|
|
@@ -15303,7 +15582,7 @@ var Layout = ({
|
|
|
15303
15582
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15304
15583
|
"div",
|
|
15305
15584
|
{
|
|
15306
|
-
className:
|
|
15585
|
+
className: classNames17__default.default({
|
|
15307
15586
|
// "flex h-full w-screen bg-gray-100 overflow-auto": true,
|
|
15308
15587
|
"flex bg-eui-light-600": true,
|
|
15309
15588
|
"flex-col": flexDirection === "vertical",
|
|
@@ -15322,7 +15601,7 @@ var Header = ({
|
|
|
15322
15601
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15323
15602
|
"div",
|
|
15324
15603
|
{
|
|
15325
|
-
className:
|
|
15604
|
+
className: classNames17__default.default({
|
|
15326
15605
|
static: position === "static",
|
|
15327
15606
|
fixed: position === "fixed",
|
|
15328
15607
|
sticky: position === "sticky",
|
|
@@ -15362,7 +15641,7 @@ var Content = ({
|
|
|
15362
15641
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15363
15642
|
"div",
|
|
15364
15643
|
{
|
|
15365
|
-
className:
|
|
15644
|
+
className: classNames17__default.default({
|
|
15366
15645
|
"w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
|
|
15367
15646
|
"md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
|
|
15368
15647
|
// Shift when sidebar is open (desktop)
|
|
@@ -15378,7 +15657,7 @@ var Footer = ({ children, styles }) => {
|
|
|
15378
15657
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15379
15658
|
"div",
|
|
15380
15659
|
{
|
|
15381
|
-
className:
|
|
15660
|
+
className: classNames17__default.default({
|
|
15382
15661
|
"bottom-0 w-full h-fit": true,
|
|
15383
15662
|
"border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
|
|
15384
15663
|
[`${styles}`]: styles
|
|
@@ -15466,7 +15745,7 @@ function MarkdownEditor({
|
|
|
15466
15745
|
const [field, meta, helpers] = formik.useField(props);
|
|
15467
15746
|
const { theme } = useTheme_default();
|
|
15468
15747
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
15469
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
15748
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames17__default.default(theme === "dark" ? "dark" : "", styles), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15470
15749
|
editor.MDXEditor,
|
|
15471
15750
|
{
|
|
15472
15751
|
markdown: field.value,
|
|
@@ -15569,7 +15848,7 @@ function MarkdownTOC({ title = "Table of Contents" }) {
|
|
|
15569
15848
|
"button",
|
|
15570
15849
|
{
|
|
15571
15850
|
onClick: () => scrollToHeading(heading.id),
|
|
15572
|
-
className:
|
|
15851
|
+
className: classNames17__default.default(
|
|
15573
15852
|
"block w-full text-left text-sm transition-all ease-in-out duration-150",
|
|
15574
15853
|
"hover:text-primary",
|
|
15575
15854
|
activeHeading === heading.id ? "text-primary font-semibold underline" : "text-gray-500 dark:text-gray-400"
|
|
@@ -15725,7 +16004,7 @@ function BreadcrumbItem({
|
|
|
15725
16004
|
{
|
|
15726
16005
|
href,
|
|
15727
16006
|
onClick,
|
|
15728
|
-
className:
|
|
16007
|
+
className: classNames17__default.default({
|
|
15729
16008
|
"text-lg font-semibold": true,
|
|
15730
16009
|
"text-gray-400 hover:text-gray-600 cursor-pointer": !active,
|
|
15731
16010
|
"text-eui-light-800": active,
|
|
@@ -15802,7 +16081,7 @@ var Breadcrumb = ({
|
|
|
15802
16081
|
index < resolvedData.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
15803
16082
|
"span",
|
|
15804
16083
|
{
|
|
15805
|
-
className:
|
|
16084
|
+
className: classNames17__default.default({
|
|
15806
16085
|
"text-lg font-semibold text-gray-500": true,
|
|
15807
16086
|
[`px-${gap}`]: gap
|
|
15808
16087
|
}),
|
|
@@ -15816,7 +16095,7 @@ var Breadcrumb = ({
|
|
|
15816
16095
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15817
16096
|
"div",
|
|
15818
16097
|
{
|
|
15819
|
-
className:
|
|
16098
|
+
className: classNames17__default.default({
|
|
15820
16099
|
"inline-flex": true,
|
|
15821
16100
|
[`${styles}`]: styles
|
|
15822
16101
|
}),
|
|
@@ -15846,7 +16125,7 @@ var Drawer = ({
|
|
|
15846
16125
|
{
|
|
15847
16126
|
show: visibility,
|
|
15848
16127
|
enter: "transform transition duration-200 ease-out",
|
|
15849
|
-
enterFrom:
|
|
16128
|
+
enterFrom: classNames17__default.default({
|
|
15850
16129
|
"-translate-x-full": side === "left",
|
|
15851
16130
|
"translate-x-full": side === "right",
|
|
15852
16131
|
"-translate-y-full": side === "top",
|
|
@@ -15855,7 +16134,7 @@ var Drawer = ({
|
|
|
15855
16134
|
enterTo: "translate-x-0 translate-y-0",
|
|
15856
16135
|
leave: "transform transition duration-200 ease-in",
|
|
15857
16136
|
leaveFrom: "translate-x-0 translate-y-0",
|
|
15858
|
-
leaveTo:
|
|
16137
|
+
leaveTo: classNames17__default.default({
|
|
15859
16138
|
"-translate-x-full": side === "left",
|
|
15860
16139
|
"translate-x-full": side === "right",
|
|
15861
16140
|
"-translate-y-full": side === "top",
|
|
@@ -15864,7 +16143,7 @@ var Drawer = ({
|
|
|
15864
16143
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15865
16144
|
"div",
|
|
15866
16145
|
{
|
|
15867
|
-
className:
|
|
16146
|
+
className: classNames17__default.default(
|
|
15868
16147
|
"fixed shadow-lg z-50",
|
|
15869
16148
|
{
|
|
15870
16149
|
"h-full w-[300px]": isHorizontal,
|
|
@@ -15896,7 +16175,7 @@ function DrawerToggler({
|
|
|
15896
16175
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15897
16176
|
"div",
|
|
15898
16177
|
{
|
|
15899
|
-
className:
|
|
16178
|
+
className: classNames17__default.default({
|
|
15900
16179
|
"text-xl p-3 cursor-pointer": true,
|
|
15901
16180
|
"transition-all ease-in-out": true,
|
|
15902
16181
|
"text-eui-dark-500 dark:text-eui-secondary-600": !styles,
|
|
@@ -15944,7 +16223,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
15944
16223
|
childrenContent = /* @__PURE__ */ jsxRuntime.jsx(
|
|
15945
16224
|
"div",
|
|
15946
16225
|
{
|
|
15947
|
-
className:
|
|
16226
|
+
className: classNames17__default.default({
|
|
15948
16227
|
"grid w-full": true,
|
|
15949
16228
|
"grid-cols-1": isMobile,
|
|
15950
16229
|
"grid-cols-3": !isMobile,
|
|
@@ -15957,7 +16236,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
15957
16236
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15958
16237
|
"div",
|
|
15959
16238
|
{
|
|
15960
|
-
className:
|
|
16239
|
+
className: classNames17__default.default({
|
|
15961
16240
|
[`${styles}`]: styles
|
|
15962
16241
|
}),
|
|
15963
16242
|
children: childrenContent
|
|
@@ -15998,7 +16277,7 @@ var FooterNavGroup = ({
|
|
|
15998
16277
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15999
16278
|
"div",
|
|
16000
16279
|
{
|
|
16001
|
-
className:
|
|
16280
|
+
className: classNames17__default.default({
|
|
16002
16281
|
"": true,
|
|
16003
16282
|
"py-2 font-semibold eui-text-lg": !styles,
|
|
16004
16283
|
[`${styles}`]: styles
|
|
@@ -16043,7 +16322,7 @@ var FooterNavItem = ({
|
|
|
16043
16322
|
"div",
|
|
16044
16323
|
{
|
|
16045
16324
|
onClick: handleNavigation,
|
|
16046
|
-
className:
|
|
16325
|
+
className: classNames17__default.default({
|
|
16047
16326
|
"flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
|
|
16048
16327
|
"transition-all duration-200 ease-in-out": true,
|
|
16049
16328
|
"text-sm eui-text-sm": !styles,
|
|
@@ -16072,7 +16351,7 @@ var FooterNavItemTitle = ({
|
|
|
16072
16351
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16073
16352
|
"div",
|
|
16074
16353
|
{
|
|
16075
|
-
className:
|
|
16354
|
+
className: classNames17__default.default({
|
|
16076
16355
|
"": true,
|
|
16077
16356
|
"py-2 font-thin eui-text-md": !styles,
|
|
16078
16357
|
[`${styles}`]: styles
|
|
@@ -16125,7 +16404,7 @@ function HeaderNav({ data = [], styles }) {
|
|
|
16125
16404
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16126
16405
|
"div",
|
|
16127
16406
|
{
|
|
16128
|
-
className:
|
|
16407
|
+
className: classNames17__default.default({
|
|
16129
16408
|
[`${styles}`]: styles
|
|
16130
16409
|
}),
|
|
16131
16410
|
children: childrenContent
|
|
@@ -16187,7 +16466,7 @@ var HeaderNavGroup = ({
|
|
|
16187
16466
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
16188
16467
|
"div",
|
|
16189
16468
|
{
|
|
16190
|
-
className:
|
|
16469
|
+
className: classNames17__default.default({
|
|
16191
16470
|
"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
|
|
16192
16471
|
"transition-all duration-300 ease-in-out": true,
|
|
16193
16472
|
"eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
|
|
@@ -16215,7 +16494,7 @@ var HeaderNavGroup = ({
|
|
|
16215
16494
|
children && /* @__PURE__ */ jsxRuntime.jsx(
|
|
16216
16495
|
bs.BsChevronDown,
|
|
16217
16496
|
{
|
|
16218
|
-
className:
|
|
16497
|
+
className: classNames17__default.default({
|
|
16219
16498
|
"text-md": true,
|
|
16220
16499
|
"transition-all ease-in-out duration-300": true,
|
|
16221
16500
|
"rotate-180": !collapsed
|
|
@@ -16228,7 +16507,7 @@ var HeaderNavGroup = ({
|
|
|
16228
16507
|
!collapsed && children && /* @__PURE__ */ jsxRuntime.jsx(
|
|
16229
16508
|
"div",
|
|
16230
16509
|
{
|
|
16231
|
-
className:
|
|
16510
|
+
className: classNames17__default.default({
|
|
16232
16511
|
"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
16512
|
"transition-all duration-300 ease-in-out": true
|
|
16234
16513
|
}),
|
|
@@ -16258,7 +16537,7 @@ var HeaderNavItem = ({
|
|
|
16258
16537
|
"div",
|
|
16259
16538
|
{
|
|
16260
16539
|
onClick: handleNavigation,
|
|
16261
|
-
className:
|
|
16540
|
+
className: classNames17__default.default({
|
|
16262
16541
|
"flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
|
|
16263
16542
|
"transition-all duration-200 ease-in-out": true,
|
|
16264
16543
|
"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 +16566,7 @@ var HeaderNavItemTitle = ({
|
|
|
16287
16566
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16288
16567
|
"div",
|
|
16289
16568
|
{
|
|
16290
|
-
className:
|
|
16569
|
+
className: classNames17__default.default({
|
|
16291
16570
|
"p-3 font-thin": true,
|
|
16292
16571
|
"eui-text-md": !styles,
|
|
16293
16572
|
[`${styles}`]: styles
|
|
@@ -16327,7 +16606,7 @@ var Link = ({
|
|
|
16327
16606
|
href: href || "#",
|
|
16328
16607
|
target: targets[target],
|
|
16329
16608
|
onClick: handleClick,
|
|
16330
|
-
className:
|
|
16609
|
+
className: classNames17__default.default({
|
|
16331
16610
|
[`${textVariants[variant]}`]: variant,
|
|
16332
16611
|
[`${decorations[decoration]}`]: decoration,
|
|
16333
16612
|
"font-bold": bold,
|
|
@@ -16792,7 +17071,7 @@ function Modal({
|
|
|
16792
17071
|
"div",
|
|
16793
17072
|
{
|
|
16794
17073
|
ref: modalRef,
|
|
16795
|
-
className:
|
|
17074
|
+
className: classNames17__default.default({
|
|
16796
17075
|
"eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit": true,
|
|
16797
17076
|
[`${shapes[resolvedShape]}`]: true,
|
|
16798
17077
|
[`${styles}`]: styles
|
|
@@ -16803,7 +17082,7 @@ function Modal({
|
|
|
16803
17082
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16804
17083
|
"div",
|
|
16805
17084
|
{
|
|
16806
|
-
className:
|
|
17085
|
+
className: classNames17__default.default({
|
|
16807
17086
|
"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast": true,
|
|
16808
17087
|
"hover:cursor-pointer hover:bg-eui-dark-500": true
|
|
16809
17088
|
}),
|
|
@@ -16909,7 +17188,7 @@ function ShowMore({ text, limit }) {
|
|
|
16909
17188
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16910
17189
|
"div",
|
|
16911
17190
|
{
|
|
16912
|
-
className:
|
|
17191
|
+
className: classNames17__default.default({
|
|
16913
17192
|
"text-blue-300 px-1 pb-1 mt-1": true,
|
|
16914
17193
|
"bg-slate-900/70": !showMore,
|
|
16915
17194
|
"bg-gradient-to-t from-slate-900/50 to-transparent": showMore
|
|
@@ -17160,7 +17439,7 @@ function BoxNavItem({ icon, name, to, selected, onClick }) {
|
|
|
17160
17439
|
type: "button",
|
|
17161
17440
|
onClick: handleClick,
|
|
17162
17441
|
"aria-current": selected ? "page" : void 0,
|
|
17163
|
-
className:
|
|
17442
|
+
className: classNames17__default.default(
|
|
17164
17443
|
"w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
|
|
17165
17444
|
"hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
|
|
17166
17445
|
selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
|
|
@@ -17550,7 +17829,7 @@ function GenericLayout({
|
|
|
17550
17829
|
return /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17551
17830
|
"div",
|
|
17552
17831
|
{
|
|
17553
|
-
className:
|
|
17832
|
+
className: classNames17__default.default({
|
|
17554
17833
|
[`${styles}`]: styles
|
|
17555
17834
|
}),
|
|
17556
17835
|
children
|
|
@@ -17599,7 +17878,7 @@ function SidemenuLayout({ data, children }) {
|
|
|
17599
17878
|
return /* @__PURE__ */ jsxRuntime.jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
17600
17879
|
"div",
|
|
17601
17880
|
{
|
|
17602
|
-
className:
|
|
17881
|
+
className: classNames17__default.default({
|
|
17603
17882
|
grid: true,
|
|
17604
17883
|
"grid-cols-7 gap-10": !isMobile,
|
|
17605
17884
|
"grid-cols-1 gap-": isMobile
|
|
@@ -17627,11 +17906,11 @@ function EUIDevLayout({
|
|
|
17627
17906
|
shape: "roundedSquare"
|
|
17628
17907
|
}
|
|
17629
17908
|
},
|
|
17630
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17909
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(GenericLayout_default, { children: /* @__PURE__ */ jsxRuntime.jsxs(Layout, { children: [
|
|
17631
17910
|
header,
|
|
17632
17911
|
/* @__PURE__ */ jsxRuntime.jsx(Content, { styles: "pt-[60px]", children: /* @__PURE__ */ jsxRuntime.jsx(ContentArea_default, { enablePadding: true, children }) }),
|
|
17633
17912
|
footer
|
|
17634
|
-
] }) })
|
|
17913
|
+
] }) })
|
|
17635
17914
|
}
|
|
17636
17915
|
);
|
|
17637
17916
|
}
|
|
@@ -17672,6 +17951,7 @@ exports.Brand = Brand_default;
|
|
|
17672
17951
|
exports.Breadcrumb = Breadcrumb;
|
|
17673
17952
|
exports.BreadcrumbItem = BreadcrumbItem_default;
|
|
17674
17953
|
exports.Button = Button;
|
|
17954
|
+
exports.Caption = Caption;
|
|
17675
17955
|
exports.Card = Card_default;
|
|
17676
17956
|
exports.CardContent = CardContent_default;
|
|
17677
17957
|
exports.CardFooter = CardFooter_default;
|
|
@@ -17680,14 +17960,15 @@ exports.Chapter = Chapter;
|
|
|
17680
17960
|
exports.Checkbox = Checkbox_default;
|
|
17681
17961
|
exports.Chip = Chip;
|
|
17682
17962
|
exports.CloudinaryImage = CloudinaryImage_default;
|
|
17683
|
-
exports.CloudinaryProvider = CloudinaryProvider;
|
|
17684
17963
|
exports.CloudinaryVideo = CloudinaryVideo_default;
|
|
17964
|
+
exports.Code = Code;
|
|
17685
17965
|
exports.Content = Content;
|
|
17686
17966
|
exports.ContentArea = ContentArea_default;
|
|
17687
17967
|
exports.DataView = DataView;
|
|
17688
17968
|
exports.DataViewTable = DataViewTable_default;
|
|
17689
17969
|
exports.DateSelector = DateSelector_default;
|
|
17690
17970
|
exports.DefaultLayout = DefaultLayout_default;
|
|
17971
|
+
exports.Display = Display;
|
|
17691
17972
|
exports.DocumentationPanel = DocumentationPanel_default;
|
|
17692
17973
|
exports.Drawer = Drawer;
|
|
17693
17974
|
exports.DrawerToggler = DrawerToggler_default;
|
|
@@ -17728,7 +18009,9 @@ exports.InputLabel = InputLabel_default;
|
|
|
17728
18009
|
exports.InputList = InputList;
|
|
17729
18010
|
exports.InputListGroup = InputListGroup;
|
|
17730
18011
|
exports.InputResponse = InputResponse_default;
|
|
18012
|
+
exports.Label = Label;
|
|
17731
18013
|
exports.Layout = Layout;
|
|
18014
|
+
exports.Lead = Lead;
|
|
17732
18015
|
exports.LineChart = LineChart_default;
|
|
17733
18016
|
exports.Link = Link;
|
|
17734
18017
|
exports.List = List_default;
|
|
@@ -17744,6 +18027,7 @@ exports.MenuItemTitle = MenuItemTitle;
|
|
|
17744
18027
|
exports.Modal = Modal_default;
|
|
17745
18028
|
exports.MotionSurface = MotionSurface_default;
|
|
17746
18029
|
exports.MultiImageInput = MultiImageInput_default;
|
|
18030
|
+
exports.Overline = Overline;
|
|
17747
18031
|
exports.Paragraph = Paragraph;
|
|
17748
18032
|
exports.PieChart = PieChart_default;
|
|
17749
18033
|
exports.PriceTag = PriceTag;
|
|
@@ -17789,7 +18073,7 @@ exports.UnderConstructionBanner = UnderConstructionBanner;
|
|
|
17789
18073
|
exports.ValueBadge = ValueBadge_default;
|
|
17790
18074
|
exports.WorldMap = WorldMap;
|
|
17791
18075
|
exports.WorldMapCountryTable = WorldMapCountryTable;
|
|
17792
|
-
exports.YoutubeVideoPlayer =
|
|
18076
|
+
exports.YoutubeVideoPlayer = YoutubeVideo_default;
|
|
17793
18077
|
exports.cn = cn;
|
|
17794
18078
|
exports.createForceLayout = createForceLayout;
|
|
17795
18079
|
exports.createGridLayout = createGridLayout;
|
|
@@ -17804,7 +18088,6 @@ exports.registerLayout = registerLayout;
|
|
|
17804
18088
|
exports.resolveWithGlobal = resolveWithGlobal;
|
|
17805
18089
|
exports.sendToast = sendToast;
|
|
17806
18090
|
exports.useClickOutside = useClickOutside;
|
|
17807
|
-
exports.useCloudinaryConfig = useCloudinaryConfig;
|
|
17808
18091
|
exports.useCurrentTheme = useCurrentTheme_default;
|
|
17809
18092
|
exports.useDrawer = useDrawer_default;
|
|
17810
18093
|
exports.useEUIConfig = useEUIConfig;
|