elseware-ui 3.0.6 → 3.0.8
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/LICENSE +20 -20
- package/dist/index.css +436 -205
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +9 -39
- package/dist/index.d.ts +9 -39
- package/dist/index.js +876 -362
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +872 -358
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.d.mts +13 -3
- package/dist/index.native.d.ts +13 -3
- package/dist/index.native.js +1009 -212
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +1006 -214
- package/dist/index.native.mjs.map +1 -1
- package/dist/{resolveGlobalConfigs-PbcnVEZr.d.mts → resolveGlobalConfigs-C0BREpe1.d.mts} +93 -1
- package/dist/{resolveGlobalConfigs-PbcnVEZr.d.ts → resolveGlobalConfigs-C0BREpe1.d.ts} +93 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { twMerge } from 'tailwind-merge';
|
|
|
4
4
|
import { AiOutlineLoading } from 'react-icons/ai/index.js';
|
|
5
5
|
import { useField, ErrorMessage, Field, useFormikContext, FieldArray, Formik, Form as Form$1 } from 'formik';
|
|
6
6
|
import { FaGripVertical, FaTrash, FaPlus, FaTimes, FaBars, FaSun, FaMoon, FaEyeSlash, FaEye, FaCircle } from 'react-icons/fa/index.js';
|
|
7
|
-
import
|
|
7
|
+
import classNames69 from 'classnames';
|
|
8
8
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
9
9
|
import { Image, CloudinaryContext as CloudinaryContext$1 } from 'cloudinary-react';
|
|
10
10
|
import { MdUpload, MdOutlineDone, MdOutlineRemoveCircleOutline, MdDragIndicator, MdKeyboardArrowLeft, MdKeyboardArrowRight, MdOutlineDelete } from 'react-icons/md/index.js';
|
|
@@ -6453,7 +6453,7 @@ var Backdrop = ({ children: children3, styles }) => {
|
|
|
6453
6453
|
return /* @__PURE__ */ jsx(
|
|
6454
6454
|
"div",
|
|
6455
6455
|
{
|
|
6456
|
-
className:
|
|
6456
|
+
className: classNames69({
|
|
6457
6457
|
"bg-black/75 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden": true,
|
|
6458
6458
|
[`${styles}`]: styles
|
|
6459
6459
|
}),
|
|
@@ -7043,7 +7043,7 @@ function renderTransitionChild(children3, className) {
|
|
|
7043
7043
|
}
|
|
7044
7044
|
const element7 = child;
|
|
7045
7045
|
return React26.cloneElement(element7, {
|
|
7046
|
-
className:
|
|
7046
|
+
className: classNames69(element7.props.className, className)
|
|
7047
7047
|
});
|
|
7048
7048
|
}
|
|
7049
7049
|
function TransitionBase({
|
|
@@ -7063,7 +7063,7 @@ function TransitionBase({
|
|
|
7063
7063
|
if (!mounted && unmountOnExit) {
|
|
7064
7064
|
return null;
|
|
7065
7065
|
}
|
|
7066
|
-
const transitionClassName =
|
|
7066
|
+
const transitionClassName = classNames69(
|
|
7067
7067
|
visibility ? enterClassName : leaveClassName,
|
|
7068
7068
|
active ? visibleClassName : hiddenClassName
|
|
7069
7069
|
);
|
|
@@ -7272,7 +7272,7 @@ function useInputFieldState(props) {
|
|
|
7272
7272
|
};
|
|
7273
7273
|
}
|
|
7274
7274
|
|
|
7275
|
-
// src/
|
|
7275
|
+
// src/data/styles/shared.styles.tsx
|
|
7276
7276
|
var inputShapes = shapes;
|
|
7277
7277
|
var inputRootClassName = "relative w-full";
|
|
7278
7278
|
var inputFrameClassName = "relative h-14 w-full overflow-hidden border bg-white/95 px-3 dark:bg-eui-primary-300/10";
|
|
@@ -7399,41 +7399,203 @@ function Input(inputProps) {
|
|
|
7399
7399
|
)
|
|
7400
7400
|
] });
|
|
7401
7401
|
}
|
|
7402
|
-
|
|
7402
|
+
function useResolvedInputFileConfig({
|
|
7403
|
+
label,
|
|
7403
7404
|
placeholder,
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7405
|
+
shape
|
|
7406
|
+
}) {
|
|
7407
|
+
const eui = useEUIConfig();
|
|
7408
|
+
return {
|
|
7409
|
+
label: label ?? placeholder,
|
|
7410
|
+
shape: shape ?? eui?.config?.global?.shape ?? "square"
|
|
7411
|
+
};
|
|
7412
|
+
}
|
|
7413
|
+
function useInputFileFieldState(props) {
|
|
7409
7414
|
const [field, meta, helpers] = useField(props);
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
helpers
|
|
7415
|
+
return {
|
|
7416
|
+
field,
|
|
7417
|
+
helpers,
|
|
7418
|
+
meta
|
|
7413
7419
|
};
|
|
7414
|
-
|
|
7415
|
-
|
|
7420
|
+
}
|
|
7421
|
+
function isNativeInputFileValue(file) {
|
|
7422
|
+
return Boolean(file && typeof file === "object");
|
|
7423
|
+
}
|
|
7424
|
+
function getInputFileName(file) {
|
|
7425
|
+
if (!isNativeInputFileValue(file)) {
|
|
7426
|
+
return "";
|
|
7427
|
+
}
|
|
7428
|
+
if ("name" in file && file.name) {
|
|
7429
|
+
return file.name;
|
|
7430
|
+
}
|
|
7431
|
+
if ("fileName" in file && file.fileName) {
|
|
7432
|
+
return file.fileName;
|
|
7433
|
+
}
|
|
7434
|
+
if ("uri" in file && file.uri) {
|
|
7435
|
+
return file.uri.split("/").filter(Boolean).pop() ?? "";
|
|
7436
|
+
}
|
|
7437
|
+
return "";
|
|
7438
|
+
}
|
|
7439
|
+
function isAcceptedInputFile(file, accept) {
|
|
7440
|
+
if (!accept) {
|
|
7441
|
+
return true;
|
|
7442
|
+
}
|
|
7443
|
+
const acceptedTypes = accept.split(",").map((acceptedType) => acceptedType.trim().toLowerCase()).filter(Boolean);
|
|
7444
|
+
const fileName = file.name.toLowerCase();
|
|
7445
|
+
const fileType = file.type.toLowerCase();
|
|
7446
|
+
return acceptedTypes.some((acceptedType) => {
|
|
7447
|
+
if (acceptedType.startsWith(".")) {
|
|
7448
|
+
return fileName.endsWith(acceptedType);
|
|
7449
|
+
}
|
|
7450
|
+
if (acceptedType.endsWith("/*")) {
|
|
7451
|
+
return fileType.startsWith(acceptedType.replace("/*", "/"));
|
|
7452
|
+
}
|
|
7453
|
+
return fileType === acceptedType;
|
|
7454
|
+
});
|
|
7455
|
+
}
|
|
7456
|
+
function InputFile(inputFileProps) {
|
|
7457
|
+
const {
|
|
7458
|
+
accept = "",
|
|
7459
|
+
disabled = false,
|
|
7460
|
+
id: id2,
|
|
7461
|
+
inputClassName,
|
|
7462
|
+
label,
|
|
7463
|
+
labelClassName,
|
|
7464
|
+
onFileSelect: _onFileSelect,
|
|
7465
|
+
placeholder,
|
|
7466
|
+
responseClassName,
|
|
7467
|
+
shape,
|
|
7468
|
+
className,
|
|
7469
|
+
onBlur,
|
|
7470
|
+
onClick,
|
|
7471
|
+
onDragEnter,
|
|
7472
|
+
onDragLeave,
|
|
7473
|
+
onDragOver,
|
|
7474
|
+
onDrop,
|
|
7475
|
+
onFocus,
|
|
7476
|
+
onKeyDown,
|
|
7477
|
+
..._props
|
|
7478
|
+
} = inputFileProps;
|
|
7479
|
+
const fileInputRef = useRef(null);
|
|
7480
|
+
const { field, meta, helpers } = useInputFileFieldState(inputFileProps);
|
|
7481
|
+
const [focused, setFocused] = useState(false);
|
|
7482
|
+
const [dragging, setDragging] = useState(false);
|
|
7483
|
+
const { label: resolvedLabel, shape: resolvedShape } = useResolvedInputFileConfig({
|
|
7484
|
+
label,
|
|
7485
|
+
placeholder,
|
|
7486
|
+
shape
|
|
7487
|
+
});
|
|
7488
|
+
const hasError = Boolean(meta.touched && meta.error);
|
|
7489
|
+
const fileName = getInputFileName(field.value);
|
|
7490
|
+
const floating = focused || dragging || Boolean(fileName);
|
|
7491
|
+
const inputId = id2 ?? field.name;
|
|
7492
|
+
const openFilePicker = () => {
|
|
7493
|
+
if (!disabled) {
|
|
7494
|
+
fileInputRef.current?.click();
|
|
7495
|
+
}
|
|
7496
|
+
};
|
|
7497
|
+
const setSelectedFile = (file) => {
|
|
7498
|
+
if (file && !isAcceptedInputFile(file, accept)) {
|
|
7499
|
+
return;
|
|
7500
|
+
}
|
|
7501
|
+
void helpers.setValue(file);
|
|
7502
|
+
void helpers.setTouched(true);
|
|
7503
|
+
};
|
|
7504
|
+
const handleFileChange = (event) => {
|
|
7505
|
+
setSelectedFile(event.target.files?.[0] ?? null);
|
|
7506
|
+
};
|
|
7507
|
+
const handleDragEnter = (event) => {
|
|
7508
|
+
if (!disabled) {
|
|
7509
|
+
event.preventDefault();
|
|
7510
|
+
setDragging(true);
|
|
7511
|
+
}
|
|
7512
|
+
onDragEnter?.(event);
|
|
7513
|
+
};
|
|
7514
|
+
const handleDragLeave = (event) => {
|
|
7515
|
+
setDragging(false);
|
|
7516
|
+
onDragLeave?.(event);
|
|
7517
|
+
};
|
|
7518
|
+
const handleDragOver = (event) => {
|
|
7519
|
+
if (!disabled) {
|
|
7520
|
+
event.preventDefault();
|
|
7521
|
+
}
|
|
7522
|
+
onDragOver?.(event);
|
|
7523
|
+
};
|
|
7524
|
+
const handleDrop = (event) => {
|
|
7525
|
+
if (!disabled) {
|
|
7526
|
+
event.preventDefault();
|
|
7527
|
+
setDragging(false);
|
|
7528
|
+
setSelectedFile(event.dataTransfer.files?.[0] ?? null);
|
|
7529
|
+
}
|
|
7530
|
+
onDrop?.(event);
|
|
7531
|
+
};
|
|
7532
|
+
const handleKeyDown = (event) => {
|
|
7533
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
7534
|
+
event.preventDefault();
|
|
7535
|
+
openFilePicker();
|
|
7536
|
+
}
|
|
7537
|
+
onKeyDown?.(event);
|
|
7538
|
+
};
|
|
7539
|
+
return /* @__PURE__ */ jsxs("div", { className: inputRootClassName, children: [
|
|
7416
7540
|
/* @__PURE__ */ jsx(
|
|
7417
7541
|
"div",
|
|
7418
7542
|
{
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7543
|
+
"aria-disabled": disabled,
|
|
7544
|
+
"aria-label": resolvedLabel,
|
|
7545
|
+
onBlur: (event) => {
|
|
7546
|
+
setFocused(false);
|
|
7547
|
+
void helpers.setTouched(true);
|
|
7548
|
+
onBlur?.(event);
|
|
7549
|
+
},
|
|
7550
|
+
onClick: (event) => {
|
|
7551
|
+
openFilePicker();
|
|
7552
|
+
onClick?.(event);
|
|
7553
|
+
},
|
|
7554
|
+
onDragEnter: handleDragEnter,
|
|
7555
|
+
onDragLeave: handleDragLeave,
|
|
7556
|
+
onDragOver: handleDragOver,
|
|
7557
|
+
onDrop: handleDrop,
|
|
7558
|
+
onFocus: (event) => {
|
|
7559
|
+
setFocused(true);
|
|
7560
|
+
onFocus?.(event);
|
|
7561
|
+
},
|
|
7562
|
+
onKeyDown: handleKeyDown,
|
|
7563
|
+
role: "button",
|
|
7564
|
+
tabIndex: disabled ? -1 : 0,
|
|
7565
|
+
className: cn(
|
|
7566
|
+
inputFrameClassName,
|
|
7567
|
+
"flex items-center transition-all duration-200 ease-out",
|
|
7568
|
+
hasError ? inputFrameErrorClassName : focused || dragging ? inputFrameActiveClassName : inputFrameIdleClassName,
|
|
7569
|
+
dragging && "border-dashed bg-eui-secondary-50/70",
|
|
7570
|
+
inputShapes[resolvedShape],
|
|
7571
|
+
disabled ? inputFrameDisabledClassName : "cursor-pointer hover:cursor-pointer",
|
|
7425
7572
|
className
|
|
7426
7573
|
),
|
|
7427
|
-
|
|
7428
|
-
|
|
7574
|
+
children: /* @__PURE__ */ jsx(
|
|
7575
|
+
"span",
|
|
7576
|
+
{
|
|
7577
|
+
className: cn(
|
|
7578
|
+
inputControlClassName,
|
|
7579
|
+
"block truncate pointer-events-none",
|
|
7580
|
+
classNames69({
|
|
7581
|
+
"text-gray-500 dark:text-gray-300": !fileName
|
|
7582
|
+
}),
|
|
7583
|
+
inputClassName
|
|
7584
|
+
),
|
|
7585
|
+
children: fileName
|
|
7586
|
+
}
|
|
7587
|
+
)
|
|
7429
7588
|
}
|
|
7430
7589
|
),
|
|
7431
7590
|
/* @__PURE__ */ jsx(
|
|
7432
7591
|
"input",
|
|
7433
7592
|
{
|
|
7593
|
+
ref: fileInputRef,
|
|
7594
|
+
id: inputId,
|
|
7595
|
+
name: field.name,
|
|
7434
7596
|
type: "file",
|
|
7435
7597
|
accept,
|
|
7436
|
-
|
|
7598
|
+
disabled,
|
|
7437
7599
|
onChange: handleFileChange,
|
|
7438
7600
|
className: "hidden"
|
|
7439
7601
|
}
|
|
@@ -7441,24 +7603,25 @@ var InputFile = ({
|
|
|
7441
7603
|
/* @__PURE__ */ jsx(
|
|
7442
7604
|
InputLabel,
|
|
7443
7605
|
{
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7606
|
+
disabled,
|
|
7607
|
+
errored: hasError,
|
|
7608
|
+
floating,
|
|
7609
|
+
htmlFor: inputId,
|
|
7610
|
+
text: resolvedLabel,
|
|
7611
|
+
className: labelClassName
|
|
7450
7612
|
}
|
|
7451
7613
|
),
|
|
7452
7614
|
/* @__PURE__ */ jsx(
|
|
7453
7615
|
InputResponse,
|
|
7454
7616
|
{
|
|
7455
7617
|
name: field.name,
|
|
7456
|
-
visibility:
|
|
7457
|
-
variant: "danger"
|
|
7618
|
+
visibility: hasError,
|
|
7619
|
+
variant: "danger",
|
|
7620
|
+
className: responseClassName
|
|
7458
7621
|
}
|
|
7459
7622
|
)
|
|
7460
7623
|
] });
|
|
7461
|
-
}
|
|
7624
|
+
}
|
|
7462
7625
|
function normalizeShape(value) {
|
|
7463
7626
|
switch (value) {
|
|
7464
7627
|
case "circle" /* circle */:
|
|
@@ -7495,7 +7658,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7495
7658
|
/* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(FieldArray, { name: name2, children: ({ push: push2, remove: remove2, move }) => /* @__PURE__ */ jsxs(
|
|
7496
7659
|
"div",
|
|
7497
7660
|
{
|
|
7498
|
-
className:
|
|
7661
|
+
className: classNames69(
|
|
7499
7662
|
"flex w-full flex-col space-y-2 bg-eui-primary-300/10",
|
|
7500
7663
|
shapes[resolvedShape]
|
|
7501
7664
|
),
|
|
@@ -7524,7 +7687,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7524
7687
|
ref: provided2.innerRef,
|
|
7525
7688
|
...draggableProps,
|
|
7526
7689
|
style: draggableStyle,
|
|
7527
|
-
className:
|
|
7690
|
+
className: classNames69(
|
|
7528
7691
|
"flex items-center space-x-2 bg-eui-primary-300/10 p-2",
|
|
7529
7692
|
shapes[resolvedShape]
|
|
7530
7693
|
),
|
|
@@ -7535,7 +7698,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7535
7698
|
{
|
|
7536
7699
|
name: `${name2}[${index3}]`,
|
|
7537
7700
|
placeholder: `Item ${index3 + 1}`,
|
|
7538
|
-
className:
|
|
7701
|
+
className: classNames69(
|
|
7539
7702
|
"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",
|
|
7540
7703
|
shapes[resolvedShape],
|
|
7541
7704
|
hasItemError ? "border-eui-danger-500" : "border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -7631,7 +7794,7 @@ var InputListGroup = ({
|
|
|
7631
7794
|
return /* @__PURE__ */ jsxs(
|
|
7632
7795
|
"div",
|
|
7633
7796
|
{
|
|
7634
|
-
className:
|
|
7797
|
+
className: classNames69(
|
|
7635
7798
|
"flex flex-col gap-2 bg-eui-primary-300/10 p-3",
|
|
7636
7799
|
shapes[resolvedShape]
|
|
7637
7800
|
),
|
|
@@ -7643,7 +7806,7 @@ var InputListGroup = ({
|
|
|
7643
7806
|
{
|
|
7644
7807
|
name: `${name2}[${groupIndex}].name`,
|
|
7645
7808
|
placeholder: `Group ${groupIndex + 1}`,
|
|
7646
|
-
className:
|
|
7809
|
+
className: classNames69(
|
|
7647
7810
|
"h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
|
|
7648
7811
|
shapes[resolvedShape],
|
|
7649
7812
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -7674,7 +7837,7 @@ var InputListGroup = ({
|
|
|
7674
7837
|
{
|
|
7675
7838
|
ref: provided.innerRef,
|
|
7676
7839
|
...provided.droppableProps,
|
|
7677
|
-
className:
|
|
7840
|
+
className: classNames69(
|
|
7678
7841
|
"space-y-2 bg-eui-primary-300/10 p-2",
|
|
7679
7842
|
shapes[resolvedShape]
|
|
7680
7843
|
),
|
|
@@ -7694,7 +7857,7 @@ var InputListGroup = ({
|
|
|
7694
7857
|
ref: provided2.innerRef,
|
|
7695
7858
|
...draggableProps,
|
|
7696
7859
|
style: draggableStyle,
|
|
7697
|
-
className:
|
|
7860
|
+
className: classNames69(
|
|
7698
7861
|
"flex items-center gap-2 bg-eui-primary-300/10 p-2",
|
|
7699
7862
|
shapes[resolvedShape]
|
|
7700
7863
|
),
|
|
@@ -7705,7 +7868,7 @@ var InputListGroup = ({
|
|
|
7705
7868
|
{
|
|
7706
7869
|
name: `${itemsFieldName}[${itemIndex}]`,
|
|
7707
7870
|
placeholder: `Item ${itemIndex + 1}`,
|
|
7708
|
-
className:
|
|
7871
|
+
className: classNames69(
|
|
7709
7872
|
"h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
|
|
7710
7873
|
shapes[resolvedShape],
|
|
7711
7874
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -8069,43 +8232,126 @@ function Checkbox(checkboxProps) {
|
|
|
8069
8232
|
)
|
|
8070
8233
|
] });
|
|
8071
8234
|
}
|
|
8072
|
-
|
|
8235
|
+
function useResolvedDateSelectorConfig({
|
|
8236
|
+
label,
|
|
8073
8237
|
placeholder,
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
...props
|
|
8077
|
-
}) => {
|
|
8238
|
+
shape
|
|
8239
|
+
}) {
|
|
8078
8240
|
const eui = useEUIConfig();
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8241
|
+
return {
|
|
8242
|
+
label: label ?? placeholder,
|
|
8243
|
+
shape: shape ?? eui?.config?.global?.shape ?? "square"
|
|
8244
|
+
};
|
|
8245
|
+
}
|
|
8246
|
+
function useDateSelectorFieldState(props) {
|
|
8247
|
+
const [field, meta, helpers] = useField(props);
|
|
8248
|
+
return {
|
|
8249
|
+
field,
|
|
8250
|
+
helpers,
|
|
8251
|
+
meta
|
|
8252
|
+
};
|
|
8253
|
+
}
|
|
8254
|
+
function DateSelector(dateSelectorProps) {
|
|
8255
|
+
const {
|
|
8256
|
+
disabled = false,
|
|
8257
|
+
id: id2,
|
|
8258
|
+
inputClassName,
|
|
8259
|
+
label,
|
|
8260
|
+
labelClassName,
|
|
8261
|
+
max: max2,
|
|
8262
|
+
min: min2,
|
|
8263
|
+
placeholder,
|
|
8264
|
+
responseClassName,
|
|
8265
|
+
shape,
|
|
8266
|
+
styles,
|
|
8267
|
+
className,
|
|
8268
|
+
onBlur,
|
|
8269
|
+
onClick,
|
|
8270
|
+
onFocus
|
|
8271
|
+
} = dateSelectorProps;
|
|
8272
|
+
const { field, helpers, meta } = useDateSelectorFieldState(dateSelectorProps);
|
|
8273
|
+
const [focused, setFocused] = useState(false);
|
|
8274
|
+
const { label: resolvedLabel, shape: resolvedShape } = useResolvedDateSelectorConfig({
|
|
8275
|
+
label,
|
|
8276
|
+
placeholder,
|
|
8277
|
+
shape
|
|
8278
|
+
});
|
|
8279
|
+
const hasError = Boolean(meta.touched && meta.error);
|
|
8280
|
+
const inputId = id2 ?? field.name;
|
|
8281
|
+
const handleChange = (event) => {
|
|
8282
|
+
void helpers.setValue(event.target.value);
|
|
8283
|
+
};
|
|
8284
|
+
const handleBlur = (event) => {
|
|
8285
|
+
setFocused(false);
|
|
8286
|
+
void helpers.setTouched(true);
|
|
8287
|
+
field.onBlur(event);
|
|
8288
|
+
onBlur?.(event);
|
|
8289
|
+
};
|
|
8290
|
+
const handleFocus = (event) => {
|
|
8291
|
+
setFocused(true);
|
|
8292
|
+
onFocus?.(event);
|
|
8293
|
+
};
|
|
8294
|
+
const handleClick = (event) => {
|
|
8295
|
+
onClick?.(event);
|
|
8296
|
+
if (event.defaultPrevented || disabled) {
|
|
8297
|
+
return;
|
|
8298
|
+
}
|
|
8299
|
+
try {
|
|
8300
|
+
event.currentTarget.showPicker?.();
|
|
8301
|
+
} catch {
|
|
8302
|
+
}
|
|
8303
|
+
};
|
|
8304
|
+
return /* @__PURE__ */ jsxs("div", { className: inputRootClassName, children: [
|
|
8082
8305
|
/* @__PURE__ */ jsx(
|
|
8083
|
-
|
|
8306
|
+
"input",
|
|
8084
8307
|
{
|
|
8085
|
-
|
|
8086
|
-
|
|
8308
|
+
disabled,
|
|
8309
|
+
id: inputId,
|
|
8310
|
+
max: max2,
|
|
8311
|
+
min: min2,
|
|
8312
|
+
name: field.name,
|
|
8313
|
+
onChange: handleChange,
|
|
8314
|
+
onBlur: handleBlur,
|
|
8315
|
+
onClick: handleClick,
|
|
8316
|
+
onFocus: handleFocus,
|
|
8317
|
+
placeholder: "",
|
|
8318
|
+
type: "date",
|
|
8319
|
+
value: field.value ?? "",
|
|
8320
|
+
className: cn(
|
|
8321
|
+
inputFrameClassName,
|
|
8322
|
+
inputControlClassName,
|
|
8323
|
+
webInputControlClassName,
|
|
8324
|
+
hasError ? inputFrameErrorClassName : focused ? inputFrameActiveClassName : inputFrameIdleClassName,
|
|
8325
|
+
inputShapes[resolvedShape],
|
|
8326
|
+
disabled && inputFrameDisabledClassName,
|
|
8327
|
+
className,
|
|
8328
|
+
styles,
|
|
8329
|
+
inputClassName
|
|
8330
|
+
)
|
|
8087
8331
|
}
|
|
8088
8332
|
),
|
|
8089
8333
|
/* @__PURE__ */ jsx(
|
|
8090
|
-
|
|
8334
|
+
InputLabel,
|
|
8091
8335
|
{
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
"border-eui-danger-500": meta.touched && meta.error,
|
|
8099
|
-
"transition-all ease-in-out": true,
|
|
8100
|
-
[`${shapes[resolvedShape]}`]: true,
|
|
8101
|
-
[`${styles}`]: styles
|
|
8102
|
-
})
|
|
8336
|
+
disabled,
|
|
8337
|
+
errored: hasError,
|
|
8338
|
+
floating: true,
|
|
8339
|
+
htmlFor: inputId,
|
|
8340
|
+
text: resolvedLabel,
|
|
8341
|
+
className: labelClassName
|
|
8103
8342
|
}
|
|
8104
8343
|
),
|
|
8105
|
-
|
|
8344
|
+
/* @__PURE__ */ jsx(
|
|
8345
|
+
InputResponse,
|
|
8346
|
+
{
|
|
8347
|
+
name: field.name,
|
|
8348
|
+
visibility: hasError,
|
|
8349
|
+
variant: "danger",
|
|
8350
|
+
className: responseClassName
|
|
8351
|
+
}
|
|
8352
|
+
)
|
|
8106
8353
|
] });
|
|
8107
|
-
}
|
|
8108
|
-
var DateSelector_default = DateSelector;
|
|
8354
|
+
}
|
|
8109
8355
|
function renderFormChildren(children3, formik) {
|
|
8110
8356
|
return typeof children3 === "function" ? children3(formik) : children3;
|
|
8111
8357
|
}
|
|
@@ -8375,7 +8621,7 @@ var ImageInput = forwardRef(
|
|
|
8375
8621
|
/* @__PURE__ */ jsxs(
|
|
8376
8622
|
"label",
|
|
8377
8623
|
{
|
|
8378
|
-
className:
|
|
8624
|
+
className: classNames69({
|
|
8379
8625
|
"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,
|
|
8380
8626
|
"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
|
|
8381
8627
|
"transition-all ease-in-out duration-150": true
|
|
@@ -8563,7 +8809,7 @@ function MultiImageInput({
|
|
|
8563
8809
|
onDragOver: handleDragOver,
|
|
8564
8810
|
onDrop: () => handleDrop(index3),
|
|
8565
8811
|
onDragEnd: () => setDraggedIndex(null),
|
|
8566
|
-
className:
|
|
8812
|
+
className: classNames69(
|
|
8567
8813
|
"relative h-[200px] w-[300px] overflow-hidden bg-gray-900",
|
|
8568
8814
|
"transition-all duration-150",
|
|
8569
8815
|
draggedIndex === index3 && "opacity-60",
|
|
@@ -8693,7 +8939,7 @@ function Radio({
|
|
|
8693
8939
|
return /* @__PURE__ */ jsxs(
|
|
8694
8940
|
"div",
|
|
8695
8941
|
{
|
|
8696
|
-
className:
|
|
8942
|
+
className: classNames69({
|
|
8697
8943
|
"flex flex-row gap-2 items-center mx-1 my-2": true
|
|
8698
8944
|
}),
|
|
8699
8945
|
children: [
|
|
@@ -8706,7 +8952,7 @@ function Radio({
|
|
|
8706
8952
|
...props,
|
|
8707
8953
|
value: option.value,
|
|
8708
8954
|
checked: field2.value === option.value,
|
|
8709
|
-
className:
|
|
8955
|
+
className: classNames69({
|
|
8710
8956
|
"appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
|
|
8711
8957
|
// base radio button styles
|
|
8712
8958
|
"checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
|
|
@@ -8718,7 +8964,7 @@ function Radio({
|
|
|
8718
8964
|
"label",
|
|
8719
8965
|
{
|
|
8720
8966
|
htmlFor: option.value,
|
|
8721
|
-
className:
|
|
8967
|
+
className: classNames69({
|
|
8722
8968
|
"eui-text-md text-sm": true
|
|
8723
8969
|
}),
|
|
8724
8970
|
children: option.label
|
|
@@ -8761,7 +9007,7 @@ function StarRatingInput({
|
|
|
8761
9007
|
return /* @__PURE__ */ jsxs(
|
|
8762
9008
|
"div",
|
|
8763
9009
|
{
|
|
8764
|
-
className:
|
|
9010
|
+
className: classNames69({
|
|
8765
9011
|
"inline-flex gap-[4px] text-[20px]": true,
|
|
8766
9012
|
[`${styles}`]: styles
|
|
8767
9013
|
}),
|
|
@@ -8774,7 +9020,7 @@ function StarRatingInput({
|
|
|
8774
9020
|
onClick: () => handleOnClick(index3),
|
|
8775
9021
|
onMouseEnter: () => setHover(index3),
|
|
8776
9022
|
onMouseLeave: () => setHover(null),
|
|
8777
|
-
className:
|
|
9023
|
+
className: classNames69({
|
|
8778
9024
|
"text-yellow-600": index3 <= (hover ?? rating - 1),
|
|
8779
9025
|
"text-gray-400": index3 > (hover ?? rating - 1)
|
|
8780
9026
|
}),
|
|
@@ -8795,53 +9041,115 @@ function StarRatingInput({
|
|
|
8795
9041
|
);
|
|
8796
9042
|
}
|
|
8797
9043
|
var StarRatingInput_default = StarRatingInput;
|
|
8798
|
-
function
|
|
9044
|
+
function useResolvedSelectConfig({
|
|
9045
|
+
label,
|
|
8799
9046
|
placeholder,
|
|
8800
|
-
|
|
8801
|
-
styles,
|
|
8802
|
-
shape,
|
|
8803
|
-
...props
|
|
9047
|
+
shape
|
|
8804
9048
|
}) {
|
|
8805
9049
|
const eui = useEUIConfig();
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
|
|
9050
|
+
return {
|
|
9051
|
+
label: label ?? placeholder,
|
|
9052
|
+
shape: shape ?? eui?.config?.global?.shape ?? "square"
|
|
9053
|
+
};
|
|
9054
|
+
}
|
|
9055
|
+
function useSelectFieldState(props) {
|
|
9056
|
+
const [field, meta, helpers] = useField(props);
|
|
9057
|
+
return {
|
|
9058
|
+
field,
|
|
9059
|
+
helpers,
|
|
9060
|
+
meta
|
|
9061
|
+
};
|
|
9062
|
+
}
|
|
9063
|
+
function Select(selectProps) {
|
|
9064
|
+
const {
|
|
9065
|
+
disabled = false,
|
|
9066
|
+
id: id2,
|
|
9067
|
+
inputClassName,
|
|
9068
|
+
label,
|
|
9069
|
+
labelClassName,
|
|
9070
|
+
options,
|
|
9071
|
+
placeholder,
|
|
9072
|
+
responseClassName,
|
|
9073
|
+
shape,
|
|
9074
|
+
styles,
|
|
9075
|
+
className,
|
|
9076
|
+
onBlur,
|
|
9077
|
+
onFocus,
|
|
9078
|
+
...props
|
|
9079
|
+
} = selectProps;
|
|
9080
|
+
const { field, meta } = useSelectFieldState(selectProps);
|
|
9081
|
+
const [focused, setFocused] = useState(false);
|
|
9082
|
+
const { label: resolvedLabel, shape: resolvedShape } = useResolvedSelectConfig({
|
|
9083
|
+
label,
|
|
9084
|
+
placeholder,
|
|
9085
|
+
shape
|
|
9086
|
+
});
|
|
9087
|
+
const hasError = Boolean(meta.touched && meta.error);
|
|
9088
|
+
const inputId = id2 ?? field.name;
|
|
9089
|
+
const handleBlur = (event) => {
|
|
9090
|
+
setFocused(false);
|
|
9091
|
+
field.onBlur(event);
|
|
9092
|
+
onBlur?.(event);
|
|
9093
|
+
};
|
|
9094
|
+
const handleFocus = (event) => {
|
|
9095
|
+
setFocused(true);
|
|
9096
|
+
onFocus?.(event);
|
|
9097
|
+
};
|
|
9098
|
+
return /* @__PURE__ */ jsxs("div", { className: inputRootClassName, children: [
|
|
8809
9099
|
/* @__PURE__ */ jsx(
|
|
8810
|
-
|
|
9100
|
+
Field,
|
|
8811
9101
|
{
|
|
8812
|
-
|
|
8813
|
-
|
|
9102
|
+
...props,
|
|
9103
|
+
...field,
|
|
9104
|
+
as: "select",
|
|
9105
|
+
disabled,
|
|
9106
|
+
id: inputId,
|
|
9107
|
+
onBlur: handleBlur,
|
|
9108
|
+
onFocus: handleFocus,
|
|
9109
|
+
className: cn(
|
|
9110
|
+
inputFrameClassName,
|
|
9111
|
+
inputControlClassName,
|
|
9112
|
+
webInputControlClassName,
|
|
9113
|
+
hasError ? inputFrameErrorClassName : focused ? inputFrameActiveClassName : inputFrameIdleClassName,
|
|
9114
|
+
inputShapes[resolvedShape],
|
|
9115
|
+
disabled && inputFrameDisabledClassName,
|
|
9116
|
+
className,
|
|
9117
|
+
styles,
|
|
9118
|
+
inputClassName
|
|
9119
|
+
),
|
|
9120
|
+
children: options.map((option) => /* @__PURE__ */ jsx(
|
|
9121
|
+
"option",
|
|
9122
|
+
{
|
|
9123
|
+
value: option.value,
|
|
9124
|
+
disabled: option.disabled,
|
|
9125
|
+
children: option.label
|
|
9126
|
+
},
|
|
9127
|
+
option.value
|
|
9128
|
+
))
|
|
8814
9129
|
}
|
|
8815
9130
|
),
|
|
8816
9131
|
/* @__PURE__ */ jsx(
|
|
8817
|
-
|
|
9132
|
+
InputLabel,
|
|
8818
9133
|
{
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
"transition-all ease-in-out": true,
|
|
8826
|
-
[`${shapes[resolvedShape]}`]: true,
|
|
8827
|
-
[`${styles}`]: styles
|
|
8828
|
-
}),
|
|
8829
|
-
children: options.map((option) => {
|
|
8830
|
-
return /* @__PURE__ */ jsx("option", { value: option.value, children: option.label }, option.value);
|
|
8831
|
-
})
|
|
9134
|
+
disabled,
|
|
9135
|
+
errored: hasError,
|
|
9136
|
+
floating: true,
|
|
9137
|
+
htmlFor: inputId,
|
|
9138
|
+
text: resolvedLabel,
|
|
9139
|
+
className: labelClassName
|
|
8832
9140
|
}
|
|
8833
9141
|
),
|
|
8834
9142
|
/* @__PURE__ */ jsx(
|
|
8835
9143
|
InputResponse,
|
|
8836
9144
|
{
|
|
8837
9145
|
name: field.name,
|
|
8838
|
-
visibility:
|
|
8839
|
-
variant: "danger"
|
|
9146
|
+
visibility: hasError,
|
|
9147
|
+
variant: "danger",
|
|
9148
|
+
className: responseClassName
|
|
8840
9149
|
}
|
|
8841
9150
|
)
|
|
8842
9151
|
] });
|
|
8843
9152
|
}
|
|
8844
|
-
var Select_default = Select;
|
|
8845
9153
|
function Switch({
|
|
8846
9154
|
label,
|
|
8847
9155
|
description,
|
|
@@ -8870,7 +9178,7 @@ function Switch({
|
|
|
8870
9178
|
"div",
|
|
8871
9179
|
{
|
|
8872
9180
|
onClick: () => helpers.setValue(!field.value),
|
|
8873
|
-
className:
|
|
9181
|
+
className: classNames69(
|
|
8874
9182
|
"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
|
|
8875
9183
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
8876
9184
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
|
|
@@ -8893,166 +9201,359 @@ function Switch({
|
|
|
8893
9201
|
] });
|
|
8894
9202
|
}
|
|
8895
9203
|
var Switch_default = Switch;
|
|
8896
|
-
function
|
|
8897
|
-
|
|
8898
|
-
styles,
|
|
9204
|
+
function useResolvedTagsConfig({
|
|
9205
|
+
label,
|
|
8899
9206
|
limit = 10,
|
|
8900
|
-
|
|
9207
|
+
placeholder,
|
|
9208
|
+
shape
|
|
8901
9209
|
}) {
|
|
8902
|
-
const
|
|
9210
|
+
const eui = useEUIConfig();
|
|
9211
|
+
return {
|
|
9212
|
+
label: label ?? placeholder,
|
|
9213
|
+
limit,
|
|
9214
|
+
shape: shape ?? eui?.config?.global?.shape ?? "square"
|
|
9215
|
+
};
|
|
9216
|
+
}
|
|
9217
|
+
function useTagsFieldState(props) {
|
|
9218
|
+
const [field, meta, helpers] = useField(props);
|
|
9219
|
+
return {
|
|
9220
|
+
field,
|
|
9221
|
+
helpers,
|
|
9222
|
+
meta
|
|
9223
|
+
};
|
|
9224
|
+
}
|
|
9225
|
+
function getTagsValue(value) {
|
|
9226
|
+
if (!Array.isArray(value)) {
|
|
9227
|
+
return [];
|
|
9228
|
+
}
|
|
9229
|
+
return value.filter((tag) => typeof tag === "string");
|
|
9230
|
+
}
|
|
9231
|
+
function addTagToList(tags, value, limit) {
|
|
9232
|
+
const trimmed = value.trim();
|
|
9233
|
+
if (!trimmed || tags.includes(trimmed) || tags.length >= limit) {
|
|
9234
|
+
return tags;
|
|
9235
|
+
}
|
|
9236
|
+
return [...tags, trimmed];
|
|
9237
|
+
}
|
|
9238
|
+
function removeTagFromList(tags, index3) {
|
|
9239
|
+
return tags.filter((_2, tagIndex) => tagIndex !== index3);
|
|
9240
|
+
}
|
|
9241
|
+
function Tags(tagsProps) {
|
|
9242
|
+
const {
|
|
9243
|
+
disabled = false,
|
|
9244
|
+
id: id2,
|
|
9245
|
+
inputClassName,
|
|
9246
|
+
label,
|
|
9247
|
+
labelClassName,
|
|
9248
|
+
limit,
|
|
9249
|
+
placeholder,
|
|
9250
|
+
responseClassName,
|
|
9251
|
+
shape,
|
|
9252
|
+
styles,
|
|
9253
|
+
tagClassName,
|
|
9254
|
+
removeButtonClassName,
|
|
9255
|
+
counterClassName,
|
|
9256
|
+
className,
|
|
9257
|
+
onBlur,
|
|
9258
|
+
onFocus,
|
|
9259
|
+
..._props
|
|
9260
|
+
} = tagsProps;
|
|
9261
|
+
const { field, helpers, meta } = useTagsFieldState(tagsProps);
|
|
8903
9262
|
const [input, setInput] = useState("");
|
|
8904
|
-
const
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
9263
|
+
const [focused, setFocused] = useState(false);
|
|
9264
|
+
const {
|
|
9265
|
+
label: resolvedLabel,
|
|
9266
|
+
limit: resolvedLimit,
|
|
9267
|
+
shape: resolvedShape
|
|
9268
|
+
} = useResolvedTagsConfig({
|
|
9269
|
+
label,
|
|
9270
|
+
limit,
|
|
9271
|
+
placeholder,
|
|
9272
|
+
shape
|
|
9273
|
+
});
|
|
9274
|
+
const tags = getTagsValue(field.value);
|
|
9275
|
+
const hasError = Boolean(meta.touched && meta.error);
|
|
9276
|
+
const floating = focused || input.length > 0 || tags.length > 0;
|
|
9277
|
+
const inputId = id2 ?? field.name;
|
|
9278
|
+
const handleAddTag = (value = input) => {
|
|
9279
|
+
if (disabled) {
|
|
9280
|
+
return;
|
|
9281
|
+
}
|
|
9282
|
+
const nextTags = addTagToList(tags, value, resolvedLimit);
|
|
9283
|
+
if (nextTags !== tags) {
|
|
9284
|
+
void helpers.setValue(nextTags);
|
|
9285
|
+
}
|
|
9286
|
+
if (value.trim()) {
|
|
9287
|
+
void helpers.setTouched(true);
|
|
8908
9288
|
}
|
|
8909
9289
|
setInput("");
|
|
8910
9290
|
};
|
|
8911
|
-
const handleKeyDown = (
|
|
8912
|
-
if (
|
|
8913
|
-
|
|
9291
|
+
const handleKeyDown = (event) => {
|
|
9292
|
+
if (event.key === "Enter" || event.key === ",") {
|
|
9293
|
+
event.preventDefault();
|
|
8914
9294
|
handleAddTag();
|
|
9295
|
+
return;
|
|
8915
9296
|
}
|
|
8916
|
-
if (
|
|
8917
|
-
helpers.setValue(
|
|
9297
|
+
if (event.key === "Backspace" && input === "" && tags.length > 0) {
|
|
9298
|
+
void helpers.setValue(tags.slice(0, -1));
|
|
9299
|
+
void helpers.setTouched(true);
|
|
8918
9300
|
}
|
|
8919
9301
|
};
|
|
8920
9302
|
const handleRemoveTag = (index3) => {
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
9303
|
+
if (disabled) {
|
|
9304
|
+
return;
|
|
9305
|
+
}
|
|
9306
|
+
void helpers.setValue(removeTagFromList(tags, index3));
|
|
9307
|
+
void helpers.setTouched(true);
|
|
8924
9308
|
};
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
9309
|
+
const handleBlur = (event) => {
|
|
9310
|
+
setFocused(false);
|
|
9311
|
+
void helpers.setTouched(true);
|
|
9312
|
+
onBlur?.(event);
|
|
9313
|
+
};
|
|
9314
|
+
const handleFocus = (event) => {
|
|
9315
|
+
setFocused(true);
|
|
9316
|
+
onFocus?.(event);
|
|
9317
|
+
};
|
|
9318
|
+
return /* @__PURE__ */ jsxs("div", { className: inputRootClassName, children: [
|
|
9319
|
+
/* @__PURE__ */ jsxs(
|
|
9320
|
+
"div",
|
|
9321
|
+
{
|
|
9322
|
+
className: cn(
|
|
9323
|
+
inputFrameClassName,
|
|
9324
|
+
"flex h-auto min-h-14 flex-wrap items-center gap-2 overflow-visible px-3 pt-6 pb-7",
|
|
9325
|
+
hasError ? inputFrameErrorClassName : focused ? inputFrameActiveClassName : inputFrameIdleClassName,
|
|
9326
|
+
inputShapes[resolvedShape],
|
|
9327
|
+
disabled && inputFrameDisabledClassName,
|
|
9328
|
+
className,
|
|
9329
|
+
styles
|
|
9330
|
+
),
|
|
9331
|
+
children: [
|
|
9332
|
+
tags.map((tag, index3) => /* @__PURE__ */ jsxs(
|
|
9333
|
+
"span",
|
|
9334
|
+
{
|
|
9335
|
+
className: cn(
|
|
9336
|
+
"inline-flex max-w-full items-center gap-1 rounded bg-eui-light-300 px-2 py-1 text-sm font-medium text-eui-dark-700 dark:bg-eui-dark-400 dark:text-eui-light-300",
|
|
9337
|
+
tagClassName
|
|
9338
|
+
),
|
|
9339
|
+
children: [
|
|
9340
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children: tag }),
|
|
9341
|
+
/* @__PURE__ */ jsx(
|
|
9342
|
+
"button",
|
|
9343
|
+
{
|
|
9344
|
+
"aria-label": `Remove ${tag}`,
|
|
9345
|
+
className: cn(
|
|
9346
|
+
"inline-flex h-5 w-5 items-center justify-center text-xs text-eui-danger-500 transition-colors hover:text-eui-danger-400 disabled:cursor-not-allowed disabled:opacity-50",
|
|
9347
|
+
removeButtonClassName
|
|
9348
|
+
),
|
|
9349
|
+
disabled,
|
|
9350
|
+
onClick: () => handleRemoveTag(index3),
|
|
9351
|
+
type: "button",
|
|
9352
|
+
children: /* @__PURE__ */ jsx(FaTimes, { className: "h-3 w-3" })
|
|
9353
|
+
}
|
|
9354
|
+
)
|
|
9355
|
+
]
|
|
9356
|
+
},
|
|
9357
|
+
`${tag}-${index3}`
|
|
9358
|
+
)),
|
|
9359
|
+
tags.length < resolvedLimit ? /* @__PURE__ */ jsx(
|
|
9360
|
+
"input",
|
|
8932
9361
|
{
|
|
8933
|
-
"
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
9362
|
+
"aria-label": resolvedLabel,
|
|
9363
|
+
className: cn(
|
|
9364
|
+
inputControlClassName,
|
|
9365
|
+
webInputControlClassName,
|
|
9366
|
+
"h-7 w-auto min-w-[120px] flex-1 p-0",
|
|
9367
|
+
inputClassName
|
|
9368
|
+
),
|
|
9369
|
+
disabled,
|
|
9370
|
+
id: inputId,
|
|
9371
|
+
onBlur: handleBlur,
|
|
9372
|
+
onChange: (event) => setInput(event.target.value),
|
|
9373
|
+
onFocus: handleFocus,
|
|
9374
|
+
onKeyDown: handleKeyDown,
|
|
9375
|
+
placeholder: "",
|
|
9376
|
+
type: "text",
|
|
9377
|
+
value: input
|
|
9378
|
+
}
|
|
9379
|
+
) : null,
|
|
9380
|
+
/* @__PURE__ */ jsxs(
|
|
9381
|
+
"div",
|
|
9382
|
+
{
|
|
9383
|
+
className: cn(
|
|
9384
|
+
"pointer-events-none absolute bottom-3 right-3 text-xs font-semibold text-eui-dark-50",
|
|
9385
|
+
counterClassName
|
|
9386
|
+
),
|
|
9387
|
+
children: [
|
|
9388
|
+
tags.length,
|
|
9389
|
+
"/",
|
|
9390
|
+
resolvedLimit
|
|
9391
|
+
]
|
|
8939
9392
|
}
|
|
8940
|
-
),
|
|
8941
|
-
children: [
|
|
8942
|
-
field.value.map((tag, index3) => /* @__PURE__ */ jsxs(
|
|
8943
|
-
"div",
|
|
8944
|
-
{
|
|
8945
|
-
className: "flex items-center bg-eui-light-300 dark:bg-eui-dark-400 px-2 py-1 rounded text-sm text-eui-dark-700 dark:text-eui-light-300",
|
|
8946
|
-
children: [
|
|
8947
|
-
tag,
|
|
8948
|
-
/* @__PURE__ */ jsx(
|
|
8949
|
-
"button",
|
|
8950
|
-
{
|
|
8951
|
-
type: "button",
|
|
8952
|
-
onClick: () => handleRemoveTag(index3),
|
|
8953
|
-
className: "ml-2 text-xs text-eui-danger-500 hover:text-eui-danger-400",
|
|
8954
|
-
children: /* @__PURE__ */ jsx(FaTimes, { className: "w-3 h-3" })
|
|
8955
|
-
}
|
|
8956
|
-
)
|
|
8957
|
-
]
|
|
8958
|
-
},
|
|
8959
|
-
index3
|
|
8960
|
-
)),
|
|
8961
|
-
field.value.length < limit && /* @__PURE__ */ jsx(
|
|
8962
|
-
"input",
|
|
8963
|
-
{
|
|
8964
|
-
type: "text",
|
|
8965
|
-
value: input,
|
|
8966
|
-
onChange: (e) => setInput(e.target.value),
|
|
8967
|
-
onKeyDown: handleKeyDown,
|
|
8968
|
-
className: "flex-grow min-w-[120px] bg-transparent outline-none eui-text-md text-eui-dark-600 dark:text-eui-light-500 placeholder-eui-dark-200"
|
|
8969
|
-
}
|
|
8970
|
-
)
|
|
8971
|
-
]
|
|
8972
|
-
}
|
|
8973
|
-
),
|
|
8974
|
-
/* @__PURE__ */ jsx(
|
|
8975
|
-
InputLabel,
|
|
8976
|
-
{
|
|
8977
|
-
text: placeholder,
|
|
8978
|
-
className: classNames73(
|
|
8979
|
-
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
8980
|
-
input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
8981
9393
|
)
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
9394
|
+
]
|
|
9395
|
+
}
|
|
9396
|
+
),
|
|
9397
|
+
/* @__PURE__ */ jsx(
|
|
9398
|
+
InputLabel,
|
|
9399
|
+
{
|
|
9400
|
+
disabled,
|
|
9401
|
+
errored: hasError,
|
|
9402
|
+
floating,
|
|
9403
|
+
htmlFor: inputId,
|
|
9404
|
+
text: resolvedLabel,
|
|
9405
|
+
className: labelClassName
|
|
9406
|
+
}
|
|
9407
|
+
),
|
|
8990
9408
|
/* @__PURE__ */ jsx(
|
|
8991
9409
|
InputResponse,
|
|
8992
9410
|
{
|
|
8993
9411
|
name: field.name,
|
|
8994
|
-
visibility:
|
|
8995
|
-
variant: "danger"
|
|
9412
|
+
visibility: hasError,
|
|
9413
|
+
variant: "danger",
|
|
9414
|
+
className: responseClassName
|
|
8996
9415
|
}
|
|
8997
9416
|
)
|
|
8998
9417
|
] });
|
|
8999
9418
|
}
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
placeholder,
|
|
9419
|
+
function useResolvedTextAreaConfig({
|
|
9420
|
+
label,
|
|
9003
9421
|
limit = 1e3,
|
|
9004
|
-
|
|
9005
|
-
shape
|
|
9006
|
-
...props
|
|
9422
|
+
placeholder,
|
|
9423
|
+
shape
|
|
9007
9424
|
}) {
|
|
9008
9425
|
const eui = useEUIConfig();
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9426
|
+
return {
|
|
9427
|
+
label: label ?? placeholder,
|
|
9428
|
+
limit,
|
|
9429
|
+
shape: shape ?? eui?.config?.global?.shape ?? "square"
|
|
9430
|
+
};
|
|
9431
|
+
}
|
|
9432
|
+
function useTextAreaFieldState(props) {
|
|
9433
|
+
const [field, meta, helpers] = useField(props);
|
|
9434
|
+
return {
|
|
9435
|
+
field,
|
|
9436
|
+
helpers,
|
|
9437
|
+
meta
|
|
9438
|
+
};
|
|
9439
|
+
}
|
|
9440
|
+
function getTextAreaCharacterCount(value) {
|
|
9441
|
+
return String(value ?? "").length;
|
|
9442
|
+
}
|
|
9443
|
+
function TextArea(textAreaProps) {
|
|
9444
|
+
const {
|
|
9445
|
+
disabled = false,
|
|
9446
|
+
id: id2,
|
|
9447
|
+
inputClassName,
|
|
9448
|
+
label,
|
|
9449
|
+
labelClassName,
|
|
9450
|
+
limit,
|
|
9451
|
+
placeholder,
|
|
9452
|
+
responseClassName,
|
|
9453
|
+
rows,
|
|
9454
|
+
shape,
|
|
9455
|
+
styles,
|
|
9456
|
+
className,
|
|
9457
|
+
onBlur,
|
|
9458
|
+
onFocus,
|
|
9459
|
+
...props
|
|
9460
|
+
} = textAreaProps;
|
|
9461
|
+
const { field, helpers, meta } = useTextAreaFieldState(textAreaProps);
|
|
9462
|
+
const [focused, setFocused] = useState(false);
|
|
9463
|
+
const {
|
|
9464
|
+
label: resolvedLabel,
|
|
9465
|
+
limit: resolvedLimit,
|
|
9466
|
+
shape: resolvedShape
|
|
9467
|
+
} = useResolvedTextAreaConfig({
|
|
9468
|
+
label,
|
|
9469
|
+
limit,
|
|
9470
|
+
placeholder,
|
|
9471
|
+
shape
|
|
9472
|
+
});
|
|
9473
|
+
const hasError = Boolean(meta.touched && meta.error);
|
|
9474
|
+
const characterCount = getTextAreaCharacterCount(field.value);
|
|
9475
|
+
const floating = focused || characterCount > 0;
|
|
9476
|
+
const inputId = id2 ?? field.name;
|
|
9477
|
+
const handleChange = (event) => {
|
|
9478
|
+
void helpers.setValue(event.target.value);
|
|
9479
|
+
};
|
|
9480
|
+
const handleBlur = (event) => {
|
|
9481
|
+
setFocused(false);
|
|
9482
|
+
void helpers.setTouched(true);
|
|
9483
|
+
field.onBlur(event);
|
|
9484
|
+
onBlur?.(event);
|
|
9485
|
+
};
|
|
9486
|
+
const handleFocus = (event) => {
|
|
9487
|
+
setFocused(true);
|
|
9488
|
+
onFocus?.(event);
|
|
9489
|
+
};
|
|
9490
|
+
return /* @__PURE__ */ jsxs("div", { className: inputRootClassName, children: [
|
|
9491
|
+
/* @__PURE__ */ jsxs(
|
|
9492
|
+
"div",
|
|
9493
|
+
{
|
|
9494
|
+
className: cn(
|
|
9495
|
+
inputFrameClassName,
|
|
9496
|
+
"h-auto min-h-32 px-3",
|
|
9497
|
+
hasError ? inputFrameErrorClassName : focused ? inputFrameActiveClassName : inputFrameIdleClassName,
|
|
9498
|
+
inputShapes[resolvedShape],
|
|
9499
|
+
disabled && inputFrameDisabledClassName,
|
|
9500
|
+
className,
|
|
9501
|
+
styles
|
|
9502
|
+
),
|
|
9503
|
+
children: [
|
|
9504
|
+
/* @__PURE__ */ jsx(
|
|
9505
|
+
Field,
|
|
9506
|
+
{
|
|
9507
|
+
...props,
|
|
9508
|
+
...field,
|
|
9509
|
+
as: "textarea",
|
|
9510
|
+
disabled,
|
|
9511
|
+
id: inputId,
|
|
9512
|
+
maxLength: resolvedLimit,
|
|
9513
|
+
onBlur: handleBlur,
|
|
9514
|
+
onChange: handleChange,
|
|
9515
|
+
onFocus: handleFocus,
|
|
9516
|
+
placeholder: "",
|
|
9517
|
+
rows,
|
|
9518
|
+
value: field.value ?? "",
|
|
9519
|
+
className: cn(
|
|
9520
|
+
inputControlClassName,
|
|
9521
|
+
webInputControlClassName,
|
|
9522
|
+
"block min-h-32 resize-none pb-8",
|
|
9523
|
+
inputClassName
|
|
9524
|
+
)
|
|
9525
|
+
}
|
|
9526
|
+
),
|
|
9527
|
+
/* @__PURE__ */ jsxs("div", { className: "pointer-events-none absolute bottom-3 right-3 text-xs font-semibold text-eui-dark-50", children: [
|
|
9528
|
+
characterCount,
|
|
9529
|
+
"/",
|
|
9530
|
+
resolvedLimit
|
|
9531
|
+
] })
|
|
9532
|
+
]
|
|
9533
|
+
}
|
|
9534
|
+
),
|
|
9535
|
+
/* @__PURE__ */ jsx(
|
|
9536
|
+
InputLabel,
|
|
9537
|
+
{
|
|
9538
|
+
disabled,
|
|
9539
|
+
errored: hasError,
|
|
9540
|
+
floating,
|
|
9541
|
+
htmlFor: inputId,
|
|
9542
|
+
text: resolvedLabel,
|
|
9543
|
+
className: labelClassName
|
|
9544
|
+
}
|
|
9545
|
+
),
|
|
9045
9546
|
/* @__PURE__ */ jsx(
|
|
9046
9547
|
InputResponse,
|
|
9047
9548
|
{
|
|
9048
9549
|
name: field.name,
|
|
9049
|
-
visibility:
|
|
9050
|
-
variant: "danger"
|
|
9550
|
+
visibility: hasError,
|
|
9551
|
+
variant: "danger",
|
|
9552
|
+
className: responseClassName
|
|
9051
9553
|
}
|
|
9052
9554
|
)
|
|
9053
9555
|
] });
|
|
9054
9556
|
}
|
|
9055
|
-
var TextArea_default = TextArea;
|
|
9056
9557
|
function BreadcrumbItem({
|
|
9057
9558
|
title,
|
|
9058
9559
|
href = "#",
|
|
@@ -9064,7 +9565,7 @@ function BreadcrumbItem({
|
|
|
9064
9565
|
{
|
|
9065
9566
|
href,
|
|
9066
9567
|
onClick,
|
|
9067
|
-
className:
|
|
9568
|
+
className: classNames69({
|
|
9068
9569
|
"text-lg font-semibold": true,
|
|
9069
9570
|
"text-gray-400 hover:text-gray-600 cursor-pointer": !active,
|
|
9070
9571
|
"text-eui-light-800": active,
|
|
@@ -9141,7 +9642,7 @@ var Breadcrumb = ({
|
|
|
9141
9642
|
index3 < resolvedData.length - 1 && /* @__PURE__ */ jsx(
|
|
9142
9643
|
"span",
|
|
9143
9644
|
{
|
|
9144
|
-
className:
|
|
9645
|
+
className: classNames69({
|
|
9145
9646
|
"text-lg font-semibold text-gray-500": true,
|
|
9146
9647
|
[`px-${gap}`]: gap
|
|
9147
9648
|
}),
|
|
@@ -9155,7 +9656,7 @@ var Breadcrumb = ({
|
|
|
9155
9656
|
return /* @__PURE__ */ jsx(
|
|
9156
9657
|
"div",
|
|
9157
9658
|
{
|
|
9158
|
-
className:
|
|
9659
|
+
className: classNames69({
|
|
9159
9660
|
"inline-flex": true,
|
|
9160
9661
|
[`${styles}`]: styles
|
|
9161
9662
|
}),
|
|
@@ -9199,7 +9700,7 @@ var Drawer = ({
|
|
|
9199
9700
|
isMobile && showBackdrop && /* @__PURE__ */ jsx(TransitionFade_default, { visibility, leaveDuration: 200, children: /* @__PURE__ */ jsx(
|
|
9200
9701
|
"div",
|
|
9201
9702
|
{
|
|
9202
|
-
className:
|
|
9703
|
+
className: classNames69(
|
|
9203
9704
|
"fixed inset-0 bg-black/50 z-40",
|
|
9204
9705
|
backdropStyles
|
|
9205
9706
|
),
|
|
@@ -9210,7 +9711,7 @@ var Drawer = ({
|
|
|
9210
9711
|
"div",
|
|
9211
9712
|
{
|
|
9212
9713
|
style: drawerStyle,
|
|
9213
|
-
className:
|
|
9714
|
+
className: classNames69(
|
|
9214
9715
|
"fixed shadow-lg z-50",
|
|
9215
9716
|
{
|
|
9216
9717
|
"h-full w-[300px] top-0": isHorizontal && !hasOffset,
|
|
@@ -9239,7 +9740,7 @@ function DrawerToggler({
|
|
|
9239
9740
|
return /* @__PURE__ */ jsx(
|
|
9240
9741
|
"div",
|
|
9241
9742
|
{
|
|
9242
|
-
className:
|
|
9743
|
+
className: classNames69({
|
|
9243
9744
|
"text-xl p-3 cursor-pointer": true,
|
|
9244
9745
|
"transition-all ease-in-out": true,
|
|
9245
9746
|
"text-eui-dark-500 dark:text-eui-secondary-600": !styles,
|
|
@@ -9287,7 +9788,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
9287
9788
|
childrenContent = /* @__PURE__ */ jsx(
|
|
9288
9789
|
"div",
|
|
9289
9790
|
{
|
|
9290
|
-
className:
|
|
9791
|
+
className: classNames69({
|
|
9291
9792
|
"grid w-full": true,
|
|
9292
9793
|
"grid-cols-1": isMobile,
|
|
9293
9794
|
"grid-cols-3": !isMobile,
|
|
@@ -9300,7 +9801,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
9300
9801
|
return /* @__PURE__ */ jsx(
|
|
9301
9802
|
"div",
|
|
9302
9803
|
{
|
|
9303
|
-
className:
|
|
9804
|
+
className: classNames69({
|
|
9304
9805
|
[`${styles}`]: styles
|
|
9305
9806
|
}),
|
|
9306
9807
|
children: childrenContent
|
|
@@ -9341,7 +9842,7 @@ var FooterNavGroup = ({
|
|
|
9341
9842
|
/* @__PURE__ */ jsx(
|
|
9342
9843
|
"div",
|
|
9343
9844
|
{
|
|
9344
|
-
className:
|
|
9845
|
+
className: classNames69({
|
|
9345
9846
|
"": true,
|
|
9346
9847
|
"py-2 font-semibold eui-text-lg": !styles,
|
|
9347
9848
|
[`${styles}`]: styles
|
|
@@ -9386,7 +9887,7 @@ var FooterNavItem = ({
|
|
|
9386
9887
|
"div",
|
|
9387
9888
|
{
|
|
9388
9889
|
onClick: handleNavigation,
|
|
9389
|
-
className:
|
|
9890
|
+
className: classNames69({
|
|
9390
9891
|
"flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
|
|
9391
9892
|
"transition-all duration-200 ease-in-out": true,
|
|
9392
9893
|
"text-sm eui-text-sm": !styles,
|
|
@@ -9415,7 +9916,7 @@ var FooterNavItemTitle = ({
|
|
|
9415
9916
|
return /* @__PURE__ */ jsx(
|
|
9416
9917
|
"div",
|
|
9417
9918
|
{
|
|
9418
|
-
className:
|
|
9919
|
+
className: classNames69({
|
|
9419
9920
|
"": true,
|
|
9420
9921
|
"py-2 font-thin eui-text-md": !styles,
|
|
9421
9922
|
[`${styles}`]: styles
|
|
@@ -9468,7 +9969,7 @@ function HeaderNav({ data = [], styles }) {
|
|
|
9468
9969
|
return /* @__PURE__ */ jsx(
|
|
9469
9970
|
"div",
|
|
9470
9971
|
{
|
|
9471
|
-
className:
|
|
9972
|
+
className: classNames69({
|
|
9472
9973
|
[`${styles}`]: styles
|
|
9473
9974
|
}),
|
|
9474
9975
|
children: childrenContent
|
|
@@ -9530,7 +10031,7 @@ var HeaderNavGroup = ({
|
|
|
9530
10031
|
/* @__PURE__ */ jsxs(
|
|
9531
10032
|
"div",
|
|
9532
10033
|
{
|
|
9533
|
-
className:
|
|
10034
|
+
className: classNames69({
|
|
9534
10035
|
"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
|
|
9535
10036
|
"transition-all duration-300 ease-in-out": true,
|
|
9536
10037
|
"eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
|
|
@@ -9558,7 +10059,7 @@ var HeaderNavGroup = ({
|
|
|
9558
10059
|
children3 && /* @__PURE__ */ jsx(
|
|
9559
10060
|
BsChevronDown,
|
|
9560
10061
|
{
|
|
9561
|
-
className:
|
|
10062
|
+
className: classNames69({
|
|
9562
10063
|
"text-md": true,
|
|
9563
10064
|
"transition-all ease-in-out duration-300": true,
|
|
9564
10065
|
"rotate-180": !collapsed
|
|
@@ -9571,7 +10072,7 @@ var HeaderNavGroup = ({
|
|
|
9571
10072
|
!collapsed && children3 && /* @__PURE__ */ jsx(
|
|
9572
10073
|
"div",
|
|
9573
10074
|
{
|
|
9574
|
-
className:
|
|
10075
|
+
className: classNames69({
|
|
9575
10076
|
"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,
|
|
9576
10077
|
"transition-all duration-300 ease-in-out": true
|
|
9577
10078
|
}),
|
|
@@ -9601,7 +10102,7 @@ var HeaderNavItem = ({
|
|
|
9601
10102
|
"div",
|
|
9602
10103
|
{
|
|
9603
10104
|
onClick: handleNavigation,
|
|
9604
|
-
className:
|
|
10105
|
+
className: classNames69({
|
|
9605
10106
|
"flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
|
|
9606
10107
|
"transition-all duration-200 ease-in-out": true,
|
|
9607
10108
|
"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,
|
|
@@ -9630,7 +10131,7 @@ var HeaderNavItemTitle = ({
|
|
|
9630
10131
|
return /* @__PURE__ */ jsx(
|
|
9631
10132
|
"div",
|
|
9632
10133
|
{
|
|
9633
|
-
className:
|
|
10134
|
+
className: classNames69({
|
|
9634
10135
|
"p-3 font-thin": true,
|
|
9635
10136
|
"eui-text-md": !styles,
|
|
9636
10137
|
[`${styles}`]: styles
|
|
@@ -9670,7 +10171,7 @@ var Link = ({
|
|
|
9670
10171
|
href: href || "#",
|
|
9671
10172
|
target: targets[target],
|
|
9672
10173
|
onClick: handleClick,
|
|
9673
|
-
className:
|
|
10174
|
+
className: classNames69({
|
|
9674
10175
|
[`${textVariants[variant]}`]: variant,
|
|
9675
10176
|
[`${decorations[decoration]}`]: decoration,
|
|
9676
10177
|
"font-bold": bold,
|
|
@@ -12862,7 +13363,7 @@ function Accordion({
|
|
|
12862
13363
|
/* @__PURE__ */ jsxs(
|
|
12863
13364
|
"div",
|
|
12864
13365
|
{
|
|
12865
|
-
className:
|
|
13366
|
+
className: classNames69(
|
|
12866
13367
|
"inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs",
|
|
12867
13368
|
{
|
|
12868
13369
|
"hover:cursor-pointer": toggleOnSummaryClick
|
|
@@ -12883,7 +13384,7 @@ function Accordion({
|
|
|
12883
13384
|
children: /* @__PURE__ */ jsx(
|
|
12884
13385
|
FaCircleChevronDown,
|
|
12885
13386
|
{
|
|
12886
|
-
className:
|
|
13387
|
+
className: classNames69("text-xl transition-transform duration-300", {
|
|
12887
13388
|
"rotate-180": collapse
|
|
12888
13389
|
})
|
|
12889
13390
|
}
|
|
@@ -12897,7 +13398,7 @@ function Accordion({
|
|
|
12897
13398
|
/* @__PURE__ */ jsx(TransitionAccordion_default, { visibility: collapse, children: /* @__PURE__ */ jsx(
|
|
12898
13399
|
"div",
|
|
12899
13400
|
{
|
|
12900
|
-
className:
|
|
13401
|
+
className: classNames69(
|
|
12901
13402
|
"border-t border-t-eui-dark-400/40 eui-text-sm",
|
|
12902
13403
|
{
|
|
12903
13404
|
"p-5": enableChildrenPadding
|
|
@@ -12954,7 +13455,7 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
12954
13455
|
return /* @__PURE__ */ jsxs(
|
|
12955
13456
|
"div",
|
|
12956
13457
|
{
|
|
12957
|
-
className:
|
|
13458
|
+
className: classNames69(
|
|
12958
13459
|
"flex items-start gap-4 p-6 border-b border-white/10",
|
|
12959
13460
|
className
|
|
12960
13461
|
),
|
|
@@ -12970,14 +13471,14 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
12970
13471
|
}
|
|
12971
13472
|
var CardHeader_default = CardHeader;
|
|
12972
13473
|
function CardContent({ children: children3, className }) {
|
|
12973
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
13474
|
+
return /* @__PURE__ */ jsx("div", { className: classNames69("p-6 text-gray-300 text-sm", className), children: children3 });
|
|
12974
13475
|
}
|
|
12975
13476
|
var CardContent_default = CardContent;
|
|
12976
13477
|
function CardFooter({ children: children3, className }) {
|
|
12977
13478
|
return /* @__PURE__ */ jsx(
|
|
12978
13479
|
"div",
|
|
12979
13480
|
{
|
|
12980
|
-
className:
|
|
13481
|
+
className: classNames69(
|
|
12981
13482
|
"flex items-center gap-3 p-5 border-t border-white/10 text-sm text-gray-400",
|
|
12982
13483
|
className
|
|
12983
13484
|
),
|
|
@@ -13019,7 +13520,7 @@ function GradientAnimation({
|
|
|
13019
13520
|
return /* @__PURE__ */ jsx(
|
|
13020
13521
|
"div",
|
|
13021
13522
|
{
|
|
13022
|
-
className:
|
|
13523
|
+
className: classNames69("absolute inset-0"),
|
|
13023
13524
|
style: {
|
|
13024
13525
|
background: `linear-gradient(${cfg.angle}deg, ${cfg.colors?.join(",")})`,
|
|
13025
13526
|
backgroundSize: cfg.backgroundSize,
|
|
@@ -13165,7 +13666,7 @@ function MotionSurface({
|
|
|
13165
13666
|
}) {
|
|
13166
13667
|
const AnimationComponent = animationVariant === "custom" ? CustomAnimation : animationRegistry[animationVariant];
|
|
13167
13668
|
const OverlayComponent = overlay === "custom" ? CustomOverlay : overlayRegistry[overlay];
|
|
13168
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
13669
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames69("relative overflow-hidden", className), children: [
|
|
13169
13670
|
AnimationComponent && /* @__PURE__ */ jsx(AnimationComponent, { config: animationConfig, animated }),
|
|
13170
13671
|
OverlayComponent && /* @__PURE__ */ jsx(OverlayComponent, { config: overlayConfig }),
|
|
13171
13672
|
/* @__PURE__ */ jsx("div", { className: "relative z-10", children: children3 })
|
|
@@ -18236,7 +18737,7 @@ var ThemeSwitch = () => {
|
|
|
18236
18737
|
/* @__PURE__ */ jsx(
|
|
18237
18738
|
"div",
|
|
18238
18739
|
{
|
|
18239
|
-
className:
|
|
18740
|
+
className: classNames69(
|
|
18240
18741
|
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
18241
18742
|
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
18242
18743
|
)
|
|
@@ -30005,7 +30506,7 @@ function Modal({
|
|
|
30005
30506
|
"div",
|
|
30006
30507
|
{
|
|
30007
30508
|
ref: modalRef,
|
|
30008
|
-
className:
|
|
30509
|
+
className: classNames69(
|
|
30009
30510
|
"eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit",
|
|
30010
30511
|
shapes[resolvedShape],
|
|
30011
30512
|
styles
|
|
@@ -30017,7 +30518,7 @@ function Modal({
|
|
|
30017
30518
|
"button",
|
|
30018
30519
|
{
|
|
30019
30520
|
type: "button",
|
|
30020
|
-
className:
|
|
30521
|
+
className: classNames69(
|
|
30021
30522
|
"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast",
|
|
30022
30523
|
"hover:cursor-pointer hover:bg-eui-dark-500"
|
|
30023
30524
|
),
|
|
@@ -30409,7 +30910,7 @@ var ContentArea = forwardRef(
|
|
|
30409
30910
|
"div",
|
|
30410
30911
|
{
|
|
30411
30912
|
ref,
|
|
30412
|
-
className:
|
|
30913
|
+
className: classNames69({
|
|
30413
30914
|
"min-h-screen h-full w-full transition-all duration-[200ms]": true,
|
|
30414
30915
|
"py-3 px-5": !enablePadding,
|
|
30415
30916
|
"py-3 px-5 lg:px-[150px]": enablePadding,
|
|
@@ -30426,7 +30927,7 @@ function FlexCol({ children: children3, gap = 3, styles }) {
|
|
|
30426
30927
|
return /* @__PURE__ */ jsx(
|
|
30427
30928
|
"div",
|
|
30428
30929
|
{
|
|
30429
|
-
className:
|
|
30930
|
+
className: classNames69({
|
|
30430
30931
|
[`flex flex-col gap-${gap}`]: true,
|
|
30431
30932
|
[`${styles}`]: styles
|
|
30432
30933
|
}),
|
|
@@ -30439,7 +30940,7 @@ function FlexRow({ children: children3, gap = 3, styles }) {
|
|
|
30439
30940
|
return /* @__PURE__ */ jsx(
|
|
30440
30941
|
"div",
|
|
30441
30942
|
{
|
|
30442
|
-
className:
|
|
30943
|
+
className: classNames69({
|
|
30443
30944
|
[`flex flex-row gap-${gap}`]: true,
|
|
30444
30945
|
[`${styles}`]: styles
|
|
30445
30946
|
}),
|
|
@@ -30458,7 +30959,7 @@ function Grid({ children: children3, styles }) {
|
|
|
30458
30959
|
return /* @__PURE__ */ jsx(
|
|
30459
30960
|
"div",
|
|
30460
30961
|
{
|
|
30461
|
-
className:
|
|
30962
|
+
className: classNames69({
|
|
30462
30963
|
[`grid`]: true,
|
|
30463
30964
|
[`${styles}`]: styles
|
|
30464
30965
|
}),
|
|
@@ -30475,7 +30976,7 @@ var Layout = ({
|
|
|
30475
30976
|
return /* @__PURE__ */ jsx(
|
|
30476
30977
|
"div",
|
|
30477
30978
|
{
|
|
30478
|
-
className:
|
|
30979
|
+
className: classNames69({
|
|
30479
30980
|
// "flex h-full w-screen bg-gray-100 overflow-auto": true,
|
|
30480
30981
|
"flex bg-eui-light-600": true,
|
|
30481
30982
|
"flex-col": flexDirection === "vertical",
|
|
@@ -30497,7 +30998,7 @@ var Header = ({
|
|
|
30497
30998
|
return /* @__PURE__ */ jsx(
|
|
30498
30999
|
"div",
|
|
30499
31000
|
{
|
|
30500
|
-
className:
|
|
31001
|
+
className: classNames69({
|
|
30501
31002
|
static: position4 === "static",
|
|
30502
31003
|
fixed: position4 === "fixed",
|
|
30503
31004
|
sticky: position4 === "sticky",
|
|
@@ -30532,7 +31033,7 @@ var Content = ({
|
|
|
30532
31033
|
return /* @__PURE__ */ jsx(
|
|
30533
31034
|
"div",
|
|
30534
31035
|
{
|
|
30535
|
-
className:
|
|
31036
|
+
className: classNames69({
|
|
30536
31037
|
"w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
|
|
30537
31038
|
"md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
|
|
30538
31039
|
// Shift when sidebar is open (desktop)
|
|
@@ -30548,7 +31049,7 @@ var Footer = ({ children: children3, styles }) => {
|
|
|
30548
31049
|
return /* @__PURE__ */ jsx(
|
|
30549
31050
|
"div",
|
|
30550
31051
|
{
|
|
30551
|
-
className:
|
|
31052
|
+
className: classNames69({
|
|
30552
31053
|
"bottom-0 w-full h-fit": true,
|
|
30553
31054
|
"border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
|
|
30554
31055
|
[`${styles}`]: styles
|
|
@@ -30736,7 +31237,7 @@ function ShowMore({ text: text10, limit }) {
|
|
|
30736
31237
|
/* @__PURE__ */ jsx(
|
|
30737
31238
|
"div",
|
|
30738
31239
|
{
|
|
30739
|
-
className:
|
|
31240
|
+
className: classNames69({
|
|
30740
31241
|
"text-blue-300 px-1 pb-1 mt-1": true,
|
|
30741
31242
|
"bg-slate-900/70": !showMore,
|
|
30742
31243
|
"bg-gradient-to-t from-slate-900/50 to-transparent": showMore
|
|
@@ -31652,7 +32153,7 @@ function DocumentationPanel({
|
|
|
31652
32153
|
return /* @__PURE__ */ jsx(MarkdownProvider_default, { markdown: value, children: /* @__PURE__ */ jsxs(
|
|
31653
32154
|
"section",
|
|
31654
32155
|
{
|
|
31655
|
-
className:
|
|
32156
|
+
className: classNames69(
|
|
31656
32157
|
"eui-documentation-panel",
|
|
31657
32158
|
"min-h-0 overflow-hidden bg-white text-gray-900",
|
|
31658
32159
|
"dark:bg-gray-950 dark:text-gray-100",
|
|
@@ -31666,7 +32167,7 @@ function DocumentationPanel({
|
|
|
31666
32167
|
/* @__PURE__ */ jsx(
|
|
31667
32168
|
"main",
|
|
31668
32169
|
{
|
|
31669
|
-
className:
|
|
32170
|
+
className: classNames69(
|
|
31670
32171
|
"eui-documentation-panel-viewer",
|
|
31671
32172
|
"documentation-panel-scrollbar min-w-0 overflow-y-auto scroll-smooth",
|
|
31672
32173
|
viewerClassName
|
|
@@ -31674,7 +32175,7 @@ function DocumentationPanel({
|
|
|
31674
32175
|
children: /* @__PURE__ */ jsx(
|
|
31675
32176
|
"div",
|
|
31676
32177
|
{
|
|
31677
|
-
className:
|
|
32178
|
+
className: classNames69(
|
|
31678
32179
|
"mx-auto px-5 py-8 sm:px-6 lg:px-8",
|
|
31679
32180
|
contentMaxWidthClassName,
|
|
31680
32181
|
contentClassName
|
|
@@ -31687,7 +32188,7 @@ function DocumentationPanel({
|
|
|
31687
32188
|
toc ? /* @__PURE__ */ jsx(
|
|
31688
32189
|
"aside",
|
|
31689
32190
|
{
|
|
31690
|
-
className:
|
|
32191
|
+
className: classNames69(
|
|
31691
32192
|
"eui-documentation-panel-toc",
|
|
31692
32193
|
"hidden min-w-0 border-l border-gray-200 bg-white lg:block",
|
|
31693
32194
|
"dark:border-gray-800 dark:bg-gray-950",
|
|
@@ -31696,7 +32197,7 @@ function DocumentationPanel({
|
|
|
31696
32197
|
children: /* @__PURE__ */ jsx(
|
|
31697
32198
|
"div",
|
|
31698
32199
|
{
|
|
31699
|
-
className:
|
|
32200
|
+
className: classNames69(
|
|
31700
32201
|
"documentation-panel-scrollbar h-full overflow-y-auto px-5 py-8"
|
|
31701
32202
|
),
|
|
31702
32203
|
children: /* @__PURE__ */ jsx("div", { className: "sticky top-0", children: /* @__PURE__ */ jsx(MarkdownTOC_default, {}) })
|
|
@@ -31972,7 +32473,7 @@ function BoxNavItem({ icon, name: name2, to, selected, onClick }) {
|
|
|
31972
32473
|
type: "button",
|
|
31973
32474
|
onClick: handleClick,
|
|
31974
32475
|
"aria-current": selected ? "page" : void 0,
|
|
31975
|
-
className:
|
|
32476
|
+
className: classNames69(
|
|
31976
32477
|
"w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
|
|
31977
32478
|
"hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
|
|
31978
32479
|
selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
|
|
@@ -54709,7 +55210,7 @@ function MarkdownHeading({
|
|
|
54709
55210
|
id: id2,
|
|
54710
55211
|
level: typographyLevel,
|
|
54711
55212
|
bold: true,
|
|
54712
|
-
className:
|
|
55213
|
+
className: classNames69(
|
|
54713
55214
|
"eui-markdown-heading group relative scroll-mt-24 font-bold leading-tight text-gray-900 dark:text-gray-100",
|
|
54714
55215
|
HEADING_STYLES[level],
|
|
54715
55216
|
className
|
|
@@ -54872,18 +55373,18 @@ function powerSetPermutations(arr) {
|
|
|
54872
55373
|
}
|
|
54873
55374
|
}
|
|
54874
55375
|
var classNameCombinations = {};
|
|
54875
|
-
function getClassNameCombinations(
|
|
54876
|
-
if (
|
|
54877
|
-
var key =
|
|
55376
|
+
function getClassNameCombinations(classNames73) {
|
|
55377
|
+
if (classNames73.length === 0 || classNames73.length === 1) return classNames73;
|
|
55378
|
+
var key = classNames73.join(".");
|
|
54878
55379
|
if (!classNameCombinations[key]) {
|
|
54879
|
-
classNameCombinations[key] = powerSetPermutations(
|
|
55380
|
+
classNameCombinations[key] = powerSetPermutations(classNames73);
|
|
54880
55381
|
}
|
|
54881
55382
|
return classNameCombinations[key];
|
|
54882
55383
|
}
|
|
54883
|
-
function createStyleObject(
|
|
55384
|
+
function createStyleObject(classNames73) {
|
|
54884
55385
|
var elementStyle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
54885
55386
|
var stylesheet = arguments.length > 2 ? arguments[2] : void 0;
|
|
54886
|
-
var nonTokenClassNames =
|
|
55387
|
+
var nonTokenClassNames = classNames73.filter(function(className) {
|
|
54887
55388
|
return className !== "token";
|
|
54888
55389
|
});
|
|
54889
55390
|
var classNamesCombinations = getClassNameCombinations(nonTokenClassNames);
|
|
@@ -54891,8 +55392,8 @@ function createStyleObject(classNames77) {
|
|
|
54891
55392
|
return _objectSpread(_objectSpread({}, styleObject), stylesheet[className]);
|
|
54892
55393
|
}, elementStyle);
|
|
54893
55394
|
}
|
|
54894
|
-
function createClassNameString(
|
|
54895
|
-
return
|
|
55395
|
+
function createClassNameString(classNames73) {
|
|
55396
|
+
return classNames73.join(" ");
|
|
54896
55397
|
}
|
|
54897
55398
|
function createChildren2(stylesheet, useInlineStyles) {
|
|
54898
55399
|
var childrenCount = 0;
|
|
@@ -55065,8 +55566,8 @@ function flattenCodeTree(tree) {
|
|
|
55065
55566
|
}));
|
|
55066
55567
|
} else if (node2.children) {
|
|
55067
55568
|
var _node$properties;
|
|
55068
|
-
var
|
|
55069
|
-
flattenCodeTree(node2.children,
|
|
55569
|
+
var classNames73 = className.concat(((_node$properties = node2.properties) === null || _node$properties === void 0 ? void 0 : _node$properties.className) || []);
|
|
55570
|
+
flattenCodeTree(node2.children, classNames73).forEach(function(i2) {
|
|
55070
55571
|
return newTree.push(i2);
|
|
55071
55572
|
});
|
|
55072
55573
|
}
|
|
@@ -55730,7 +56231,7 @@ function MarkdownCodeBlock({
|
|
|
55730
56231
|
"div",
|
|
55731
56232
|
{
|
|
55732
56233
|
...props,
|
|
55733
|
-
className:
|
|
56234
|
+
className: classNames69(
|
|
55734
56235
|
"eui-markdown-code my-6 overflow-hidden rounded-md border border-slate-700 bg-[#0d1117] text-slate-300",
|
|
55735
56236
|
className
|
|
55736
56237
|
),
|
|
@@ -55801,7 +56302,7 @@ function MarkdownInlineCode({
|
|
|
55801
56302
|
Code,
|
|
55802
56303
|
{
|
|
55803
56304
|
...props,
|
|
55804
|
-
className:
|
|
56305
|
+
className: classNames69(
|
|
55805
56306
|
"eui-markdown-inline-code whitespace-break-spaces rounded-md border border-gray-300/70 bg-gray-200/60 px-1.5 py-0.5 font-mono text-[0.875em] font-medium text-gray-900 dark:border-gray-600/70 dark:bg-gray-700/50 dark:text-gray-200",
|
|
55806
56307
|
className
|
|
55807
56308
|
),
|
|
@@ -55842,7 +56343,7 @@ function MarkdownLink({
|
|
|
55842
56343
|
href: safeHref,
|
|
55843
56344
|
target: resolvedTarget,
|
|
55844
56345
|
rel,
|
|
55845
|
-
className:
|
|
56346
|
+
className: classNames69(
|
|
55846
56347
|
"eui-markdown-link font-medium text-blue-600 underline underline-offset-4 transition-colors hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300",
|
|
55847
56348
|
className
|
|
55848
56349
|
),
|
|
@@ -55877,7 +56378,7 @@ function MarkdownImage({
|
|
|
55877
56378
|
title,
|
|
55878
56379
|
loading: "lazy",
|
|
55879
56380
|
decoding: "async",
|
|
55880
|
-
className:
|
|
56381
|
+
className: classNames69(
|
|
55881
56382
|
"eui-markdown-image my-6 h-auto max-w-full rounded-md border border-gray-200 dark:border-gray-700",
|
|
55882
56383
|
className
|
|
55883
56384
|
)
|
|
@@ -55894,7 +56395,7 @@ function MarkdownTable({
|
|
|
55894
56395
|
TableElement,
|
|
55895
56396
|
{
|
|
55896
56397
|
...props,
|
|
55897
|
-
className:
|
|
56398
|
+
className: classNames69(
|
|
55898
56399
|
"eui-markdown-table w-full border-collapse text-[0.925rem]",
|
|
55899
56400
|
className
|
|
55900
56401
|
),
|
|
@@ -55911,7 +56412,7 @@ function MarkdownTableCell({
|
|
|
55911
56412
|
TableCell,
|
|
55912
56413
|
{
|
|
55913
56414
|
...props,
|
|
55914
|
-
className:
|
|
56415
|
+
className: classNames69(
|
|
55915
56416
|
"eui-markdown-table-cell border-b border-r border-gray-200 p-3 text-left align-top last:border-r-0 dark:border-gray-700",
|
|
55916
56417
|
className
|
|
55917
56418
|
),
|
|
@@ -55928,7 +56429,7 @@ function MarkdownTableHeaderCell({
|
|
|
55928
56429
|
TableHeaderCell,
|
|
55929
56430
|
{
|
|
55930
56431
|
...props,
|
|
55931
|
-
className:
|
|
56432
|
+
className: classNames69(
|
|
55932
56433
|
"eui-markdown-table-header-cell border-b border-r border-gray-200 p-3 text-left align-top font-bold text-gray-900 last:border-r-0 dark:border-gray-700 dark:text-gray-100",
|
|
55933
56434
|
className
|
|
55934
56435
|
),
|
|
@@ -55944,7 +56445,7 @@ function MarkdownTableHead({
|
|
|
55944
56445
|
TableHead,
|
|
55945
56446
|
{
|
|
55946
56447
|
...props,
|
|
55947
|
-
className:
|
|
56448
|
+
className: classNames69(
|
|
55948
56449
|
"eui-markdown-table-head bg-gray-50 dark:bg-gray-900",
|
|
55949
56450
|
className
|
|
55950
56451
|
)
|
|
@@ -55959,7 +56460,7 @@ function MarkdownTableBody({
|
|
|
55959
56460
|
TableBody,
|
|
55960
56461
|
{
|
|
55961
56462
|
...props,
|
|
55962
|
-
className:
|
|
56463
|
+
className: classNames69("eui-markdown-table-body", className)
|
|
55963
56464
|
}
|
|
55964
56465
|
);
|
|
55965
56466
|
}
|
|
@@ -55971,7 +56472,7 @@ function MarkdownTableRow({
|
|
|
55971
56472
|
TableRow,
|
|
55972
56473
|
{
|
|
55973
56474
|
...props,
|
|
55974
|
-
className:
|
|
56475
|
+
className: classNames69(
|
|
55975
56476
|
"eui-markdown-table-row even:bg-gray-50/70 dark:even:bg-gray-900/60",
|
|
55976
56477
|
className
|
|
55977
56478
|
)
|
|
@@ -55989,7 +56490,7 @@ function MarkdownBlockquote({
|
|
|
55989
56490
|
{
|
|
55990
56491
|
...props,
|
|
55991
56492
|
as: "blockquote",
|
|
55992
|
-
className:
|
|
56493
|
+
className: classNames69(
|
|
55993
56494
|
"eui-markdown-blockquote my-6 border-l-4 border-gray-300 bg-transparent px-4 py-0 text-gray-600 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 dark:border-gray-700 dark:text-gray-400",
|
|
55994
56495
|
className
|
|
55995
56496
|
),
|
|
@@ -56008,7 +56509,7 @@ function MarkdownParagraph({
|
|
|
56008
56509
|
{
|
|
56009
56510
|
...props,
|
|
56010
56511
|
level: 1,
|
|
56011
|
-
className:
|
|
56512
|
+
className: classNames69("eui-markdown-paragraph my-4", className),
|
|
56012
56513
|
children: /* @__PURE__ */ jsx(Fragment, { children: children3 })
|
|
56013
56514
|
}
|
|
56014
56515
|
);
|
|
@@ -56019,7 +56520,7 @@ function MarkdownStrong({ className, ...props }) {
|
|
|
56019
56520
|
"strong",
|
|
56020
56521
|
{
|
|
56021
56522
|
...props,
|
|
56022
|
-
className:
|
|
56523
|
+
className: classNames69(
|
|
56023
56524
|
"eui-markdown-strong font-semibold text-gray-950 dark:text-gray-100",
|
|
56024
56525
|
className
|
|
56025
56526
|
)
|
|
@@ -56032,7 +56533,7 @@ function MarkdownEmphasis({ className, ...props }) {
|
|
|
56032
56533
|
"em",
|
|
56033
56534
|
{
|
|
56034
56535
|
...props,
|
|
56035
|
-
className:
|
|
56536
|
+
className: classNames69("eui-markdown-emphasis italic", className)
|
|
56036
56537
|
}
|
|
56037
56538
|
);
|
|
56038
56539
|
}
|
|
@@ -56045,7 +56546,7 @@ function MarkdownStrikethrough({
|
|
|
56045
56546
|
"del",
|
|
56046
56547
|
{
|
|
56047
56548
|
...props,
|
|
56048
|
-
className:
|
|
56549
|
+
className: classNames69(
|
|
56049
56550
|
"eui-markdown-strikethrough text-gray-500 dark:text-gray-400",
|
|
56050
56551
|
className
|
|
56051
56552
|
)
|
|
@@ -56106,7 +56607,7 @@ function MarkdownTaskCheckbox({
|
|
|
56106
56607
|
"input",
|
|
56107
56608
|
{
|
|
56108
56609
|
...props,
|
|
56109
|
-
className:
|
|
56610
|
+
className: classNames69(
|
|
56110
56611
|
"eui-markdown-task-checkbox mr-2 translate-y-px accent-blue-600",
|
|
56111
56612
|
className
|
|
56112
56613
|
)
|
|
@@ -56122,7 +56623,7 @@ function MarkdownThematicBreak({
|
|
|
56122
56623
|
"hr",
|
|
56123
56624
|
{
|
|
56124
56625
|
...props,
|
|
56125
|
-
className:
|
|
56626
|
+
className: classNames69(
|
|
56126
56627
|
"eui-markdown-thematic-break my-8 border-0 border-t border-gray-200 dark:border-gray-800",
|
|
56127
56628
|
className
|
|
56128
56629
|
)
|
|
@@ -56139,7 +56640,7 @@ function MarkdownDetails({ className, ...props }) {
|
|
|
56139
56640
|
"details",
|
|
56140
56641
|
{
|
|
56141
56642
|
...props,
|
|
56142
|
-
className:
|
|
56643
|
+
className: classNames69(
|
|
56143
56644
|
"eui-markdown-details my-4 rounded-md border border-gray-200 bg-gray-50 px-4 py-3 dark:border-gray-800 dark:bg-gray-900",
|
|
56144
56645
|
className
|
|
56145
56646
|
)
|
|
@@ -56151,7 +56652,7 @@ function MarkdownSummary({ className, ...props }) {
|
|
|
56151
56652
|
"summary",
|
|
56152
56653
|
{
|
|
56153
56654
|
...props,
|
|
56154
|
-
className:
|
|
56655
|
+
className: classNames69(
|
|
56155
56656
|
"eui-markdown-summary cursor-pointer font-semibold text-gray-950 dark:text-gray-100",
|
|
56156
56657
|
className
|
|
56157
56658
|
)
|
|
@@ -56163,7 +56664,7 @@ function MarkdownFigure({ className, ...props }) {
|
|
|
56163
56664
|
"figure",
|
|
56164
56665
|
{
|
|
56165
56666
|
...props,
|
|
56166
|
-
className:
|
|
56667
|
+
className: classNames69("eui-markdown-figure my-6", className)
|
|
56167
56668
|
}
|
|
56168
56669
|
);
|
|
56169
56670
|
}
|
|
@@ -56175,7 +56676,7 @@ function MarkdownFigcaption({
|
|
|
56175
56676
|
return /* @__PURE__ */ jsx("figcaption", { ...props, className: "eui-markdown-figcaption mt-2 text-center", children: /* @__PURE__ */ jsx(
|
|
56176
56677
|
Caption,
|
|
56177
56678
|
{
|
|
56178
|
-
className:
|
|
56679
|
+
className: classNames69(
|
|
56179
56680
|
"text-gray-500 opacity-100 dark:text-gray-400",
|
|
56180
56681
|
className
|
|
56181
56682
|
),
|
|
@@ -56574,14 +57075,14 @@ function MarkdownRenderer({
|
|
|
56574
57075
|
return /* @__PURE__ */ jsx(
|
|
56575
57076
|
"div",
|
|
56576
57077
|
{
|
|
56577
|
-
className:
|
|
57078
|
+
className: classNames69(
|
|
56578
57079
|
"eui-markdown markdown-body break-words bg-transparent text-[0.95rem] leading-7 text-gray-800 dark:text-gray-300",
|
|
56579
57080
|
className
|
|
56580
57081
|
),
|
|
56581
57082
|
children: /* @__PURE__ */ jsx(
|
|
56582
57083
|
"div",
|
|
56583
57084
|
{
|
|
56584
|
-
className:
|
|
57085
|
+
className: classNames69(
|
|
56585
57086
|
"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0",
|
|
56586
57087
|
contentClassName
|
|
56587
57088
|
),
|
|
@@ -56659,11 +57160,11 @@ function MarkdownTOCItem({
|
|
|
56659
57160
|
onClick: () => onSelect?.(heading3),
|
|
56660
57161
|
"aria-current": active ? "location" : void 0,
|
|
56661
57162
|
title: label,
|
|
56662
|
-
className:
|
|
57163
|
+
className: classNames69(
|
|
56663
57164
|
"eui-markdown-toc-item",
|
|
56664
57165
|
"block w-full text-left text-sm transition-all ease-in-out duration-150",
|
|
56665
57166
|
"hover:text-primary",
|
|
56666
|
-
active ?
|
|
57167
|
+
active ? classNames69("text-primary font-semibold underline", activeClassName) : classNames69("text-gray-500 dark:text-gray-400", inactiveClassName),
|
|
56667
57168
|
className
|
|
56668
57169
|
),
|
|
56669
57170
|
style: {
|
|
@@ -56729,7 +57230,7 @@ function MarkdownTOC({
|
|
|
56729
57230
|
return emptyState ? /* @__PURE__ */ jsx(
|
|
56730
57231
|
"div",
|
|
56731
57232
|
{
|
|
56732
|
-
className:
|
|
57233
|
+
className: classNames69(
|
|
56733
57234
|
"eui-markdown-toc",
|
|
56734
57235
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
56735
57236
|
className
|
|
@@ -56749,7 +57250,7 @@ function MarkdownTOC({
|
|
|
56749
57250
|
{
|
|
56750
57251
|
type: "button",
|
|
56751
57252
|
onClick: () => setCollapsed((value) => !value),
|
|
56752
|
-
className:
|
|
57253
|
+
className: classNames69(
|
|
56753
57254
|
"eui-markdown-toc-title",
|
|
56754
57255
|
"flex w-full items-center justify-between gap-2 text-left",
|
|
56755
57256
|
"text-sm font-semibold uppercase tracking-wide",
|
|
@@ -56762,7 +57263,7 @@ function MarkdownTOC({
|
|
|
56762
57263
|
/* @__PURE__ */ jsx(
|
|
56763
57264
|
"span",
|
|
56764
57265
|
{
|
|
56765
|
-
className:
|
|
57266
|
+
className: classNames69(
|
|
56766
57267
|
"text-xs opacity-60 transition-transform duration-150",
|
|
56767
57268
|
!collapsed && "rotate-90"
|
|
56768
57269
|
),
|
|
@@ -56775,7 +57276,7 @@ function MarkdownTOC({
|
|
|
56775
57276
|
) : /* @__PURE__ */ jsx(
|
|
56776
57277
|
"h2",
|
|
56777
57278
|
{
|
|
56778
|
-
className:
|
|
57279
|
+
className: classNames69(
|
|
56779
57280
|
"eui-markdown-toc-title",
|
|
56780
57281
|
"text-sm font-semibold uppercase tracking-wide",
|
|
56781
57282
|
"text-gray-900 dark:text-gray-100",
|
|
@@ -56787,7 +57288,7 @@ function MarkdownTOC({
|
|
|
56787
57288
|
!collapsed ? /* @__PURE__ */ jsx(
|
|
56788
57289
|
"nav",
|
|
56789
57290
|
{
|
|
56790
|
-
className:
|
|
57291
|
+
className: classNames69(
|
|
56791
57292
|
"eui-markdown-toc-list",
|
|
56792
57293
|
"space-y-1",
|
|
56793
57294
|
listClassName
|
|
@@ -56811,7 +57312,7 @@ function MarkdownTOC({
|
|
|
56811
57312
|
}
|
|
56812
57313
|
) : null
|
|
56813
57314
|
] });
|
|
56814
|
-
return /* @__PURE__ */ jsx("aside", { className:
|
|
57315
|
+
return /* @__PURE__ */ jsx("aside", { className: classNames69("eui-markdown-toc", "space-y-4", className), children: content3 });
|
|
56815
57316
|
}
|
|
56816
57317
|
var MarkdownTOC_default = MarkdownTOC;
|
|
56817
57318
|
var DEFAULT_MARKDOWN_TOOLBAR_ACTIONS = [
|
|
@@ -56910,7 +57411,7 @@ function MarkdownToolbar({
|
|
|
56910
57411
|
return /* @__PURE__ */ jsxs(
|
|
56911
57412
|
"div",
|
|
56912
57413
|
{
|
|
56913
|
-
className:
|
|
57414
|
+
className: classNames69(
|
|
56914
57415
|
"eui-markdown-toolbar",
|
|
56915
57416
|
"flex flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 p-2",
|
|
56916
57417
|
"dark:border-gray-700 dark:bg-gray-900",
|
|
@@ -56924,7 +57425,7 @@ function MarkdownToolbar({
|
|
|
56924
57425
|
disabled: disabled || actionsDisabled,
|
|
56925
57426
|
title: action.shortcut ? `${action.title || action.label} (${action.shortcut})` : action.title || action.label,
|
|
56926
57427
|
onClick: () => onAction?.(action.id),
|
|
56927
|
-
className:
|
|
57428
|
+
className: classNames69(
|
|
56928
57429
|
"eui-markdown-toolbar-button",
|
|
56929
57430
|
"inline-flex items-center justify-center rounded border border-transparent",
|
|
56930
57431
|
"text-gray-700 transition-colors hover:border-gray-300 hover:bg-white",
|
|
@@ -56944,7 +57445,7 @@ function MarkdownToolbar({
|
|
|
56944
57445
|
disabled,
|
|
56945
57446
|
onClick: onViewModeToggle,
|
|
56946
57447
|
title: isPreviewMode ? "Switch to Markdown syntax" : "Switch to preview",
|
|
56947
|
-
className:
|
|
57448
|
+
className: classNames69(
|
|
56948
57449
|
"eui-markdown-view-toggle",
|
|
56949
57450
|
"inline-flex items-center justify-center rounded border font-medium transition-colors",
|
|
56950
57451
|
"border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -57201,7 +57702,7 @@ function MarkdownSourceEditor({
|
|
|
57201
57702
|
return /* @__PURE__ */ jsxs(
|
|
57202
57703
|
"div",
|
|
57203
57704
|
{
|
|
57204
|
-
className:
|
|
57705
|
+
className: classNames69(
|
|
57205
57706
|
"eui-markdown-editor",
|
|
57206
57707
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
57207
57708
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -57217,7 +57718,7 @@ function MarkdownSourceEditor({
|
|
|
57217
57718
|
actionsDisabled: readOnly,
|
|
57218
57719
|
viewMode: currentViewMode,
|
|
57219
57720
|
showViewModeToggle,
|
|
57220
|
-
className:
|
|
57721
|
+
className: classNames69(toolbarClassName, toolbarProps?.className),
|
|
57221
57722
|
onViewModeToggle: toggleViewMode,
|
|
57222
57723
|
onAction: handleToolbarAction
|
|
57223
57724
|
}
|
|
@@ -57225,7 +57726,7 @@ function MarkdownSourceEditor({
|
|
|
57225
57726
|
currentViewMode === "preview" ? /* @__PURE__ */ jsx(
|
|
57226
57727
|
"div",
|
|
57227
57728
|
{
|
|
57228
|
-
className:
|
|
57729
|
+
className: classNames69(
|
|
57229
57730
|
"eui-markdown-editor-preview",
|
|
57230
57731
|
"min-h-[260px] p-4",
|
|
57231
57732
|
previewClassName
|
|
@@ -57248,7 +57749,7 @@ function MarkdownSourceEditor({
|
|
|
57248
57749
|
onChange: (event) => updateValue(event.target.value),
|
|
57249
57750
|
onBlur,
|
|
57250
57751
|
onKeyDown: handleKeyDown,
|
|
57251
|
-
className:
|
|
57752
|
+
className: classNames69(
|
|
57252
57753
|
"eui-markdown-source-textarea",
|
|
57253
57754
|
"block w-full resize-y border-0 bg-transparent p-4 font-mono text-sm leading-7",
|
|
57254
57755
|
"text-gray-900 outline-none placeholder:text-gray-400",
|
|
@@ -57278,7 +57779,7 @@ function MarkdownPreviewPane({
|
|
|
57278
57779
|
return /* @__PURE__ */ jsx(
|
|
57279
57780
|
"div",
|
|
57280
57781
|
{
|
|
57281
|
-
className:
|
|
57782
|
+
className: classNames69(
|
|
57282
57783
|
"eui-markdown-preview-pane",
|
|
57283
57784
|
"rounded border border-gray-300 bg-white p-4",
|
|
57284
57785
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -57328,7 +57829,7 @@ function MarkdownSplitEditor({
|
|
|
57328
57829
|
return /* @__PURE__ */ jsxs(
|
|
57329
57830
|
"div",
|
|
57330
57831
|
{
|
|
57331
|
-
className:
|
|
57832
|
+
className: classNames69(
|
|
57332
57833
|
"eui-markdown-split-editor",
|
|
57333
57834
|
"grid gap-4",
|
|
57334
57835
|
isHorizontal ? "grid-cols-1 lg:grid-cols-2" : "grid-cols-1",
|
|
@@ -57338,7 +57839,7 @@ function MarkdownSplitEditor({
|
|
|
57338
57839
|
/* @__PURE__ */ jsxs(
|
|
57339
57840
|
"div",
|
|
57340
57841
|
{
|
|
57341
|
-
className:
|
|
57842
|
+
className: classNames69(
|
|
57342
57843
|
"eui-markdown-split-source",
|
|
57343
57844
|
"min-w-0 space-y-2",
|
|
57344
57845
|
sourceWrapperClassName
|
|
@@ -57362,7 +57863,7 @@ function MarkdownSplitEditor({
|
|
|
57362
57863
|
/* @__PURE__ */ jsxs(
|
|
57363
57864
|
"div",
|
|
57364
57865
|
{
|
|
57365
|
-
className:
|
|
57866
|
+
className: classNames69(
|
|
57366
57867
|
"eui-markdown-split-preview",
|
|
57367
57868
|
"min-w-0 space-y-2",
|
|
57368
57869
|
previewWrapperClassName
|
|
@@ -57452,7 +57953,7 @@ function MarkdownField({
|
|
|
57452
57953
|
return /* @__PURE__ */ jsxs(
|
|
57453
57954
|
"div",
|
|
57454
57955
|
{
|
|
57455
|
-
className:
|
|
57956
|
+
className: classNames69(
|
|
57456
57957
|
"eui-markdown-field",
|
|
57457
57958
|
"relative space-y-2",
|
|
57458
57959
|
wrapperClassName
|
|
@@ -57462,7 +57963,7 @@ function MarkdownField({
|
|
|
57462
57963
|
"label",
|
|
57463
57964
|
{
|
|
57464
57965
|
htmlFor: editorProps.id || field.name,
|
|
57465
|
-
className:
|
|
57966
|
+
className: classNames69(
|
|
57466
57967
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
57467
57968
|
labelClassName
|
|
57468
57969
|
),
|
|
@@ -57487,7 +57988,7 @@ function MarkdownField({
|
|
|
57487
57988
|
helperText && !hasError ? /* @__PURE__ */ jsx(
|
|
57488
57989
|
"p",
|
|
57489
57990
|
{
|
|
57490
|
-
className:
|
|
57991
|
+
className: classNames69(
|
|
57491
57992
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
57492
57993
|
helperTextClassName
|
|
57493
57994
|
),
|
|
@@ -57542,7 +58043,7 @@ function CodeMirrorMarkdownEditor({
|
|
|
57542
58043
|
{
|
|
57543
58044
|
id: id2,
|
|
57544
58045
|
"data-name": name2,
|
|
57545
|
-
className:
|
|
58046
|
+
className: classNames69(
|
|
57546
58047
|
"eui-markdown-adapter",
|
|
57547
58048
|
"eui-markdown-codemirror-adapter",
|
|
57548
58049
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
@@ -57576,7 +58077,7 @@ function CodeMirrorMarkdownEditor({
|
|
|
57576
58077
|
closeBrackets: true,
|
|
57577
58078
|
bracketMatching: true
|
|
57578
58079
|
},
|
|
57579
|
-
className:
|
|
58080
|
+
className: classNames69("eui-markdown-codemirror", editorClassName),
|
|
57580
58081
|
onChange: updateValue,
|
|
57581
58082
|
onBlur
|
|
57582
58083
|
}
|
|
@@ -57648,9 +58149,14 @@ function createDefaultPlugins({
|
|
|
57648
58149
|
defaultCodeBlockLanguage,
|
|
57649
58150
|
codeMirrorOptions,
|
|
57650
58151
|
imageOptions,
|
|
57651
|
-
linkDialogOptions
|
|
58152
|
+
linkDialogOptions,
|
|
58153
|
+
dark
|
|
57652
58154
|
}) {
|
|
57653
58155
|
const codeBlockLanguages = codeMirrorOptions?.codeBlockLanguages ?? DEFAULT_CODE_BLOCK_LANGUAGES;
|
|
58156
|
+
const codeMirrorExtensions = [
|
|
58157
|
+
...dark ? [oneDark] : [],
|
|
58158
|
+
...codeMirrorOptions?.codeMirrorExtensions ?? []
|
|
58159
|
+
];
|
|
57654
58160
|
return [
|
|
57655
58161
|
headingsPlugin(),
|
|
57656
58162
|
listsPlugin(),
|
|
@@ -57666,12 +58172,13 @@ function createDefaultPlugins({
|
|
|
57666
58172
|
}),
|
|
57667
58173
|
codeMirrorPlugin({
|
|
57668
58174
|
...codeMirrorOptions,
|
|
57669
|
-
codeBlockLanguages
|
|
58175
|
+
codeBlockLanguages,
|
|
58176
|
+
...codeMirrorExtensions.length > 0 ? { codeMirrorExtensions } : {}
|
|
57670
58177
|
}),
|
|
57671
58178
|
...showToolbar ? [
|
|
57672
58179
|
toolbarPlugin({
|
|
57673
58180
|
toolbarContents: toolbarContents ?? DefaultToolbar,
|
|
57674
|
-
toolbarClassName:
|
|
58181
|
+
toolbarClassName: classNames69(
|
|
57675
58182
|
"eui-markdown-mdx-toolbar",
|
|
57676
58183
|
toolbarClassName
|
|
57677
58184
|
),
|
|
@@ -57724,11 +58231,13 @@ var MDXMarkdownEditor = forwardRef(
|
|
|
57724
58231
|
defaultCodeBlockLanguage,
|
|
57725
58232
|
codeMirrorOptions,
|
|
57726
58233
|
imageOptions,
|
|
57727
|
-
linkDialogOptions
|
|
58234
|
+
linkDialogOptions,
|
|
58235
|
+
dark
|
|
57728
58236
|
}),
|
|
57729
58237
|
[
|
|
57730
58238
|
codeMirrorOptions,
|
|
57731
58239
|
defaultCodeBlockLanguage,
|
|
58240
|
+
dark,
|
|
57732
58241
|
imageOptions,
|
|
57733
58242
|
linkDialogOptions,
|
|
57734
58243
|
showToolbar,
|
|
@@ -57787,8 +58296,9 @@ var MDXMarkdownEditor = forwardRef(
|
|
|
57787
58296
|
"aria-readonly": readOnly || void 0,
|
|
57788
58297
|
"aria-required": required || void 0,
|
|
57789
58298
|
"aria-invalid": invalid || void 0,
|
|
58299
|
+
"data-theme": dark ? "dark" : void 0,
|
|
57790
58300
|
onBlurCapture: handleBlur,
|
|
57791
|
-
className:
|
|
58301
|
+
className: classNames69(
|
|
57792
58302
|
"eui-markdown-adapter",
|
|
57793
58303
|
"eui-markdown-mdx-adapter",
|
|
57794
58304
|
dark && ["dark", "dark-theme"],
|
|
@@ -57806,8 +58316,12 @@ var MDXMarkdownEditor = forwardRef(
|
|
|
57806
58316
|
markdown: currentValue ?? "",
|
|
57807
58317
|
readOnly: disabled || readOnly,
|
|
57808
58318
|
plugins: plugins ?? defaultPlugins,
|
|
57809
|
-
className:
|
|
57810
|
-
|
|
58319
|
+
className: classNames69(
|
|
58320
|
+
"eui-markdown-mdx-editor",
|
|
58321
|
+
dark && ["dark", "dark-theme"],
|
|
58322
|
+
editorClassName
|
|
58323
|
+
),
|
|
58324
|
+
contentEditableClassName: classNames69(
|
|
57811
58325
|
"eui-markdown-mdx-content",
|
|
57812
58326
|
contentEditableClassName
|
|
57813
58327
|
),
|
|
@@ -57844,7 +58358,7 @@ function MDXMarkdownField({
|
|
|
57844
58358
|
return /* @__PURE__ */ jsxs(
|
|
57845
58359
|
"div",
|
|
57846
58360
|
{
|
|
57847
|
-
className:
|
|
58361
|
+
className: classNames69(
|
|
57848
58362
|
"eui-markdown-mdx-field",
|
|
57849
58363
|
"relative space-y-2",
|
|
57850
58364
|
wrapperClassName
|
|
@@ -57854,7 +58368,7 @@ function MDXMarkdownField({
|
|
|
57854
58368
|
"label",
|
|
57855
58369
|
{
|
|
57856
58370
|
htmlFor: editorId,
|
|
57857
|
-
className:
|
|
58371
|
+
className: classNames69(
|
|
57858
58372
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
57859
58373
|
labelClassName
|
|
57860
58374
|
),
|
|
@@ -57888,7 +58402,7 @@ function MDXMarkdownField({
|
|
|
57888
58402
|
"p",
|
|
57889
58403
|
{
|
|
57890
58404
|
id: helperId,
|
|
57891
|
-
className:
|
|
58405
|
+
className: classNames69(
|
|
57892
58406
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
57893
58407
|
helperTextClassName
|
|
57894
58408
|
),
|
|
@@ -57948,10 +58462,10 @@ function MarkdownLayout({
|
|
|
57948
58462
|
};
|
|
57949
58463
|
const hasLeftToc = hasToc && tocPosition === "left";
|
|
57950
58464
|
const hasRightToc = hasToc && tocPosition === "right";
|
|
57951
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
58465
|
+
return /* @__PURE__ */ jsx("div", { className: classNames69("eui-markdown-layout", "w-full", className), children: /* @__PURE__ */ jsxs(
|
|
57952
58466
|
"div",
|
|
57953
58467
|
{
|
|
57954
|
-
className:
|
|
58468
|
+
className: classNames69(
|
|
57955
58469
|
"eui-markdown-layout-container",
|
|
57956
58470
|
"mx-auto w-full px-4 sm:px-6 lg:px-8",
|
|
57957
58471
|
containerClassName
|
|
@@ -57963,7 +58477,7 @@ function MarkdownLayout({
|
|
|
57963
58477
|
header ? /* @__PURE__ */ jsx(
|
|
57964
58478
|
"header",
|
|
57965
58479
|
{
|
|
57966
|
-
className:
|
|
58480
|
+
className: classNames69(
|
|
57967
58481
|
"eui-markdown-layout-header",
|
|
57968
58482
|
"mb-8",
|
|
57969
58483
|
headerClassName
|
|
@@ -57974,7 +58488,7 @@ function MarkdownLayout({
|
|
|
57974
58488
|
/* @__PURE__ */ jsxs(
|
|
57975
58489
|
"div",
|
|
57976
58490
|
{
|
|
57977
|
-
className:
|
|
58491
|
+
className: classNames69(
|
|
57978
58492
|
"eui-markdown-layout-grid",
|
|
57979
58493
|
"grid grid-cols-1 gap-8",
|
|
57980
58494
|
hasSidebar && hasToc && "xl:grid-cols-[16rem_minmax(0,1fr)_18rem]",
|
|
@@ -57987,7 +58501,7 @@ function MarkdownLayout({
|
|
|
57987
58501
|
hasSidebar ? /* @__PURE__ */ jsx(
|
|
57988
58502
|
"aside",
|
|
57989
58503
|
{
|
|
57990
|
-
className:
|
|
58504
|
+
className: classNames69(
|
|
57991
58505
|
"eui-markdown-layout-sidebar",
|
|
57992
58506
|
"min-w-0",
|
|
57993
58507
|
stickySidebar && "lg:sticky lg:self-start",
|
|
@@ -58000,7 +58514,7 @@ function MarkdownLayout({
|
|
|
58000
58514
|
hasLeftToc ? /* @__PURE__ */ jsx(
|
|
58001
58515
|
"aside",
|
|
58002
58516
|
{
|
|
58003
|
-
className:
|
|
58517
|
+
className: classNames69(
|
|
58004
58518
|
"eui-markdown-layout-toc",
|
|
58005
58519
|
"min-w-0",
|
|
58006
58520
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -58013,7 +58527,7 @@ function MarkdownLayout({
|
|
|
58013
58527
|
/* @__PURE__ */ jsx(
|
|
58014
58528
|
"main",
|
|
58015
58529
|
{
|
|
58016
|
-
className:
|
|
58530
|
+
className: classNames69(
|
|
58017
58531
|
"eui-markdown-layout-content",
|
|
58018
58532
|
"min-w-0",
|
|
58019
58533
|
contentClassName
|
|
@@ -58024,7 +58538,7 @@ function MarkdownLayout({
|
|
|
58024
58538
|
hasRightToc ? /* @__PURE__ */ jsx(
|
|
58025
58539
|
"aside",
|
|
58026
58540
|
{
|
|
58027
|
-
className:
|
|
58541
|
+
className: classNames69(
|
|
58028
58542
|
"eui-markdown-layout-toc",
|
|
58029
58543
|
"min-w-0",
|
|
58030
58544
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -58037,7 +58551,7 @@ function MarkdownLayout({
|
|
|
58037
58551
|
hasAside ? /* @__PURE__ */ jsx(
|
|
58038
58552
|
"aside",
|
|
58039
58553
|
{
|
|
58040
|
-
className:
|
|
58554
|
+
className: classNames69(
|
|
58041
58555
|
"eui-markdown-layout-aside",
|
|
58042
58556
|
"min-w-0",
|
|
58043
58557
|
stickyAside && "2xl:sticky 2xl:self-start",
|
|
@@ -58053,7 +58567,7 @@ function MarkdownLayout({
|
|
|
58053
58567
|
footer2 ? /* @__PURE__ */ jsx(
|
|
58054
58568
|
"footer",
|
|
58055
58569
|
{
|
|
58056
|
-
className:
|
|
58570
|
+
className: classNames69(
|
|
58057
58571
|
"eui-markdown-layout-footer",
|
|
58058
58572
|
"mt-10",
|
|
58059
58573
|
footerClassName
|
|
@@ -58090,7 +58604,7 @@ function MarkdownDocsLayoutContent({
|
|
|
58090
58604
|
const resolvedHeader = header ?? (title || description || headerActions ? /* @__PURE__ */ jsx(
|
|
58091
58605
|
"div",
|
|
58092
58606
|
{
|
|
58093
|
-
className:
|
|
58607
|
+
className: classNames69(
|
|
58094
58608
|
"eui-markdown-docs-header",
|
|
58095
58609
|
"flex flex-col gap-4 border-b border-gray-200 pb-6",
|
|
58096
58610
|
"dark:border-gray-700",
|
|
@@ -58101,7 +58615,7 @@ function MarkdownDocsLayoutContent({
|
|
|
58101
58615
|
title ? /* @__PURE__ */ jsx(
|
|
58102
58616
|
"h1",
|
|
58103
58617
|
{
|
|
58104
|
-
className:
|
|
58618
|
+
className: classNames69(
|
|
58105
58619
|
"eui-markdown-docs-title",
|
|
58106
58620
|
"text-3xl font-bold tracking-tight text-gray-950",
|
|
58107
58621
|
"dark:text-gray-50",
|
|
@@ -58113,7 +58627,7 @@ function MarkdownDocsLayoutContent({
|
|
|
58113
58627
|
description ? /* @__PURE__ */ jsx(
|
|
58114
58628
|
"div",
|
|
58115
58629
|
{
|
|
58116
|
-
className:
|
|
58630
|
+
className: classNames69(
|
|
58117
58631
|
"eui-markdown-docs-description",
|
|
58118
58632
|
"max-w-3xl text-base leading-7 text-gray-600",
|
|
58119
58633
|
"dark:text-gray-400",
|
|
@@ -58201,7 +58715,7 @@ function GenericLayout({
|
|
|
58201
58715
|
return /* @__PURE__ */ jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsx(
|
|
58202
58716
|
"div",
|
|
58203
58717
|
{
|
|
58204
|
-
className:
|
|
58718
|
+
className: classNames69({
|
|
58205
58719
|
[`${styles}`]: styles
|
|
58206
58720
|
}),
|
|
58207
58721
|
children: children3
|
|
@@ -58250,7 +58764,7 @@ function SidemenuLayout({ data, children: children3 }) {
|
|
|
58250
58764
|
return /* @__PURE__ */ jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxs(
|
|
58251
58765
|
"div",
|
|
58252
58766
|
{
|
|
58253
|
-
className:
|
|
58767
|
+
className: classNames69({
|
|
58254
58768
|
grid: true,
|
|
58255
58769
|
"grid-cols-7 gap-10": !isMobile,
|
|
58256
58770
|
"grid-cols-1 gap-": isMobile
|
|
@@ -58330,6 +58844,6 @@ function ScrollToTop({
|
|
|
58330
58844
|
}
|
|
58331
58845
|
var ScrollToTop_default = ScrollToTop;
|
|
58332
58846
|
|
|
58333
|
-
export { Accordion_default as Accordion, AnalyticsContext, AnalyticsProvider, 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, Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, Button_web_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_HEIGHT, CHART_DEFAULT_HORIZONTAL_BAR_RADIUS, 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, ChartPlotFrame, ChartProvider, ChartToolbar, ChartTooltip, Checkbox, Chip, CloudinaryImage2 as CloudinaryImage, CloudinaryProvider, CloudinaryVideo, Code, CodeMirrorMarkdownEditor_default as CodeMirrorMarkdownEditor, CommentThread_default as CommentThread, ConfigBootstrap_default as ConfigBootstrap, Configurator, ConfiguratorError, Content, ContentArea_default as ContentArea, CookieBanner, CookiePreferencesModal, DEFAULT_ANALYTICS_CONFIG, DEFAULT_COOKIE_CATEGORIES, DEFAULT_REVIEW_THREAD_CONFIG, DataView2 as DataView, DataViewContent, DataViewFilterGroup, DataViewFooter, DataViewHeader, DataViewPageSize, DataViewPagination, DataViewProvider, DataViewSearch, DataViewSidebar, DataViewSort, DataViewTable_default as DataViewTable,
|
|
58847
|
+
export { Accordion_default as Accordion, AnalyticsContext, AnalyticsProvider, 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, Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, Button_web_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_HEIGHT, CHART_DEFAULT_HORIZONTAL_BAR_RADIUS, 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, ChartPlotFrame, ChartProvider, ChartToolbar, ChartTooltip, Checkbox, Chip, CloudinaryImage2 as CloudinaryImage, CloudinaryProvider, CloudinaryVideo, Code, CodeMirrorMarkdownEditor_default as CodeMirrorMarkdownEditor, CommentThread_default as CommentThread, ConfigBootstrap_default as ConfigBootstrap, Configurator, ConfiguratorError, Content, ContentArea_default as ContentArea, CookieBanner, CookiePreferencesModal, DEFAULT_ANALYTICS_CONFIG, DEFAULT_COOKIE_CATEGORIES, DEFAULT_REVIEW_THREAD_CONFIG, DataView2 as DataView, DataViewContent, DataViewFilterGroup, DataViewFooter, DataViewHeader, DataViewPageSize, DataViewPagination, DataViewProvider, DataViewSearch, DataViewSidebar, DataViewSort, DataViewTable_default as DataViewTable, DateSelector, DefaultLayout_default as DefaultLayout, Display, DocumentationPanel_default as DocumentationPanel, Drawer, DrawerToggler_default as DrawerToggler, EUIDevLayout_default as EUIDevLayout, EUIProvider, EUI_ANALYTICS_ANONYMOUS_ID_STORAGE_KEY, EUI_ANALYTICS_CONSENT_STORAGE_KEY, EUI_ANALYTICS_QUEUE_STORAGE_KEY, 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, 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_web_default as ImageInput, ImageView, InfiniteScrollTrigger_default as InfiniteScrollTrigger, Info, Input, InputFile, InputLabel, InputList, InputListGroup, InputResponse, Label, Layout, Lead, LinePlot, Link, List, ListItem, ListItemElement, ListRoot, MDXMarkdownEditor_default as MDXMarkdownEditor, MDXMarkdownField_default as MDXMarkdownField, MarkdownBlockquote_default as MarkdownBlockquote, MarkdownBreak_default as MarkdownBreak, MarkdownCodeBlock_default as MarkdownCodeBlock, MarkdownContext, MarkdownDetails, MarkdownDocsLayout_default as MarkdownDocsLayout, MarkdownEditor_default as MarkdownEditor, MarkdownEmphasis_default as MarkdownEmphasis, MarkdownField_default as MarkdownField, MarkdownFigcaption, MarkdownFigure, MarkdownHeading_default as MarkdownHeadingComponent, MarkdownImage_default as MarkdownImage, MarkdownInlineCode_default as MarkdownInlineCode, MarkdownLayout_default as MarkdownLayout, MarkdownLink_default as MarkdownLink, MarkdownListItem_default as MarkdownListItem, MarkdownOrderedList, MarkdownParagraph_default as MarkdownParagraph, MarkdownPreviewPane_default as MarkdownPreviewPane, MarkdownProvider_default as MarkdownProvider, MarkdownRenderer_default as MarkdownRenderer, MarkdownSourceEditor_default as MarkdownSourceEditor, MarkdownSplitEditor_default as MarkdownSplitEditor, MarkdownStrikethrough_default as MarkdownStrikethrough, MarkdownStrong_default as MarkdownStrong, MarkdownSummary, MarkdownTOC_default as MarkdownTOC, MarkdownTOCItem_default as MarkdownTOCItem, MarkdownTable_default as MarkdownTable, MarkdownTableBody, MarkdownTableCell, MarkdownTableHead, MarkdownTableHeaderCell, MarkdownTableRow, MarkdownTaskCheckbox_default as MarkdownTaskCheckbox, MarkdownThematicBreak_default as MarkdownThematicBreak, MarkdownToolbar_default as MarkdownToolbar, MarkdownUnorderedList, MarkdownViewer_default as MarkdownViewer, Menu, MenuGroup, MenuItem, MenuItemTitle, Modal_default as Modal, MotionSurface_default as MotionSurface, MultiImageInput_web_default as MultiImageInput, NumericRating, Overline, Paragraph, PiePlot, PollingChartDataSource, PreviewSwitch, PriceTag, ProgressBar, ProgressBarRating, Quote, Radio_default as Radio, RealtimeChartDataSource, ReviewThread_default as ReviewThread, RouteTab_default as RouteTab, RouteTabs_default as RouteTabs, ScatterPlot, ScrollToTop_default as ScrollToTop, Section, Select, ShapeSwitch, ShowMore_default as ShowMore, Sidebar_default as Sidebar, SidebarLayout_default as SidebarLayout, SidemenuLayout_default as SidemenuLayout, Skeleton, Slider_default as Slider, Spinner, StarRating, StarRatingDistribution_default as StarRatingDistribution, StarRatingInput_default as StarRatingInput, StatPlot, StaticChartDataSource, Switch_default as Switch, TNDropdown, TNDropdownItem, TNDropdownTitle, TNGroup, Table, TableBody, TableCell, TableElement, TableFrame, TableHead, TableHeaderCell, TableRow, Tag, Tags, TextArea, ThemeContext, ThemeProvider, ThemeSelect, 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, WorldMap, WorldMapCountryTable, YoutubeVideo, YoutubeVideo as YoutubeVideoPlayer, addReplyToCache, addReviewReply, appendReview, applyReactionState, assertAbsoluteURL, buildURL, canDeleteReview, canDeleteReviewReply, canEditReview, canEditReviewReply, canReplyToReview, canReportReview, canReportReviewReply, clearAnalyticsQueueStorage, clearAnonymousIdStorage, clearConsentStorage, cn, createAnalyticsEvent, createAnalyticsId, createConfigurator, createDefaultConsent, createForceLayout, createGridLayout, createHeadingSlug, createTreeLayout, createURLResolver, decrementReplyCount, defaultFormatValue, defaultTiers, ensureAnonymousIdStorage, enumValues, euiToast, extractHeadings, findReview, formatChartLabel, formatChartValue, formatCommentDate, formatConfigError, formatReviewDate, generateHeadingNumbers, getAllowedOrigins, getBrowserHref, getBrowserOrigin, getBrowserRedirectURL, getConsentStatusFromCategories, getCurrencySymbol, getCurrentFullUrl, getCurrentPath, getCurrentReferrer, getCurrentTitle, getDeviceInfo, getDoNotTrackEnabled, getLayout, getNowISOString, getOptimisticDislikeState, getOptimisticLikeState, getSafeRedirect, getViewport, hasReviewReply, incrementReplyCount, isBrowser, isMatch, isRenderFn, limitRealtimePoints, normalize, normalizeChartData, normalizeChartDataPoint, normalizeMarkdown, normalizeReview, normalizeReviewAuthor, normalizeReviewReply, parseJson, parseJsonRecord, parseUrlMap, prependReview, readAnalyticsQueueStorage, readAnonymousIdStorage, readConsentStorage, registerLayout, removeComment, removeCommentTreeFromCache, removeReview, removeReviewReply, replaceRealtimePoints, replaceReview, replaceReviewReply, resolveAppearanceStyles, resolveChartColor, resolveChartColors, resolveWithGlobal, safeReadStorage, safeRemoveStorage, safeWriteStorage, sanitizeHeading, sendToast, slugify, toConfiguratorError, updateComment, updateReplyCacheComment, updateReview, updateReviewReply, upsertReview, useActiveHeading, useAnalytics, useChartContext, useChartData, useChartPolling, useChartRealtime, useChartSeries, useChartTheme, useClickOutside, useCloudinaryConfig, useCookieConsent, useCurrentTheme_default as useCurrentTheme, useDrawer_default as useDrawer, useEUIConfig, useEUIDevPreviewPlatform, useIsMobile_default as useIsMobile, useMarkdown, useMarkdownHeadings, useModal_default as useModal, usePageTracking, useResolvedChartState, useReviewThreadState, useSessionTracking, useTheme_default as useTheme, writeAnalyticsQueueStorage, writeConsentStorage };
|
|
58334
58848
|
//# sourceMappingURL=index.mjs.map
|
|
58335
58849
|
//# sourceMappingURL=index.mjs.map
|