elseware-ui 2.36.2 → 2.36.5

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
@@ -1,10 +1,9 @@
1
1
  import { twMerge } from 'tailwind-merge';
2
- import React8, { createContext, forwardRef, useState, useImperativeHandle, useEffect, useMemo, useContext, useRef, Children, useCallback, Fragment as Fragment$1 } from 'react';
2
+ import React2, { createContext, forwardRef, useState, useImperativeHandle, useEffect, useMemo, useContext, useRef, Children, useCallback } from 'react';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
  import { BsStarFill, BsStarHalf, BsStar, BsChevronDown, BsFillDiamondFill } from 'react-icons/bs';
5
5
  import { FaSun, FaMoon, FaGripVertical, FaTrash, FaPlus, FaTimes, FaBars, FaCircle, FaEyeSlash, FaEye } from 'react-icons/fa';
6
6
  import { ResponsiveContainer, LineChart, CartesianGrid, XAxis, YAxis, Tooltip, Line, AreaChart, Area, BarChart, Bar, PieChart, Pie, Cell, ScatterChart, Scatter } from 'recharts';
7
- import { Transition } from '@headlessui/react';
8
7
  import classNames17 from 'classnames';
9
8
  import { FaCircleChevronDown } from 'react-icons/fa6';
10
9
  import ReactWorldFlags from 'react-world-flags';
@@ -3674,6 +3673,243 @@ function DataViewSort({ options = [], shape }) {
3674
3673
  );
3675
3674
  }
3676
3675
  var DataViewSort_default = DataViewSort;
