elseware-ui 2.36.1 → 2.36.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.css +9 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +336 -276
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +162 -102
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { twMerge } from 'tailwind-merge';
|
|
2
|
-
import
|
|
2
|
+
import React8, { createContext, forwardRef, useState, useImperativeHandle, useEffect, useMemo, useContext, useRef, Children, useCallback, Fragment as Fragment$1 } 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
7
|
import { Transition } from '@headlessui/react';
|
|
8
|
-
import
|
|
8
|
+
import classNames17 from 'classnames';
|
|
9
9
|
import { FaCircleChevronDown } from 'react-icons/fa6';
|
|
10
10
|
import ReactWorldFlags from 'react-world-flags';
|
|
11
11
|
import emojiFlags from 'emoji-flags';
|
|
@@ -3691,7 +3691,7 @@ function Accordion({
|
|
|
3691
3691
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
3692
3692
|
"div",
|
|
3693
3693
|
{
|
|
3694
|
-
className:
|
|
3694
|
+
className: classNames17({
|
|
3695
3695
|
"inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs": true,
|
|
3696
3696
|
"hover:cursor-pointer": toggleOnSummaryClick
|
|
3697
3697
|
}),
|
|
@@ -3709,7 +3709,7 @@ function Accordion({
|
|
|
3709
3709
|
children: /* @__PURE__ */ jsx(
|
|
3710
3710
|
FaCircleChevronDown,
|
|
3711
3711
|
{
|
|
3712
|
-
className:
|
|
3712
|
+
className: classNames17(
|
|
3713
3713
|
"text-xl transition-transform duration-300",
|
|
3714
3714
|
{ "rotate-180": collapse }
|
|
3715
3715
|
)
|
|
@@ -3735,7 +3735,7 @@ function Accordion({
|
|
|
3735
3735
|
children: /* @__PURE__ */ jsx(
|
|
3736
3736
|
"div",
|
|
3737
3737
|
{
|
|
3738
|
-
className:
|
|
3738
|
+
className: classNames17({
|
|
3739
3739
|
"border-t border-t-eui-dark-400/40 eui-text-sm": true,
|
|
3740
3740
|
"p-5": enableChildrenPadding
|
|
3741
3741
|
}),
|
|
@@ -3819,7 +3819,7 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
3819
3819
|
return /* @__PURE__ */ jsxs(
|
|
3820
3820
|
"div",
|
|
3821
3821
|
{
|
|
3822
|
-
className:
|
|
3822
|
+
className: classNames17(
|
|
3823
3823
|
"flex items-start gap-4 p-6 border-b border-white/10",
|
|
3824
3824
|
className
|
|
3825
3825
|
),
|
|
@@ -3835,14 +3835,14 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
3835
3835
|
}
|
|
3836
3836
|
var CardHeader_default = CardHeader;
|
|
3837
3837
|
function CardContent({ children, className }) {
|
|
3838
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
3838
|
+
return /* @__PURE__ */ jsx("div", { className: classNames17("p-6 text-gray-300 text-sm", className), children });
|
|
3839
3839
|
}
|
|
3840
3840
|
var CardContent_default = CardContent;
|
|
3841
3841
|
function CardFooter({ children, className }) {
|
|
3842
3842
|
return /* @__PURE__ */ jsx(
|
|
3843
3843
|
"div",
|
|
3844
3844
|
{
|
|
3845
|
-
className:
|
|
3845
|
+
className: classNames17(
|
|
3846
3846
|
"flex items-center gap-3 p-5 border-t border-white/10 text-sm text-gray-400",
|
|
3847
3847
|
className
|
|
3848
3848
|
),
|
|
@@ -3884,7 +3884,7 @@ function GradientAnimation({
|
|
|
3884
3884
|
return /* @__PURE__ */ jsx(
|
|
3885
3885
|
"div",
|
|
3886
3886
|
{
|
|
3887
|
-
className:
|
|
3887
|
+
className: classNames17("absolute inset-0"),
|
|
3888
3888
|
style: {
|
|
3889
3889
|
background: `linear-gradient(${cfg.angle}deg, ${cfg.colors?.join(",")})`,
|
|
3890
3890
|
backgroundSize: cfg.backgroundSize,
|
|
@@ -4030,7 +4030,7 @@ function MotionSurface({
|
|
|
4030
4030
|
}) {
|
|
4031
4031
|
const AnimationComponent = animationVariant === "custom" ? CustomAnimation : animationRegistry[animationVariant];
|
|
4032
4032
|
const OverlayComponent = overlay === "custom" ? CustomOverlay : overlayRegistry[overlay];
|
|
4033
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
4033
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames17("relative overflow-hidden", className), children: [
|
|
4034
4034
|
AnimationComponent && /* @__PURE__ */ jsx(AnimationComponent, { config: animationConfig, animated }),
|
|
4035
4035
|
OverlayComponent && /* @__PURE__ */ jsx(OverlayComponent, { config: overlayConfig }),
|
|
4036
4036
|
/* @__PURE__ */ jsx("div", { className: "relative z-10", children })
|
|
@@ -4940,7 +4940,7 @@ var ListItem = ({
|
|
|
4940
4940
|
children: bullet
|
|
4941
4941
|
}
|
|
4942
4942
|
),
|
|
4943
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1 min-w-0", children: TypographyComponent ?
|
|
4943
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 min-w-0", children: TypographyComponent ? React8.cloneElement(
|
|
4944
4944
|
TypographyComponent,
|
|
4945
4945
|
{
|
|
4946
4946
|
className: cn(
|
|
@@ -4974,7 +4974,7 @@ function normalizeItem(item, defaultBulletType) {
|
|
|
4974
4974
|
bulletType: defaultBulletType
|
|
4975
4975
|
};
|
|
4976
4976
|
}
|
|
4977
|
-
if (
|
|
4977
|
+
if (React8.isValidElement(item)) {
|
|
4978
4978
|
return {
|
|
4979
4979
|
content: item,
|
|
4980
4980
|
bulletType: defaultBulletType
|
|
@@ -5434,7 +5434,7 @@ var Backdrop = ({ children, styles }) => {
|
|
|
5434
5434
|
return /* @__PURE__ */ jsx(
|
|
5435
5435
|
"div",
|
|
5436
5436
|
{
|
|
5437
|
-
className:
|
|
5437
|
+
className: classNames17({
|
|
5438
5438
|
"bg-black/75 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden": true,
|
|
5439
5439
|
[`${styles}`]: styles
|
|
5440
5440
|
}),
|
|
@@ -5958,7 +5958,7 @@ var Form = ({
|
|
|
5958
5958
|
/* @__PURE__ */ jsx(UnsavedChangesGuard_default, { formik, enabled: warnOnUnsavedChanges }),
|
|
5959
5959
|
/* @__PURE__ */ jsx(DirtyObserver_default, { formik, onDirtyChange }),
|
|
5960
5960
|
/* @__PURE__ */ jsx(FormObserver_default, { formik, onChange }),
|
|
5961
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
5961
|
+
/* @__PURE__ */ jsx("div", { className: classNames17(styles), children })
|
|
5962
5962
|
] })
|
|
5963
5963
|
}
|
|
5964
5964
|
);
|
|
@@ -6458,18 +6458,80 @@ function sendToast(data = {}) {
|
|
|
6458
6458
|
status: data.status || "success" /* success */
|
|
6459
6459
|
});
|
|
6460
6460
|
}
|
|
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;
|
|
6461
6525
|
function TransitionDropdown({ visibility, children }) {
|
|
6462
6526
|
return /* @__PURE__ */ jsx(
|
|
6463
|
-
|
|
6527
|
+
TransitionBase_default,
|
|
6464
6528
|
{
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
leaveFrom: "transform scale-100 opacity-100",
|
|
6472
|
-
leaveTo: "transform scale-95 opacity-0",
|
|
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,
|
|
6473
6535
|
children
|
|
6474
6536
|
}
|
|
6475
6537
|
);
|
|
@@ -6477,16 +6539,14 @@ function TransitionDropdown({ visibility, children }) {
|
|
|
6477
6539
|
var TransitionDropdown_default = TransitionDropdown;
|
|
6478
6540
|
function TransitionFadeIn({ visibility, children }) {
|
|
6479
6541
|
return /* @__PURE__ */ jsx(
|
|
6480
|
-
|
|
6542
|
+
TransitionBase_default,
|
|
6481
6543
|
{
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
leaveFrom: "opacity-100",
|
|
6489
|
-
leaveTo: "opacity-0",
|
|
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,
|
|
6490
6550
|
children
|
|
6491
6551
|
}
|
|
6492
6552
|
);
|
|
@@ -6494,7 +6554,7 @@ function TransitionFadeIn({ visibility, children }) {
|
|
|
6494
6554
|
var TransitionFadeIn_default = TransitionFadeIn;
|
|
6495
6555
|
|
|
6496
6556
|
// src/components/feedback/transition/index.tsx
|
|
6497
|
-
var
|
|
6557
|
+
var Transition2 = {
|
|
6498
6558
|
TransitionDropdown: TransitionDropdown_default,
|
|
6499
6559
|
TransitionFadeIn: TransitionFadeIn_default
|
|
6500
6560
|
};
|
|
@@ -6512,10 +6572,10 @@ function FormResponse({
|
|
|
6512
6572
|
size = "md",
|
|
6513
6573
|
styles
|
|
6514
6574
|
}) {
|
|
6515
|
-
return /* @__PURE__ */ jsx(
|
|
6575
|
+
return /* @__PURE__ */ jsx(Transition2.TransitionDropdown, { visibility: text ? true : false, children: /* @__PURE__ */ jsx(
|
|
6516
6576
|
"div",
|
|
6517
6577
|
{
|
|
6518
|
-
className:
|
|
6578
|
+
className: classNames17({
|
|
6519
6579
|
"font-poppins font-light text-sm": true,
|
|
6520
6580
|
[`${variantsLite[variant]}`]: variant,
|
|
6521
6581
|
[`${shapes[shape]}`]: shape,
|
|
@@ -6632,7 +6692,7 @@ var ThemeSwitch = () => {
|
|
|
6632
6692
|
/* @__PURE__ */ jsx(
|
|
6633
6693
|
"div",
|
|
6634
6694
|
{
|
|
6635
|
-
className:
|
|
6695
|
+
className: classNames17(
|
|
6636
6696
|
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
6637
6697
|
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
6638
6698
|
)
|
|
@@ -18173,14 +18233,14 @@ function Button({
|
|
|
18173
18233
|
var Button_default = Button;
|
|
18174
18234
|
function InputResponse({
|
|
18175
18235
|
name,
|
|
18176
|
-
visibility,
|
|
18236
|
+
visibility = false,
|
|
18177
18237
|
variant = "default",
|
|
18178
18238
|
styles
|
|
18179
18239
|
}) {
|
|
18180
|
-
return /* @__PURE__ */ jsx(
|
|
18240
|
+
return /* @__PURE__ */ jsx(Transition2.TransitionDropdown, { visibility, children: /* @__PURE__ */ jsx(
|
|
18181
18241
|
"div",
|
|
18182
18242
|
{
|
|
18183
|
-
className:
|
|
18243
|
+
className: classNames17({
|
|
18184
18244
|
"font-medium text-sm py-1 px-2": true,
|
|
18185
18245
|
[`${textVariants[variant]}`]: variant,
|
|
18186
18246
|
"transition-all ease-in-out": true,
|
|
@@ -18195,7 +18255,7 @@ function InputLabel({ text, children, styles }) {
|
|
|
18195
18255
|
return /* @__PURE__ */ jsx(
|
|
18196
18256
|
"label",
|
|
18197
18257
|
{
|
|
18198
|
-
className:
|
|
18258
|
+
className: classNames17({
|
|
18199
18259
|
"px-0 eui-text-sm text-[13.5px] pointer-events-none select-none": true,
|
|
18200
18260
|
"transition-all ease-in-out": true,
|
|
18201
18261
|
[`${styles}`]: styles
|
|
@@ -18247,7 +18307,7 @@ var Input = ({
|
|
|
18247
18307
|
...field,
|
|
18248
18308
|
...props,
|
|
18249
18309
|
placeholder,
|
|
18250
|
-
className:
|
|
18310
|
+
className: classNames17({
|
|
18251
18311
|
"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,
|
|
18252
18312
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
18253
18313
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
@@ -18292,7 +18352,7 @@ var InputFile = ({
|
|
|
18292
18352
|
/* @__PURE__ */ jsx(
|
|
18293
18353
|
"div",
|
|
18294
18354
|
{
|
|
18295
|
-
className:
|
|
18355
|
+
className: classNames17(
|
|
18296
18356
|
"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",
|
|
18297
18357
|
{
|
|
18298
18358
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -18318,7 +18378,7 @@ var InputFile = ({
|
|
|
18318
18378
|
InputLabel_default,
|
|
18319
18379
|
{
|
|
18320
18380
|
text: placeholder,
|
|
18321
|
-
styles:
|
|
18381
|
+
styles: classNames17({
|
|
18322
18382
|
"absolute left-2 eui-text-sm peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none": true,
|
|
18323
18383
|
"top-[0.7px]": showFloatingLabel,
|
|
18324
18384
|
"top-[13px] text-base": !showFloatingLabel
|
|
@@ -18371,7 +18431,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
18371
18431
|
/* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(FieldArray, { name, children: ({ push, remove, move }) => /* @__PURE__ */ jsxs(
|
|
18372
18432
|
"div",
|
|
18373
18433
|
{
|
|
18374
|
-
className:
|
|
18434
|
+
className: classNames17(
|
|
18375
18435
|
"flex w-full flex-col space-y-2 bg-eui-primary-300/10",
|
|
18376
18436
|
shapes[resolvedShape]
|
|
18377
18437
|
),
|
|
@@ -18400,7 +18460,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
18400
18460
|
ref: provided2.innerRef,
|
|
18401
18461
|
...draggableProps,
|
|
18402
18462
|
style: draggableStyle,
|
|
18403
|
-
className:
|
|
18463
|
+
className: classNames17(
|
|
18404
18464
|
"flex items-center space-x-2 bg-eui-primary-300/10 p-2",
|
|
18405
18465
|
shapes[resolvedShape]
|
|
18406
18466
|
),
|
|
@@ -18411,7 +18471,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
18411
18471
|
{
|
|
18412
18472
|
name: `${name}[${index}]`,
|
|
18413
18473
|
placeholder: `Item ${index + 1}`,
|
|
18414
|
-
className:
|
|
18474
|
+
className: classNames17(
|
|
18415
18475
|
"peer h-[50px] w-full border bg-eui-primary-300/10 px-3 pb-2 pt-5 text-md placeholder-transparent placeholder-shown:p-3 focus:outline-none eui-text-md",
|
|
18416
18476
|
shapes[resolvedShape],
|
|
18417
18477
|
hasItemError ? "border-eui-danger-500" : "border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -18507,7 +18567,7 @@ var InputListGroup = ({
|
|
|
18507
18567
|
return /* @__PURE__ */ jsxs(
|
|
18508
18568
|
"div",
|
|
18509
18569
|
{
|
|
18510
|
-
className:
|
|
18570
|
+
className: classNames17(
|
|
18511
18571
|
"flex flex-col gap-2 bg-eui-primary-300/10 p-3",
|
|
18512
18572
|
shapes[resolvedShape]
|
|
18513
18573
|
),
|
|
@@ -18519,7 +18579,7 @@ var InputListGroup = ({
|
|
|
18519
18579
|
{
|
|
18520
18580
|
name: `${name}[${groupIndex}].name`,
|
|
18521
18581
|
placeholder: `Group ${groupIndex + 1}`,
|
|
18522
|
-
className:
|
|
18582
|
+
className: classNames17(
|
|
18523
18583
|
"h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
|
|
18524
18584
|
shapes[resolvedShape],
|
|
18525
18585
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -18550,7 +18610,7 @@ var InputListGroup = ({
|
|
|
18550
18610
|
{
|
|
18551
18611
|
ref: provided.innerRef,
|
|
18552
18612
|
...provided.droppableProps,
|
|
18553
|
-
className:
|
|
18613
|
+
className: classNames17(
|
|
18554
18614
|
"space-y-2 bg-eui-primary-300/10 p-2",
|
|
18555
18615
|
shapes[resolvedShape]
|
|
18556
18616
|
),
|
|
@@ -18570,7 +18630,7 @@ var InputListGroup = ({
|
|
|
18570
18630
|
ref: provided2.innerRef,
|
|
18571
18631
|
...draggableProps,
|
|
18572
18632
|
style: draggableStyle,
|
|
18573
|
-
className:
|
|
18633
|
+
className: classNames17(
|
|
18574
18634
|
"flex items-center gap-2 bg-eui-primary-300/10 p-2",
|
|
18575
18635
|
shapes[resolvedShape]
|
|
18576
18636
|
),
|
|
@@ -18581,7 +18641,7 @@ var InputListGroup = ({
|
|
|
18581
18641
|
{
|
|
18582
18642
|
name: `${itemsFieldName}[${itemIndex}]`,
|
|
18583
18643
|
placeholder: `Item ${itemIndex + 1}`,
|
|
18584
|
-
className:
|
|
18644
|
+
className: classNames17(
|
|
18585
18645
|
"h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
|
|
18586
18646
|
shapes[resolvedShape],
|
|
18587
18647
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -18795,7 +18855,7 @@ var DateSelector = ({
|
|
|
18795
18855
|
...field,
|
|
18796
18856
|
...props,
|
|
18797
18857
|
placeholder,
|
|
18798
|
-
className:
|
|
18858
|
+
className: classNames17({
|
|
18799
18859
|
"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,
|
|
18800
18860
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
18801
18861
|
"transition-all ease-in-out": true,
|
|
@@ -18904,7 +18964,7 @@ var ImageInput = forwardRef(
|
|
|
18904
18964
|
/* @__PURE__ */ jsxs(
|
|
18905
18965
|
"label",
|
|
18906
18966
|
{
|
|
18907
|
-
className:
|
|
18967
|
+
className: classNames17({
|
|
18908
18968
|
"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,
|
|
18909
18969
|
"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
|
|
18910
18970
|
"transition-all ease-in-out duration-150": true
|
|
@@ -19021,7 +19081,7 @@ function Radio({
|
|
|
19021
19081
|
return /* @__PURE__ */ jsxs(
|
|
19022
19082
|
"div",
|
|
19023
19083
|
{
|
|
19024
|
-
className:
|
|
19084
|
+
className: classNames17({
|
|
19025
19085
|
"flex flex-row gap-2 items-center mx-1 my-2": true
|
|
19026
19086
|
}),
|
|
19027
19087
|
children: [
|
|
@@ -19034,7 +19094,7 @@ function Radio({
|
|
|
19034
19094
|
...props,
|
|
19035
19095
|
value: option.value,
|
|
19036
19096
|
checked: field2.value === option.value,
|
|
19037
|
-
className:
|
|
19097
|
+
className: classNames17({
|
|
19038
19098
|
"appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
|
|
19039
19099
|
// base radio button styles
|
|
19040
19100
|
"checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
|
|
@@ -19046,7 +19106,7 @@ function Radio({
|
|
|
19046
19106
|
"label",
|
|
19047
19107
|
{
|
|
19048
19108
|
htmlFor: option.value,
|
|
19049
|
-
className:
|
|
19109
|
+
className: classNames17({
|
|
19050
19110
|
"eui-text-md text-sm": true
|
|
19051
19111
|
}),
|
|
19052
19112
|
children: option.label
|
|
@@ -19089,7 +19149,7 @@ function StarRatingInput({
|
|
|
19089
19149
|
return /* @__PURE__ */ jsxs(
|
|
19090
19150
|
"div",
|
|
19091
19151
|
{
|
|
19092
|
-
className:
|
|
19152
|
+
className: classNames17({
|
|
19093
19153
|
"inline-flex gap-[4px] text-[20px]": true,
|
|
19094
19154
|
[`${styles}`]: styles
|
|
19095
19155
|
}),
|
|
@@ -19102,7 +19162,7 @@ function StarRatingInput({
|
|
|
19102
19162
|
onClick: () => handleOnClick(index),
|
|
19103
19163
|
onMouseEnter: () => setHover(index),
|
|
19104
19164
|
onMouseLeave: () => setHover(null),
|
|
19105
|
-
className:
|
|
19165
|
+
className: classNames17({
|
|
19106
19166
|
"text-yellow-600": index <= (hover ?? rating - 1),
|
|
19107
19167
|
"text-gray-400": index > (hover ?? rating - 1)
|
|
19108
19168
|
}),
|
|
@@ -19146,7 +19206,7 @@ function Select({
|
|
|
19146
19206
|
{
|
|
19147
19207
|
as: "select",
|
|
19148
19208
|
...props,
|
|
19149
|
-
className:
|
|
19209
|
+
className: classNames17({
|
|
19150
19210
|
"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,
|
|
19151
19211
|
"border-eui-primary-400": !(meta.touched && meta.error),
|
|
19152
19212
|
"border-red-500": meta.touched && meta.error,
|
|
@@ -19198,7 +19258,7 @@ function Switch({
|
|
|
19198
19258
|
"div",
|
|
19199
19259
|
{
|
|
19200
19260
|
onClick: () => helpers.setValue(!field.value),
|
|
19201
|
-
className:
|
|
19261
|
+
className: classNames17(
|
|
19202
19262
|
"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
|
|
19203
19263
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
19204
19264
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
|
|
@@ -19255,7 +19315,7 @@ function Tags({
|
|
|
19255
19315
|
/* @__PURE__ */ jsxs(
|
|
19256
19316
|
"div",
|
|
19257
19317
|
{
|
|
19258
|
-
className:
|
|
19318
|
+
className: classNames17(
|
|
19259
19319
|
"border rounded-sm flex flex-wrap items-center gap-2 px-2 pt-2 pb-6 min-h-[3rem]",
|
|
19260
19320
|
{
|
|
19261
19321
|
"bg-eui-primary-300/10 eui-text-md": true,
|
|
@@ -19303,7 +19363,7 @@ function Tags({
|
|
|
19303
19363
|
InputLabel_default,
|
|
19304
19364
|
{
|
|
19305
19365
|
text: placeholder,
|
|
19306
|
-
styles:
|
|
19366
|
+
styles: classNames17(
|
|
19307
19367
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
19308
19368
|
input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
19309
19369
|
)
|
|
@@ -19344,7 +19404,7 @@ function TextArea({
|
|
|
19344
19404
|
as: "textarea",
|
|
19345
19405
|
...field,
|
|
19346
19406
|
...props,
|
|
19347
|
-
className:
|
|
19407
|
+
className: classNames17({
|
|
19348
19408
|
"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,
|
|
19349
19409
|
"transition-all ease-in-out": true,
|
|
19350
19410
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -19358,7 +19418,7 @@ function TextArea({
|
|
|
19358
19418
|
InputLabel_default,
|
|
19359
19419
|
{
|
|
19360
19420
|
text: placeholder,
|
|
19361
|
-
styles:
|
|
19421
|
+
styles: classNames17(
|
|
19362
19422
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
19363
19423
|
field.value ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
19364
19424
|
)
|
|
@@ -19389,7 +19449,7 @@ function ContentArea({
|
|
|
19389
19449
|
return /* @__PURE__ */ jsx(
|
|
19390
19450
|
"div",
|
|
19391
19451
|
{
|
|
19392
|
-
className:
|
|
19452
|
+
className: classNames17({
|
|
19393
19453
|
"min-h-screen h-full w-full py-3 px-5": true,
|
|
19394
19454
|
"py-3 px-5": !enablePadding,
|
|
19395
19455
|
"py-3 px-5 lg:px-[150px]": enablePadding,
|
|
@@ -19405,7 +19465,7 @@ function FlexCol({ children, gap = 3, styles }) {
|
|
|
19405
19465
|
return /* @__PURE__ */ jsx(
|
|
19406
19466
|
"div",
|
|
19407
19467
|
{
|
|
19408
|
-
className:
|
|
19468
|
+
className: classNames17({
|
|
19409
19469
|
[`flex flex-col gap-${gap}`]: true,
|
|
19410
19470
|
[`${styles}`]: styles
|
|
19411
19471
|
}),
|
|
@@ -19418,7 +19478,7 @@ function FlexRow({ children, gap = 3, styles }) {
|
|
|
19418
19478
|
return /* @__PURE__ */ jsx(
|
|
19419
19479
|
"div",
|
|
19420
19480
|
{
|
|
19421
|
-
className:
|
|
19481
|
+
className: classNames17({
|
|
19422
19482
|
[`flex flex-row gap-${gap}`]: true,
|
|
19423
19483
|
[`${styles}`]: styles
|
|
19424
19484
|
}),
|
|
@@ -19437,7 +19497,7 @@ function Grid({ children, styles }) {
|
|
|
19437
19497
|
return /* @__PURE__ */ jsx(
|
|
19438
19498
|
"div",
|
|
19439
19499
|
{
|
|
19440
|
-
className:
|
|
19500
|
+
className: classNames17({
|
|
19441
19501
|
[`grid`]: true,
|
|
19442
19502
|
[`${styles}`]: styles
|
|
19443
19503
|
}),
|
|
@@ -19454,7 +19514,7 @@ var Layout = ({
|
|
|
19454
19514
|
return /* @__PURE__ */ jsx(
|
|
19455
19515
|
"div",
|
|
19456
19516
|
{
|
|
19457
|
-
className:
|
|
19517
|
+
className: classNames17({
|
|
19458
19518
|
// "flex h-full w-screen bg-gray-100 overflow-auto": true,
|
|
19459
19519
|
"flex bg-eui-light-600": true,
|
|
19460
19520
|
"flex-col": flexDirection === "vertical",
|
|
@@ -19473,7 +19533,7 @@ var Header = ({
|
|
|
19473
19533
|
return /* @__PURE__ */ jsx(
|
|
19474
19534
|
"div",
|
|
19475
19535
|
{
|
|
19476
|
-
className:
|
|
19536
|
+
className: classNames17({
|
|
19477
19537
|
static: position === "static",
|
|
19478
19538
|
fixed: position === "fixed",
|
|
19479
19539
|
sticky: position === "sticky",
|
|
@@ -19513,7 +19573,7 @@ var Content = ({
|
|
|
19513
19573
|
return /* @__PURE__ */ jsx(
|
|
19514
19574
|
"div",
|
|
19515
19575
|
{
|
|
19516
|
-
className:
|
|
19576
|
+
className: classNames17({
|
|
19517
19577
|
"w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
|
|
19518
19578
|
"md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
|
|
19519
19579
|
// Shift when sidebar is open (desktop)
|
|
@@ -19529,7 +19589,7 @@ var Footer = ({ children, styles }) => {
|
|
|
19529
19589
|
return /* @__PURE__ */ jsx(
|
|
19530
19590
|
"div",
|
|
19531
19591
|
{
|
|
19532
|
-
className:
|
|
19592
|
+
className: classNames17({
|
|
19533
19593
|
"bottom-0 w-full h-fit": true,
|
|
19534
19594
|
"border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
|
|
19535
19595
|
[`${styles}`]: styles
|
|
@@ -19617,7 +19677,7 @@ function MarkdownEditor({
|
|
|
19617
19677
|
const [field, meta, helpers] = useField(props);
|
|
19618
19678
|
const { theme } = useTheme_default();
|
|
19619
19679
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
19620
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
19680
|
+
/* @__PURE__ */ jsx("div", { className: classNames17(theme === "dark" ? "dark" : "", styles), children: /* @__PURE__ */ jsx(
|
|
19621
19681
|
MDXEditor,
|
|
19622
19682
|
{
|
|
19623
19683
|
markdown: field.value,
|
|
@@ -19720,7 +19780,7 @@ function MarkdownTOC({ title = "Table of Contents" }) {
|
|
|
19720
19780
|
"button",
|
|
19721
19781
|
{
|
|
19722
19782
|
onClick: () => scrollToHeading(heading.id),
|
|
19723
|
-
className:
|
|
19783
|
+
className: classNames17(
|
|
19724
19784
|
"block w-full text-left text-sm transition-all ease-in-out duration-150",
|
|
19725
19785
|
"hover:text-primary",
|
|
19726
19786
|
activeHeading === heading.id ? "text-primary font-semibold underline" : "text-gray-500 dark:text-gray-400"
|
|
@@ -19876,7 +19936,7 @@ function BreadcrumbItem({
|
|
|
19876
19936
|
{
|
|
19877
19937
|
href,
|
|
19878
19938
|
onClick,
|
|
19879
|
-
className:
|
|
19939
|
+
className: classNames17({
|
|
19880
19940
|
"text-lg font-semibold": true,
|
|
19881
19941
|
"text-gray-400 hover:text-gray-600 cursor-pointer": !active,
|
|
19882
19942
|
"text-eui-light-800": active,
|
|
@@ -19940,7 +20000,7 @@ var Breadcrumb = ({
|
|
|
19940
20000
|
navigate(item.href);
|
|
19941
20001
|
}
|
|
19942
20002
|
};
|
|
19943
|
-
return /* @__PURE__ */ jsxs(
|
|
20003
|
+
return /* @__PURE__ */ jsxs(React8.Fragment, { children: [
|
|
19944
20004
|
/* @__PURE__ */ jsx(
|
|
19945
20005
|
BreadcrumbItem_default,
|
|
19946
20006
|
{
|
|
@@ -19953,7 +20013,7 @@ var Breadcrumb = ({
|
|
|
19953
20013
|
index < resolvedData.length - 1 && /* @__PURE__ */ jsx(
|
|
19954
20014
|
"span",
|
|
19955
20015
|
{
|
|
19956
|
-
className:
|
|
20016
|
+
className: classNames17({
|
|
19957
20017
|
"text-lg font-semibold text-gray-500": true,
|
|
19958
20018
|
[`px-${gap}`]: gap
|
|
19959
20019
|
}),
|
|
@@ -19967,7 +20027,7 @@ var Breadcrumb = ({
|
|
|
19967
20027
|
return /* @__PURE__ */ jsx(
|
|
19968
20028
|
"div",
|
|
19969
20029
|
{
|
|
19970
|
-
className:
|
|
20030
|
+
className: classNames17({
|
|
19971
20031
|
"inline-flex": true,
|
|
19972
20032
|
[`${styles}`]: styles
|
|
19973
20033
|
}),
|
|
@@ -19997,7 +20057,7 @@ var Drawer = ({
|
|
|
19997
20057
|
{
|
|
19998
20058
|
show: visibility,
|
|
19999
20059
|
enter: "transform transition duration-200 ease-out",
|
|
20000
|
-
enterFrom:
|
|
20060
|
+
enterFrom: classNames17({
|
|
20001
20061
|
"-translate-x-full": side === "left",
|
|
20002
20062
|
"translate-x-full": side === "right",
|
|
20003
20063
|
"-translate-y-full": side === "top",
|
|
@@ -20006,7 +20066,7 @@ var Drawer = ({
|
|
|
20006
20066
|
enterTo: "translate-x-0 translate-y-0",
|
|
20007
20067
|
leave: "transform transition duration-200 ease-in",
|
|
20008
20068
|
leaveFrom: "translate-x-0 translate-y-0",
|
|
20009
|
-
leaveTo:
|
|
20069
|
+
leaveTo: classNames17({
|
|
20010
20070
|
"-translate-x-full": side === "left",
|
|
20011
20071
|
"translate-x-full": side === "right",
|
|
20012
20072
|
"-translate-y-full": side === "top",
|
|
@@ -20015,7 +20075,7 @@ var Drawer = ({
|
|
|
20015
20075
|
children: /* @__PURE__ */ jsx(
|
|
20016
20076
|
"div",
|
|
20017
20077
|
{
|
|
20018
|
-
className:
|
|
20078
|
+
className: classNames17(
|
|
20019
20079
|
"fixed shadow-lg z-50",
|
|
20020
20080
|
{
|
|
20021
20081
|
"h-full w-[300px]": isHorizontal,
|
|
@@ -20047,7 +20107,7 @@ function DrawerToggler({
|
|
|
20047
20107
|
return /* @__PURE__ */ jsx(
|
|
20048
20108
|
"div",
|
|
20049
20109
|
{
|
|
20050
|
-
className:
|
|
20110
|
+
className: classNames17({
|
|
20051
20111
|
"text-xl p-3 cursor-pointer": true,
|
|
20052
20112
|
"transition-all ease-in-out": true,
|
|
20053
20113
|
"text-eui-dark-500 dark:text-eui-secondary-600": !styles,
|
|
@@ -20095,7 +20155,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
20095
20155
|
childrenContent = /* @__PURE__ */ jsx(
|
|
20096
20156
|
"div",
|
|
20097
20157
|
{
|
|
20098
|
-
className:
|
|
20158
|
+
className: classNames17({
|
|
20099
20159
|
"grid w-full": true,
|
|
20100
20160
|
"grid-cols-1": isMobile,
|
|
20101
20161
|
"grid-cols-3": !isMobile,
|
|
@@ -20108,7 +20168,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
20108
20168
|
return /* @__PURE__ */ jsx(
|
|
20109
20169
|
"div",
|
|
20110
20170
|
{
|
|
20111
|
-
className:
|
|
20171
|
+
className: classNames17({
|
|
20112
20172
|
[`${styles}`]: styles
|
|
20113
20173
|
}),
|
|
20114
20174
|
children: childrenContent
|
|
@@ -20149,7 +20209,7 @@ var FooterNavGroup = ({
|
|
|
20149
20209
|
/* @__PURE__ */ jsx(
|
|
20150
20210
|
"div",
|
|
20151
20211
|
{
|
|
20152
|
-
className:
|
|
20212
|
+
className: classNames17({
|
|
20153
20213
|
"": true,
|
|
20154
20214
|
"py-2 font-semibold eui-text-lg": !styles,
|
|
20155
20215
|
[`${styles}`]: styles
|
|
@@ -20194,7 +20254,7 @@ var FooterNavItem = ({
|
|
|
20194
20254
|
"div",
|
|
20195
20255
|
{
|
|
20196
20256
|
onClick: handleNavigation,
|
|
20197
|
-
className:
|
|
20257
|
+
className: classNames17({
|
|
20198
20258
|
"flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
|
|
20199
20259
|
"transition-all duration-200 ease-in-out": true,
|
|
20200
20260
|
"text-sm eui-text-sm": !styles,
|
|
@@ -20223,7 +20283,7 @@ var FooterNavItemTitle = ({
|
|
|
20223
20283
|
return /* @__PURE__ */ jsx(
|
|
20224
20284
|
"div",
|
|
20225
20285
|
{
|
|
20226
|
-
className:
|
|
20286
|
+
className: classNames17({
|
|
20227
20287
|
"": true,
|
|
20228
20288
|
"py-2 font-thin eui-text-md": !styles,
|
|
20229
20289
|
[`${styles}`]: styles
|
|
@@ -20276,7 +20336,7 @@ function HeaderNav({ data = [], styles }) {
|
|
|
20276
20336
|
return /* @__PURE__ */ jsx(
|
|
20277
20337
|
"div",
|
|
20278
20338
|
{
|
|
20279
|
-
className:
|
|
20339
|
+
className: classNames17({
|
|
20280
20340
|
[`${styles}`]: styles
|
|
20281
20341
|
}),
|
|
20282
20342
|
children: childrenContent
|
|
@@ -20338,7 +20398,7 @@ var HeaderNavGroup = ({
|
|
|
20338
20398
|
/* @__PURE__ */ jsxs(
|
|
20339
20399
|
"div",
|
|
20340
20400
|
{
|
|
20341
|
-
className:
|
|
20401
|
+
className: classNames17({
|
|
20342
20402
|
"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
|
|
20343
20403
|
"transition-all duration-300 ease-in-out": true,
|
|
20344
20404
|
"eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
|
|
@@ -20366,7 +20426,7 @@ var HeaderNavGroup = ({
|
|
|
20366
20426
|
children && /* @__PURE__ */ jsx(
|
|
20367
20427
|
BsChevronDown,
|
|
20368
20428
|
{
|
|
20369
|
-
className:
|
|
20429
|
+
className: classNames17({
|
|
20370
20430
|
"text-md": true,
|
|
20371
20431
|
"transition-all ease-in-out duration-300": true,
|
|
20372
20432
|
"rotate-180": !collapsed
|
|
@@ -20379,7 +20439,7 @@ var HeaderNavGroup = ({
|
|
|
20379
20439
|
!collapsed && children && /* @__PURE__ */ jsx(
|
|
20380
20440
|
"div",
|
|
20381
20441
|
{
|
|
20382
|
-
className:
|
|
20442
|
+
className: classNames17({
|
|
20383
20443
|
"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,
|
|
20384
20444
|
"transition-all duration-300 ease-in-out": true
|
|
20385
20445
|
}),
|
|
@@ -20409,7 +20469,7 @@ var HeaderNavItem = ({
|
|
|
20409
20469
|
"div",
|
|
20410
20470
|
{
|
|
20411
20471
|
onClick: handleNavigation,
|
|
20412
|
-
className:
|
|
20472
|
+
className: classNames17({
|
|
20413
20473
|
"flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
|
|
20414
20474
|
"transition-all duration-200 ease-in-out": true,
|
|
20415
20475
|
"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,
|
|
@@ -20438,7 +20498,7 @@ var HeaderNavItemTitle = ({
|
|
|
20438
20498
|
return /* @__PURE__ */ jsx(
|
|
20439
20499
|
"div",
|
|
20440
20500
|
{
|
|
20441
|
-
className:
|
|
20501
|
+
className: classNames17({
|
|
20442
20502
|
"p-3 font-thin": true,
|
|
20443
20503
|
"eui-text-md": !styles,
|
|
20444
20504
|
[`${styles}`]: styles
|
|
@@ -20478,7 +20538,7 @@ var Link = ({
|
|
|
20478
20538
|
href: href || "#",
|
|
20479
20539
|
target: targets[target],
|
|
20480
20540
|
onClick: handleClick,
|
|
20481
|
-
className:
|
|
20541
|
+
className: classNames17({
|
|
20482
20542
|
[`${textVariants[variant]}`]: variant,
|
|
20483
20543
|
[`${decorations[decoration]}`]: decoration,
|
|
20484
20544
|
"font-bold": bold,
|
|
@@ -20944,7 +21004,7 @@ function Modal({
|
|
|
20944
21004
|
"div",
|
|
20945
21005
|
{
|
|
20946
21006
|
ref: modalRef,
|
|
20947
|
-
className:
|
|
21007
|
+
className: classNames17({
|
|
20948
21008
|
"eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit": true,
|
|
20949
21009
|
[`${shapes[resolvedShape]}`]: true,
|
|
20950
21010
|
[`${styles}`]: styles
|
|
@@ -20955,7 +21015,7 @@ function Modal({
|
|
|
20955
21015
|
/* @__PURE__ */ jsx(
|
|
20956
21016
|
"div",
|
|
20957
21017
|
{
|
|
20958
|
-
className:
|
|
21018
|
+
className: classNames17({
|
|
20959
21019
|
"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast": true,
|
|
20960
21020
|
"hover:cursor-pointer hover:bg-eui-dark-500": true
|
|
20961
21021
|
}),
|
|
@@ -21096,7 +21156,7 @@ function ShowMore({ text, limit }) {
|
|
|
21096
21156
|
/* @__PURE__ */ jsx(
|
|
21097
21157
|
"div",
|
|
21098
21158
|
{
|
|
21099
|
-
className:
|
|
21159
|
+
className: classNames17({
|
|
21100
21160
|
"text-blue-300 px-1 pb-1 mt-1": true,
|
|
21101
21161
|
"bg-slate-900/70": !showMore,
|
|
21102
21162
|
"bg-gradient-to-t from-slate-900/50 to-transparent": showMore
|
|
@@ -21497,7 +21557,7 @@ function CommentMenu({
|
|
|
21497
21557
|
children: /* @__PURE__ */ jsx(BiDotsVerticalRounded, { size: 18 })
|
|
21498
21558
|
}
|
|
21499
21559
|
),
|
|
21500
|
-
/* @__PURE__ */ jsx(
|
|
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 }) }) })
|
|
21501
21561
|
] });
|
|
21502
21562
|
}
|
|
21503
21563
|
var CommentMenu_default = CommentMenu;
|
|
@@ -22253,7 +22313,7 @@ function BoxNavItem({ icon, name, to, selected, onClick }) {
|
|
|
22253
22313
|
type: "button",
|
|
22254
22314
|
onClick: handleClick,
|
|
22255
22315
|
"aria-current": selected ? "page" : void 0,
|
|
22256
|
-
className:
|
|
22316
|
+
className: classNames17(
|
|
22257
22317
|
"w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
|
|
22258
22318
|
"hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
|
|
22259
22319
|
selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
|
|
@@ -22613,7 +22673,7 @@ function GenericLayout({
|
|
|
22613
22673
|
return /* @__PURE__ */ jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsx(
|
|
22614
22674
|
"div",
|
|
22615
22675
|
{
|
|
22616
|
-
className:
|
|
22676
|
+
className: classNames17({
|
|
22617
22677
|
[`${styles}`]: styles
|
|
22618
22678
|
}),
|
|
22619
22679
|
children
|
|
@@ -22662,7 +22722,7 @@ function SidemenuLayout({ data, children }) {
|
|
|
22662
22722
|
return /* @__PURE__ */ jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxs(
|
|
22663
22723
|
"div",
|
|
22664
22724
|
{
|
|
22665
|
-
className:
|
|
22725
|
+
className: classNames17({
|
|
22666
22726
|
grid: true,
|
|
22667
22727
|
"grid-cols-7 gap-10": !isMobile,
|
|
22668
22728
|
"grid-cols-1 gap-": isMobile
|
|
@@ -22721,6 +22781,6 @@ function ScrollToTop({
|
|
|
22721
22781
|
}
|
|
22722
22782
|
var ScrollToTop_default = ScrollToTop;
|
|
22723
22783
|
|
|
22724
|
-
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,
|
|
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 };
|
|
22725
22785
|
//# sourceMappingURL=index.mjs.map
|
|
22726
22786
|
//# sourceMappingURL=index.mjs.map
|