elseware-ui 2.29.0 → 2.29.2

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.mjs CHANGED
@@ -6,7 +6,7 @@ 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 classNames28 from 'classnames';
9
+ import classNames24 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';
@@ -42,6 +42,11 @@ function cn(...inputs) {
42
42
  return twMerge(clsx_default(inputs));
43
43
  }
44
44
 
45
+ // src/utils/components.ts
46
+ function isRenderFn(children) {
47
+ return typeof children === "function";
48
+ }
49
+
45
50
  // src/data/meta/currency.tsx
46
51
  var CURRENCIES = [
47
52
  { name: "US Dollar", symbol: "$", code: "USD" },
@@ -140,10 +145,8 @@ var getCurrencySymbol = (code) => {
140
145
  return currency ? currency.symbol : null;
141
146
  };
142
147
 
143
- // src/utils/components.ts
144
- function isRenderFn(children) {
145
- return typeof children === "function";
146
- }
148
+ // src/utils/enum.ts
149
+ var enumValues = (enumObject) => Object.values(enumObject);
147
150
 
148
151
  // src/utils/routes.ts
149
152
  var normalize = (path) => {
@@ -736,7 +739,7 @@ function Accordion({
736
739
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
737
740
  "div",
738
741
  {
739
- className: classNames28({
742
+ className: classNames24({
740
743
  "inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs": true,
741
744
  "hover:cursor-pointer": toggleOnSummaryClick
742
745
  }),
@@ -754,7 +757,7 @@ function Accordion({
754
757
  children: /* @__PURE__ */ jsx(
755
758
  FaCircleChevronDown,
756
759
  {
757
- className: classNames28(
760
+ className: classNames24(
758
761
  "text-xl transition-transform duration-300",
759
762
  { "rotate-180": collapse }
760
763
  )
@@ -780,7 +783,7 @@ function Accordion({
780
783
  children: /* @__PURE__ */ jsx(
781
784
  "div",
782
785
  {
783
- className: classNames28({
786
+ className: classNames24({
784
787
  "border-t border-t-eui-dark-400/40 eui-text-sm": true,
785
788
  "p-5": enableChildrenPadding
786
789
  }),
@@ -860,7 +863,7 @@ function CardHeader({ icon, title, description, className }) {
860
863
  return /* @__PURE__ */ jsxs(
861
864
  "div",
862
865
  {
863
- className: classNames28(
866
+ className: classNames24(
864
867
  "flex items-start gap-4 p-6 border-b border-white/10",
865
868
  className
866
869
  ),
@@ -876,14 +879,14 @@ function CardHeader({ icon, title, description, className }) {
876
879
  }
877
880
  var CardHeader_default = CardHeader;
878
881
  function CardContent({ children, className }) {
879
- return /* @__PURE__ */ jsx("div", { className: classNames28("p-6 text-gray-300 text-sm", className), children });
882
+ return /* @__PURE__ */ jsx("div", { className: classNames24("p-6 text-gray-300 text-sm", className), children });
880
883
  }
881
884
  var CardContent_default = CardContent;
882
885
  function CardFooter({ children, className }) {
883
886
  return /* @__PURE__ */ jsx(
884
887
  "div",
885
888
  {
886
- className: classNames28(
889
+ className: classNames24(
887
890
  "flex items-center gap-3 p-5 border-t border-white/10 text-sm text-gray-400",
888
891
  className
889
892
  ),
@@ -925,7 +928,7 @@ function GradientAnimation({
925
928
  return /* @__PURE__ */ jsx(
926
929
  "div",
927
930
  {
928
- className: classNames28("absolute inset-0"),
931
+ className: classNames24("absolute inset-0"),
929
932
  style: {
930
933
  background: `linear-gradient(${cfg.angle}deg, ${cfg.colors?.join(",")})`,
931
934
  backgroundSize: cfg.backgroundSize,
@@ -1071,7 +1074,7 @@ function MotionSurface({
1071
1074
  }) {
1072
1075
  const AnimationComponent = animationVariant === "custom" ? CustomAnimation : animationRegistry[animationVariant];
1073
1076
  const OverlayComponent = overlay === "custom" ? CustomOverlay : overlayRegistry[overlay];
1074
- return /* @__PURE__ */ jsxs("div", { className: classNames28("relative overflow-hidden", className), children: [
1077
+ return /* @__PURE__ */ jsxs("div", { className: classNames24("relative overflow-hidden", className), children: [
1075
1078
  AnimationComponent && /* @__PURE__ */ jsx(AnimationComponent, { config: animationConfig, animated }),
1076
1079
  OverlayComponent && /* @__PURE__ */ jsx(OverlayComponent, { config: overlayConfig }),
1077
1080
  /* @__PURE__ */ jsx("div", { className: "relative z-10", children })
@@ -1585,10 +1588,10 @@ var Image2 = ({
1585
1588
  };
1586
1589
  function Info({
1587
1590
  children,
1588
- className,
1589
1591
  variant = "default",
1590
1592
  appearance = "lite",
1591
1593
  shape = "roundedSquare",
1594
+ className,
1592
1595
  ...rest
1593
1596
  }) {
1594
1597
  const variantStyles = appearance === "solid" ? infoVariantsSolid[variant] : appearance === "ghost" ? infoVariantsGhost[variant] : infoVariantsLite[variant];
@@ -1626,7 +1629,7 @@ var Chapter = ({
1626
1629
  "div",
1627
1630
  {
1628
1631
  onClick,
1629
- className: classNames28({
1632
+ className: classNames24({
1630
1633
  [`${textVariants[variant]}`]: variant,
1631
1634
  [`${levels[level]}`]: level,
1632
1635
  [`${styles}`]: styles,
@@ -1657,7 +1660,7 @@ var Section = ({
1657
1660
  "div",
1658
1661
  {
1659
1662
  onClick,
1660
- className: classNames28({
1663
+ className: classNames24({
1661
1664
  [`${textVariants[variant]} opacity-80`]: variant,
1662
1665
  [`${levels2[level]}`]: level,
1663
1666
  [`${styles}`]: styles,
@@ -1688,7 +1691,7 @@ var Paragraph = ({
1688
1691
  "div",
1689
1692
  {
1690
1693
  onClick,
1691
- className: classNames28({
1694
+ className: classNames24({
1692
1695
  [`${textVariants[variant]}`]: variant,
1693
1696
  [`${levels3[level]}`]: level,
1694
1697
  [`${styles}`]: styles,
@@ -1704,7 +1707,7 @@ var Quote = ({ children, styles }) => {
1704
1707
  return /* @__PURE__ */ jsx(
1705
1708
  "div",
1706
1709
  {
1707
- className: classNames28({
1710
+ className: classNames24({
1708
1711
  "pl-4 py-1 border-l-2 border-l-gray-400 w-full": true,
1709
1712
  [`${styles}`]: styles
1710
1713
  }),
@@ -1831,15 +1834,19 @@ var List_default = List;
1831
1834
  var applyDiscount = (discount, price) => {
1832
1835
  return (price - price / 100 * discount).toFixed(2);
1833
1836
  };
1834
- function PriceTag({ discount, price, code = "USD", styles }) {
1837
+ function PriceTag({
1838
+ discount,
1839
+ price,
1840
+ code = "USD",
1841
+ className,
1842
+ ...rest
1843
+ }) {
1835
1844
  if (price === 0) {
1836
1845
  return /* @__PURE__ */ jsx(
1837
1846
  "div",
1838
1847
  {
1839
- className: classNames28({
1840
- "inline-flex gap-3 text-md w-fit": true,
1841
- [`${styles}`]: styles
1842
- }),
1848
+ ...rest,
1849
+ className: cn("inline-flex gap-3 text-md w-fit", className),
1843
1850
  children: /* @__PURE__ */ jsx("div", { className: "bg-green-700 px-2 py-1 font-bold rounded-md text-gray-200", children: "FREE" })
1844
1851
  }
1845
1852
  );
@@ -1848,10 +1855,8 @@ function PriceTag({ discount, price, code = "USD", styles }) {
1848
1855
  return /* @__PURE__ */ jsxs(
1849
1856
  "div",
1850
1857
  {
1851
- className: classNames28({
1852
- "inline-flex gap-3 text-md w-fit": true,
1853
- [`${styles}`]: styles
1854
- }),
1858
+ ...rest,
1859
+ className: cn("inline-flex gap-3 text-md w-fit", className),
1855
1860
  children: [
1856
1861
  discount && discount !== 0 && /* @__PURE__ */ jsxs("div", { className: "bg-green-700 px-2 py-1 font-bold rounded-md text-gray-200", children: [
1857
1862
  "-",
@@ -1893,11 +1898,11 @@ var ProgressBar = ({
1893
1898
  showLabel = true,
1894
1899
  label,
1895
1900
  labelPlacement = "top",
1896
- // ✅ default
1897
- styles
1901
+ className,
1902
+ ...rest
1898
1903
  }) => {
1899
1904
  const clampedValue = Math.min(100, Math.max(0, value));
1900
- return /* @__PURE__ */ jsxs("div", { className: classNames28("w-full", styles), children: [
1905
+ return /* @__PURE__ */ jsxs("div", { ...rest, className: cn("w-full", className), children: [
1901
1906
  showLabel && labelPlacement === "top" && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-1 text-gray-400", children: [
1902
1907
  /* @__PURE__ */ jsx("span", { children: label ?? "Progress" }),
1903
1908
  /* @__PURE__ */ jsxs("span", { children: [
@@ -1908,7 +1913,7 @@ var ProgressBar = ({
1908
1913
  /* @__PURE__ */ jsxs(
1909
1914
  "div",
1910
1915
  {
1911
- className: classNames28(
1916
+ className: cn(
1912
1917
  "relative w-full bg-gray-700 rounded overflow-hidden",
1913
1918
  sizes[size]
1914
1919
  ),
@@ -1916,7 +1921,7 @@ var ProgressBar = ({
1916
1921
  /* @__PURE__ */ jsx(
1917
1922
  "div",
1918
1923
  {
1919
- className: classNames28(
1924
+ className: cn(
1920
1925
  "h-full transition-all duration-300 ease-out",
1921
1926
  variants[variant]
1922
1927
  ),
@@ -1934,20 +1939,36 @@ var ProgressBar = ({
1934
1939
  )
1935
1940
  ] });
1936
1941
  };
1937
- function StarRating({ rating, reviewAmount, isNumericRatingEnabled = false, isReviewAmountEnabled = false, styles }) {
1942
+ function StarRating({
1943
+ rating,
1944
+ reviewAmount,
1945
+ isNumericRatingEnabled = false,
1946
+ isReviewAmountEnabled = false,
1947
+ className,
1948
+ ...rest
1949
+ }) {
1938
1950
  const fullStars = Math.floor(rating);
1939
1951
  const halfStars = Math.ceil(rating - fullStars);
1940
1952
  const emptyStars = 5 - fullStars - halfStars;
1941
1953
  const starIcon = /* @__PURE__ */ jsx(BsStarFill, {});
1942
1954
  const halfStarIcon = /* @__PURE__ */ jsx(BsStarHalf, {});
1943
1955
  const emptyStarIcon = /* @__PURE__ */ jsx(BsStar, {});
1944
- return /* @__PURE__ */ jsxs("div", { className: "inline-flex gap-2 items-center", children: [
1956
+ return /* @__PURE__ */ jsxs("div", { ...rest, className: "inline-flex gap-2 items-center", children: [
1945
1957
  isNumericRatingEnabled && /* @__PURE__ */ jsx("div", { className: "text-yellow-700 font-semibold text-[14px]", children: rating.toFixed(1) }),
1946
- /* @__PURE__ */ jsxs("div", { className: `flex flex-row gap-[2px] text-[13px] text-yellow-600 ${styles}`, children: [
1947
- [...Array(fullStars)].map((_, index) => /* @__PURE__ */ jsx("span", { children: starIcon }, index)),
1948
- [...Array(halfStars)].map((_, index) => /* @__PURE__ */ jsx("span", { children: halfStarIcon }, index + fullStars)),
1949
- [...Array(emptyStars)].map((_, index) => /* @__PURE__ */ jsx("span", { children: emptyStarIcon }, index + fullStars + halfStars))
1950
- ] }),
1958
+ /* @__PURE__ */ jsxs(
1959
+ "div",
1960
+ {
1961
+ className: cn(
1962
+ "flex flex-row gap-[2px] text-[13px] text-yellow-600",
1963
+ className
1964
+ ),
1965
+ children: [
1966
+ [...Array(fullStars)].map((_, index) => /* @__PURE__ */ jsx("span", { children: starIcon }, index)),
1967
+ [...Array(halfStars)].map((_, index) => /* @__PURE__ */ jsx("span", { children: halfStarIcon }, index + fullStars)),
1968
+ [...Array(emptyStars)].map((_, index) => /* @__PURE__ */ jsx("span", { children: emptyStarIcon }, index + fullStars + halfStars))
1969
+ ]
1970
+ }
1971
+ ),
1951
1972
  isReviewAmountEnabled && /* @__PURE__ */ jsxs("div", { className: "text-gray-400 font-semibold text-[14px]", children: [
1952
1973
  "(",
1953
1974
  reviewAmount,
@@ -2034,83 +2055,6 @@ function StarRatingDistribution({
2034
2055
  ] });
2035
2056
  }
2036
2057
  var StarRatingDistribution_default = StarRatingDistribution;
2037
- var Skeleton = ({ children, styles }) => {
2038
- return /* @__PURE__ */ jsx(
2039
- "div",
2040
- {
2041
- className: classNames28({
2042
- "bg-gradient-to-r from-eui-dark-300/20 to-eui-dark-100/10 dark:from-eui-light-400/10 dark:to-eui-light-400/5 animate-pulse min-w-5 min-h-3": true,
2043
- [`${styles}`]: styles
2044
- }),
2045
- children
2046
- }
2047
- );
2048
- };
2049
- function SliderItem({ img, onClick, selected, styles }) {
2050
- return /* @__PURE__ */ jsx(
2051
- "div",
2052
- {
2053
- onClick,
2054
- className: classNames28({
2055
- "flex-shrink-0 w-[160px] h-[90px] border-[3px] overflow-hidden brightness-50": true,
2056
- "hover:cursor-pointer hover:border-eui-secondary-600 hover:shadow-lg hover:shadow-[#167d0f]/50 hover:brightness-100": true,
2057
- "border-transparent": !selected,
2058
- "border-opacity-100 border-[#0b6b05] brightness-100": selected,
2059
- "transition-all ease-in-out duration-500": true,
2060
- [`${styles}`]: styles
2061
- }),
2062
- children: /* @__PURE__ */ jsx(CloudinaryImage_default, { publicId: img, alt: "image", className: "w-full h-full object-cover" })
2063
- }
2064
- );
2065
- }
2066
- var SliderItem_default = SliderItem;
2067
- function Slider({ isLoading, isSuccess, coverArt, screenshots }) {
2068
- const [images, setImages] = useState([
2069
- {
2070
- img: coverArt,
2071
- selected: true
2072
- }
2073
- ]);
2074
- useEffect(() => {
2075
- setImages([
2076
- {
2077
- img: coverArt,
2078
- selected: true
2079
- }
2080
- ]);
2081
- }, [isSuccess]);
2082
- useEffect(() => {
2083
- if (screenshots) {
2084
- const selectableScreenshots = [];
2085
- screenshots.forEach((item) => {
2086
- selectableScreenshots.push({
2087
- img: item,
2088
- selected: false
2089
- });
2090
- });
2091
- setImages((prev) => [...prev, ...selectableScreenshots]);
2092
- }
2093
- }, [isSuccess]);
2094
- const [displayImg, setDisplayImg] = useState(coverArt);
2095
- useEffect(() => {
2096
- setDisplayImg(coverArt);
2097
- }, [coverArt]);
2098
- const displayImageHandler = (itemIndex, img) => {
2099
- setDisplayImg(img);
2100
- const newArray = images.map((obj, i) => {
2101
- if (i === itemIndex) {
2102
- return { ...obj, selected: true };
2103
- }
2104
- return { ...obj, selected: false };
2105
- });
2106
- setImages(newArray);
2107
- };
2108
- return /* @__PURE__ */ jsx("div", { children: isLoading ? /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Skeleton, { styles: "w-full aspect-w-16 aspect-h-9" }) }) : /* @__PURE__ */ jsxs("div", { children: [
2109
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(CloudinaryImage_default, { publicId: displayImg, alt: "displayImg", className: "aspect-w-16 aspect-h-9" }) }),
2110
- /* @__PURE__ */ jsx("div", { className: "relative h-[130px]", children: /* @__PURE__ */ jsx("div", { className: "absolute pt-2 pb-4 w-full flex space-x-2 overflow-auto", children: images.map((item, index) => /* @__PURE__ */ jsx(SliderItem_default, { img: item.img, onClick: () => displayImageHandler(index, item.img), selected: item.selected }, index)) }) })
2111
- ] }) });
2112
- }
2113
- var Slider_default = Slider;
2114
2058
  function Table({
2115
2059
  title,
2116
2060
  columns,
@@ -2202,7 +2146,7 @@ function Tag({ text, styles }) {
2202
2146
  return /* @__PURE__ */ jsx(
2203
2147
  "span",
2204
2148
  {
2205
- className: classNames28({
2149
+ className: classNames24({
2206
2150
  "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": true,
2207
2151
  [`${styles}`]: styles
2208
2152
  }),
@@ -2291,7 +2235,7 @@ var ValueBadge = ({
2291
2235
  return /* @__PURE__ */ jsx(
2292
2236
  "div",
2293
2237
  {
2294
- className: classNames28(
2238
+ className: classNames24(
2295
2239
  "px-2 py-1 rounded-md text-xs font-semibold w-fit eg-theme-transition",
2296
2240
  noBackground ? "bg-transparent" : style.bg,
2297
2241
  style.color,
@@ -2375,7 +2319,7 @@ var Form = ({
2375
2319
  /* @__PURE__ */ jsx(UnsavedChangesGuard_default, { formik, enabled: warnOnUnsavedChanges }),
2376
2320
  /* @__PURE__ */ jsx(DirtyObserver_default, { formik, onDirtyChange }),
2377
2321
  /* @__PURE__ */ jsx(FormObserver_default, { formik, onChange }),
2378
- /* @__PURE__ */ jsx("div", { className: classNames28(styles), children })
2322
+ /* @__PURE__ */ jsx("div", { className: classNames24(styles), children })
2379
2323
  ] })
2380
2324
  }
2381
2325
  );
@@ -2384,7 +2328,7 @@ var Backdrop = ({ children, styles }) => {
2384
2328
  return /* @__PURE__ */ jsx(
2385
2329
  "div",
2386
2330
  {
2387
- className: classNames28({
2331
+ className: classNames24({
2388
2332
  "bg-black/75 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden": true,
2389
2333
  [`${styles}`]: styles
2390
2334
  }),
@@ -2393,6 +2337,19 @@ var Backdrop = ({ children, styles }) => {
2393
2337
  );
2394
2338
  };
2395
2339
  var Backdrop_default = Backdrop;
2340
+ var Skeleton = ({ children, className, ...rest }) => {
2341
+ return /* @__PURE__ */ jsx(
2342
+ "div",
2343
+ {
2344
+ ...rest,
2345
+ className: cn(
2346
+ "bg-gradient-to-r from-eui-dark-300/20 to-eui-dark-100/10 dark:from-eui-light-400/10 dark:to-eui-light-400/5 animate-pulse min-w-5 min-h-3",
2347
+ className
2348
+ ),
2349
+ children
2350
+ }
2351
+ );
2352
+ };
2396
2353
  function sendToast(data = { status: "", message: "" }) {
2397
2354
  switch (data?.status) {
2398
2355
  case "success":
@@ -2482,7 +2439,7 @@ function FormResponse({
2482
2439
  return /* @__PURE__ */ jsx(Transition4.TransitionDropdown, { visibility: text ? true : false, children: /* @__PURE__ */ jsx(
2483
2440
  "div",
2484
2441
  {
2485
- className: classNames28({
2442
+ className: classNames24({
2486
2443
  "font-poppins font-light text-sm": true,
2487
2444
  [`${variantsLite[variant]}`]: variant,
2488
2445
  [`${shapes[shape]}`]: shape,
@@ -13890,7 +13847,7 @@ var ThemeSwitch = () => {
13890
13847
  /* @__PURE__ */ jsx(
13891
13848
  "div",
13892
13849
  {
13893
- className: classNames28(
13850
+ className: classNames24(
13894
13851
  "w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
13895
13852
  theme === "dark" ? "translate-x-8" : "translate-x-0"
13896
13853
  )
@@ -13998,7 +13955,7 @@ function WorldMap({
13998
13955
  return /* @__PURE__ */ jsxs(
13999
13956
  "div",
14000
13957
  {
14001
- className: classNames28({
13958
+ className: classNames24({
14002
13959
  [`${styles}`]: true
14003
13960
  }),
14004
13961
  children: [
@@ -14092,7 +14049,7 @@ var Button = ({
14092
14049
  onClick,
14093
14050
  onMouseMove: handleMouseMove,
14094
14051
  disabled: disabled || loading,
14095
- className: classNames28({
14052
+ className: classNames24({
14096
14053
  "relative z-0 overflow-hidden group": true,
14097
14054
  "flex flex-row items-center justify-center gap-2": true,
14098
14055
  [`${variants[variant]}`]: !ghost,
@@ -14138,7 +14095,7 @@ function InputResponse({
14138
14095
  return /* @__PURE__ */ jsx(Transition4.TransitionDropdown, { visibility, children: /* @__PURE__ */ jsx(
14139
14096
  "div",
14140
14097
  {
14141
- className: classNames28({
14098
+ className: classNames24({
14142
14099
  "font-medium text-sm py-1 px-2": true,
14143
14100
  [`${textVariants[variant]}`]: variant,
14144
14101
  "transition-all ease-in-out": true,
@@ -14153,7 +14110,7 @@ function InputLabel({ text, children, styles }) {
14153
14110
  return /* @__PURE__ */ jsx(
14154
14111
  "label",
14155
14112
  {
14156
- className: classNames28({
14113
+ className: classNames24({
14157
14114
  "px-0 eui-text-sm text-[13.5px] pointer-events-none select-none": true,
14158
14115
  "transition-all ease-in-out": true,
14159
14116
  [`${styles}`]: styles
@@ -14205,7 +14162,7 @@ var Input = ({
14205
14162
  ...field,
14206
14163
  ...props,
14207
14164
  placeholder,
14208
- className: classNames28({
14165
+ className: classNames24({
14209
14166
  "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,
14210
14167
  "border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
14211
14168
  "border-eui-danger-500": meta.touched && meta.error,
@@ -14250,7 +14207,7 @@ var InputFile = ({
14250
14207
  /* @__PURE__ */ jsx(
14251
14208
  "div",
14252
14209
  {
14253
- className: classNames28(
14210
+ className: classNames24(
14254
14211
  "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",
14255
14212
  {
14256
14213
  "border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
@@ -14276,7 +14233,7 @@ var InputFile = ({
14276
14233
  InputLabel_default,
14277
14234
  {
14278
14235
  text: placeholder,
14279
- styles: classNames28({
14236
+ styles: classNames24({
14280
14237
  "absolute left-2 eui-text-sm peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none": true,
14281
14238
  "top-[0.7px]": showFloatingLabel,
14282
14239
  "top-[13px] text-base": !showFloatingLabel
@@ -14302,7 +14259,7 @@ var InputList = ({ name, placeholder, shape }) => {
14302
14259
  /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(FieldArray, { name, children: ({ push, remove, move }) => /* @__PURE__ */ jsxs(
14303
14260
  "div",
14304
14261
  {
14305
- className: classNames28({
14262
+ className: classNames24({
14306
14263
  "flex flex-col space-y-2 w-full bg-eui-primary-300/10": true,
14307
14264
  [`${shapes[resolvedShape]}`]: true
14308
14265
  }),
@@ -14333,7 +14290,7 @@ var InputList = ({ name, placeholder, shape }) => {
14333
14290
  {
14334
14291
  name: `${name}[${index}]`,
14335
14292
  placeholder: `Item ${index + 1}`,
14336
- className: classNames28(
14293
+ className: classNames24(
14337
14294
  "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]",
14338
14295
  [`${shapes[resolvedShape]}`],
14339
14296
  errors[name]?.[index] ? "border-eui-danger-500" : "border-eui-primary-400 focus:border-eui-secondary-500"
@@ -14401,7 +14358,7 @@ var InputListGroup = ({
14401
14358
  values[name]?.map((group, groupIndex) => /* @__PURE__ */ jsxs(
14402
14359
  "div",
14403
14360
  {
14404
- className: classNames28({
14361
+ className: classNames24({
14405
14362
  "flex flex-col gap-2 bg-eui-primary-300/10 p-3": true,
14406
14363
  [`${shapes[resolvedShape]}`]: true
14407
14364
  }),
@@ -14413,7 +14370,7 @@ var InputListGroup = ({
14413
14370
  {
14414
14371
  name: `${name}[${groupIndex}].name`,
14415
14372
  placeholder: `Group ${groupIndex + 1}`,
14416
- className: classNames28(
14373
+ className: classNames24(
14417
14374
  "border w-full bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none h-[40px]",
14418
14375
  [`${shapes[resolvedShape]}`],
14419
14376
  "border-eui-primary-400 focus:border-eui-secondary-500"
@@ -14455,7 +14412,7 @@ var InputListGroup = ({
14455
14412
  {
14456
14413
  ref: provided.innerRef,
14457
14414
  ...provided.droppableProps,
14458
- className: classNames28({
14415
+ className: classNames24({
14459
14416
  "space-y-2 bg-eui-primary-300/10 p-2": true,
14460
14417
  [`${shapes[resolvedShape]}`]: true
14461
14418
  }),
@@ -14470,7 +14427,7 @@ var InputListGroup = ({
14470
14427
  {
14471
14428
  ref: provided2.innerRef,
14472
14429
  ...provided2.draggableProps,
14473
- className: classNames28({
14430
+ className: classNames24({
14474
14431
  "flex items-center gap-2 bg-eui-primary-300/10 p-2": true,
14475
14432
  [`${shapes[resolvedShape]}`]: true
14476
14433
  }),
@@ -14481,7 +14438,7 @@ var InputListGroup = ({
14481
14438
  {
14482
14439
  name: `${name}[${groupIndex}].items[${itemIndex}]`,
14483
14440
  placeholder: `Item ${itemIndex + 1}`,
14484
- className: classNames28(
14441
+ className: classNames24(
14485
14442
  "border w-full bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none h-[40px]",
14486
14443
  [`${shapes[resolvedShape]}`],
14487
14444
  "border-eui-primary-400 focus:border-eui-secondary-500"
@@ -14558,7 +14515,7 @@ var Checkbox = (props) => {
14558
14515
  const { placeholder } = props;
14559
14516
  const isMulti = isMultiCheckbox(props);
14560
14517
  const [field, meta, helpers] = isMulti ? useField(props) : useField(props);
14561
- const checkboxClass = classNames28(
14518
+ const checkboxClass = classNames24(
14562
14519
  "appearance-none cursor-pointer transition-all duration-300",
14563
14520
  "w-5 h-5 min-w-[1.25rem] min-h-[1.25rem]",
14564
14521
  "flex-shrink-0",
@@ -14659,7 +14616,7 @@ var DateSelector = ({
14659
14616
  ...field,
14660
14617
  ...props,
14661
14618
  placeholder,
14662
- className: classNames28({
14619
+ className: classNames24({
14663
14620
  "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,
14664
14621
  "border-eui-danger-500": meta.touched && meta.error,
14665
14622
  "transition-all ease-in-out": true,
@@ -14768,7 +14725,7 @@ var ImageInput = forwardRef(
14768
14725
  /* @__PURE__ */ jsxs(
14769
14726
  "label",
14770
14727
  {
14771
- className: classNames28({
14728
+ className: classNames24({
14772
14729
  "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,
14773
14730
  "hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
14774
14731
  "transition-all ease-in-out duration-150": true
@@ -14885,7 +14842,7 @@ function Radio({
14885
14842
  return /* @__PURE__ */ jsxs(
14886
14843
  "div",
14887
14844
  {
14888
- className: classNames28({
14845
+ className: classNames24({
14889
14846
  "flex flex-row gap-2 items-center mx-1 my-2": true
14890
14847
  }),
14891
14848
  children: [
@@ -14898,7 +14855,7 @@ function Radio({
14898
14855
  ...props,
14899
14856
  value: option.value,
14900
14857
  checked: field2.value === option.value,
14901
- className: classNames28({
14858
+ className: classNames24({
14902
14859
  "appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
14903
14860
  // base radio button styles
14904
14861
  "checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
@@ -14910,7 +14867,7 @@ function Radio({
14910
14867
  "label",
14911
14868
  {
14912
14869
  htmlFor: option.value,
14913
- className: classNames28({
14870
+ className: classNames24({
14914
14871
  "eui-text-md text-sm": true
14915
14872
  }),
14916
14873
  children: option.label
@@ -14953,7 +14910,7 @@ function StarRatingInput({
14953
14910
  return /* @__PURE__ */ jsxs(
14954
14911
  "div",
14955
14912
  {
14956
- className: classNames28({
14913
+ className: classNames24({
14957
14914
  "inline-flex gap-[4px] text-[20px]": true,
14958
14915
  [`${styles}`]: styles
14959
14916
  }),
@@ -14966,7 +14923,7 @@ function StarRatingInput({
14966
14923
  onClick: () => handleOnClick(index),
14967
14924
  onMouseEnter: () => setHover(index),
14968
14925
  onMouseLeave: () => setHover(null),
14969
- className: classNames28({
14926
+ className: classNames24({
14970
14927
  "text-yellow-600": index <= (hover ?? rating - 1),
14971
14928
  "text-gray-400": index > (hover ?? rating - 1)
14972
14929
  }),
@@ -15010,7 +14967,7 @@ function Select({
15010
14967
  {
15011
14968
  as: "select",
15012
14969
  ...props,
15013
- className: classNames28({
14970
+ className: classNames24({
15014
14971
  "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,
15015
14972
  "border-eui-primary-400": !(meta.touched && meta.error),
15016
14973
  "border-red-500": meta.touched && meta.error,
@@ -15062,7 +15019,7 @@ function Switch({
15062
15019
  "div",
15063
15020
  {
15064
15021
  onClick: () => helpers.setValue(!field.value),
15065
- className: classNames28(
15022
+ className: classNames24(
15066
15023
  "w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
15067
15024
  "peer-checked:after:translate-x-full peer-checked:after:border-white",
15068
15025
  "after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
@@ -15119,7 +15076,7 @@ function Tags({
15119
15076
  /* @__PURE__ */ jsxs(
15120
15077
  "div",
15121
15078
  {
15122
- className: classNames28(
15079
+ className: classNames24(
15123
15080
  "border rounded-sm flex flex-wrap items-center gap-2 px-2 pt-2 pb-6 min-h-[3rem]",
15124
15081
  {
15125
15082
  "bg-eui-primary-300/10 eui-text-md": true,
@@ -15167,7 +15124,7 @@ function Tags({
15167
15124
  InputLabel_default,
15168
15125
  {
15169
15126
  text: placeholder,
15170
- styles: classNames28(
15127
+ styles: classNames24(
15171
15128
  "absolute left-2 transition-all pointer-events-none text-eui-dark-200",
15172
15129
  input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
15173
15130
  )
@@ -15208,7 +15165,7 @@ function TextArea({
15208
15165
  as: "textarea",
15209
15166
  ...field,
15210
15167
  ...props,
15211
- className: classNames28({
15168
+ className: classNames24({
15212
15169
  "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,
15213
15170
  "transition-all ease-in-out": true,
15214
15171
  "border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
@@ -15222,7 +15179,7 @@ function TextArea({
15222
15179
  InputLabel_default,
15223
15180
  {
15224
15181
  text: placeholder,
15225
- styles: classNames28(
15182
+ styles: classNames24(
15226
15183
  "absolute left-2 transition-all pointer-events-none text-eui-dark-200",
15227
15184
  field.value ? "top-[2px] text-[13.5px]" : "top-3 text-base"
15228
15185
  )
@@ -15253,7 +15210,7 @@ function ContentArea({
15253
15210
  return /* @__PURE__ */ jsx(
15254
15211
  "div",
15255
15212
  {
15256
- className: classNames28({
15213
+ className: classNames24({
15257
15214
  "min-h-screen h-full w-full py-3 px-5": true,
15258
15215
  "py-3 px-5": !enablePadding,
15259
15216
  "py-3 px-5 lg:px-[150px]": enablePadding,
@@ -15269,7 +15226,7 @@ function FlexCol({ children, gap = 3, styles }) {
15269
15226
  return /* @__PURE__ */ jsx(
15270
15227
  "div",
15271
15228
  {
15272
- className: classNames28({
15229
+ className: classNames24({
15273
15230
  [`flex flex-col gap-${gap}`]: true,
15274
15231
  [`${styles}`]: styles
15275
15232
  }),
@@ -15282,7 +15239,7 @@ function FlexRow({ children, gap = 3, styles }) {
15282
15239
  return /* @__PURE__ */ jsx(
15283
15240
  "div",
15284
15241
  {
15285
- className: classNames28({
15242
+ className: classNames24({
15286
15243
  [`flex flex-row gap-${gap}`]: true,
15287
15244
  [`${styles}`]: styles
15288
15245
  }),
@@ -15301,7 +15258,7 @@ function Grid({ children, styles }) {
15301
15258
  return /* @__PURE__ */ jsx(
15302
15259
  "div",
15303
15260
  {
15304
- className: classNames28({
15261
+ className: classNames24({
15305
15262
  [`grid`]: true,
15306
15263
  [`${styles}`]: styles
15307
15264
  }),
@@ -15318,7 +15275,7 @@ var Layout = ({
15318
15275
  return /* @__PURE__ */ jsx(
15319
15276
  "div",
15320
15277
  {
15321
- className: classNames28({
15278
+ className: classNames24({
15322
15279
  // "flex h-full w-screen bg-gray-100 overflow-auto": true,
15323
15280
  "flex bg-eui-light-600": true,
15324
15281
  "flex-col": flexDirection === "vertical",
@@ -15337,7 +15294,7 @@ var Header = ({
15337
15294
  return /* @__PURE__ */ jsx(
15338
15295
  "div",
15339
15296
  {
15340
- className: classNames28({
15297
+ className: classNames24({
15341
15298
  static: position === "static",
15342
15299
  fixed: position === "fixed",
15343
15300
  sticky: position === "sticky",
@@ -15377,7 +15334,7 @@ var Content = ({
15377
15334
  return /* @__PURE__ */ jsx(
15378
15335
  "div",
15379
15336
  {
15380
- className: classNames28({
15337
+ className: classNames24({
15381
15338
  "w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
15382
15339
  "md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
15383
15340
  // Shift when sidebar is open (desktop)
@@ -15393,7 +15350,7 @@ var Footer = ({ children, styles }) => {
15393
15350
  return /* @__PURE__ */ jsx(
15394
15351
  "div",
15395
15352
  {
15396
- className: classNames28({
15353
+ className: classNames24({
15397
15354
  "bottom-0 w-full h-fit": true,
15398
15355
  "border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
15399
15356
  [`${styles}`]: styles
@@ -15481,7 +15438,7 @@ function MarkdownEditor({
15481
15438
  const [field, meta, helpers] = useField(props);
15482
15439
  const { theme } = useTheme_default();
15483
15440
  return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
15484
- /* @__PURE__ */ jsx("div", { className: classNames28(theme === "dark" ? "dark" : "", styles), children: /* @__PURE__ */ jsx(
15441
+ /* @__PURE__ */ jsx("div", { className: classNames24(theme === "dark" ? "dark" : "", styles), children: /* @__PURE__ */ jsx(
15485
15442
  MDXEditor,
15486
15443
  {
15487
15444
  markdown: field.value,
@@ -15584,7 +15541,7 @@ function MarkdownTOC({ title = "Table of Contents" }) {
15584
15541
  "button",
15585
15542
  {
15586
15543
  onClick: () => scrollToHeading(heading.id),
15587
- className: classNames28(
15544
+ className: classNames24(
15588
15545
  "block w-full text-left text-sm transition-all ease-in-out duration-150",
15589
15546
  "hover:text-primary",
15590
15547
  activeHeading === heading.id ? "text-primary font-semibold underline" : "text-gray-500 dark:text-gray-400"
@@ -15740,7 +15697,7 @@ function BreadcrumbItem({
15740
15697
  {
15741
15698
  href,
15742
15699
  onClick,
15743
- className: classNames28({
15700
+ className: classNames24({
15744
15701
  "text-lg font-semibold": true,
15745
15702
  "text-gray-400 hover:text-gray-600 cursor-pointer": !active,
15746
15703
  "text-eui-light-800": active,
@@ -15817,7 +15774,7 @@ var Breadcrumb = ({
15817
15774
  index < resolvedData.length - 1 && /* @__PURE__ */ jsx(
15818
15775
  "span",
15819
15776
  {
15820
- className: classNames28({
15777
+ className: classNames24({
15821
15778
  "text-lg font-semibold text-gray-500": true,
15822
15779
  [`px-${gap}`]: gap
15823
15780
  }),
@@ -15831,7 +15788,7 @@ var Breadcrumb = ({
15831
15788
  return /* @__PURE__ */ jsx(
15832
15789
  "div",
15833
15790
  {
15834
- className: classNames28({
15791
+ className: classNames24({
15835
15792
  "inline-flex": true,
15836
15793
  [`${styles}`]: styles
15837
15794
  }),
@@ -15861,7 +15818,7 @@ var Drawer = ({
15861
15818
  {
15862
15819
  show: visibility,
15863
15820
  enter: "transform transition duration-200 ease-out",
15864
- enterFrom: classNames28({
15821
+ enterFrom: classNames24({
15865
15822
  "-translate-x-full": side === "left",
15866
15823
  "translate-x-full": side === "right",
15867
15824
  "-translate-y-full": side === "top",
@@ -15870,7 +15827,7 @@ var Drawer = ({
15870
15827
  enterTo: "translate-x-0 translate-y-0",
15871
15828
  leave: "transform transition duration-200 ease-in",
15872
15829
  leaveFrom: "translate-x-0 translate-y-0",
15873
- leaveTo: classNames28({
15830
+ leaveTo: classNames24({
15874
15831
  "-translate-x-full": side === "left",
15875
15832
  "translate-x-full": side === "right",
15876
15833
  "-translate-y-full": side === "top",
@@ -15879,7 +15836,7 @@ var Drawer = ({
15879
15836
  children: /* @__PURE__ */ jsx(
15880
15837
  "div",
15881
15838
  {
15882
- className: classNames28(
15839
+ className: classNames24(
15883
15840
  "fixed shadow-lg z-50",
15884
15841
  {
15885
15842
  "h-full w-[300px]": isHorizontal,
@@ -15911,7 +15868,7 @@ function DrawerToggler({
15911
15868
  return /* @__PURE__ */ jsx(
15912
15869
  "div",
15913
15870
  {
15914
- className: classNames28({
15871
+ className: classNames24({
15915
15872
  "text-xl p-3 cursor-pointer": true,
15916
15873
  "transition-all ease-in-out": true,
15917
15874
  "text-eui-dark-500 dark:text-eui-secondary-600": !styles,
@@ -15959,7 +15916,7 @@ function FooterNav({ data = [], styles }) {
15959
15916
  childrenContent = /* @__PURE__ */ jsx(
15960
15917
  "div",
15961
15918
  {
15962
- className: classNames28({
15919
+ className: classNames24({
15963
15920
  "grid w-full": true,
15964
15921
  "grid-cols-1": isMobile,
15965
15922
  "grid-cols-3": !isMobile,
@@ -15972,7 +15929,7 @@ function FooterNav({ data = [], styles }) {
15972
15929
  return /* @__PURE__ */ jsx(
15973
15930
  "div",
15974
15931
  {
15975
- className: classNames28({
15932
+ className: classNames24({
15976
15933
  [`${styles}`]: styles
15977
15934
  }),
15978
15935
  children: childrenContent
@@ -16013,7 +15970,7 @@ var FooterNavGroup = ({
16013
15970
  /* @__PURE__ */ jsx(
16014
15971
  "div",
16015
15972
  {
16016
- className: classNames28({
15973
+ className: classNames24({
16017
15974
  "": true,
16018
15975
  "py-2 font-semibold eui-text-lg": !styles,
16019
15976
  [`${styles}`]: styles
@@ -16058,7 +16015,7 @@ var FooterNavItem = ({
16058
16015
  "div",
16059
16016
  {
16060
16017
  onClick: handleNavigation,
16061
- className: classNames28({
16018
+ className: classNames24({
16062
16019
  "flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
16063
16020
  "transition-all duration-200 ease-in-out": true,
16064
16021
  "text-sm eui-text-sm": !styles,
@@ -16087,7 +16044,7 @@ var FooterNavItemTitle = ({
16087
16044
  return /* @__PURE__ */ jsx(
16088
16045
  "div",
16089
16046
  {
16090
- className: classNames28({
16047
+ className: classNames24({
16091
16048
  "": true,
16092
16049
  "py-2 font-thin eui-text-md": !styles,
16093
16050
  [`${styles}`]: styles
@@ -16140,7 +16097,7 @@ function HeaderNav({ data = [], styles }) {
16140
16097
  return /* @__PURE__ */ jsx(
16141
16098
  "div",
16142
16099
  {
16143
- className: classNames28({
16100
+ className: classNames24({
16144
16101
  [`${styles}`]: styles
16145
16102
  }),
16146
16103
  children: childrenContent
@@ -16202,7 +16159,7 @@ var HeaderNavGroup = ({
16202
16159
  /* @__PURE__ */ jsxs(
16203
16160
  "div",
16204
16161
  {
16205
- className: classNames28({
16162
+ className: classNames24({
16206
16163
  "flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
16207
16164
  "transition-all duration-300 ease-in-out": true,
16208
16165
  "eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
@@ -16230,7 +16187,7 @@ var HeaderNavGroup = ({
16230
16187
  children && /* @__PURE__ */ jsx(
16231
16188
  BsChevronDown,
16232
16189
  {
16233
- className: classNames28({
16190
+ className: classNames24({
16234
16191
  "text-md": true,
16235
16192
  "transition-all ease-in-out duration-300": true,
16236
16193
  "rotate-180": !collapsed
@@ -16243,7 +16200,7 @@ var HeaderNavGroup = ({
16243
16200
  !collapsed && children && /* @__PURE__ */ jsx(
16244
16201
  "div",
16245
16202
  {
16246
- className: classNames28({
16203
+ className: classNames24({
16247
16204
  "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,
16248
16205
  "transition-all duration-300 ease-in-out": true
16249
16206
  }),
@@ -16273,7 +16230,7 @@ var HeaderNavItem = ({
16273
16230
  "div",
16274
16231
  {
16275
16232
  onClick: handleNavigation,
16276
- className: classNames28({
16233
+ className: classNames24({
16277
16234
  "flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
16278
16235
  "transition-all duration-200 ease-in-out": true,
16279
16236
  "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,
@@ -16302,7 +16259,7 @@ var HeaderNavItemTitle = ({
16302
16259
  return /* @__PURE__ */ jsx(
16303
16260
  "div",
16304
16261
  {
16305
- className: classNames28({
16262
+ className: classNames24({
16306
16263
  "p-3 font-thin": true,
16307
16264
  "eui-text-md": !styles,
16308
16265
  [`${styles}`]: styles
@@ -16342,7 +16299,7 @@ var Link = ({
16342
16299
  href: href || "#",
16343
16300
  target: targets[target],
16344
16301
  onClick: handleClick,
16345
- className: classNames28({
16302
+ className: classNames24({
16346
16303
  [`${textVariants[variant]}`]: variant,
16347
16304
  [`${decorations[decoration]}`]: decoration,
16348
16305
  "font-bold": bold,
@@ -16807,7 +16764,7 @@ function Modal({
16807
16764
  "div",
16808
16765
  {
16809
16766
  ref: modalRef,
16810
- className: classNames28({
16767
+ className: classNames24({
16811
16768
  "eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit": true,
16812
16769
  [`${shapes[resolvedShape]}`]: true,
16813
16770
  [`${styles}`]: styles
@@ -16818,7 +16775,7 @@ function Modal({
16818
16775
  /* @__PURE__ */ jsx(
16819
16776
  "div",
16820
16777
  {
16821
- className: classNames28({
16778
+ className: classNames24({
16822
16779
  "w-[60px] h-[60px] flex items-center justify-center transition-standard-fast": true,
16823
16780
  "hover:cursor-pointer hover:bg-eui-dark-500": true
16824
16781
  }),
@@ -16924,7 +16881,7 @@ function ShowMore({ text, limit }) {
16924
16881
  /* @__PURE__ */ jsx(
16925
16882
  "div",
16926
16883
  {
16927
- className: classNames28({
16884
+ className: classNames24({
16928
16885
  "text-blue-300 px-1 pb-1 mt-1": true,
16929
16886
  "bg-slate-900/70": !showMore,
16930
16887
  "bg-gradient-to-t from-slate-900/50 to-transparent": showMore
@@ -16986,6 +16943,99 @@ function DocumentationPanel({ value, toc = true }) {
16986
16943
  ] }) });
16987
16944
  }
16988
16945
  var DocumentationPanel_default = DocumentationPanel;
16946
+ function SliderItem({
16947
+ img,
16948
+ onClick,
16949
+ selected,
16950
+ className,
16951
+ ...rest
16952
+ }) {
16953
+ return /* @__PURE__ */ jsx(
16954
+ "div",
16955
+ {
16956
+ ...rest,
16957
+ onClick,
16958
+ className: cn(
16959
+ "flex-shrink-0 w-[160px] h-[90px] border-[3px] overflow-hidden brightness-50",
16960
+ "hover:cursor-pointer hover:border-eui-secondary-600 hover:shadow-lg hover:shadow-[#167d0f]/50 hover:brightness-100",
16961
+ selected ? "border-opacity-100 border-[#0b6b05] brightness-100" : "border-transparent",
16962
+ "transition-all ease-in-out duration-500",
16963
+ className
16964
+ ),
16965
+ children: /* @__PURE__ */ jsx(
16966
+ CloudinaryImage_default,
16967
+ {
16968
+ publicId: img,
16969
+ alt: "image",
16970
+ className: "w-full h-full object-cover"
16971
+ }
16972
+ )
16973
+ }
16974
+ );
16975
+ }
16976
+ var SliderItem_default = SliderItem;
16977
+ function Slider({ isLoading, isSuccess, coverArt, screenshots }) {
16978
+ const [images, setImages] = useState([
16979
+ {
16980
+ img: coverArt,
16981
+ selected: true
16982
+ }
16983
+ ]);
16984
+ useEffect(() => {
16985
+ setImages([
16986
+ {
16987
+ img: coverArt,
16988
+ selected: true
16989
+ }
16990
+ ]);
16991
+ }, [isSuccess]);
16992
+ useEffect(() => {
16993
+ if (screenshots) {
16994
+ const selectableScreenshots = [];
16995
+ screenshots.forEach((item) => {
16996
+ selectableScreenshots.push({
16997
+ img: item,
16998
+ selected: false
16999
+ });
17000
+ });
17001
+ setImages((prev) => [...prev, ...selectableScreenshots]);
17002
+ }
17003
+ }, [isSuccess]);
17004
+ const [displayImg, setDisplayImg] = useState(coverArt);
17005
+ useEffect(() => {
17006
+ setDisplayImg(coverArt);
17007
+ }, [coverArt]);
17008
+ const displayImageHandler = (itemIndex, img) => {
17009
+ setDisplayImg(img);
17010
+ const newArray = images.map((obj, i) => {
17011
+ if (i === itemIndex) {
17012
+ return { ...obj, selected: true };
17013
+ }
17014
+ return { ...obj, selected: false };
17015
+ });
17016
+ setImages(newArray);
17017
+ };
17018
+ return /* @__PURE__ */ jsx("div", { children: isLoading ? /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Skeleton, { className: "w-full aspect-w-16 aspect-h-9" }) }) : /* @__PURE__ */ jsxs("div", { children: [
17019
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
17020
+ CloudinaryImage_default,
17021
+ {
17022
+ publicId: displayImg,
17023
+ alt: "displayImg",
17024
+ className: "aspect-w-16 aspect-h-9"
17025
+ }
17026
+ ) }),
17027
+ /* @__PURE__ */ jsx("div", { className: "relative h-[130px]", children: /* @__PURE__ */ jsx("div", { className: "absolute pt-2 pb-4 w-full flex space-x-2 overflow-auto", children: images.map((item, index) => /* @__PURE__ */ jsx(
17028
+ SliderItem_default,
17029
+ {
17030
+ img: item.img,
17031
+ onClick: () => displayImageHandler(index, item.img),
17032
+ selected: item.selected
17033
+ },
17034
+ index
17035
+ )) }) })
17036
+ ] }) });
17037
+ }
17038
+ var Slider_default = Slider;
16989
17039
  function WorldMapCountryTable({
16990
17040
  title = "Country Breakdown",
16991
17041
  data
@@ -17082,7 +17132,7 @@ function BoxNavItem({ icon, name, to, selected, onClick }) {
17082
17132
  type: "button",
17083
17133
  onClick: handleClick,
17084
17134
  "aria-current": selected ? "page" : void 0,
17085
- className: classNames28(
17135
+ className: classNames24(
17086
17136
  "w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
17087
17137
  "hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
17088
17138
  selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
@@ -17472,7 +17522,7 @@ function GenericLayout({
17472
17522
  return /* @__PURE__ */ jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsx(
17473
17523
  "div",
17474
17524
  {
17475
- className: classNames28({
17525
+ className: classNames24({
17476
17526
  [`${styles}`]: styles
17477
17527
  }),
17478
17528
  children
@@ -17521,7 +17571,7 @@ function SidemenuLayout({ data, children }) {
17521
17571
  return /* @__PURE__ */ jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxs(
17522
17572
  "div",
17523
17573
  {
17524
- className: classNames28({
17574
+ className: classNames24({
17525
17575
  grid: true,
17526
17576
  "grid-cols-7 gap-10": !isMobile,
17527
17577
  "grid-cols-1 gap-": isMobile
@@ -17549,26 +17599,37 @@ function EUIDevLayout({
17549
17599
  shape: "roundedSquare"
17550
17600
  }
17551
17601
  },
17552
- children: /* @__PURE__ */ jsx(GenericLayout_default, { children: /* @__PURE__ */ jsxs(Layout, { children: [
17602
+ children: /* @__PURE__ */ jsx(CloudinaryProvider, { cloudName: "demo", children: /* @__PURE__ */ jsx(GenericLayout_default, { children: /* @__PURE__ */ jsxs(Layout, { children: [
17553
17603
  header,
17554
17604
  /* @__PURE__ */ jsx(Content, { styles: "pt-[60px]", children: /* @__PURE__ */ jsx(ContentArea_default, { enablePadding: true, children }) }),
17555
17605
  footer
17556
- ] }) })
17606
+ ] }) }) })
17557
17607
  }
17558
17608
  );
17559
17609
  }
17560
17610
  var EUIDevLayout_default = EUIDevLayout;
17561
- function ScrollToTop({ trigger, behavior = "smooth" }) {
17611
+ function ScrollToTop({
17612
+ trigger,
17613
+ behavior = "smooth",
17614
+ target
17615
+ }) {
17562
17616
  useEffect(() => {
17617
+ if (target) {
17618
+ target.scrollTo({
17619
+ top: 0,
17620
+ behavior
17621
+ });
17622
+ return;
17623
+ }
17563
17624
  window.scrollTo({
17564
17625
  top: 0,
17565
17626
  behavior
17566
17627
  });
17567
- }, [trigger]);
17628
+ }, [trigger, target]);
17568
17629
  return null;
17569
17630
  }
17570
17631
  var ScrollToTop_default = ScrollToTop;
17571
17632
 
17572
- 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, CloudinaryProvider, CloudinaryVideo_default as CloudinaryVideo, Content, ContentArea_default as ContentArea, DataView, DataViewTable_default as DataViewTable, DateSelector_default as DateSelector, DefaultLayout_default as DefaultLayout, 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, Layout, 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, 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, YoutubeVideoPlayer_default as YoutubeVideoPlayer, cn, createForceLayout, createGridLayout, createTreeLayout, getCurrencySymbol, getLayout, isMatch, isRenderFn, normalize, registerLayout, resolveWithGlobal, sendToast, useClickOutside, useCloudinaryConfig, useCurrentTheme_default as useCurrentTheme, useDrawer_default as useDrawer, useEUIConfig, useIsMobile_default as useIsMobile, useModal_default as useModal, useTheme_default as useTheme };
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, CloudinaryProvider, CloudinaryVideo_default as CloudinaryVideo, Content, ContentArea_default as ContentArea, DataView, DataViewTable_default as DataViewTable, DateSelector_default as DateSelector, DefaultLayout_default as DefaultLayout, 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, Layout, 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, 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, YoutubeVideoPlayer_default as YoutubeVideoPlayer, cn, createForceLayout, createGridLayout, createTreeLayout, enumValues, getCurrencySymbol, getLayout, isMatch, isRenderFn, normalize, registerLayout, resolveWithGlobal, sendToast, useClickOutside, useCloudinaryConfig, useCurrentTheme_default as useCurrentTheme, useDrawer_default as useDrawer, useEUIConfig, useIsMobile_default as useIsMobile, useModal_default as useModal, useTheme_default as useTheme };
17573
17634
  //# sourceMappingURL=index.mjs.map
17574
17635
  //# sourceMappingURL=index.mjs.map