elseware-ui 3.0.2 → 3.0.3
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 +68 -12
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +394 -196
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +393 -196
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React26, { createContext, forwardRef, useState, useImperativeHandle, useEffect, useRef, useMemo,
|
|
1
|
+
import React26, { createContext, forwardRef, useState, useImperativeHandle, useEffect, useRef, useMemo, useContext, useCallback, Children, useId, createElement, isValidElement } from 'react';
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
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 classNames73 from 'classnames';
|
|
8
8
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
9
9
|
import { Image, CloudinaryContext as CloudinaryContext$1 } from 'cloudinary-react';
|
|
10
|
-
import { MdUpload, MdOutlineDone, MdOutlineRemoveCircleOutline } from 'react-icons/md/index.js';
|
|
10
|
+
import { MdUpload, MdOutlineDone, MdOutlineRemoveCircleOutline, MdDragIndicator, MdKeyboardArrowLeft, MdKeyboardArrowRight, MdOutlineDelete } from 'react-icons/md/index.js';
|
|
11
11
|
import { BsStarFill, BsStar, BsChevronDown, BsStarHalf, BsFillDiamondFill } from 'react-icons/bs/index.js';
|
|
12
12
|
import { AnimatePresence, motion } from 'framer-motion';
|
|
13
13
|
import { ResponsiveContainer, LineChart, CartesianGrid, XAxis, YAxis, Tooltip, Line, AreaChart, Area, BarChart, Bar, PieChart, Pie, Cell, ScatterChart, Scatter } from 'recharts';
|
|
@@ -4718,7 +4718,7 @@ var init_python = __esm({
|
|
|
4718
4718
|
});
|
|
4719
4719
|
|
|
4720
4720
|
// node_modules/refractor/lang/jsx.js
|
|
4721
|
-
function
|
|
4721
|
+
function jsx217(Prism2) {
|
|
4722
4722
|
Prism2.register(javascript);
|
|
4723
4723
|
Prism2.register(markup);
|
|
4724
4724
|
(function(Prism3) {
|
|
@@ -4851,14 +4851,14 @@ var init_jsx = __esm({
|
|
|
4851
4851
|
"node_modules/refractor/lang/jsx.js"() {
|
|
4852
4852
|
init_javascript();
|
|
4853
4853
|
init_markup();
|
|
4854
|
-
|
|
4855
|
-
|
|
4854
|
+
jsx217.displayName = "jsx";
|
|
4855
|
+
jsx217.aliases = [];
|
|
4856
4856
|
}
|
|
4857
4857
|
});
|
|
4858
4858
|
|
|
4859
4859
|
// node_modules/refractor/lang/tsx.js
|
|
4860
4860
|
function tsx(Prism2) {
|
|
4861
|
-
Prism2.register(
|
|
4861
|
+
Prism2.register(jsx217);
|
|
4862
4862
|
Prism2.register(typescript);
|
|
4863
4863
|
(function(Prism3) {
|
|
4864
4864
|
var typescript2 = Prism3.util.clone(Prism3.languages.typescript);
|
|
@@ -6453,7 +6453,7 @@ var Backdrop = ({ children: children3, styles }) => {
|
|
|
6453
6453
|
return /* @__PURE__ */ jsx(
|
|
6454
6454
|
"div",
|
|
6455
6455
|
{
|
|
6456
|
-
className:
|
|
6456
|
+
className: classNames73({
|
|
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: classNames73(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 = classNames73(
|
|
7067
7067
|
visibility ? enterClassName : leaveClassName,
|
|
7068
7068
|
active ? visibleClassName : hiddenClassName
|
|
7069
7069
|
);
|
|
@@ -7416,7 +7416,7 @@ var InputFile = ({
|
|
|
7416
7416
|
/* @__PURE__ */ jsx(
|
|
7417
7417
|
"div",
|
|
7418
7418
|
{
|
|
7419
|
-
className:
|
|
7419
|
+
className: classNames73(
|
|
7420
7420
|
"border rounded-sm bg-eui-primary-300/10 px-3 pt-3 text-md text-eui-dark-100 cursor-pointer h-[50px] flex items-center",
|
|
7421
7421
|
{
|
|
7422
7422
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -7442,7 +7442,7 @@ var InputFile = ({
|
|
|
7442
7442
|
InputLabel,
|
|
7443
7443
|
{
|
|
7444
7444
|
text: placeholder,
|
|
7445
|
-
className:
|
|
7445
|
+
className: classNames73({
|
|
7446
7446
|
"absolute left-2 eui-text-sm peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none": true,
|
|
7447
7447
|
"top-[0.7px]": showFloatingLabel,
|
|
7448
7448
|
"top-[13px] text-base": !showFloatingLabel
|
|
@@ -7495,7 +7495,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7495
7495
|
/* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(FieldArray, { name: name2, children: ({ push: push2, remove: remove2, move }) => /* @__PURE__ */ jsxs(
|
|
7496
7496
|
"div",
|
|
7497
7497
|
{
|
|
7498
|
-
className:
|
|
7498
|
+
className: classNames73(
|
|
7499
7499
|
"flex w-full flex-col space-y-2 bg-eui-primary-300/10",
|
|
7500
7500
|
shapes[resolvedShape]
|
|
7501
7501
|
),
|
|
@@ -7524,7 +7524,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7524
7524
|
ref: provided2.innerRef,
|
|
7525
7525
|
...draggableProps,
|
|
7526
7526
|
style: draggableStyle,
|
|
7527
|
-
className:
|
|
7527
|
+
className: classNames73(
|
|
7528
7528
|
"flex items-center space-x-2 bg-eui-primary-300/10 p-2",
|
|
7529
7529
|
shapes[resolvedShape]
|
|
7530
7530
|
),
|
|
@@ -7535,7 +7535,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7535
7535
|
{
|
|
7536
7536
|
name: `${name2}[${index3}]`,
|
|
7537
7537
|
placeholder: `Item ${index3 + 1}`,
|
|
7538
|
-
className:
|
|
7538
|
+
className: classNames73(
|
|
7539
7539
|
"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
7540
|
shapes[resolvedShape],
|
|
7541
7541
|
hasItemError ? "border-eui-danger-500" : "border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -7631,7 +7631,7 @@ var InputListGroup = ({
|
|
|
7631
7631
|
return /* @__PURE__ */ jsxs(
|
|
7632
7632
|
"div",
|
|
7633
7633
|
{
|
|
7634
|
-
className:
|
|
7634
|
+
className: classNames73(
|
|
7635
7635
|
"flex flex-col gap-2 bg-eui-primary-300/10 p-3",
|
|
7636
7636
|
shapes[resolvedShape]
|
|
7637
7637
|
),
|
|
@@ -7643,7 +7643,7 @@ var InputListGroup = ({
|
|
|
7643
7643
|
{
|
|
7644
7644
|
name: `${name2}[${groupIndex}].name`,
|
|
7645
7645
|
placeholder: `Group ${groupIndex + 1}`,
|
|
7646
|
-
className:
|
|
7646
|
+
className: classNames73(
|
|
7647
7647
|
"h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
|
|
7648
7648
|
shapes[resolvedShape],
|
|
7649
7649
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -7674,7 +7674,7 @@ var InputListGroup = ({
|
|
|
7674
7674
|
{
|
|
7675
7675
|
ref: provided.innerRef,
|
|
7676
7676
|
...provided.droppableProps,
|
|
7677
|
-
className:
|
|
7677
|
+
className: classNames73(
|
|
7678
7678
|
"space-y-2 bg-eui-primary-300/10 p-2",
|
|
7679
7679
|
shapes[resolvedShape]
|
|
7680
7680
|
),
|
|
@@ -7694,7 +7694,7 @@ var InputListGroup = ({
|
|
|
7694
7694
|
ref: provided2.innerRef,
|
|
7695
7695
|
...draggableProps,
|
|
7696
7696
|
style: draggableStyle,
|
|
7697
|
-
className:
|
|
7697
|
+
className: classNames73(
|
|
7698
7698
|
"flex items-center gap-2 bg-eui-primary-300/10 p-2",
|
|
7699
7699
|
shapes[resolvedShape]
|
|
7700
7700
|
),
|
|
@@ -7705,7 +7705,7 @@ var InputListGroup = ({
|
|
|
7705
7705
|
{
|
|
7706
7706
|
name: `${itemsFieldName}[${itemIndex}]`,
|
|
7707
7707
|
placeholder: `Item ${itemIndex + 1}`,
|
|
7708
|
-
className:
|
|
7708
|
+
className: classNames73(
|
|
7709
7709
|
"h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
|
|
7710
7710
|
shapes[resolvedShape],
|
|
7711
7711
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -8074,7 +8074,7 @@ var DateSelector = ({
|
|
|
8074
8074
|
...field,
|
|
8075
8075
|
...props,
|
|
8076
8076
|
placeholder,
|
|
8077
|
-
className:
|
|
8077
|
+
className: classNames73({
|
|
8078
8078
|
"border border-eui-primary-400 peer w-full bg-eui-primary-300/10 pt-5 px-3 pb-2 text-md eui-text-md placeholder-transparent placeholder-shown:p-3 focus:border-eui-secondary-500 focus:outline-none h-[50px]": true,
|
|
8079
8079
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
8080
8080
|
"transition-all ease-in-out": true,
|
|
@@ -8237,23 +8237,47 @@ function FormResponse({
|
|
|
8237
8237
|
const styles = resolveFormResponseStyles({ shape, size, variant });
|
|
8238
8238
|
return /* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility: Boolean(text10), children: /* @__PURE__ */ jsx("div", { className: cn(styles.rootClassName, className), children: /* @__PURE__ */ jsx("span", { className: cn(styles.textClassName, textClassName), children: text10 }) }) });
|
|
8239
8239
|
}
|
|
8240
|
-
|
|
8240
|
+
var CloudinaryContext = createContext(null);
|
|
8241
|
+
var CloudinaryProvider = ({
|
|
8242
|
+
cloudName,
|
|
8243
|
+
uploadPreset,
|
|
8244
|
+
children: children3
|
|
8245
|
+
}) => /* @__PURE__ */ jsx(CloudinaryContext.Provider, { value: { cloudName, uploadPreset }, children: children3 });
|
|
8246
|
+
var useCloudinaryConfig = () => {
|
|
8247
|
+
const ctx = useContext(CloudinaryContext);
|
|
8248
|
+
if (!ctx) {
|
|
8249
|
+
throw new Error(
|
|
8250
|
+
"CloudinaryProvider is missing. Wrap your app with <CloudinaryProvider />"
|
|
8251
|
+
);
|
|
8252
|
+
}
|
|
8253
|
+
return ctx;
|
|
8254
|
+
};
|
|
8255
|
+
|
|
8256
|
+
// src/components/data-entry/image-input/base/ImageInput.config.ts
|
|
8257
|
+
var defaultImageInputTitle = "Upload Image";
|
|
8258
|
+
var defaultImageInputUploadDir = "eg-frontend-admin-temp";
|
|
8259
|
+
var imageInputPlaceholderPublicId = "public/placeholders/placeholder-dark_uwuxct";
|
|
8260
|
+
function ImageView({
|
|
8261
|
+
imageUrl,
|
|
8262
|
+
secure = true,
|
|
8263
|
+
alt = "image"
|
|
8264
|
+
}) {
|
|
8265
|
+
const { cloudName } = useCloudinaryConfig();
|
|
8241
8266
|
return /* @__PURE__ */ jsx("div", { className: "h-[200px] w-[300px]", children: /* @__PURE__ */ jsx("div", { className: "w-full h-full overflow-hidden bg-gray-900 flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
8242
8267
|
Image,
|
|
8243
8268
|
{
|
|
8244
|
-
cloudName
|
|
8245
|
-
publicId: imageUrl ? imageUrl :
|
|
8269
|
+
cloudName,
|
|
8270
|
+
publicId: imageUrl ? imageUrl : imageInputPlaceholderPublicId,
|
|
8246
8271
|
secure,
|
|
8247
8272
|
alt,
|
|
8248
8273
|
className: "w-full h-full object-cover"
|
|
8249
8274
|
}
|
|
8250
8275
|
) }) });
|
|
8251
8276
|
}
|
|
8252
|
-
var ImageView_default = ImageView;
|
|
8253
8277
|
var ImageInput = forwardRef(
|
|
8254
8278
|
({
|
|
8255
|
-
title =
|
|
8256
|
-
uploadDir =
|
|
8279
|
+
title = defaultImageInputTitle,
|
|
8280
|
+
uploadDir = defaultImageInputUploadDir,
|
|
8257
8281
|
onValueChanged = () => {
|
|
8258
8282
|
},
|
|
8259
8283
|
disableSetValue = false,
|
|
@@ -8262,6 +8286,7 @@ var ImageInput = forwardRef(
|
|
|
8262
8286
|
const [field, meta, helpers] = useField(props);
|
|
8263
8287
|
const { value: imageUrl } = field;
|
|
8264
8288
|
const { setValue } = helpers;
|
|
8289
|
+
const { cloudName, uploadPreset = "" } = useCloudinaryConfig();
|
|
8265
8290
|
const [image3, setImage] = useState(null);
|
|
8266
8291
|
const [url, setUrl] = useState(imageUrl);
|
|
8267
8292
|
const [loading, setLoading] = useState(false);
|
|
@@ -8271,8 +8296,6 @@ var ImageInput = forwardRef(
|
|
|
8271
8296
|
setLoading(true);
|
|
8272
8297
|
const data = new FormData();
|
|
8273
8298
|
data.append("file", image3);
|
|
8274
|
-
const uploadPreset = process.env.REACT_APP_CLOUDINARY_UPLOAD_PRESET || "";
|
|
8275
|
-
const cloudName = process.env.REACT_APP_CLOUDINARY_CLOUD_NAME || "";
|
|
8276
8299
|
data.append("upload_preset", uploadPreset);
|
|
8277
8300
|
data.append("cloud_name", cloudName);
|
|
8278
8301
|
data.append("folder", uploadDir);
|
|
@@ -8289,7 +8312,7 @@ var ImageInput = forwardRef(
|
|
|
8289
8312
|
if (!disableSetValue) setValue(res.public_id);
|
|
8290
8313
|
onValueChanged(res.public_id);
|
|
8291
8314
|
setLoading(false);
|
|
8292
|
-
} catch
|
|
8315
|
+
} catch {
|
|
8293
8316
|
setLoading(false);
|
|
8294
8317
|
}
|
|
8295
8318
|
};
|
|
@@ -8333,7 +8356,7 @@ var ImageInput = forwardRef(
|
|
|
8333
8356
|
/* @__PURE__ */ jsxs(
|
|
8334
8357
|
"label",
|
|
8335
8358
|
{
|
|
8336
|
-
className:
|
|
8359
|
+
className: classNames73({
|
|
8337
8360
|
"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,
|
|
8338
8361
|
"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
|
|
8339
8362
|
"transition-all ease-in-out duration-150": true
|
|
@@ -8358,7 +8381,7 @@ var ImageInput = forwardRef(
|
|
|
8358
8381
|
/* @__PURE__ */ jsx("div", { className: "h-[200px] w-[300px] bg-black opacity-50" }),
|
|
8359
8382
|
/* @__PURE__ */ jsx("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsx(AiOutlineLoading, { className: "animate-spin" }) })
|
|
8360
8383
|
] }),
|
|
8361
|
-
!loading && url && /* @__PURE__ */ jsx(
|
|
8384
|
+
!loading && url && /* @__PURE__ */ jsx(ImageView, { imageUrl: url, alt: url ? url : "image" }),
|
|
8362
8385
|
(preview || url) && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1 text-3xl", children: [
|
|
8363
8386
|
/* @__PURE__ */ jsx(
|
|
8364
8387
|
"div",
|
|
@@ -8390,29 +8413,217 @@ var ImageInput = forwardRef(
|
|
|
8390
8413
|
] });
|
|
8391
8414
|
}
|
|
8392
8415
|
);
|
|
8393
|
-
var
|
|
8416
|
+
var ImageInput_web_default = ImageInput;
|
|
8417
|
+
|
|
8418
|
+
// src/components/data-entry/multi-image-input/base/MultiImageInput.config.ts
|
|
8419
|
+
var defaultMultiImageInputTitle = "Upload Images";
|
|
8420
|
+
var defaultMultiImageInputUploadDir = "eg-frontend-admin-temp";
|
|
8421
|
+
function areImageListsEqual(current, next2) {
|
|
8422
|
+
return current.length === next2.length && current.every((imageUrl, index3) => imageUrl === next2[index3]);
|
|
8423
|
+
}
|
|
8394
8424
|
function MultiImageInput({
|
|
8395
|
-
title =
|
|
8396
|
-
uploadDir =
|
|
8425
|
+
title = defaultMultiImageInputTitle,
|
|
8426
|
+
uploadDir = defaultMultiImageInputUploadDir,
|
|
8397
8427
|
...props
|
|
8398
8428
|
}) {
|
|
8399
8429
|
const [field, meta, helpers] = useField(props);
|
|
8400
|
-
const { value: imageUrls } = field;
|
|
8401
8430
|
const { setValue } = helpers;
|
|
8431
|
+
const { cloudName, uploadPreset = "" } = useCloudinaryConfig();
|
|
8432
|
+
const fieldImageUrls = useMemo(
|
|
8433
|
+
() => Array.isArray(field.value) ? field.value : [],
|
|
8434
|
+
[field.value]
|
|
8435
|
+
);
|
|
8436
|
+
const [imageUrls, setImageUrls] = useState(fieldImageUrls);
|
|
8402
8437
|
const imageInputRef = useRef(null);
|
|
8438
|
+
const [draggedIndex, setDraggedIndex] = useState(null);
|
|
8439
|
+
const [replacingIndex, setReplacingIndex] = useState(null);
|
|
8440
|
+
const isOrganizerBusy = replacingIndex !== null;
|
|
8441
|
+
useEffect(() => {
|
|
8442
|
+
setImageUrls(
|
|
8443
|
+
(currentImageUrls) => areImageListsEqual(currentImageUrls, fieldImageUrls) ? currentImageUrls : fieldImageUrls
|
|
8444
|
+
);
|
|
8445
|
+
}, [fieldImageUrls]);
|
|
8446
|
+
const commitImageUrls = (nextImageUrls) => {
|
|
8447
|
+
setImageUrls(nextImageUrls);
|
|
8448
|
+
void setValue(nextImageUrls);
|
|
8449
|
+
};
|
|
8403
8450
|
const onValueChanged = (url) => {
|
|
8404
|
-
|
|
8451
|
+
if (!url) {
|
|
8452
|
+
return;
|
|
8453
|
+
}
|
|
8454
|
+
commitImageUrls([...imageUrls, url]);
|
|
8405
8455
|
if (imageInputRef.current) {
|
|
8406
8456
|
imageInputRef.current.handleResetClick();
|
|
8407
8457
|
}
|
|
8408
8458
|
};
|
|
8409
|
-
|
|
8410
|
-
|
|
8459
|
+
const uploadImage = async (file) => {
|
|
8460
|
+
const data = new FormData();
|
|
8461
|
+
data.append("file", file);
|
|
8462
|
+
data.append("upload_preset", uploadPreset);
|
|
8463
|
+
data.append("cloud_name", cloudName);
|
|
8464
|
+
data.append("folder", uploadDir);
|
|
8465
|
+
const response = await fetch(
|
|
8466
|
+
`https://api.cloudinary.com/v1_1/${cloudName}/image/upload`,
|
|
8467
|
+
{
|
|
8468
|
+
method: "POST",
|
|
8469
|
+
body: data
|
|
8470
|
+
}
|
|
8471
|
+
);
|
|
8472
|
+
const res = await response.json();
|
|
8473
|
+
if (!res.public_id) {
|
|
8474
|
+
throw new Error("Cloudinary upload failed");
|
|
8475
|
+
}
|
|
8476
|
+
return res.public_id;
|
|
8477
|
+
};
|
|
8478
|
+
const removeImage = (index3) => {
|
|
8479
|
+
commitImageUrls(
|
|
8480
|
+
imageUrls.filter((_2, imageIndex) => imageIndex !== index3)
|
|
8481
|
+
);
|
|
8482
|
+
};
|
|
8483
|
+
const moveImage = (fromIndex, toIndex) => {
|
|
8484
|
+
if (toIndex < 0 || toIndex >= imageUrls.length || fromIndex === toIndex || isOrganizerBusy) {
|
|
8485
|
+
return;
|
|
8486
|
+
}
|
|
8487
|
+
const nextImageUrls = [...imageUrls];
|
|
8488
|
+
const [movedImage] = nextImageUrls.splice(fromIndex, 1);
|
|
8489
|
+
if (!movedImage) {
|
|
8490
|
+
return;
|
|
8491
|
+
}
|
|
8492
|
+
nextImageUrls.splice(toIndex, 0, movedImage);
|
|
8493
|
+
commitImageUrls(nextImageUrls);
|
|
8494
|
+
};
|
|
8495
|
+
const handleReplaceImage = async (index3, event) => {
|
|
8496
|
+
const input = event.currentTarget;
|
|
8497
|
+
const file = input.files?.[0];
|
|
8498
|
+
if (!file || isOrganizerBusy) {
|
|
8499
|
+
return;
|
|
8500
|
+
}
|
|
8501
|
+
setReplacingIndex(index3);
|
|
8502
|
+
try {
|
|
8503
|
+
const publicId = await uploadImage(file);
|
|
8504
|
+
const nextImageUrls = [...imageUrls];
|
|
8505
|
+
nextImageUrls[index3] = publicId;
|
|
8506
|
+
commitImageUrls(nextImageUrls);
|
|
8507
|
+
} catch {
|
|
8508
|
+
} finally {
|
|
8509
|
+
setReplacingIndex(null);
|
|
8510
|
+
input.value = "";
|
|
8511
|
+
}
|
|
8512
|
+
};
|
|
8513
|
+
const handleDragStart = (index3) => {
|
|
8514
|
+
if (isOrganizerBusy) {
|
|
8515
|
+
return;
|
|
8516
|
+
}
|
|
8517
|
+
setDraggedIndex(index3);
|
|
8518
|
+
};
|
|
8519
|
+
const handleDragOver = (event) => {
|
|
8520
|
+
if (!isOrganizerBusy) {
|
|
8521
|
+
event.preventDefault();
|
|
8522
|
+
}
|
|
8523
|
+
};
|
|
8524
|
+
const handleDrop = (index3) => {
|
|
8525
|
+
if (draggedIndex === null) {
|
|
8526
|
+
return;
|
|
8527
|
+
}
|
|
8528
|
+
moveImage(draggedIndex, index3);
|
|
8529
|
+
setDraggedIndex(null);
|
|
8530
|
+
};
|
|
8411
8531
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
8412
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-row flex-wrap gap-5 w-
|
|
8413
|
-
imageUrls.map((url, index3) =>
|
|
8532
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-row flex-wrap gap-5 w-full", children: [
|
|
8533
|
+
imageUrls.map((url, index3) => {
|
|
8534
|
+
const isReplacing = replacingIndex === index3;
|
|
8535
|
+
return /* @__PURE__ */ jsxs(
|
|
8536
|
+
"div",
|
|
8537
|
+
{
|
|
8538
|
+
draggable: !isOrganizerBusy,
|
|
8539
|
+
onDragStart: () => handleDragStart(index3),
|
|
8540
|
+
onDragOver: handleDragOver,
|
|
8541
|
+
onDrop: () => handleDrop(index3),
|
|
8542
|
+
onDragEnd: () => setDraggedIndex(null),
|
|
8543
|
+
className: classNames73(
|
|
8544
|
+
"relative h-[200px] w-[300px] overflow-hidden bg-gray-900",
|
|
8545
|
+
"transition-all duration-150",
|
|
8546
|
+
draggedIndex === index3 && "opacity-60",
|
|
8547
|
+
!isOrganizerBusy && "cursor-grab active:cursor-grabbing"
|
|
8548
|
+
),
|
|
8549
|
+
children: [
|
|
8550
|
+
/* @__PURE__ */ jsx(ImageView, { imageUrl: url }),
|
|
8551
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute left-2 top-2 inline-flex items-center gap-1 rounded bg-black/60 px-2 py-1 text-xs text-white", children: [
|
|
8552
|
+
/* @__PURE__ */ jsx(MdDragIndicator, {}),
|
|
8553
|
+
index3 + 1
|
|
8554
|
+
] }),
|
|
8555
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute right-2 top-2 flex gap-1", children: [
|
|
8556
|
+
/* @__PURE__ */ jsx(
|
|
8557
|
+
"button",
|
|
8558
|
+
{
|
|
8559
|
+
type: "button",
|
|
8560
|
+
title: "Move image left",
|
|
8561
|
+
"aria-label": "Move image left",
|
|
8562
|
+
disabled: index3 === 0 || isOrganizerBusy,
|
|
8563
|
+
onClick: () => moveImage(index3, index3 - 1),
|
|
8564
|
+
className: "inline-flex h-8 w-8 items-center justify-center rounded bg-black/60 text-xl text-white transition-colors hover:bg-black/80 disabled:cursor-not-allowed disabled:opacity-40",
|
|
8565
|
+
children: /* @__PURE__ */ jsx(MdKeyboardArrowLeft, {})
|
|
8566
|
+
}
|
|
8567
|
+
),
|
|
8568
|
+
/* @__PURE__ */ jsx(
|
|
8569
|
+
"button",
|
|
8570
|
+
{
|
|
8571
|
+
type: "button",
|
|
8572
|
+
title: "Move image right",
|
|
8573
|
+
"aria-label": "Move image right",
|
|
8574
|
+
disabled: index3 === imageUrls.length - 1 || isOrganizerBusy,
|
|
8575
|
+
onClick: () => moveImage(index3, index3 + 1),
|
|
8576
|
+
className: "inline-flex h-8 w-8 items-center justify-center rounded bg-black/60 text-xl text-white transition-colors hover:bg-black/80 disabled:cursor-not-allowed disabled:opacity-40",
|
|
8577
|
+
children: /* @__PURE__ */ jsx(MdKeyboardArrowRight, {})
|
|
8578
|
+
}
|
|
8579
|
+
)
|
|
8580
|
+
] }),
|
|
8581
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute bottom-2 left-2 right-2 flex items-center justify-between gap-2", children: [
|
|
8582
|
+
/* @__PURE__ */ jsxs(
|
|
8583
|
+
"label",
|
|
8584
|
+
{
|
|
8585
|
+
title: "Change image",
|
|
8586
|
+
className: classNames73(
|
|
8587
|
+
"inline-flex h-9 flex-1 items-center justify-center gap-2 rounded bg-green-600 px-3 text-sm font-semibold text-white transition-colors",
|
|
8588
|
+
isOrganizerBusy ? "pointer-events-none cursor-not-allowed opacity-50" : "cursor-pointer hover:bg-green-700"
|
|
8589
|
+
),
|
|
8590
|
+
children: [
|
|
8591
|
+
/* @__PURE__ */ jsx(
|
|
8592
|
+
"input",
|
|
8593
|
+
{
|
|
8594
|
+
type: "file",
|
|
8595
|
+
className: "hidden",
|
|
8596
|
+
accept: "image/*",
|
|
8597
|
+
disabled: isOrganizerBusy,
|
|
8598
|
+
onChange: (event) => void handleReplaceImage(index3, event)
|
|
8599
|
+
}
|
|
8600
|
+
),
|
|
8601
|
+
/* @__PURE__ */ jsx(MdUpload, {}),
|
|
8602
|
+
"Change"
|
|
8603
|
+
]
|
|
8604
|
+
}
|
|
8605
|
+
),
|
|
8606
|
+
/* @__PURE__ */ jsx(
|
|
8607
|
+
"button",
|
|
8608
|
+
{
|
|
8609
|
+
type: "button",
|
|
8610
|
+
title: "Delete image",
|
|
8611
|
+
"aria-label": "Delete image",
|
|
8612
|
+
disabled: isOrganizerBusy,
|
|
8613
|
+
onClick: () => removeImage(index3),
|
|
8614
|
+
className: "inline-flex h-9 w-10 items-center justify-center rounded bg-red-600 text-xl text-white transition-colors hover:bg-red-700 disabled:cursor-not-allowed disabled:opacity-50",
|
|
8615
|
+
children: /* @__PURE__ */ jsx(MdOutlineDelete, {})
|
|
8616
|
+
}
|
|
8617
|
+
)
|
|
8618
|
+
] }),
|
|
8619
|
+
isReplacing && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60 text-2xl text-white", children: /* @__PURE__ */ jsx(AiOutlineLoading, { className: "animate-spin" }) })
|
|
8620
|
+
]
|
|
8621
|
+
},
|
|
8622
|
+
`${url}-${index3}`
|
|
8623
|
+
);
|
|
8624
|
+
}),
|
|
8414
8625
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
8415
|
-
|
|
8626
|
+
ImageInput_web_default,
|
|
8416
8627
|
{
|
|
8417
8628
|
ref: imageInputRef,
|
|
8418
8629
|
name: "new_img",
|
|
@@ -8434,7 +8645,7 @@ function MultiImageInput({
|
|
|
8434
8645
|
)
|
|
8435
8646
|
] });
|
|
8436
8647
|
}
|
|
8437
|
-
var
|
|
8648
|
+
var MultiImageInput_web_default = MultiImageInput;
|
|
8438
8649
|
function Radio({
|
|
8439
8650
|
placeholder,
|
|
8440
8651
|
options,
|
|
@@ -8450,7 +8661,7 @@ function Radio({
|
|
|
8450
8661
|
return /* @__PURE__ */ jsxs(
|
|
8451
8662
|
"div",
|
|
8452
8663
|
{
|
|
8453
|
-
className:
|
|
8664
|
+
className: classNames73({
|
|
8454
8665
|
"flex flex-row gap-2 items-center mx-1 my-2": true
|
|
8455
8666
|
}),
|
|
8456
8667
|
children: [
|
|
@@ -8463,7 +8674,7 @@ function Radio({
|
|
|
8463
8674
|
...props,
|
|
8464
8675
|
value: option.value,
|
|
8465
8676
|
checked: field2.value === option.value,
|
|
8466
|
-
className:
|
|
8677
|
+
className: classNames73({
|
|
8467
8678
|
"appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
|
|
8468
8679
|
// base radio button styles
|
|
8469
8680
|
"checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
|
|
@@ -8475,7 +8686,7 @@ function Radio({
|
|
|
8475
8686
|
"label",
|
|
8476
8687
|
{
|
|
8477
8688
|
htmlFor: option.value,
|
|
8478
|
-
className:
|
|
8689
|
+
className: classNames73({
|
|
8479
8690
|
"eui-text-md text-sm": true
|
|
8480
8691
|
}),
|
|
8481
8692
|
children: option.label
|
|
@@ -8518,7 +8729,7 @@ function StarRatingInput({
|
|
|
8518
8729
|
return /* @__PURE__ */ jsxs(
|
|
8519
8730
|
"div",
|
|
8520
8731
|
{
|
|
8521
|
-
className:
|
|
8732
|
+
className: classNames73({
|
|
8522
8733
|
"inline-flex gap-[4px] text-[20px]": true,
|
|
8523
8734
|
[`${styles}`]: styles
|
|
8524
8735
|
}),
|
|
@@ -8531,7 +8742,7 @@ function StarRatingInput({
|
|
|
8531
8742
|
onClick: () => handleOnClick(index3),
|
|
8532
8743
|
onMouseEnter: () => setHover(index3),
|
|
8533
8744
|
onMouseLeave: () => setHover(null),
|
|
8534
|
-
className:
|
|
8745
|
+
className: classNames73({
|
|
8535
8746
|
"text-yellow-600": index3 <= (hover ?? rating - 1),
|
|
8536
8747
|
"text-gray-400": index3 > (hover ?? rating - 1)
|
|
8537
8748
|
}),
|
|
@@ -8575,7 +8786,7 @@ function Select({
|
|
|
8575
8786
|
{
|
|
8576
8787
|
as: "select",
|
|
8577
8788
|
...props,
|
|
8578
|
-
className:
|
|
8789
|
+
className: classNames73({
|
|
8579
8790
|
"border peer w-full bg-eui-primary-300/10 pt-5 px-3 pb-2 text-md eui-text-md placeholder-transparent placeholder-shown:p-3 focus:border-eui-secondary-500 focus:outline-none h-[50px]": true,
|
|
8580
8791
|
"border-eui-primary-400": !(meta.touched && meta.error),
|
|
8581
8792
|
"border-red-500": meta.touched && meta.error,
|
|
@@ -8627,7 +8838,7 @@ function Switch({
|
|
|
8627
8838
|
"div",
|
|
8628
8839
|
{
|
|
8629
8840
|
onClick: () => helpers.setValue(!field.value),
|
|
8630
|
-
className:
|
|
8841
|
+
className: classNames73(
|
|
8631
8842
|
"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
|
|
8632
8843
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
8633
8844
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
|
|
@@ -8684,7 +8895,7 @@ function Tags({
|
|
|
8684
8895
|
/* @__PURE__ */ jsxs(
|
|
8685
8896
|
"div",
|
|
8686
8897
|
{
|
|
8687
|
-
className:
|
|
8898
|
+
className: classNames73(
|
|
8688
8899
|
"border rounded-sm flex flex-wrap items-center gap-2 px-2 pt-2 pb-6 min-h-[3rem]",
|
|
8689
8900
|
{
|
|
8690
8901
|
"bg-eui-primary-300/10 eui-text-md": true,
|
|
@@ -8732,7 +8943,7 @@ function Tags({
|
|
|
8732
8943
|
InputLabel,
|
|
8733
8944
|
{
|
|
8734
8945
|
text: placeholder,
|
|
8735
|
-
className:
|
|
8946
|
+
className: classNames73(
|
|
8736
8947
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
8737
8948
|
input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
8738
8949
|
)
|
|
@@ -8773,7 +8984,7 @@ function TextArea({
|
|
|
8773
8984
|
as: "textarea",
|
|
8774
8985
|
...field,
|
|
8775
8986
|
...props,
|
|
8776
|
-
className:
|
|
8987
|
+
className: classNames73({
|
|
8777
8988
|
"border peer w-full bg-eui-primary-300/10 eui-text-md outline-none px-3 py-5 resize-none focus:resize-none focus:outline-none": true,
|
|
8778
8989
|
"transition-all ease-in-out": true,
|
|
8779
8990
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -8787,7 +8998,7 @@ function TextArea({
|
|
|
8787
8998
|
InputLabel,
|
|
8788
8999
|
{
|
|
8789
9000
|
text: placeholder,
|
|
8790
|
-
className:
|
|
9001
|
+
className: classNames73(
|
|
8791
9002
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
8792
9003
|
field.value ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
8793
9004
|
)
|
|
@@ -8821,7 +9032,7 @@ function BreadcrumbItem({
|
|
|
8821
9032
|
{
|
|
8822
9033
|
href,
|
|
8823
9034
|
onClick,
|
|
8824
|
-
className:
|
|
9035
|
+
className: classNames73({
|
|
8825
9036
|
"text-lg font-semibold": true,
|
|
8826
9037
|
"text-gray-400 hover:text-gray-600 cursor-pointer": !active,
|
|
8827
9038
|
"text-eui-light-800": active,
|
|
@@ -8898,7 +9109,7 @@ var Breadcrumb = ({
|
|
|
8898
9109
|
index3 < resolvedData.length - 1 && /* @__PURE__ */ jsx(
|
|
8899
9110
|
"span",
|
|
8900
9111
|
{
|
|
8901
|
-
className:
|
|
9112
|
+
className: classNames73({
|
|
8902
9113
|
"text-lg font-semibold text-gray-500": true,
|
|
8903
9114
|
[`px-${gap}`]: gap
|
|
8904
9115
|
}),
|
|
@@ -8912,7 +9123,7 @@ var Breadcrumb = ({
|
|
|
8912
9123
|
return /* @__PURE__ */ jsx(
|
|
8913
9124
|
"div",
|
|
8914
9125
|
{
|
|
8915
|
-
className:
|
|
9126
|
+
className: classNames73({
|
|
8916
9127
|
"inline-flex": true,
|
|
8917
9128
|
[`${styles}`]: styles
|
|
8918
9129
|
}),
|
|
@@ -8956,7 +9167,7 @@ var Drawer = ({
|
|
|
8956
9167
|
isMobile && showBackdrop && /* @__PURE__ */ jsx(TransitionFade_default, { visibility, leaveDuration: 200, children: /* @__PURE__ */ jsx(
|
|
8957
9168
|
"div",
|
|
8958
9169
|
{
|
|
8959
|
-
className:
|
|
9170
|
+
className: classNames73(
|
|
8960
9171
|
"fixed inset-0 bg-black/50 z-40",
|
|
8961
9172
|
backdropStyles
|
|
8962
9173
|
),
|
|
@@ -8967,7 +9178,7 @@ var Drawer = ({
|
|
|
8967
9178
|
"div",
|
|
8968
9179
|
{
|
|
8969
9180
|
style: drawerStyle,
|
|
8970
|
-
className:
|
|
9181
|
+
className: classNames73(
|
|
8971
9182
|
"fixed shadow-lg z-50",
|
|
8972
9183
|
{
|
|
8973
9184
|
"h-full w-[300px] top-0": isHorizontal && !hasOffset,
|
|
@@ -8996,7 +9207,7 @@ function DrawerToggler({
|
|
|
8996
9207
|
return /* @__PURE__ */ jsx(
|
|
8997
9208
|
"div",
|
|
8998
9209
|
{
|
|
8999
|
-
className:
|
|
9210
|
+
className: classNames73({
|
|
9000
9211
|
"text-xl p-3 cursor-pointer": true,
|
|
9001
9212
|
"transition-all ease-in-out": true,
|
|
9002
9213
|
"text-eui-dark-500 dark:text-eui-secondary-600": !styles,
|
|
@@ -9044,7 +9255,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
9044
9255
|
childrenContent = /* @__PURE__ */ jsx(
|
|
9045
9256
|
"div",
|
|
9046
9257
|
{
|
|
9047
|
-
className:
|
|
9258
|
+
className: classNames73({
|
|
9048
9259
|
"grid w-full": true,
|
|
9049
9260
|
"grid-cols-1": isMobile,
|
|
9050
9261
|
"grid-cols-3": !isMobile,
|
|
@@ -9057,7 +9268,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
9057
9268
|
return /* @__PURE__ */ jsx(
|
|
9058
9269
|
"div",
|
|
9059
9270
|
{
|
|
9060
|
-
className:
|
|
9271
|
+
className: classNames73({
|
|
9061
9272
|
[`${styles}`]: styles
|
|
9062
9273
|
}),
|
|
9063
9274
|
children: childrenContent
|
|
@@ -9098,7 +9309,7 @@ var FooterNavGroup = ({
|
|
|
9098
9309
|
/* @__PURE__ */ jsx(
|
|
9099
9310
|
"div",
|
|
9100
9311
|
{
|
|
9101
|
-
className:
|
|
9312
|
+
className: classNames73({
|
|
9102
9313
|
"": true,
|
|
9103
9314
|
"py-2 font-semibold eui-text-lg": !styles,
|
|
9104
9315
|
[`${styles}`]: styles
|
|
@@ -9143,7 +9354,7 @@ var FooterNavItem = ({
|
|
|
9143
9354
|
"div",
|
|
9144
9355
|
{
|
|
9145
9356
|
onClick: handleNavigation,
|
|
9146
|
-
className:
|
|
9357
|
+
className: classNames73({
|
|
9147
9358
|
"flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
|
|
9148
9359
|
"transition-all duration-200 ease-in-out": true,
|
|
9149
9360
|
"text-sm eui-text-sm": !styles,
|
|
@@ -9172,7 +9383,7 @@ var FooterNavItemTitle = ({
|
|
|
9172
9383
|
return /* @__PURE__ */ jsx(
|
|
9173
9384
|
"div",
|
|
9174
9385
|
{
|
|
9175
|
-
className:
|
|
9386
|
+
className: classNames73({
|
|
9176
9387
|
"": true,
|
|
9177
9388
|
"py-2 font-thin eui-text-md": !styles,
|
|
9178
9389
|
[`${styles}`]: styles
|
|
@@ -9225,7 +9436,7 @@ function HeaderNav({ data = [], styles }) {
|
|
|
9225
9436
|
return /* @__PURE__ */ jsx(
|
|
9226
9437
|
"div",
|
|
9227
9438
|
{
|
|
9228
|
-
className:
|
|
9439
|
+
className: classNames73({
|
|
9229
9440
|
[`${styles}`]: styles
|
|
9230
9441
|
}),
|
|
9231
9442
|
children: childrenContent
|
|
@@ -9287,7 +9498,7 @@ var HeaderNavGroup = ({
|
|
|
9287
9498
|
/* @__PURE__ */ jsxs(
|
|
9288
9499
|
"div",
|
|
9289
9500
|
{
|
|
9290
|
-
className:
|
|
9501
|
+
className: classNames73({
|
|
9291
9502
|
"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
|
|
9292
9503
|
"transition-all duration-300 ease-in-out": true,
|
|
9293
9504
|
"eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
|
|
@@ -9315,7 +9526,7 @@ var HeaderNavGroup = ({
|
|
|
9315
9526
|
children3 && /* @__PURE__ */ jsx(
|
|
9316
9527
|
BsChevronDown,
|
|
9317
9528
|
{
|
|
9318
|
-
className:
|
|
9529
|
+
className: classNames73({
|
|
9319
9530
|
"text-md": true,
|
|
9320
9531
|
"transition-all ease-in-out duration-300": true,
|
|
9321
9532
|
"rotate-180": !collapsed
|
|
@@ -9328,7 +9539,7 @@ var HeaderNavGroup = ({
|
|
|
9328
9539
|
!collapsed && children3 && /* @__PURE__ */ jsx(
|
|
9329
9540
|
"div",
|
|
9330
9541
|
{
|
|
9331
|
-
className:
|
|
9542
|
+
className: classNames73({
|
|
9332
9543
|
"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,
|
|
9333
9544
|
"transition-all duration-300 ease-in-out": true
|
|
9334
9545
|
}),
|
|
@@ -9358,7 +9569,7 @@ var HeaderNavItem = ({
|
|
|
9358
9569
|
"div",
|
|
9359
9570
|
{
|
|
9360
9571
|
onClick: handleNavigation,
|
|
9361
|
-
className:
|
|
9572
|
+
className: classNames73({
|
|
9362
9573
|
"flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
|
|
9363
9574
|
"transition-all duration-200 ease-in-out": true,
|
|
9364
9575
|
"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,
|
|
@@ -9387,7 +9598,7 @@ var HeaderNavItemTitle = ({
|
|
|
9387
9598
|
return /* @__PURE__ */ jsx(
|
|
9388
9599
|
"div",
|
|
9389
9600
|
{
|
|
9390
|
-
className:
|
|
9601
|
+
className: classNames73({
|
|
9391
9602
|
"p-3 font-thin": true,
|
|
9392
9603
|
"eui-text-md": !styles,
|
|
9393
9604
|
[`${styles}`]: styles
|
|
@@ -9427,7 +9638,7 @@ var Link = ({
|
|
|
9427
9638
|
href: href || "#",
|
|
9428
9639
|
target: targets[target],
|
|
9429
9640
|
onClick: handleClick,
|
|
9430
|
-
className:
|
|
9641
|
+
className: classNames73({
|
|
9431
9642
|
[`${textVariants[variant]}`]: variant,
|
|
9432
9643
|
[`${decorations[decoration]}`]: decoration,
|
|
9433
9644
|
"font-bold": bold,
|
|
@@ -12619,7 +12830,7 @@ function Accordion({
|
|
|
12619
12830
|
/* @__PURE__ */ jsxs(
|
|
12620
12831
|
"div",
|
|
12621
12832
|
{
|
|
12622
|
-
className:
|
|
12833
|
+
className: classNames73(
|
|
12623
12834
|
"inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs",
|
|
12624
12835
|
{
|
|
12625
12836
|
"hover:cursor-pointer": toggleOnSummaryClick
|
|
@@ -12640,7 +12851,7 @@ function Accordion({
|
|
|
12640
12851
|
children: /* @__PURE__ */ jsx(
|
|
12641
12852
|
FaCircleChevronDown,
|
|
12642
12853
|
{
|
|
12643
|
-
className:
|
|
12854
|
+
className: classNames73("text-xl transition-transform duration-300", {
|
|
12644
12855
|
"rotate-180": collapse
|
|
12645
12856
|
})
|
|
12646
12857
|
}
|
|
@@ -12654,7 +12865,7 @@ function Accordion({
|
|
|
12654
12865
|
/* @__PURE__ */ jsx(TransitionAccordion_default, { visibility: collapse, children: /* @__PURE__ */ jsx(
|
|
12655
12866
|
"div",
|
|
12656
12867
|
{
|
|
12657
|
-
className:
|
|
12868
|
+
className: classNames73(
|
|
12658
12869
|
"border-t border-t-eui-dark-400/40 eui-text-sm",
|
|
12659
12870
|
{
|
|
12660
12871
|
"p-5": enableChildrenPadding
|
|
@@ -12711,7 +12922,7 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
12711
12922
|
return /* @__PURE__ */ jsxs(
|
|
12712
12923
|
"div",
|
|
12713
12924
|
{
|
|
12714
|
-
className:
|
|
12925
|
+
className: classNames73(
|
|
12715
12926
|
"flex items-start gap-4 p-6 border-b border-white/10",
|
|
12716
12927
|
className
|
|
12717
12928
|
),
|
|
@@ -12727,14 +12938,14 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
12727
12938
|
}
|
|
12728
12939
|
var CardHeader_default = CardHeader;
|
|
12729
12940
|
function CardContent({ children: children3, className }) {
|
|
12730
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
12941
|
+
return /* @__PURE__ */ jsx("div", { className: classNames73("p-6 text-gray-300 text-sm", className), children: children3 });
|
|
12731
12942
|
}
|
|
12732
12943
|
var CardContent_default = CardContent;
|
|
12733
12944
|
function CardFooter({ children: children3, className }) {
|
|
12734
12945
|
return /* @__PURE__ */ jsx(
|
|
12735
12946
|
"div",
|
|
12736
12947
|
{
|
|
12737
|
-
className:
|
|
12948
|
+
className: classNames73(
|
|
12738
12949
|
"flex items-center gap-3 p-5 border-t border-white/10 text-sm text-gray-400",
|
|
12739
12950
|
className
|
|
12740
12951
|
),
|
|
@@ -12776,7 +12987,7 @@ function GradientAnimation({
|
|
|
12776
12987
|
return /* @__PURE__ */ jsx(
|
|
12777
12988
|
"div",
|
|
12778
12989
|
{
|
|
12779
|
-
className:
|
|
12990
|
+
className: classNames73("absolute inset-0"),
|
|
12780
12991
|
style: {
|
|
12781
12992
|
background: `linear-gradient(${cfg.angle}deg, ${cfg.colors?.join(",")})`,
|
|
12782
12993
|
backgroundSize: cfg.backgroundSize,
|
|
@@ -12922,7 +13133,7 @@ function MotionSurface({
|
|
|
12922
13133
|
}) {
|
|
12923
13134
|
const AnimationComponent = animationVariant === "custom" ? CustomAnimation : animationRegistry[animationVariant];
|
|
12924
13135
|
const OverlayComponent = overlay === "custom" ? CustomOverlay : overlayRegistry[overlay];
|
|
12925
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
13136
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames73("relative overflow-hidden", className), children: [
|
|
12926
13137
|
AnimationComponent && /* @__PURE__ */ jsx(AnimationComponent, { config: animationConfig, animated }),
|
|
12927
13138
|
OverlayComponent && /* @__PURE__ */ jsx(OverlayComponent, { config: overlayConfig }),
|
|
12928
13139
|
/* @__PURE__ */ jsx("div", { className: "relative z-10", children: children3 })
|
|
@@ -16304,20 +16515,6 @@ var Graph = ({
|
|
|
16304
16515
|
}
|
|
16305
16516
|
);
|
|
16306
16517
|
};
|
|
16307
|
-
var CloudinaryContext = createContext(null);
|
|
16308
|
-
var CloudinaryProvider = ({
|
|
16309
|
-
cloudName,
|
|
16310
|
-
children: children3
|
|
16311
|
-
}) => /* @__PURE__ */ jsx(CloudinaryContext.Provider, { value: { cloudName }, children: children3 });
|
|
16312
|
-
var useCloudinaryConfig = () => {
|
|
16313
|
-
const ctx = useContext(CloudinaryContext);
|
|
16314
|
-
if (!ctx) {
|
|
16315
|
-
throw new Error(
|
|
16316
|
-
"CloudinaryProvider is missing. Wrap your app with <CloudinaryProvider />"
|
|
16317
|
-
);
|
|
16318
|
-
}
|
|
16319
|
-
return ctx;
|
|
16320
|
-
};
|
|
16321
16518
|
var DEFAULT_PUBLIC_CLOUD = "demo";
|
|
16322
16519
|
var CloudinaryImage2 = ({
|
|
16323
16520
|
publicId = "sample",
|
|
@@ -18007,7 +18204,7 @@ var ThemeSwitch = () => {
|
|
|
18007
18204
|
/* @__PURE__ */ jsx(
|
|
18008
18205
|
"div",
|
|
18009
18206
|
{
|
|
18010
|
-
className:
|
|
18207
|
+
className: classNames73(
|
|
18011
18208
|
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
18012
18209
|
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
18013
18210
|
)
|
|
@@ -29776,7 +29973,7 @@ function Modal({
|
|
|
29776
29973
|
"div",
|
|
29777
29974
|
{
|
|
29778
29975
|
ref: modalRef,
|
|
29779
|
-
className:
|
|
29976
|
+
className: classNames73(
|
|
29780
29977
|
"eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit",
|
|
29781
29978
|
shapes[resolvedShape],
|
|
29782
29979
|
styles
|
|
@@ -29788,7 +29985,7 @@ function Modal({
|
|
|
29788
29985
|
"button",
|
|
29789
29986
|
{
|
|
29790
29987
|
type: "button",
|
|
29791
|
-
className:
|
|
29988
|
+
className: classNames73(
|
|
29792
29989
|
"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast",
|
|
29793
29990
|
"hover:cursor-pointer hover:bg-eui-dark-500"
|
|
29794
29991
|
),
|
|
@@ -30180,7 +30377,7 @@ var ContentArea = forwardRef(
|
|
|
30180
30377
|
"div",
|
|
30181
30378
|
{
|
|
30182
30379
|
ref,
|
|
30183
|
-
className:
|
|
30380
|
+
className: classNames73({
|
|
30184
30381
|
"min-h-screen h-full w-full transition-all duration-[200ms]": true,
|
|
30185
30382
|
"py-3 px-5": !enablePadding,
|
|
30186
30383
|
"py-3 px-5 lg:px-[150px]": enablePadding,
|
|
@@ -30197,7 +30394,7 @@ function FlexCol({ children: children3, gap = 3, styles }) {
|
|
|
30197
30394
|
return /* @__PURE__ */ jsx(
|
|
30198
30395
|
"div",
|
|
30199
30396
|
{
|
|
30200
|
-
className:
|
|
30397
|
+
className: classNames73({
|
|
30201
30398
|
[`flex flex-col gap-${gap}`]: true,
|
|
30202
30399
|
[`${styles}`]: styles
|
|
30203
30400
|
}),
|
|
@@ -30210,7 +30407,7 @@ function FlexRow({ children: children3, gap = 3, styles }) {
|
|
|
30210
30407
|
return /* @__PURE__ */ jsx(
|
|
30211
30408
|
"div",
|
|
30212
30409
|
{
|
|
30213
|
-
className:
|
|
30410
|
+
className: classNames73({
|
|
30214
30411
|
[`flex flex-row gap-${gap}`]: true,
|
|
30215
30412
|
[`${styles}`]: styles
|
|
30216
30413
|
}),
|
|
@@ -30229,7 +30426,7 @@ function Grid({ children: children3, styles }) {
|
|
|
30229
30426
|
return /* @__PURE__ */ jsx(
|
|
30230
30427
|
"div",
|
|
30231
30428
|
{
|
|
30232
|
-
className:
|
|
30429
|
+
className: classNames73({
|
|
30233
30430
|
[`grid`]: true,
|
|
30234
30431
|
[`${styles}`]: styles
|
|
30235
30432
|
}),
|
|
@@ -30246,7 +30443,7 @@ var Layout = ({
|
|
|
30246
30443
|
return /* @__PURE__ */ jsx(
|
|
30247
30444
|
"div",
|
|
30248
30445
|
{
|
|
30249
|
-
className:
|
|
30446
|
+
className: classNames73({
|
|
30250
30447
|
// "flex h-full w-screen bg-gray-100 overflow-auto": true,
|
|
30251
30448
|
"flex bg-eui-light-600": true,
|
|
30252
30449
|
"flex-col": flexDirection === "vertical",
|
|
@@ -30268,7 +30465,7 @@ var Header = ({
|
|
|
30268
30465
|
return /* @__PURE__ */ jsx(
|
|
30269
30466
|
"div",
|
|
30270
30467
|
{
|
|
30271
|
-
className:
|
|
30468
|
+
className: classNames73({
|
|
30272
30469
|
static: position4 === "static",
|
|
30273
30470
|
fixed: position4 === "fixed",
|
|
30274
30471
|
sticky: position4 === "sticky",
|
|
@@ -30303,7 +30500,7 @@ var Content = ({
|
|
|
30303
30500
|
return /* @__PURE__ */ jsx(
|
|
30304
30501
|
"div",
|
|
30305
30502
|
{
|
|
30306
|
-
className:
|
|
30503
|
+
className: classNames73({
|
|
30307
30504
|
"w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
|
|
30308
30505
|
"md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
|
|
30309
30506
|
// Shift when sidebar is open (desktop)
|
|
@@ -30319,7 +30516,7 @@ var Footer = ({ children: children3, styles }) => {
|
|
|
30319
30516
|
return /* @__PURE__ */ jsx(
|
|
30320
30517
|
"div",
|
|
30321
30518
|
{
|
|
30322
|
-
className:
|
|
30519
|
+
className: classNames73({
|
|
30323
30520
|
"bottom-0 w-full h-fit": true,
|
|
30324
30521
|
"border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
|
|
30325
30522
|
[`${styles}`]: styles
|
|
@@ -30507,7 +30704,7 @@ function ShowMore({ text: text10, limit }) {
|
|
|
30507
30704
|
/* @__PURE__ */ jsx(
|
|
30508
30705
|
"div",
|
|
30509
30706
|
{
|
|
30510
|
-
className:
|
|
30707
|
+
className: classNames73({
|
|
30511
30708
|
"text-blue-300 px-1 pb-1 mt-1": true,
|
|
30512
30709
|
"bg-slate-900/70": !showMore,
|
|
30513
30710
|
"bg-gradient-to-t from-slate-900/50 to-transparent": showMore
|
|
@@ -31423,7 +31620,7 @@ function DocumentationPanel({
|
|
|
31423
31620
|
return /* @__PURE__ */ jsx(MarkdownProvider_default, { markdown: value, children: /* @__PURE__ */ jsxs(
|
|
31424
31621
|
"section",
|
|
31425
31622
|
{
|
|
31426
|
-
className:
|
|
31623
|
+
className: classNames73(
|
|
31427
31624
|
"eui-documentation-panel",
|
|
31428
31625
|
"min-h-0 overflow-hidden bg-white text-gray-900",
|
|
31429
31626
|
"dark:bg-gray-950 dark:text-gray-100",
|
|
@@ -31437,7 +31634,7 @@ function DocumentationPanel({
|
|
|
31437
31634
|
/* @__PURE__ */ jsx(
|
|
31438
31635
|
"main",
|
|
31439
31636
|
{
|
|
31440
|
-
className:
|
|
31637
|
+
className: classNames73(
|
|
31441
31638
|
"eui-documentation-panel-viewer",
|
|
31442
31639
|
"documentation-panel-scrollbar min-w-0 overflow-y-auto scroll-smooth",
|
|
31443
31640
|
viewerClassName
|
|
@@ -31445,7 +31642,7 @@ function DocumentationPanel({
|
|
|
31445
31642
|
children: /* @__PURE__ */ jsx(
|
|
31446
31643
|
"div",
|
|
31447
31644
|
{
|
|
31448
|
-
className:
|
|
31645
|
+
className: classNames73(
|
|
31449
31646
|
"mx-auto px-5 py-8 sm:px-6 lg:px-8",
|
|
31450
31647
|
contentMaxWidthClassName,
|
|
31451
31648
|
contentClassName
|
|
@@ -31458,7 +31655,7 @@ function DocumentationPanel({
|
|
|
31458
31655
|
toc ? /* @__PURE__ */ jsx(
|
|
31459
31656
|
"aside",
|
|
31460
31657
|
{
|
|
31461
|
-
className:
|
|
31658
|
+
className: classNames73(
|
|
31462
31659
|
"eui-documentation-panel-toc",
|
|
31463
31660
|
"hidden min-w-0 border-l border-gray-200 bg-white lg:block",
|
|
31464
31661
|
"dark:border-gray-800 dark:bg-gray-950",
|
|
@@ -31467,7 +31664,7 @@ function DocumentationPanel({
|
|
|
31467
31664
|
children: /* @__PURE__ */ jsx(
|
|
31468
31665
|
"div",
|
|
31469
31666
|
{
|
|
31470
|
-
className:
|
|
31667
|
+
className: classNames73(
|
|
31471
31668
|
"documentation-panel-scrollbar h-full overflow-y-auto px-5 py-8"
|
|
31472
31669
|
),
|
|
31473
31670
|
children: /* @__PURE__ */ jsx("div", { className: "sticky top-0", children: /* @__PURE__ */ jsx(MarkdownTOC_default, {}) })
|
|
@@ -31743,7 +31940,7 @@ function BoxNavItem({ icon, name: name2, to, selected, onClick }) {
|
|
|
31743
31940
|
type: "button",
|
|
31744
31941
|
onClick: handleClick,
|
|
31745
31942
|
"aria-current": selected ? "page" : void 0,
|
|
31746
|
-
className:
|
|
31943
|
+
className: classNames73(
|
|
31747
31944
|
"w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
|
|
31748
31945
|
"hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
|
|
31749
31946
|
selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
|
|
@@ -34445,11 +34642,11 @@ function addChildren(props, children3) {
|
|
|
34445
34642
|
}
|
|
34446
34643
|
}
|
|
34447
34644
|
}
|
|
34448
|
-
function productionCreate(_2,
|
|
34645
|
+
function productionCreate(_2, jsx256, jsxs129) {
|
|
34449
34646
|
return create3;
|
|
34450
34647
|
function create3(_3, type2, props, key) {
|
|
34451
34648
|
const isStaticChildren = Array.isArray(props.children);
|
|
34452
|
-
const fn = isStaticChildren ? jsxs129 :
|
|
34649
|
+
const fn = isStaticChildren ? jsxs129 : jsx256;
|
|
34453
34650
|
return key ? fn(type2, props, key) : fn(type2, props);
|
|
34454
34651
|
}
|
|
34455
34652
|
}
|
|
@@ -54480,7 +54677,7 @@ function MarkdownHeading({
|
|
|
54480
54677
|
id: id2,
|
|
54481
54678
|
level: typographyLevel,
|
|
54482
54679
|
bold: true,
|
|
54483
|
-
className:
|
|
54680
|
+
className: classNames73(
|
|
54484
54681
|
"eui-markdown-heading group relative scroll-mt-24 font-bold leading-tight text-gray-900 dark:text-gray-100",
|
|
54485
54682
|
HEADING_STYLES[level],
|
|
54486
54683
|
className
|
|
@@ -54643,18 +54840,18 @@ function powerSetPermutations(arr) {
|
|
|
54643
54840
|
}
|
|
54644
54841
|
}
|
|
54645
54842
|
var classNameCombinations = {};
|
|
54646
|
-
function getClassNameCombinations(
|
|
54647
|
-
if (
|
|
54648
|
-
var key =
|
|
54843
|
+
function getClassNameCombinations(classNames77) {
|
|
54844
|
+
if (classNames77.length === 0 || classNames77.length === 1) return classNames77;
|
|
54845
|
+
var key = classNames77.join(".");
|
|
54649
54846
|
if (!classNameCombinations[key]) {
|
|
54650
|
-
classNameCombinations[key] = powerSetPermutations(
|
|
54847
|
+
classNameCombinations[key] = powerSetPermutations(classNames77);
|
|
54651
54848
|
}
|
|
54652
54849
|
return classNameCombinations[key];
|
|
54653
54850
|
}
|
|
54654
|
-
function createStyleObject(
|
|
54851
|
+
function createStyleObject(classNames77) {
|
|
54655
54852
|
var elementStyle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
54656
54853
|
var stylesheet = arguments.length > 2 ? arguments[2] : void 0;
|
|
54657
|
-
var nonTokenClassNames =
|
|
54854
|
+
var nonTokenClassNames = classNames77.filter(function(className) {
|
|
54658
54855
|
return className !== "token";
|
|
54659
54856
|
});
|
|
54660
54857
|
var classNamesCombinations = getClassNameCombinations(nonTokenClassNames);
|
|
@@ -54662,8 +54859,8 @@ function createStyleObject(classNames76) {
|
|
|
54662
54859
|
return _objectSpread(_objectSpread({}, styleObject), stylesheet[className]);
|
|
54663
54860
|
}, elementStyle);
|
|
54664
54861
|
}
|
|
54665
|
-
function createClassNameString(
|
|
54666
|
-
return
|
|
54862
|
+
function createClassNameString(classNames77) {
|
|
54863
|
+
return classNames77.join(" ");
|
|
54667
54864
|
}
|
|
54668
54865
|
function createChildren2(stylesheet, useInlineStyles) {
|
|
54669
54866
|
var childrenCount = 0;
|
|
@@ -54836,8 +55033,8 @@ function flattenCodeTree(tree) {
|
|
|
54836
55033
|
}));
|
|
54837
55034
|
} else if (node2.children) {
|
|
54838
55035
|
var _node$properties;
|
|
54839
|
-
var
|
|
54840
|
-
flattenCodeTree(node2.children,
|
|
55036
|
+
var classNames77 = className.concat(((_node$properties = node2.properties) === null || _node$properties === void 0 ? void 0 : _node$properties.className) || []);
|
|
55037
|
+
flattenCodeTree(node2.children, classNames77).forEach(function(i2) {
|
|
54841
55038
|
return newTree.push(i2);
|
|
54842
55039
|
});
|
|
54843
55040
|
}
|
|
@@ -55368,7 +55565,7 @@ var json_default = json;
|
|
|
55368
55565
|
|
|
55369
55566
|
// node_modules/react-syntax-highlighter/dist/esm/languages/prism/jsx.js
|
|
55370
55567
|
init_jsx();
|
|
55371
|
-
var jsx_default =
|
|
55568
|
+
var jsx_default = jsx217;
|
|
55372
55569
|
|
|
55373
55570
|
// node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js
|
|
55374
55571
|
init_markup();
|
|
@@ -55501,7 +55698,7 @@ function MarkdownCodeBlock({
|
|
|
55501
55698
|
"div",
|
|
55502
55699
|
{
|
|
55503
55700
|
...props,
|
|
55504
|
-
className:
|
|
55701
|
+
className: classNames73(
|
|
55505
55702
|
"eui-markdown-code my-6 overflow-hidden rounded-md border border-slate-700 bg-[#0d1117] text-slate-300",
|
|
55506
55703
|
className
|
|
55507
55704
|
),
|
|
@@ -55572,7 +55769,7 @@ function MarkdownInlineCode({
|
|
|
55572
55769
|
Code,
|
|
55573
55770
|
{
|
|
55574
55771
|
...props,
|
|
55575
|
-
className:
|
|
55772
|
+
className: classNames73(
|
|
55576
55773
|
"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",
|
|
55577
55774
|
className
|
|
55578
55775
|
),
|
|
@@ -55613,7 +55810,7 @@ function MarkdownLink({
|
|
|
55613
55810
|
href: safeHref,
|
|
55614
55811
|
target: resolvedTarget,
|
|
55615
55812
|
rel,
|
|
55616
|
-
className:
|
|
55813
|
+
className: classNames73(
|
|
55617
55814
|
"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",
|
|
55618
55815
|
className
|
|
55619
55816
|
),
|
|
@@ -55648,7 +55845,7 @@ function MarkdownImage({
|
|
|
55648
55845
|
title,
|
|
55649
55846
|
loading: "lazy",
|
|
55650
55847
|
decoding: "async",
|
|
55651
|
-
className:
|
|
55848
|
+
className: classNames73(
|
|
55652
55849
|
"eui-markdown-image my-6 h-auto max-w-full rounded-md border border-gray-200 dark:border-gray-700",
|
|
55653
55850
|
className
|
|
55654
55851
|
)
|
|
@@ -55665,7 +55862,7 @@ function MarkdownTable({
|
|
|
55665
55862
|
TableElement,
|
|
55666
55863
|
{
|
|
55667
55864
|
...props,
|
|
55668
|
-
className:
|
|
55865
|
+
className: classNames73(
|
|
55669
55866
|
"eui-markdown-table w-full border-collapse text-[0.925rem]",
|
|
55670
55867
|
className
|
|
55671
55868
|
),
|
|
@@ -55682,7 +55879,7 @@ function MarkdownTableCell({
|
|
|
55682
55879
|
TableCell,
|
|
55683
55880
|
{
|
|
55684
55881
|
...props,
|
|
55685
|
-
className:
|
|
55882
|
+
className: classNames73(
|
|
55686
55883
|
"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",
|
|
55687
55884
|
className
|
|
55688
55885
|
),
|
|
@@ -55699,7 +55896,7 @@ function MarkdownTableHeaderCell({
|
|
|
55699
55896
|
TableHeaderCell,
|
|
55700
55897
|
{
|
|
55701
55898
|
...props,
|
|
55702
|
-
className:
|
|
55899
|
+
className: classNames73(
|
|
55703
55900
|
"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",
|
|
55704
55901
|
className
|
|
55705
55902
|
),
|
|
@@ -55715,7 +55912,7 @@ function MarkdownTableHead({
|
|
|
55715
55912
|
TableHead,
|
|
55716
55913
|
{
|
|
55717
55914
|
...props,
|
|
55718
|
-
className:
|
|
55915
|
+
className: classNames73(
|
|
55719
55916
|
"eui-markdown-table-head bg-gray-50 dark:bg-gray-900",
|
|
55720
55917
|
className
|
|
55721
55918
|
)
|
|
@@ -55730,7 +55927,7 @@ function MarkdownTableBody({
|
|
|
55730
55927
|
TableBody,
|
|
55731
55928
|
{
|
|
55732
55929
|
...props,
|
|
55733
|
-
className:
|
|
55930
|
+
className: classNames73("eui-markdown-table-body", className)
|
|
55734
55931
|
}
|
|
55735
55932
|
);
|
|
55736
55933
|
}
|
|
@@ -55742,7 +55939,7 @@ function MarkdownTableRow({
|
|
|
55742
55939
|
TableRow,
|
|
55743
55940
|
{
|
|
55744
55941
|
...props,
|
|
55745
|
-
className:
|
|
55942
|
+
className: classNames73(
|
|
55746
55943
|
"eui-markdown-table-row even:bg-gray-50/70 dark:even:bg-gray-900/60",
|
|
55747
55944
|
className
|
|
55748
55945
|
)
|
|
@@ -55760,7 +55957,7 @@ function MarkdownBlockquote({
|
|
|
55760
55957
|
{
|
|
55761
55958
|
...props,
|
|
55762
55959
|
as: "blockquote",
|
|
55763
|
-
className:
|
|
55960
|
+
className: classNames73(
|
|
55764
55961
|
"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",
|
|
55765
55962
|
className
|
|
55766
55963
|
),
|
|
@@ -55779,7 +55976,7 @@ function MarkdownParagraph({
|
|
|
55779
55976
|
{
|
|
55780
55977
|
...props,
|
|
55781
55978
|
level: 1,
|
|
55782
|
-
className:
|
|
55979
|
+
className: classNames73("eui-markdown-paragraph my-4", className),
|
|
55783
55980
|
children: /* @__PURE__ */ jsx(Fragment, { children: children3 })
|
|
55784
55981
|
}
|
|
55785
55982
|
);
|
|
@@ -55790,7 +55987,7 @@ function MarkdownStrong({ className, ...props }) {
|
|
|
55790
55987
|
"strong",
|
|
55791
55988
|
{
|
|
55792
55989
|
...props,
|
|
55793
|
-
className:
|
|
55990
|
+
className: classNames73(
|
|
55794
55991
|
"eui-markdown-strong font-semibold text-gray-950 dark:text-gray-100",
|
|
55795
55992
|
className
|
|
55796
55993
|
)
|
|
@@ -55803,7 +56000,7 @@ function MarkdownEmphasis({ className, ...props }) {
|
|
|
55803
56000
|
"em",
|
|
55804
56001
|
{
|
|
55805
56002
|
...props,
|
|
55806
|
-
className:
|
|
56003
|
+
className: classNames73("eui-markdown-emphasis italic", className)
|
|
55807
56004
|
}
|
|
55808
56005
|
);
|
|
55809
56006
|
}
|
|
@@ -55816,7 +56013,7 @@ function MarkdownStrikethrough({
|
|
|
55816
56013
|
"del",
|
|
55817
56014
|
{
|
|
55818
56015
|
...props,
|
|
55819
|
-
className:
|
|
56016
|
+
className: classNames73(
|
|
55820
56017
|
"eui-markdown-strikethrough text-gray-500 dark:text-gray-400",
|
|
55821
56018
|
className
|
|
55822
56019
|
)
|
|
@@ -55877,7 +56074,7 @@ function MarkdownTaskCheckbox({
|
|
|
55877
56074
|
"input",
|
|
55878
56075
|
{
|
|
55879
56076
|
...props,
|
|
55880
|
-
className:
|
|
56077
|
+
className: classNames73(
|
|
55881
56078
|
"eui-markdown-task-checkbox mr-2 translate-y-px accent-blue-600",
|
|
55882
56079
|
className
|
|
55883
56080
|
)
|
|
@@ -55893,7 +56090,7 @@ function MarkdownThematicBreak({
|
|
|
55893
56090
|
"hr",
|
|
55894
56091
|
{
|
|
55895
56092
|
...props,
|
|
55896
|
-
className:
|
|
56093
|
+
className: classNames73(
|
|
55897
56094
|
"eui-markdown-thematic-break my-8 border-0 border-t border-gray-200 dark:border-gray-800",
|
|
55898
56095
|
className
|
|
55899
56096
|
)
|
|
@@ -55910,7 +56107,7 @@ function MarkdownDetails({ className, ...props }) {
|
|
|
55910
56107
|
"details",
|
|
55911
56108
|
{
|
|
55912
56109
|
...props,
|
|
55913
|
-
className:
|
|
56110
|
+
className: classNames73(
|
|
55914
56111
|
"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",
|
|
55915
56112
|
className
|
|
55916
56113
|
)
|
|
@@ -55922,7 +56119,7 @@ function MarkdownSummary({ className, ...props }) {
|
|
|
55922
56119
|
"summary",
|
|
55923
56120
|
{
|
|
55924
56121
|
...props,
|
|
55925
|
-
className:
|
|
56122
|
+
className: classNames73(
|
|
55926
56123
|
"eui-markdown-summary cursor-pointer font-semibold text-gray-950 dark:text-gray-100",
|
|
55927
56124
|
className
|
|
55928
56125
|
)
|
|
@@ -55934,7 +56131,7 @@ function MarkdownFigure({ className, ...props }) {
|
|
|
55934
56131
|
"figure",
|
|
55935
56132
|
{
|
|
55936
56133
|
...props,
|
|
55937
|
-
className:
|
|
56134
|
+
className: classNames73("eui-markdown-figure my-6", className)
|
|
55938
56135
|
}
|
|
55939
56136
|
);
|
|
55940
56137
|
}
|
|
@@ -55946,7 +56143,7 @@ function MarkdownFigcaption({
|
|
|
55946
56143
|
return /* @__PURE__ */ jsx("figcaption", { ...props, className: "eui-markdown-figcaption mt-2 text-center", children: /* @__PURE__ */ jsx(
|
|
55947
56144
|
Caption,
|
|
55948
56145
|
{
|
|
55949
|
-
className:
|
|
56146
|
+
className: classNames73(
|
|
55950
56147
|
"text-gray-500 opacity-100 dark:text-gray-400",
|
|
55951
56148
|
className
|
|
55952
56149
|
),
|
|
@@ -56345,14 +56542,14 @@ function MarkdownRenderer({
|
|
|
56345
56542
|
return /* @__PURE__ */ jsx(
|
|
56346
56543
|
"div",
|
|
56347
56544
|
{
|
|
56348
|
-
className:
|
|
56545
|
+
className: classNames73(
|
|
56349
56546
|
"eui-markdown markdown-body break-words bg-transparent text-[0.95rem] leading-7 text-gray-800 dark:text-gray-300",
|
|
56350
56547
|
className
|
|
56351
56548
|
),
|
|
56352
56549
|
children: /* @__PURE__ */ jsx(
|
|
56353
56550
|
"div",
|
|
56354
56551
|
{
|
|
56355
|
-
className:
|
|
56552
|
+
className: classNames73(
|
|
56356
56553
|
"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0",
|
|
56357
56554
|
contentClassName
|
|
56358
56555
|
),
|
|
@@ -56430,11 +56627,11 @@ function MarkdownTOCItem({
|
|
|
56430
56627
|
onClick: () => onSelect?.(heading3),
|
|
56431
56628
|
"aria-current": active ? "location" : void 0,
|
|
56432
56629
|
title: label,
|
|
56433
|
-
className:
|
|
56630
|
+
className: classNames73(
|
|
56434
56631
|
"eui-markdown-toc-item",
|
|
56435
56632
|
"block w-full text-left text-sm transition-all ease-in-out duration-150",
|
|
56436
56633
|
"hover:text-primary",
|
|
56437
|
-
active ?
|
|
56634
|
+
active ? classNames73("text-primary font-semibold underline", activeClassName) : classNames73("text-gray-500 dark:text-gray-400", inactiveClassName),
|
|
56438
56635
|
className
|
|
56439
56636
|
),
|
|
56440
56637
|
style: {
|
|
@@ -56500,7 +56697,7 @@ function MarkdownTOC({
|
|
|
56500
56697
|
return emptyState ? /* @__PURE__ */ jsx(
|
|
56501
56698
|
"div",
|
|
56502
56699
|
{
|
|
56503
|
-
className:
|
|
56700
|
+
className: classNames73(
|
|
56504
56701
|
"eui-markdown-toc",
|
|
56505
56702
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
56506
56703
|
className
|
|
@@ -56520,7 +56717,7 @@ function MarkdownTOC({
|
|
|
56520
56717
|
{
|
|
56521
56718
|
type: "button",
|
|
56522
56719
|
onClick: () => setCollapsed((value) => !value),
|
|
56523
|
-
className:
|
|
56720
|
+
className: classNames73(
|
|
56524
56721
|
"eui-markdown-toc-title",
|
|
56525
56722
|
"flex w-full items-center justify-between gap-2 text-left",
|
|
56526
56723
|
"text-sm font-semibold uppercase tracking-wide",
|
|
@@ -56533,7 +56730,7 @@ function MarkdownTOC({
|
|
|
56533
56730
|
/* @__PURE__ */ jsx(
|
|
56534
56731
|
"span",
|
|
56535
56732
|
{
|
|
56536
|
-
className:
|
|
56733
|
+
className: classNames73(
|
|
56537
56734
|
"text-xs opacity-60 transition-transform duration-150",
|
|
56538
56735
|
!collapsed && "rotate-90"
|
|
56539
56736
|
),
|
|
@@ -56546,7 +56743,7 @@ function MarkdownTOC({
|
|
|
56546
56743
|
) : /* @__PURE__ */ jsx(
|
|
56547
56744
|
"h2",
|
|
56548
56745
|
{
|
|
56549
|
-
className:
|
|
56746
|
+
className: classNames73(
|
|
56550
56747
|
"eui-markdown-toc-title",
|
|
56551
56748
|
"text-sm font-semibold uppercase tracking-wide",
|
|
56552
56749
|
"text-gray-900 dark:text-gray-100",
|
|
@@ -56558,7 +56755,7 @@ function MarkdownTOC({
|
|
|
56558
56755
|
!collapsed ? /* @__PURE__ */ jsx(
|
|
56559
56756
|
"nav",
|
|
56560
56757
|
{
|
|
56561
|
-
className:
|
|
56758
|
+
className: classNames73(
|
|
56562
56759
|
"eui-markdown-toc-list",
|
|
56563
56760
|
"space-y-1",
|
|
56564
56761
|
listClassName
|
|
@@ -56582,7 +56779,7 @@ function MarkdownTOC({
|
|
|
56582
56779
|
}
|
|
56583
56780
|
) : null
|
|
56584
56781
|
] });
|
|
56585
|
-
return /* @__PURE__ */ jsx("aside", { className:
|
|
56782
|
+
return /* @__PURE__ */ jsx("aside", { className: classNames73("eui-markdown-toc", "space-y-4", className), children: content3 });
|
|
56586
56783
|
}
|
|
56587
56784
|
var MarkdownTOC_default = MarkdownTOC;
|
|
56588
56785
|
var DEFAULT_MARKDOWN_TOOLBAR_ACTIONS = [
|
|
@@ -56681,7 +56878,7 @@ function MarkdownToolbar({
|
|
|
56681
56878
|
return /* @__PURE__ */ jsxs(
|
|
56682
56879
|
"div",
|
|
56683
56880
|
{
|
|
56684
|
-
className:
|
|
56881
|
+
className: classNames73(
|
|
56685
56882
|
"eui-markdown-toolbar",
|
|
56686
56883
|
"flex flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 p-2",
|
|
56687
56884
|
"dark:border-gray-700 dark:bg-gray-900",
|
|
@@ -56695,7 +56892,7 @@ function MarkdownToolbar({
|
|
|
56695
56892
|
disabled: disabled || actionsDisabled,
|
|
56696
56893
|
title: action.shortcut ? `${action.title || action.label} (${action.shortcut})` : action.title || action.label,
|
|
56697
56894
|
onClick: () => onAction?.(action.id),
|
|
56698
|
-
className:
|
|
56895
|
+
className: classNames73(
|
|
56699
56896
|
"eui-markdown-toolbar-button",
|
|
56700
56897
|
"inline-flex items-center justify-center rounded border border-transparent",
|
|
56701
56898
|
"text-gray-700 transition-colors hover:border-gray-300 hover:bg-white",
|
|
@@ -56715,7 +56912,7 @@ function MarkdownToolbar({
|
|
|
56715
56912
|
disabled,
|
|
56716
56913
|
onClick: onViewModeToggle,
|
|
56717
56914
|
title: isPreviewMode ? "Switch to Markdown syntax" : "Switch to preview",
|
|
56718
|
-
className:
|
|
56915
|
+
className: classNames73(
|
|
56719
56916
|
"eui-markdown-view-toggle",
|
|
56720
56917
|
"inline-flex items-center justify-center rounded border font-medium transition-colors",
|
|
56721
56918
|
"border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -56972,7 +57169,7 @@ function MarkdownSourceEditor({
|
|
|
56972
57169
|
return /* @__PURE__ */ jsxs(
|
|
56973
57170
|
"div",
|
|
56974
57171
|
{
|
|
56975
|
-
className:
|
|
57172
|
+
className: classNames73(
|
|
56976
57173
|
"eui-markdown-editor",
|
|
56977
57174
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
56978
57175
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -56988,7 +57185,7 @@ function MarkdownSourceEditor({
|
|
|
56988
57185
|
actionsDisabled: readOnly,
|
|
56989
57186
|
viewMode: currentViewMode,
|
|
56990
57187
|
showViewModeToggle,
|
|
56991
|
-
className:
|
|
57188
|
+
className: classNames73(toolbarClassName, toolbarProps?.className),
|
|
56992
57189
|
onViewModeToggle: toggleViewMode,
|
|
56993
57190
|
onAction: handleToolbarAction
|
|
56994
57191
|
}
|
|
@@ -56996,7 +57193,7 @@ function MarkdownSourceEditor({
|
|
|
56996
57193
|
currentViewMode === "preview" ? /* @__PURE__ */ jsx(
|
|
56997
57194
|
"div",
|
|
56998
57195
|
{
|
|
56999
|
-
className:
|
|
57196
|
+
className: classNames73(
|
|
57000
57197
|
"eui-markdown-editor-preview",
|
|
57001
57198
|
"min-h-[260px] p-4",
|
|
57002
57199
|
previewClassName
|
|
@@ -57019,7 +57216,7 @@ function MarkdownSourceEditor({
|
|
|
57019
57216
|
onChange: (event) => updateValue(event.target.value),
|
|
57020
57217
|
onBlur,
|
|
57021
57218
|
onKeyDown: handleKeyDown,
|
|
57022
|
-
className:
|
|
57219
|
+
className: classNames73(
|
|
57023
57220
|
"eui-markdown-source-textarea",
|
|
57024
57221
|
"block w-full resize-y border-0 bg-transparent p-4 font-mono text-sm leading-7",
|
|
57025
57222
|
"text-gray-900 outline-none placeholder:text-gray-400",
|
|
@@ -57049,7 +57246,7 @@ function MarkdownPreviewPane({
|
|
|
57049
57246
|
return /* @__PURE__ */ jsx(
|
|
57050
57247
|
"div",
|
|
57051
57248
|
{
|
|
57052
|
-
className:
|
|
57249
|
+
className: classNames73(
|
|
57053
57250
|
"eui-markdown-preview-pane",
|
|
57054
57251
|
"rounded border border-gray-300 bg-white p-4",
|
|
57055
57252
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -57099,7 +57296,7 @@ function MarkdownSplitEditor({
|
|
|
57099
57296
|
return /* @__PURE__ */ jsxs(
|
|
57100
57297
|
"div",
|
|
57101
57298
|
{
|
|
57102
|
-
className:
|
|
57299
|
+
className: classNames73(
|
|
57103
57300
|
"eui-markdown-split-editor",
|
|
57104
57301
|
"grid gap-4",
|
|
57105
57302
|
isHorizontal ? "grid-cols-1 lg:grid-cols-2" : "grid-cols-1",
|
|
@@ -57109,7 +57306,7 @@ function MarkdownSplitEditor({
|
|
|
57109
57306
|
/* @__PURE__ */ jsxs(
|
|
57110
57307
|
"div",
|
|
57111
57308
|
{
|
|
57112
|
-
className:
|
|
57309
|
+
className: classNames73(
|
|
57113
57310
|
"eui-markdown-split-source",
|
|
57114
57311
|
"min-w-0 space-y-2",
|
|
57115
57312
|
sourceWrapperClassName
|
|
@@ -57133,7 +57330,7 @@ function MarkdownSplitEditor({
|
|
|
57133
57330
|
/* @__PURE__ */ jsxs(
|
|
57134
57331
|
"div",
|
|
57135
57332
|
{
|
|
57136
|
-
className:
|
|
57333
|
+
className: classNames73(
|
|
57137
57334
|
"eui-markdown-split-preview",
|
|
57138
57335
|
"min-w-0 space-y-2",
|
|
57139
57336
|
previewWrapperClassName
|
|
@@ -57223,7 +57420,7 @@ function MarkdownField({
|
|
|
57223
57420
|
return /* @__PURE__ */ jsxs(
|
|
57224
57421
|
"div",
|
|
57225
57422
|
{
|
|
57226
|
-
className:
|
|
57423
|
+
className: classNames73(
|
|
57227
57424
|
"eui-markdown-field",
|
|
57228
57425
|
"relative space-y-2",
|
|
57229
57426
|
wrapperClassName
|
|
@@ -57233,7 +57430,7 @@ function MarkdownField({
|
|
|
57233
57430
|
"label",
|
|
57234
57431
|
{
|
|
57235
57432
|
htmlFor: editorProps.id || field.name,
|
|
57236
|
-
className:
|
|
57433
|
+
className: classNames73(
|
|
57237
57434
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
57238
57435
|
labelClassName
|
|
57239
57436
|
),
|
|
@@ -57258,7 +57455,7 @@ function MarkdownField({
|
|
|
57258
57455
|
helperText && !hasError ? /* @__PURE__ */ jsx(
|
|
57259
57456
|
"p",
|
|
57260
57457
|
{
|
|
57261
|
-
className:
|
|
57458
|
+
className: classNames73(
|
|
57262
57459
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
57263
57460
|
helperTextClassName
|
|
57264
57461
|
),
|
|
@@ -57313,7 +57510,7 @@ function CodeMirrorMarkdownEditor({
|
|
|
57313
57510
|
{
|
|
57314
57511
|
id: id2,
|
|
57315
57512
|
"data-name": name2,
|
|
57316
|
-
className:
|
|
57513
|
+
className: classNames73(
|
|
57317
57514
|
"eui-markdown-adapter",
|
|
57318
57515
|
"eui-markdown-codemirror-adapter",
|
|
57319
57516
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
@@ -57347,7 +57544,7 @@ function CodeMirrorMarkdownEditor({
|
|
|
57347
57544
|
closeBrackets: true,
|
|
57348
57545
|
bracketMatching: true
|
|
57349
57546
|
},
|
|
57350
|
-
className:
|
|
57547
|
+
className: classNames73("eui-markdown-codemirror", editorClassName),
|
|
57351
57548
|
onChange: updateValue,
|
|
57352
57549
|
onBlur
|
|
57353
57550
|
}
|
|
@@ -57442,7 +57639,7 @@ function createDefaultPlugins({
|
|
|
57442
57639
|
...showToolbar ? [
|
|
57443
57640
|
toolbarPlugin({
|
|
57444
57641
|
toolbarContents: toolbarContents ?? DefaultToolbar,
|
|
57445
|
-
toolbarClassName:
|
|
57642
|
+
toolbarClassName: classNames73(
|
|
57446
57643
|
"eui-markdown-mdx-toolbar",
|
|
57447
57644
|
toolbarClassName
|
|
57448
57645
|
),
|
|
@@ -57559,7 +57756,7 @@ var MDXMarkdownEditor = forwardRef(
|
|
|
57559
57756
|
"aria-required": required || void 0,
|
|
57560
57757
|
"aria-invalid": invalid || void 0,
|
|
57561
57758
|
onBlurCapture: handleBlur,
|
|
57562
|
-
className:
|
|
57759
|
+
className: classNames73(
|
|
57563
57760
|
"eui-markdown-adapter",
|
|
57564
57761
|
"eui-markdown-mdx-adapter",
|
|
57565
57762
|
dark && ["dark", "dark-theme"],
|
|
@@ -57577,8 +57774,8 @@ var MDXMarkdownEditor = forwardRef(
|
|
|
57577
57774
|
markdown: currentValue ?? "",
|
|
57578
57775
|
readOnly: disabled || readOnly,
|
|
57579
57776
|
plugins: plugins ?? defaultPlugins,
|
|
57580
|
-
className:
|
|
57581
|
-
contentEditableClassName:
|
|
57777
|
+
className: classNames73("eui-markdown-mdx-editor", editorClassName),
|
|
57778
|
+
contentEditableClassName: classNames73(
|
|
57582
57779
|
"eui-markdown-mdx-content",
|
|
57583
57780
|
contentEditableClassName
|
|
57584
57781
|
),
|
|
@@ -57615,7 +57812,7 @@ function MDXMarkdownField({
|
|
|
57615
57812
|
return /* @__PURE__ */ jsxs(
|
|
57616
57813
|
"div",
|
|
57617
57814
|
{
|
|
57618
|
-
className:
|
|
57815
|
+
className: classNames73(
|
|
57619
57816
|
"eui-markdown-mdx-field",
|
|
57620
57817
|
"relative space-y-2",
|
|
57621
57818
|
wrapperClassName
|
|
@@ -57625,7 +57822,7 @@ function MDXMarkdownField({
|
|
|
57625
57822
|
"label",
|
|
57626
57823
|
{
|
|
57627
57824
|
htmlFor: editorId,
|
|
57628
|
-
className:
|
|
57825
|
+
className: classNames73(
|
|
57629
57826
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
57630
57827
|
labelClassName
|
|
57631
57828
|
),
|
|
@@ -57659,7 +57856,7 @@ function MDXMarkdownField({
|
|
|
57659
57856
|
"p",
|
|
57660
57857
|
{
|
|
57661
57858
|
id: helperId,
|
|
57662
|
-
className:
|
|
57859
|
+
className: classNames73(
|
|
57663
57860
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
57664
57861
|
helperTextClassName
|
|
57665
57862
|
),
|
|
@@ -57719,10 +57916,10 @@ function MarkdownLayout({
|
|
|
57719
57916
|
};
|
|
57720
57917
|
const hasLeftToc = hasToc && tocPosition === "left";
|
|
57721
57918
|
const hasRightToc = hasToc && tocPosition === "right";
|
|
57722
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
57919
|
+
return /* @__PURE__ */ jsx("div", { className: classNames73("eui-markdown-layout", "w-full", className), children: /* @__PURE__ */ jsxs(
|
|
57723
57920
|
"div",
|
|
57724
57921
|
{
|
|
57725
|
-
className:
|
|
57922
|
+
className: classNames73(
|
|
57726
57923
|
"eui-markdown-layout-container",
|
|
57727
57924
|
"mx-auto w-full px-4 sm:px-6 lg:px-8",
|
|
57728
57925
|
containerClassName
|
|
@@ -57734,7 +57931,7 @@ function MarkdownLayout({
|
|
|
57734
57931
|
header ? /* @__PURE__ */ jsx(
|
|
57735
57932
|
"header",
|
|
57736
57933
|
{
|
|
57737
|
-
className:
|
|
57934
|
+
className: classNames73(
|
|
57738
57935
|
"eui-markdown-layout-header",
|
|
57739
57936
|
"mb-8",
|
|
57740
57937
|
headerClassName
|
|
@@ -57745,7 +57942,7 @@ function MarkdownLayout({
|
|
|
57745
57942
|
/* @__PURE__ */ jsxs(
|
|
57746
57943
|
"div",
|
|
57747
57944
|
{
|
|
57748
|
-
className:
|
|
57945
|
+
className: classNames73(
|
|
57749
57946
|
"eui-markdown-layout-grid",
|
|
57750
57947
|
"grid grid-cols-1 gap-8",
|
|
57751
57948
|
hasSidebar && hasToc && "xl:grid-cols-[16rem_minmax(0,1fr)_18rem]",
|
|
@@ -57758,7 +57955,7 @@ function MarkdownLayout({
|
|
|
57758
57955
|
hasSidebar ? /* @__PURE__ */ jsx(
|
|
57759
57956
|
"aside",
|
|
57760
57957
|
{
|
|
57761
|
-
className:
|
|
57958
|
+
className: classNames73(
|
|
57762
57959
|
"eui-markdown-layout-sidebar",
|
|
57763
57960
|
"min-w-0",
|
|
57764
57961
|
stickySidebar && "lg:sticky lg:self-start",
|
|
@@ -57771,7 +57968,7 @@ function MarkdownLayout({
|
|
|
57771
57968
|
hasLeftToc ? /* @__PURE__ */ jsx(
|
|
57772
57969
|
"aside",
|
|
57773
57970
|
{
|
|
57774
|
-
className:
|
|
57971
|
+
className: classNames73(
|
|
57775
57972
|
"eui-markdown-layout-toc",
|
|
57776
57973
|
"min-w-0",
|
|
57777
57974
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -57784,7 +57981,7 @@ function MarkdownLayout({
|
|
|
57784
57981
|
/* @__PURE__ */ jsx(
|
|
57785
57982
|
"main",
|
|
57786
57983
|
{
|
|
57787
|
-
className:
|
|
57984
|
+
className: classNames73(
|
|
57788
57985
|
"eui-markdown-layout-content",
|
|
57789
57986
|
"min-w-0",
|
|
57790
57987
|
contentClassName
|
|
@@ -57795,7 +57992,7 @@ function MarkdownLayout({
|
|
|
57795
57992
|
hasRightToc ? /* @__PURE__ */ jsx(
|
|
57796
57993
|
"aside",
|
|
57797
57994
|
{
|
|
57798
|
-
className:
|
|
57995
|
+
className: classNames73(
|
|
57799
57996
|
"eui-markdown-layout-toc",
|
|
57800
57997
|
"min-w-0",
|
|
57801
57998
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -57808,7 +58005,7 @@ function MarkdownLayout({
|
|
|
57808
58005
|
hasAside ? /* @__PURE__ */ jsx(
|
|
57809
58006
|
"aside",
|
|
57810
58007
|
{
|
|
57811
|
-
className:
|
|
58008
|
+
className: classNames73(
|
|
57812
58009
|
"eui-markdown-layout-aside",
|
|
57813
58010
|
"min-w-0",
|
|
57814
58011
|
stickyAside && "2xl:sticky 2xl:self-start",
|
|
@@ -57824,7 +58021,7 @@ function MarkdownLayout({
|
|
|
57824
58021
|
footer2 ? /* @__PURE__ */ jsx(
|
|
57825
58022
|
"footer",
|
|
57826
58023
|
{
|
|
57827
|
-
className:
|
|
58024
|
+
className: classNames73(
|
|
57828
58025
|
"eui-markdown-layout-footer",
|
|
57829
58026
|
"mt-10",
|
|
57830
58027
|
footerClassName
|
|
@@ -57861,7 +58058,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57861
58058
|
const resolvedHeader = header ?? (title || description || headerActions ? /* @__PURE__ */ jsx(
|
|
57862
58059
|
"div",
|
|
57863
58060
|
{
|
|
57864
|
-
className:
|
|
58061
|
+
className: classNames73(
|
|
57865
58062
|
"eui-markdown-docs-header",
|
|
57866
58063
|
"flex flex-col gap-4 border-b border-gray-200 pb-6",
|
|
57867
58064
|
"dark:border-gray-700",
|
|
@@ -57872,7 +58069,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57872
58069
|
title ? /* @__PURE__ */ jsx(
|
|
57873
58070
|
"h1",
|
|
57874
58071
|
{
|
|
57875
|
-
className:
|
|
58072
|
+
className: classNames73(
|
|
57876
58073
|
"eui-markdown-docs-title",
|
|
57877
58074
|
"text-3xl font-bold tracking-tight text-gray-950",
|
|
57878
58075
|
"dark:text-gray-50",
|
|
@@ -57884,7 +58081,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57884
58081
|
description ? /* @__PURE__ */ jsx(
|
|
57885
58082
|
"div",
|
|
57886
58083
|
{
|
|
57887
|
-
className:
|
|
58084
|
+
className: classNames73(
|
|
57888
58085
|
"eui-markdown-docs-description",
|
|
57889
58086
|
"max-w-3xl text-base leading-7 text-gray-600",
|
|
57890
58087
|
"dark:text-gray-400",
|
|
@@ -57972,7 +58169,7 @@ function GenericLayout({
|
|
|
57972
58169
|
return /* @__PURE__ */ jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsx(
|
|
57973
58170
|
"div",
|
|
57974
58171
|
{
|
|
57975
|
-
className:
|
|
58172
|
+
className: classNames73({
|
|
57976
58173
|
[`${styles}`]: styles
|
|
57977
58174
|
}),
|
|
57978
58175
|
children: children3
|
|
@@ -58021,7 +58218,7 @@ function SidemenuLayout({ data, children: children3 }) {
|
|
|
58021
58218
|
return /* @__PURE__ */ jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxs(
|
|
58022
58219
|
"div",
|
|
58023
58220
|
{
|
|
58024
|
-
className:
|
|
58221
|
+
className: classNames73({
|
|
58025
58222
|
grid: true,
|
|
58026
58223
|
"grid-cols-7 gap-10": !isMobile,
|
|
58027
58224
|
"grid-cols-1 gap-": isMobile
|
|
@@ -58101,6 +58298,6 @@ function ScrollToTop({
|
|
|
58101
58298
|
}
|
|
58102
58299
|
var ScrollToTop_default = ScrollToTop;
|
|
58103
58300
|
|
|
58104
|
-
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_default as 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,
|
|
58301
|
+
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_default as 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_default as Select, ShapeSwitch, ShowMore_default as ShowMore, Sidebar_default as Sidebar, SidebarLayout_default as SidebarLayout, SidemenuLayout_default as SidemenuLayout, Skeleton, Slider_default as Slider, Spinner, 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_default as Tags, TextArea_default as 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 };
|
|
58105
58302
|
//# sourceMappingURL=index.mjs.map
|
|
58106
58303
|
//# sourceMappingURL=index.mjs.map
|