3676
+ function useTransitionVisibility(visibility, leaveDuration = 150) {
3677
+ const [mounted, setMounted] = useState(Boolean(visibility));
3678
+ const [active, setActive] = useState(Boolean(visibility));
3679
+ const isInitialRenderRef = useRef(true);
3680
+ const frameOneRef = useRef(null);
3681
+ const frameTwoRef = useRef(null);
3682
+ const timeoutRef = useRef(null);
3683
+ const clearTimers = () => {
3684
+ if (frameOneRef.current) {
3685
+ cancelAnimationFrame(frameOneRef.current);
3686
+ frameOneRef.current = null;
3687
+ }
3688
+ if (frameTwoRef.current) {
3689
+ cancelAnimationFrame(frameTwoRef.current);
3690
+ frameTwoRef.current = null;
3691
+ }
3692
+ if (timeoutRef.current) {
3693
+ clearTimeout(timeoutRef.current);
3694
+ timeoutRef.current = null;
3695
+ }
3696
+ };
3697
+ useEffect(() => {
3698
+ clearTimers();
3699
+ if (isInitialRenderRef.current) {
3700
+ isInitialRenderRef.current = false;
3701
+ return clearTimers;
3702
+ }
3703
+ if (visibility) {
3704
+ setMounted(true);
3705
+ setActive(false);
3706
+ frameOneRef.current = requestAnimationFrame(() => {
3707
+ frameTwoRef.current = requestAnimationFrame(() => {
3708
+ setActive(true);
3709
+ });
3710
+ });
3711
+ return clearTimers;
3712
+ }
3713
+ setActive(false);
3714
+ timeoutRef.current = setTimeout(() => {
3715
+ setMounted(false);
3716
+ }, leaveDuration);
3717
+ return clearTimers;
3718
+ }, [visibility, leaveDuration]);
3719
+ return {
3720
+ mounted,
3721
+ active
3722
+ };
3723
+ }
3724
+ function renderTransitionChild(children, className) {
3725
+ const childCount = Children.count(children);
3726
+ if (childCount !== 1) {
3727
+ return /* @__PURE__ */ jsx("div", { className, children });
3728
+ }
3729
+ const child = Children.only(children);
3730
+ if (!React2.isValidElement(child)) {
3731
+ return /* @__PURE__ */ jsx("div", { className, children: child });
3732
+ }
3733
+ const element = child;
3734
+ return React2.cloneElement(element, {
3735
+ className: classNames17(element.props.className, className)
3736
+ });
3737
+ }
3738
+ function TransitionBase({
3739
+ visibility,
3740
+ children,
3741
+ enterClassName,
3742
+ leaveClassName,
3743
+ visibleClassName,
3744
+ hiddenClassName,
3745
+ leaveDuration = 150,
3746
+ unmountOnExit = true
3747
+ }) {
3748
+ const { mounted, active } = useTransitionVisibility(
3749
+ Boolean(visibility),
3750
+ leaveDuration
3751
+ );
3752
+ if (!mounted && unmountOnExit) {
3753
+ return null;
3754
+ }
3755
+ const transitionClassName = classNames17(
3756
+ visibility ? enterClassName : leaveClassName,
3757
+ active ? visibleClassName : hiddenClassName
3758
+ );
3759
+ return renderTransitionChild(children, transitionClassName);
3760
+ }
3761
+ var TransitionBase_default = TransitionBase;
3762
+ function TransitionDropdown({
3763
+ visibility,
3764
+ children,
3765
+ leaveDuration = 120
3766
+ }) {
3767
+ return /* @__PURE__ */ jsx(
3768
+ TransitionBase_default,
3769
+ {
3770
+ visibility: Boolean(visibility),
3771
+ enterClassName: "transform-gpu transition-all duration-150 ease-out origin-top-right",
3772
+ leaveClassName: "transform-gpu transition-all duration-120 ease-in origin-top-right",
3773
+ visibleClassName: "scale-100 opacity-100 translate-y-0",
3774
+ hiddenClassName: "scale-95 opacity-0 -translate-y-1",
3775
+ leaveDuration,
3776
+ children
3777
+ }
3778
+ );
3779
+ }
3780
+ var TransitionDropdown_default = TransitionDropdown;
3781
+ function TransitionFade({
3782
+ visibility,
3783
+ children,
3784
+ leaveDuration = 180
3785
+ }) {
3786
+ return /* @__PURE__ */ jsx(
3787
+ TransitionBase_default,
3788
+ {
3789
+ visibility: Boolean(visibility),
3790
+ enterClassName: "transition-opacity duration-200 ease-out",
3791
+ leaveClassName: "transition-opacity duration-180 ease-in",
3792
+ visibleClassName: "opacity-100",
3793
+ hiddenClassName: "opacity-0",
3794
+ leaveDuration,
3795
+ children
3796
+ }
3797
+ );
3798
+ }
3799
+ var TransitionFade_default = TransitionFade;
3800
+ function TransitionFadeIn({
3801
+ visibility,
3802
+ children,
3803
+ leaveDuration = 180
3804
+ }) {
3805
+ return /* @__PURE__ */ jsx(
3806
+ TransitionBase_default,
3807
+ {
3808
+ visibility: Boolean(visibility),
3809
+ enterClassName: "transform-gpu transition-all duration-250 ease-out",
3810
+ leaveClassName: "transform-gpu transition-all duration-180 ease-in",
3811
+ visibleClassName: "opacity-100 translate-y-0",
3812
+ hiddenClassName: "opacity-0 translate-y-3",
3813
+ leaveDuration,
3814
+ children
3815
+ }
3816
+ );
3817
+ }
3818
+ var TransitionFadeIn_default = TransitionFadeIn;
3819
+ function TransitionScale({
3820
+ visibility,
3821
+ children,
3822
+ leaveDuration = 120
3823
+ }) {
3824
+ return /* @__PURE__ */ jsx(
3825
+ TransitionBase_default,
3826
+ {
3827
+ visibility: Boolean(visibility),
3828
+ enterClassName: "transform-gpu transition-all duration-150 ease-out origin-center",
3829
+ leaveClassName: "transform-gpu transition-all duration-120 ease-in origin-center",
3830
+ visibleClassName: "scale-100 opacity-100",
3831
+ hiddenClassName: "scale-95 opacity-0",
3832
+ leaveDuration,
3833
+ children
3834
+ }
3835
+ );
3836
+ }
3837
+ var TransitionScale_default = TransitionScale;
3838
+ function getHiddenClassName(side) {
3839
+ switch (side) {
3840
+ case "right":
3841
+ return "translate-x-full";
3842
+ case "top":
3843
+ return "-translate-y-full";
3844
+ case "bottom":
3845
+ return "translate-y-full";
3846
+ case "left":
3847
+ default:
3848
+ return "-translate-x-full";
3849
+ }
3850
+ }
3851
+ function TransitionSlide({
3852
+ visibility,
3853
+ side = "left",
3854
+ children,
3855
+ leaveDuration = 240
3856
+ }) {
3857
+ return /* @__PURE__ */ jsx(
3858
+ TransitionBase_default,
3859
+ {
3860
+ visibility: Boolean(visibility),
3861
+ enterClassName: "transform-gpu transition-transform duration-300 ease-out",
3862
+ leaveClassName: "transform-gpu transition-transform duration-240 ease-in",
3863
+ visibleClassName: "translate-x-0 translate-y-0",
3864
+ hiddenClassName: getHiddenClassName(side),
3865
+ leaveDuration,
3866
+ children
3867
+ }
3868
+ );
3869
+ }
3870
+ var TransitionSlide_default = TransitionSlide;
3871
+ function TransitionAccordion({
3872
+ visibility,
3873
+ children,
3874
+ enterDuration = 220,
3875
+ leaveDuration = 180
3876
+ }) {
3877
+ const { mounted, active } = useTransitionVisibility(
3878
+ Boolean(visibility),
3879
+ leaveDuration
3880
+ );
3881
+ if (!mounted) {
3882
+ return null;
3883
+ }
3884
+ const duration = visibility ? enterDuration : leaveDuration;
3885
+ return /* @__PURE__ */ jsx(
3886
+ "div",
3887
+ {
3888
+ style: {
3889
+ display: "grid",
3890
+ gridTemplateRows: active ? "1fr" : "0fr",
3891
+ opacity: active ? 1 : 0,
3892
+ transitionProperty: "grid-template-rows, opacity",
3893
+ transitionDuration: `${duration}ms`,
3894
+ transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
3895
+ willChange: "grid-template-rows, opacity"
3896
+ },
3897
+ children: /* @__PURE__ */ jsx("div", { className: "min-h-0 overflow-hidden", children })
3898
+ }
3899
+ );
3900
+ }
3901
+ var TransitionAccordion_default = TransitionAccordion;
3902
+
3903
+ // src/components/feedback/transition/index.tsx
3904
+ var Transition = {
3905
+ TransitionBase: TransitionBase_default,
3906
+ TransitionDropdown: TransitionDropdown_default,
3907
+ TransitionFade: TransitionFade_default,
3908
+ TransitionFadeIn: TransitionFadeIn_default,
3909
+ TransitionScale: TransitionScale_default,
3910
+ TransitionSlide: TransitionSlide_default,
3911
+ TransitionAccordion: TransitionAccordion_default
3912
+ };
3677
3913
  function Accordion({
3678
3914
  summary = "Accordion",
3679
3915
  children,
@@ -3688,13 +3924,15 @@ function Accordion({
3688
3924
  setCollapse((prev) => !prev);
3689
3925
  };
3690
3926
  return /* @__PURE__ */ jsxs("div", { className: "border border-eui-dark-400/80 text-gray-500", children: [
3691
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
3927
+ /* @__PURE__ */ jsxs(
3692
3928
  "div",
3693
3929
  {
3694
- className: classNames17({
3695
- "inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs": true,
3696
- "hover:cursor-pointer": toggleOnSummaryClick
3697
- }),
3930
+ className: classNames17(
3931
+ "inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs",
3932
+ {
3933
+ "hover:cursor-pointer": toggleOnSummaryClick
3934
+ }
3935
+ ),
3698
3936
  onClick: toggleOnSummaryClick ? handleToggle : void 0,
3699
3937
  children: [
3700
3938
  /* @__PURE__ */ jsxs("div", { className: "inline-flex gap-3 items-center w-full", children: [
@@ -3702,17 +3940,17 @@ function Accordion({
3702
3940
  /* @__PURE__ */ jsx("div", { className: "eui-text-md w-full", children: summary })
3703
3941
  ] }),
3704
3942
  /* @__PURE__ */ jsx(
3705
- "div",
3943
+ "button",
3706
3944
  {
3945
+ type: "button",
3707
3946
  onClick: toggleOnSummaryClick ? void 0 : handleToggle,
3708
3947
  className: "hover:cursor-pointer",
3709
3948
  children: /* @__PURE__ */ jsx(
3710
3949
  FaCircleChevronDown,
3711
3950
  {
3712
- className: classNames17(
3713
- "text-xl transition-transform duration-300",
3714
- { "rotate-180": collapse }
3715
- )
3951
+ className: classNames17("text-xl transition-transform duration-300", {
3952
+ "rotate-180": collapse
3953
+ })
3716
3954
  }
3717
3955
  )
3718
3956
  }
@@ -3720,30 +3958,19 @@ function Accordion({
3720
3958
  rhsActions && /* @__PURE__ */ jsx("div", { onClick: (e) => e.stopPropagation(), children: rhsActions })
3721
3959
  ]
3722
3960
  }
3723
- ) }),
3724
- /* @__PURE__ */ jsx(
3725
- Transition,
3961
+ ),
3962
+ /* @__PURE__ */ jsx(TransitionAccordion_default, { visibility: collapse, children: /* @__PURE__ */ jsx(
3963
+ "div",
3726
3964
  {
3727
- show: collapse,
3728
- enter: "transition duration-100 ease-out",
3729
- enterFrom: "transform scale-95 opacity-0",
3730
- enterTo: "transform scale-100 opacity-100",
3731
- leave: "transition duration-75 ease-out",
3732
- leaveFrom: "transform scale-100 opacity-100",
3733
- leaveTo: "transform scale-95 opacity-0",
3734
- as: Fragment$1,
3735
- children: /* @__PURE__ */ jsx(
3736
- "div",
3965
+ className: classNames17(
3966
+ "border-t border-t-eui-dark-400/40 eui-text-sm",
3737
3967
  {
3738
- className: classNames17({
3739
- "border-t border-t-eui-dark-400/40 eui-text-sm": true,
3740
- "p-5": enableChildrenPadding
3741
- }),
3742
- children
3968
+ "p-5": enableChildrenPadding
3743
3969
  }
3744
- )
3970
+ ),
3971
+ children
3745
3972
  }
3746
- )
3973
+ ) })
3747
3974
  ] });
3748
3975
  }
3749
3976
  var Accordion_default = Accordion;
@@ -4940,7 +5167,7 @@ var ListItem = ({
4940
5167
  children: bullet
4941
5168
  }
4942
5169
  ),
4943
- /* @__PURE__ */ jsx("div", { className: "flex-1 min-w-0", children: TypographyComponent ? React8.cloneElement(
5170
+ /* @__PURE__ */ jsx("div", { className: "flex-1 min-w-0", children: TypographyComponent ? React2.cloneElement(
4944
5171
  TypographyComponent,
4945
5172
  {
4946
5173
  className: cn(
@@ -4974,7 +5201,7 @@ function normalizeItem(item, defaultBulletType) {
4974
5201
  bulletType: defaultBulletType
4975
5202
  };
4976
5203
  }
4977
- if (React8.isValidElement(item)) {
5204
+ if (React2.isValidElement(item)) {
4978
5205
  return {
4979
5206
  content: item,
4980
5207
  bulletType: defaultBulletType
@@ -6458,106 +6685,6 @@ function sendToast(data = {}) {
6458
6685
  status: data.status || "success" /* success */
6459
6686
  });
6460
6687
  }
6461
- function renderTransitionChild(children, className) {
6462
- const childCount = Children.count(children);
6463
- if (childCount !== 1) {
6464
- return /* @__PURE__ */ jsx("div", { className, children });
6465
- }
6466
- const child = Children.only(children);
6467
- if (!React8.isValidElement(child)) {
6468
- return /* @__PURE__ */ jsx("div", { className, children: child });
6469
- }
6470
- const element = child;
6471
- return React8.cloneElement(element, {
6472
- className: classNames17(element.props.className, className)
6473
- });
6474
- }
6475
- function TransitionBase({
6476
- visibility,
6477
- children,
6478
- enterClassName,
6479
- leaveClassName,
6480
- visibleClassName,
6481
- hiddenClassName,
6482
- leaveDuration = 150
6483
- }) {
6484
- const [mounted, setMounted] = useState(Boolean(visibility));
6485
- const [active, setActive] = useState(Boolean(visibility));
6486
- const frameRef = useRef(null);
6487
- const timeoutRef = useRef(null);
6488
- useEffect(() => {
6489
- if (frameRef.current) {
6490
- cancelAnimationFrame(frameRef.current);
6491
- }
6492
- if (timeoutRef.current) {
6493
- clearTimeout(timeoutRef.current);
6494
- }
6495
- if (visibility) {
6496
- setMounted(true);
6497
- frameRef.current = requestAnimationFrame(() => {
6498
- setActive(true);
6499
- });
6500
- return;
6501
- }
6502
- setActive(false);
6503
- timeoutRef.current = setTimeout(() => {
6504
- setMounted(false);
6505
- }, leaveDuration);
6506
- return () => {
6507
- if (frameRef.current) {
6508
- cancelAnimationFrame(frameRef.current);
6509
- }
6510
- if (timeoutRef.current) {
6511
- clearTimeout(timeoutRef.current);
6512
- }
6513
- };
6514
- }, [visibility, leaveDuration]);
6515
- if (!mounted) {
6516
- return null;
6517
- }
6518
- const transitionClassName = classNames17(
6519
- visibility ? enterClassName : leaveClassName,
6520
- active ? visibleClassName : hiddenClassName
6521
- );
6522
- return renderTransitionChild(children, transitionClassName);
6523
- }
6524
- var TransitionBase_default = TransitionBase;
6525
- function TransitionDropdown({ visibility, children }) {
6526
- return /* @__PURE__ */ jsx(
6527
- TransitionBase_default,
6528
- {
6529
- visibility: Boolean(visibility),
6530
- enterClassName: "transition duration-100 ease-out",
6531
- leaveClassName: "transition duration-50 ease-out",
6532
- visibleClassName: "transform scale-100 opacity-100",
6533
- hiddenClassName: "transform scale-95 opacity-0",
6534
- leaveDuration: 50,
6535
- children
6536
- }
6537
- );
6538
- }
6539
- var TransitionDropdown_default = TransitionDropdown;
6540
- function TransitionFadeIn({ visibility, children }) {
6541
- return /* @__PURE__ */ jsx(
6542
- TransitionBase_default,
6543
- {
6544
- visibility: Boolean(visibility),
6545
- enterClassName: "transition-all ease-in-out duration-700 delay-[0ms]",
6546
- leaveClassName: "transition-all ease-in-out duration-300",
6547
- visibleClassName: "opacity-100 translate-y-0",
6548
- hiddenClassName: "opacity-0 translate-y-6",
6549
- leaveDuration: 300,
6550
- children
6551
- }
6552
- );
6553
- }
6554
- var TransitionFadeIn_default = TransitionFadeIn;
6555
-
6556
- // src/components/feedback/transition/index.tsx
6557
- var Transition2 = {
6558
- TransitionDropdown: TransitionDropdown_default,
6559
- TransitionFadeIn: TransitionFadeIn_default
6560
- };
6561
6688
  var sizes3 = {
6562
6689
  xs: "px-2 py-1 text-xs",
6563
6690
  sm: "px-3 py-2 text-sm",
@@ -6572,7 +6699,7 @@ function FormResponse({
6572
6699
  size = "md",
6573
6700
  styles
6574
6701
  }) {
6575
- return /* @__PURE__ */ jsx(Transition2.TransitionDropdown, { visibility: text ? true : false, children: /* @__PURE__ */ jsx(
6702
+ return /* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility: text ? true : false, children: /* @__PURE__ */ jsx(
6576
6703
  "div",
6577
6704
  {
6578
6705
  className: classNames17({
@@ -18237,7 +18364,7 @@ function InputResponse({
18237
18364
  variant = "default",
18238
18365
  styles
18239
18366
  }) {
18240
- return /* @__PURE__ */ jsx(Transition2.TransitionDropdown, { visibility, children: /* @__PURE__ */ jsx(
18367
+ return /* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility, children: /* @__PURE__ */ jsx(
18241
18368
  "div",
18242
18369
  {
18243
18370
  className: classNames17({
@@ -20000,7 +20127,7 @@ var Breadcrumb = ({
20000
20127
  navigate(item.href);
20001
20128
  }
20002
20129
  };
20003
- return /* @__PURE__ */ jsxs(React8.Fragment, { children: [
20130
+ return /* @__PURE__ */ jsxs(React2.Fragment, { children: [
20004
20131
  /* @__PURE__ */ jsx(
20005
20132
  BreadcrumbItem_default,
20006
20133
  {
@@ -20040,63 +20167,41 @@ var Drawer = ({
20040
20167
  visibility,
20041
20168
  side = "left",
20042
20169
  handleClose,
20043
- styles
20170
+ styles,
20171
+ showBackdrop = true,
20172
+ closeOnBackdropClick = true
20044
20173
  }) => {
20045
20174
  const isHorizontal = side === "left" || side === "right";
20046
20175
  const isMobile = useIsMobile_default();
20047
20176
  return /* @__PURE__ */ jsxs(Fragment, { children: [
20048
- isMobile && visibility && /* @__PURE__ */ jsx(
20177
+ isMobile && showBackdrop && /* @__PURE__ */ jsx(TransitionFade_default, { visibility, leaveDuration: 200, children: /* @__PURE__ */ jsx(
20049
20178
  "div",
20050
20179
  {
20051
- className: "fixed inset-0 bg-black bg-opacity-50 z-40",
20052
- onClick: handleClose
20180
+ className: "fixed inset-0 bg-black/50 z-40",
20181
+ onClick: closeOnBackdropClick ? handleClose : void 0
20053
20182
  }
20054
- ),
20055
- /* @__PURE__ */ jsx(
20056
- Transition,
20183
+ ) }),
20184
+ /* @__PURE__ */ jsx(TransitionSlide_default, { visibility, side, leaveDuration: 200, children: /* @__PURE__ */ jsx(
20185
+ "div",
20057
20186
  {
20058
- show: visibility,
20059
- enter: "transform transition duration-200 ease-out",
20060
- enterFrom: classNames17({
20061
- "-translate-x-full": side === "left",
20062
- "translate-x-full": side === "right",
20063
- "-translate-y-full": side === "top",
20064
- "translate-y-full": side === "bottom"
20065
- }),
20066
- enterTo: "translate-x-0 translate-y-0",
20067
- leave: "transform transition duration-200 ease-in",
20068
- leaveFrom: "translate-x-0 translate-y-0",
20069
- leaveTo: classNames17({
20070
- "-translate-x-full": side === "left",
20071
- "translate-x-full": side === "right",
20072
- "-translate-y-full": side === "top",
20073
- "translate-y-full": side === "bottom"
20074
- }),
20075
- children: /* @__PURE__ */ jsx(
20076
- "div",
20187
+ className: classNames17(
20188
+ "fixed shadow-lg z-50",
20077
20189
  {
20078
- className: classNames17(
20079
- "fixed shadow-lg z-50",
20080
- {
20081
- "h-full w-[300px]": isHorizontal,
20082
- "w-full h-[300px]": !isHorizontal
20083
- },
20084
- {
20085
- "left-0": side === "left",
20086
- // add top-0 to align it to top
20087
- "right-0": side === "right",
20088
- // add top-0 to align it to top
20089
- "top-0 left-0": side === "top",
20090
- "bottom-0 left-0": side === "bottom"
20091
- },
20092
- { "eui-bg-md": !styles },
20093
- { [`${styles}`]: styles }
20094
- ),
20095
- children
20096
- }
20097
- )
20190
+ "h-full w-[300px] top-0": isHorizontal,
20191
+ "w-full h-[300px] left-0": !isHorizontal,
20192
+ "left-0": side === "left",
20193
+ "right-0": side === "right",
20194
+ "top-0": side === "top",
20195
+ "bottom-0": side === "bottom"
20196
+ },
20197
+ {
20198
+ "eui-bg-md": !styles
20199
+ },
20200
+ styles
20201
+ ),
20202
+ children
20098
20203
  }
20099
- )
20204
+ ) })
20100
20205
  ] });
20101
20206
  };
20102
20207
  function DrawerToggler({
@@ -20930,16 +21035,21 @@ function RouteTabs({
20930
21035
  ] });
20931
21036
  }
20932
21037
  var RouteTabs_default = RouteTabs;
21038
+ function UnderConstructionBanner({
21039
+ text
21040
+ }) {
21041
+ return /* @__PURE__ */ jsx("div", { className: "my-5", children: /* @__PURE__ */ jsx(Info_default, { children: text ? text : "This component is currently under construction and will be made available soon" }) });
21042
+ }
20933
21043
  var getDefaultErrorMessage = (error) => {
20934
21044
  if (!error) return "Something went wrong.";
20935
21045
  if (typeof error === "string") return error;
20936
21046
  if (error instanceof Error) return error.message;
20937
21047
  if (typeof error === "object") {
20938
21048
  const anyErr = error;
20939
- if (anyErr?.data?.message && typeof anyErr.data.message === "string") {
21049
+ if (typeof anyErr?.data?.message === "string") {
20940
21050
  return anyErr.data.message;
20941
21051
  }
20942
- if (anyErr?.message && typeof anyErr.message === "string") {
21052
+ if (typeof anyErr?.message === "string") {
20943
21053
  return anyErr.message;
20944
21054
  }
20945
21055
  if (anyErr?.status) {
@@ -20955,20 +21065,107 @@ var getDefaultErrorMessage = (error) => {
20955
21065
  };
20956
21066
  function AsyncComponentWrapper({
20957
21067
  children,
20958
- isLoading,
20959
- isSuccess = true,
20960
- isError,
21068
+ isLoading = false,
21069
+ isFetching = false,
21070
+ isSuccess,
21071
+ isError = false,
21072
+ isUninitialized = false,
20961
21073
  error,
20962
- errorFormatter
21074
+ isEmpty = false,
21075
+ loadingText = "Loading...",
21076
+ fetchingText = "Updating...",
21077
+ emptyText = "No data available.",
21078
+ loadingType = "spinner",
21079
+ skeletonCount = 3,
21080
+ skeletonClassName = "h-24 w-full rounded-md",
21081
+ spinnerProps,
21082
+ fetchingSpinnerProps,
21083
+ loadingFallback,
21084
+ emptyFallback,
21085
+ errorFallback,
21086
+ showFetchingIndicator = true,
21087
+ onRetry,
21088
+ errorFormatter,
21089
+ className,
21090
+ contentClassName
20963
21091
  }) {
20964
- const errorMessage = isError && error ? errorFormatter ? errorFormatter(error) : getDefaultErrorMessage(error) : void 0;
20965
- return /* @__PURE__ */ jsxs("div", { children: [
20966
- isLoading && /* @__PURE__ */ jsx("div", { className: "flex w-full py-10 items-center justify-center", children: /* @__PURE__ */ jsx(AiOutlineLoading, { className: "animate-spin" }) }),
20967
- isError && errorMessage && /* @__PURE__ */ jsx("div", { className: "p-5", children: /* @__PURE__ */ jsx(FormResponse_default, { text: errorMessage, variant: "danger" }) }),
20968
- !isLoading && !isError && isSuccess && /* @__PURE__ */ jsx("div", { children })
21092
+ const errorMessage = useMemo(() => {
21093
+ if (!isError) return "";
21094
+ return errorFormatter ? errorFormatter(error) : getDefaultErrorMessage(error);
21095
+ }, [isError, error, errorFormatter]);
21096
+ const hasSuccess = isSuccess ?? (!isLoading && !isError && !isUninitialized);
21097
+ const renderLoading = () => {
21098
+ if (loadingFallback) return loadingFallback;
21099
+ if (loadingType === "skeleton") {
21100
+ return /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-3 py-4", children: Array.from({ length: skeletonCount }).map((_, index) => /* @__PURE__ */ jsx(Skeleton, { className: skeletonClassName }, index)) });
21101
+ }
21102
+ return /* @__PURE__ */ jsx(
21103
+ Spinner_default,
21104
+ {
21105
+ centered: true,
21106
+ label: loadingText,
21107
+ type: "border",
21108
+ size: "md",
21109
+ variant: "primary",
21110
+ ...spinnerProps
21111
+ }
21112
+ );
21113
+ };
21114
+ const renderError = () => {
21115
+ if (typeof errorFallback === "function") {
21116
+ return errorFallback(errorMessage);
21117
+ }
21118
+ if (errorFallback) {
21119
+ return errorFallback;
21120
+ }
21121
+ return /* @__PURE__ */ jsxs("div", { className: "p-5", children: [
21122
+ /* @__PURE__ */ jsx(FormResponse_default, { text: errorMessage, variant: "danger" }),
21123
+ onRetry && /* @__PURE__ */ jsx(
21124
+ "button",
21125
+ {
21126
+ type: "button",
21127
+ onClick: onRetry,
21128
+ className: "mt-3 rounded-md border px-4 py-2",
21129
+ children: "Retry"
21130
+ }
21131
+ )
21132
+ ] });
21133
+ };
21134
+ const renderEmpty = () => {
21135
+ if (emptyFallback) return emptyFallback;
21136
+ return /* @__PURE__ */ jsx("div", { className: "py-10 text-center text-gray-500", children: emptyText });
21137
+ };
21138
+ if (isLoading) {
21139
+ return /* @__PURE__ */ jsx("div", { className, "aria-live": "polite", children: renderLoading() });
21140
+ }
21141
+ if (isError) {
21142
+ return /* @__PURE__ */ jsx("div", { className, "aria-live": "polite", children: renderError() });
21143
+ }
21144
+ if (hasSuccess && isEmpty) {
21145
+ return /* @__PURE__ */ jsx("div", { className, "aria-live": "polite", children: renderEmpty() });
21146
+ }
21147
+ if (!hasSuccess) {
21148
+ return null;
21149
+ }
21150
+ return /* @__PURE__ */ jsxs("div", { className, children: [
21151
+ showFetchingIndicator && isFetching && /* @__PURE__ */ jsxs("div", { className: "mb-3 flex items-center gap-2 text-sm text-gray-500", children: [
21152
+ /* @__PURE__ */ jsx(
21153
+ Spinner_default,
21154
+ {
21155
+ size: "xs",
21156
+ type: "border",
21157
+ variant: "primary",
21158
+ showLabel: false,
21159
+ ariaLabel: fetchingText,
21160
+ ...fetchingSpinnerProps
21161
+ }
21162
+ ),
21163
+ /* @__PURE__ */ jsx("span", { children: fetchingText })
21164
+ ] }),
21165
+ /* @__PURE__ */ jsx("div", { className: cn(contentClassName), children })
20969
21166
  ] });
20970
21167
  }
20971
- var AsyncComponentWrapper_default = AsyncComponentWrapper;
21168
+ var AsyncComponentWrapper_default = React2.memo(AsyncComponentWrapper);
20972
21169
  function Modal({
20973
21170
  title,
20974
21171
  show = false,
@@ -20989,63 +21186,46 @@ function Modal({
20989
21186
  modalRef,
20990
21187
  enableCloseOnClickOutside ? handleOnClose : void 0
20991
21188
  );
20992
- return /* @__PURE__ */ jsx(
20993
- Transition,
21189
+ return /* @__PURE__ */ jsx(TransitionFade_default, { visibility: show, leaveDuration: 100, children: /* @__PURE__ */ jsx("div", { className: "bg-eui-dark-900/90 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ jsx(TransitionScale_default, { visibility: show, leaveDuration: 100, children: /* @__PURE__ */ jsxs(
21190
+ "div",
20994
21191
  {
20995
- show,
20996
- enter: "transition duration-100 ease-out",
20997
- enterFrom: "transform scale-95 opacity-0",
20998
- enterTo: "transform scale-100 opacity-100",
20999
- leave: "transition duration-100 ease-out",
21000
- leaveFrom: "transform scale-200 opacity-100",
21001
- leaveTo: "transform scale-95 opacity-0",
21002
- as: Fragment$1,
21003
- children: /* @__PURE__ */ jsx("div", { className: "bg-eui-dark-900/90 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ jsxs(
21004
- "div",
21005
- {
21006
- ref: modalRef,
21007
- className: classNames17({
21008
- "eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit": true,
21009
- [`${shapes[resolvedShape]}`]: true,
21010
- [`${styles}`]: styles
21011
- }),
21012
- children: [
21013
- /* @__PURE__ */ jsxs("div", { className: "eui-gradient-to-r-sm inline-flex items-center border-b w-full border-eui-dark-500/80", children: [
21014
- /* @__PURE__ */ jsx("div", { className: "w-full text-center text-md font-semibold", children: title }),
21015
- /* @__PURE__ */ jsx(
21016
- "div",
21017
- {
21018
- className: classNames17({
21019
- "w-[60px] h-[60px] flex items-center justify-center transition-standard-fast": true,
21020
- "hover:cursor-pointer hover:bg-eui-dark-500": true
21021
- }),
21022
- onClick: handleOnClose,
21023
- children: "X"
21024
- }
21025
- )
21026
- ] }),
21027
- /* @__PURE__ */ jsx(
21028
- AsyncComponentWrapper_default,
21029
- {
21030
- isLoading,
21031
- isSuccess,
21032
- isError,
21033
- error,
21034
- children: /* @__PURE__ */ jsx("div", { className: "p-5 w-full", children })
21035
- }
21036
- )
21037
- ]
21038
- }
21039
- ) })
21192
+ ref: modalRef,
21193
+ className: classNames17(
21194
+ "eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit",
21195
+ shapes[resolvedShape],
21196
+ styles
21197
+ ),
21198
+ children: [
21199
+ /* @__PURE__ */ jsxs("div", { className: "eui-gradient-to-r-sm inline-flex items-center border-b w-full border-eui-dark-500/80", children: [
21200
+ /* @__PURE__ */ jsx("div", { className: "w-full text-center text-md font-semibold", children: title }),
21201
+ /* @__PURE__ */ jsx(
21202
+ "button",
21203
+ {
21204
+ type: "button",
21205
+ className: classNames17(
21206
+ "w-[60px] h-[60px] flex items-center justify-center transition-standard-fast",
21207
+ "hover:cursor-pointer hover:bg-eui-dark-500"
21208
+ ),
21209
+ onClick: handleOnClose,
21210
+ children: "X"
21211
+ }
21212
+ )
21213
+ ] }),
21214
+ /* @__PURE__ */ jsx(
21215
+ AsyncComponentWrapper_default,
21216
+ {
21217
+ isLoading,
21218
+ isSuccess,
21219
+ isError,
21220
+ error,
21221
+ children: /* @__PURE__ */ jsx("div", { className: "p-5 w-full", children })
21222
+ }
21223
+ )
21224
+ ]
21040
21225
  }
21041
- );
21226
+ ) }) }) });
21042
21227
  }
21043
21228
  var Modal_default = Modal;
21044
- function UnderConstructionBanner({
21045
- text
21046
- }) {
21047
- return /* @__PURE__ */ jsx("div", { className: "my-5", children: /* @__PURE__ */ jsx(Info_default, { children: text ? text : "This component is currently under construction and will be made available soon" }) });
21048
- }
21049
21229
  var GlowWrapper = ({
21050
21230
  children,
21051
21231
  glowSize = 200,
@@ -21557,7 +21737,7 @@ function CommentMenu({
21557
21737
  children: /* @__PURE__ */ jsx(BiDotsVerticalRounded, { size: 18 })
21558
21738
  }
21559
21739
  ),
21560
- /* @__PURE__ */ jsx(Transition2.TransitionDropdown, { visibility: open, children: /* @__PURE__ */ jsx("div", { className: "absolute right-0 top-full z-50 mt-2 min-w-[180px] overflow-hidden rounded-xl border border-gray-200 bg-white shadow-xl dark:border-neutral-800 dark:bg-neutral-900", children: /* @__PURE__ */ jsx(Menu, { items }) }) })
21740
+ /* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility: open, children: /* @__PURE__ */ jsx("div", { className: "absolute right-0 top-full z-50 mt-2 min-w-[180px] overflow-hidden rounded-xl border border-gray-200 bg-white shadow-xl dark:border-neutral-800 dark:bg-neutral-900", children: /* @__PURE__ */ jsx(Menu, { items }) }) })
21561
21741
  ] });
21562
21742
  }
21563
21743
  var CommentMenu_default = CommentMenu;
@@ -22781,6 +22961,6 @@ function ScrollToTop({
22781
22961
  }
22782
22962
  var ScrollToTop_default = ScrollToTop;
22783
22963
 
22784
- export { Accordion_default as Accordion, AreaPlot, AsyncComponentWrapper_default as AsyncComponentWrapper, Avatar, Backdrop_default as Backdrop, Badge, BarPlot, BaseChartDataSource, 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_default as Button, CHART_COLOR_PALETTE, CHART_DARK_THEME, CHART_DATA_MODES, CHART_DEFAULT_ACTIVE_DOT_RADIUS, CHART_DEFAULT_ANIMATION_DURATION, CHART_DEFAULT_BAR_RADIUS, CHART_DEFAULT_DOT_RADIUS, CHART_DEFAULT_HEIGHT, CHART_DEFAULT_MARGIN, CHART_DEFAULT_MAX_REALTIME_POINTS, CHART_DEFAULT_POLLING_INTERVAL, CHART_DEFAULT_STROKE_WIDTH, CHART_EMPTY_MESSAGE, CHART_ERROR_MESSAGE, CHART_LIGHT_THEME, CHART_LOADING_MESSAGE, CHART_STATUSES, CHART_STATUS_COLORS, CHART_VALUE_FORMATS, Caption, Card_default as Card, CardContent_default as CardContent, CardFooter_default as CardFooter, CardHeader_default as CardHeader, Chapter, Chart, ChartContainer, ChartContext, ChartEmptyState, ChartErrorState, ChartHeader, ChartLegend, ChartLoadingState, ChartPanel, ChartProvider, ChartToolbar, ChartTooltip, Checkbox_default as Checkbox, Chip, CloudinaryImage_default as CloudinaryImage, CloudinaryProvider, CloudinaryVideo_default as CloudinaryVideo, Code, CommentThread_default as CommentThread, ConfigBootstrap_default as ConfigBootstrap, Configurator, ConfiguratorError, Content, ContentArea_default as ContentArea, DEFAULT_CHART_THEME, DataView, DataViewTable_default as DataViewTable, DateSelector_default as DateSelector, DefaultLayout_default as DefaultLayout, Display, DocumentationPanel_default as DocumentationPanel, Drawer, DrawerToggler_default as DrawerToggler, EUIDevLayout_default as EUIDevLayout, EUIProvider, EnvErrorScreen_default as EnvErrorScreen, 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, GaugePlot, 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, InfiniteScrollTrigger_default as InfiniteScrollTrigger, Info_default as Info, Input, InputFile, InputLabel_default as InputLabel, InputList, InputListGroup, InputResponse_default as InputResponse, Label, Layout, Lead, LinePlot, 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, NumericRating_default as NumericRating, Overline, Paragraph, PiePlot, PollingChartDataSource, PriceTag, ProgressBar, ProgressBarRating_default as ProgressBarRating, Quote, Radio_default as Radio, RealtimeChartDataSource, RouteTab_default as RouteTab, RouteTabs_default as RouteTabs, ScatterPlot, 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, Spinner_default as Spinner, StarRating_default as StarRating, StarRatingDistribution_default as StarRatingDistribution, StarRatingInput_default as StarRatingInput, StatPlot, StaticChartDataSource, 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, Tooltip6 as Tooltip, TopNav, Transition2 as Transition, TransitionDropdown_default as TransitionDropdown, TransitionFadeIn_default as TransitionFadeIn, Typography, UnderConstructionBanner, ValueBadge_default as ValueBadge, WorldMap, WorldMapCountryTable, YoutubeVideo_default as YoutubeVideoPlayer, addReplyToCache, applyReactionState, assertAbsoluteURL, buildURL, chartReducer, cn, createConfigurator, createForceLayout, createGridLayout, createInitialChartState, createTreeLayout, createURLResolver, decrementReplyCount, enumValues, euiToast, formatChartValue, formatCommentDate, formatConfigError, getAllowedOrigins, getBrowserHref, getBrowserOrigin, getBrowserRedirectURL, getCurrencySymbol, getLayout, getOptimisticDislikeState, getOptimisticLikeState, getSafeRedirect, incrementReplyCount, isMatch, isRenderFn, limitRealtimePoints, normalize, normalizeChartData, normalizeChartDataPoint, parseJson, parseJsonRecord, parseUrlMap, registerLayout, removeComment, removeCommentTreeFromCache, replaceRealtimePoints, resolveAppearanceStyles, resolveChartColor, resolveChartColors, resolveWithGlobal, sendToast, toConfiguratorError, updateComment, updateReplyCacheComment, useChartContext, useChartData, useChartPolling, useChartRealtime, useChartSeries, useChartTheme, useClickOutside, useCloudinaryConfig, useCurrentTheme_default as useCurrentTheme, useDrawer_default as useDrawer, useEUIConfig, useIsMobile_default as useIsMobile, useModal_default as useModal, useTheme_default as useTheme };
22964
+ export { Accordion_default as Accordion, AreaPlot, AsyncComponentWrapper_default as AsyncComponentWrapper, Avatar, Backdrop_default as Backdrop, Badge, BarPlot, BaseChartDataSource, 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_default as Button, CHART_COLOR_PALETTE, CHART_DARK_THEME, CHART_DATA_MODES, CHART_DEFAULT_ACTIVE_DOT_RADIUS, CHART_DEFAULT_ANIMATION_DURATION, CHART_DEFAULT_BAR_RADIUS, CHART_DEFAULT_DOT_RADIUS, CHART_DEFAULT_HEIGHT, CHART_DEFAULT_MARGIN, CHART_DEFAULT_MAX_REALTIME_POINTS, CHART_DEFAULT_POLLING_INTERVAL, CHART_DEFAULT_STROKE_WIDTH, CHART_EMPTY_MESSAGE, CHART_ERROR_MESSAGE, CHART_LIGHT_THEME, CHART_LOADING_MESSAGE, CHART_STATUSES, CHART_STATUS_COLORS, CHART_VALUE_FORMATS, Caption, Card_default as Card, CardContent_default as CardContent, CardFooter_default as CardFooter, CardHeader_default as CardHeader, Chapter, Chart, ChartContainer, ChartContext, ChartEmptyState, ChartErrorState, ChartHeader, ChartLegend, ChartLoadingState, ChartPanel, ChartProvider, ChartToolbar, ChartTooltip, Checkbox_default as Checkbox, Chip, CloudinaryImage_default as CloudinaryImage, CloudinaryProvider, CloudinaryVideo_default as CloudinaryVideo, Code, CommentThread_default as CommentThread, ConfigBootstrap_default as ConfigBootstrap, Configurator, ConfiguratorError, Content, ContentArea_default as ContentArea, DEFAULT_CHART_THEME, DataView, DataViewTable_default as DataViewTable, DateSelector_default as DateSelector, DefaultLayout_default as DefaultLayout, Display, DocumentationPanel_default as DocumentationPanel, Drawer, DrawerToggler_default as DrawerToggler, EUIDevLayout_default as EUIDevLayout, EUIProvider, EnvErrorScreen_default as EnvErrorScreen, 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, GaugePlot, 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, InfiniteScrollTrigger_default as InfiniteScrollTrigger, Info_default as Info, Input, InputFile, InputLabel_default as InputLabel, InputList, InputListGroup, InputResponse_default as InputResponse, Label, Layout, Lead, LinePlot, 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, NumericRating_default as NumericRating, Overline, Paragraph, PiePlot, PollingChartDataSource, PriceTag, ProgressBar, ProgressBarRating_default as ProgressBarRating, Quote, Radio_default as Radio, RealtimeChartDataSource, RouteTab_default as RouteTab, RouteTabs_default as RouteTabs, ScatterPlot, 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, Spinner_default as Spinner, StarRating_default as StarRating, StarRatingDistribution_default as StarRatingDistribution, StarRatingInput_default as StarRatingInput, StatPlot, StaticChartDataSource, 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, Tooltip6 as Tooltip, TopNav, Transition, TransitionAccordion_default as TransitionAccordion, TransitionBase_default as TransitionBase, TransitionDropdown_default as TransitionDropdown, TransitionFade_default as TransitionFade, TransitionFadeIn_default as TransitionFadeIn, TransitionScale_default as TransitionScale, TransitionSlide_default as TransitionSlide, Typography, UnderConstructionBanner, ValueBadge_default as ValueBadge, WorldMap, WorldMapCountryTable, YoutubeVideo_default as YoutubeVideoPlayer, addReplyToCache, applyReactionState, assertAbsoluteURL, buildURL, chartReducer, cn, createConfigurator, createForceLayout, createGridLayout, createInitialChartState, createTreeLayout, createURLResolver, decrementReplyCount, enumValues, euiToast, formatChartValue, formatCommentDate, formatConfigError, getAllowedOrigins, getBrowserHref, getBrowserOrigin, getBrowserRedirectURL, getCurrencySymbol, getLayout, getOptimisticDislikeState, getOptimisticLikeState, getSafeRedirect, incrementReplyCount, isMatch, isRenderFn, limitRealtimePoints, normalize, normalizeChartData, normalizeChartDataPoint, parseJson, parseJsonRecord, parseUrlMap, registerLayout, removeComment, removeCommentTreeFromCache, replaceRealtimePoints, resolveAppearanceStyles, resolveChartColor, resolveChartColors, resolveWithGlobal, sendToast, toConfiguratorError, updateComment, updateReplyCacheComment, useChartContext, useChartData, useChartPolling, useChartRealtime, useChartSeries, useChartTheme, useClickOutside, useCloudinaryConfig, useCurrentTheme_default as useCurrentTheme, useDrawer_default as useDrawer, useEUIConfig, useIsMobile_default as useIsMobile, useModal_default as useModal, useTheme_default as useTheme };
22785
22965
  //# sourceMappingURL=index.mjs.map
22786
22966
  //# sourceMappingURL=index.mjs.map