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.js
CHANGED
|
@@ -6,7 +6,7 @@ var tailwindMerge = require('tailwind-merge');
|
|
|
6
6
|
var index_js$1 = require('react-icons/ai/index.js');
|
|
7
7
|
var formik = require('formik');
|
|
8
8
|
var index_js$2 = require('react-icons/fa/index.js');
|
|
9
|
-
var
|
|
9
|
+
var classNames73 = require('classnames');
|
|
10
10
|
var reactBeautifulDnd = require('react-beautiful-dnd');
|
|
11
11
|
var cloudinaryReact = require('cloudinary-react');
|
|
12
12
|
var index_js = require('react-icons/md/index.js');
|
|
@@ -27,7 +27,7 @@ require('@mdxeditor/editor/style.css');
|
|
|
27
27
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
28
28
|
|
|
29
29
|
var React26__default = /*#__PURE__*/_interopDefault(React26);
|
|
30
|
-
var
|
|
30
|
+
var classNames73__default = /*#__PURE__*/_interopDefault(classNames73);
|
|
31
31
|
var ReactWorldFlags__default = /*#__PURE__*/_interopDefault(ReactWorldFlags);
|
|
32
32
|
var emojiFlags__default = /*#__PURE__*/_interopDefault(emojiFlags);
|
|
33
33
|
var CodeMirror__default = /*#__PURE__*/_interopDefault(CodeMirror);
|
|
@@ -4728,7 +4728,7 @@ var init_python = __esm({
|
|
|
4728
4728
|
});
|
|
4729
4729
|
|
|
4730
4730
|
// node_modules/refractor/lang/jsx.js
|
|
4731
|
-
function
|
|
4731
|
+
function jsx217(Prism2) {
|
|
4732
4732
|
Prism2.register(javascript);
|
|
4733
4733
|
Prism2.register(markup);
|
|
4734
4734
|
(function(Prism3) {
|
|
@@ -4861,14 +4861,14 @@ var init_jsx = __esm({
|
|
|
4861
4861
|
"node_modules/refractor/lang/jsx.js"() {
|
|
4862
4862
|
init_javascript();
|
|
4863
4863
|
init_markup();
|
|
4864
|
-
|
|
4865
|
-
|
|
4864
|
+
jsx217.displayName = "jsx";
|
|
4865
|
+
jsx217.aliases = [];
|
|
4866
4866
|
}
|
|
4867
4867
|
});
|
|
4868
4868
|
|
|
4869
4869
|
// node_modules/refractor/lang/tsx.js
|
|
4870
4870
|
function tsx(Prism2) {
|
|
4871
|
-
Prism2.register(
|
|
4871
|
+
Prism2.register(jsx217);
|
|
4872
4872
|
Prism2.register(typescript);
|
|
4873
4873
|
(function(Prism3) {
|
|
4874
4874
|
var typescript2 = Prism3.util.clone(Prism3.languages.typescript);
|
|
@@ -6463,7 +6463,7 @@ var Backdrop = ({ children: children3, styles }) => {
|
|
|
6463
6463
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6464
6464
|
"div",
|
|
6465
6465
|
{
|
|
6466
|
-
className:
|
|
6466
|
+
className: classNames73__default.default({
|
|
6467
6467
|
"bg-black/75 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden": true,
|
|
6468
6468
|
[`${styles}`]: styles
|
|
6469
6469
|
}),
|
|
@@ -7053,7 +7053,7 @@ function renderTransitionChild(children3, className) {
|
|
|
7053
7053
|
}
|
|
7054
7054
|
const element7 = child;
|
|
7055
7055
|
return React26__default.default.cloneElement(element7, {
|
|
7056
|
-
className:
|
|
7056
|
+
className: classNames73__default.default(element7.props.className, className)
|
|
7057
7057
|
});
|
|
7058
7058
|
}
|
|
7059
7059
|
function TransitionBase({
|
|
@@ -7073,7 +7073,7 @@ function TransitionBase({
|
|
|
7073
7073
|
if (!mounted && unmountOnExit) {
|
|
7074
7074
|
return null;
|
|
7075
7075
|
}
|
|
7076
|
-
const transitionClassName =
|
|
7076
|
+
const transitionClassName = classNames73__default.default(
|
|
7077
7077
|
visibility ? enterClassName : leaveClassName,
|
|
7078
7078
|
active ? visibleClassName : hiddenClassName
|
|
7079
7079
|
);
|
|
@@ -7426,7 +7426,7 @@ var InputFile = ({
|
|
|
7426
7426
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7427
7427
|
"div",
|
|
7428
7428
|
{
|
|
7429
|
-
className:
|
|
7429
|
+
className: classNames73__default.default(
|
|
7430
7430
|
"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",
|
|
7431
7431
|
{
|
|
7432
7432
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -7452,7 +7452,7 @@ var InputFile = ({
|
|
|
7452
7452
|
InputLabel,
|
|
7453
7453
|
{
|
|
7454
7454
|
text: placeholder,
|
|
7455
|
-
className:
|
|
7455
|
+
className: classNames73__default.default({
|
|
7456
7456
|
"absolute left-2 eui-text-sm peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none": true,
|
|
7457
7457
|
"top-[0.7px]": showFloatingLabel,
|
|
7458
7458
|
"top-[13px] text-base": !showFloatingLabel
|
|
@@ -7505,7 +7505,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7505
7505
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsxRuntime.jsx(formik.FieldArray, { name: name2, children: ({ push: push2, remove: remove2, move }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7506
7506
|
"div",
|
|
7507
7507
|
{
|
|
7508
|
-
className:
|
|
7508
|
+
className: classNames73__default.default(
|
|
7509
7509
|
"flex w-full flex-col space-y-2 bg-eui-primary-300/10",
|
|
7510
7510
|
shapes[resolvedShape]
|
|
7511
7511
|
),
|
|
@@ -7534,7 +7534,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7534
7534
|
ref: provided2.innerRef,
|
|
7535
7535
|
...draggableProps,
|
|
7536
7536
|
style: draggableStyle,
|
|
7537
|
-
className:
|
|
7537
|
+
className: classNames73__default.default(
|
|
7538
7538
|
"flex items-center space-x-2 bg-eui-primary-300/10 p-2",
|
|
7539
7539
|
shapes[resolvedShape]
|
|
7540
7540
|
),
|
|
@@ -7545,7 +7545,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7545
7545
|
{
|
|
7546
7546
|
name: `${name2}[${index3}]`,
|
|
7547
7547
|
placeholder: `Item ${index3 + 1}`,
|
|
7548
|
-
className:
|
|
7548
|
+
className: classNames73__default.default(
|
|
7549
7549
|
"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",
|
|
7550
7550
|
shapes[resolvedShape],
|
|
7551
7551
|
hasItemError ? "border-eui-danger-500" : "border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -7641,7 +7641,7 @@ var InputListGroup = ({
|
|
|
7641
7641
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7642
7642
|
"div",
|
|
7643
7643
|
{
|
|
7644
|
-
className:
|
|
7644
|
+
className: classNames73__default.default(
|
|
7645
7645
|
"flex flex-col gap-2 bg-eui-primary-300/10 p-3",
|
|
7646
7646
|
shapes[resolvedShape]
|
|
7647
7647
|
),
|
|
@@ -7653,7 +7653,7 @@ var InputListGroup = ({
|
|
|
7653
7653
|
{
|
|
7654
7654
|
name: `${name2}[${groupIndex}].name`,
|
|
7655
7655
|
placeholder: `Group ${groupIndex + 1}`,
|
|
7656
|
-
className:
|
|
7656
|
+
className: classNames73__default.default(
|
|
7657
7657
|
"h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
|
|
7658
7658
|
shapes[resolvedShape],
|
|
7659
7659
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -7684,7 +7684,7 @@ var InputListGroup = ({
|
|
|
7684
7684
|
{
|
|
7685
7685
|
ref: provided.innerRef,
|
|
7686
7686
|
...provided.droppableProps,
|
|
7687
|
-
className:
|
|
7687
|
+
className: classNames73__default.default(
|
|
7688
7688
|
"space-y-2 bg-eui-primary-300/10 p-2",
|
|
7689
7689
|
shapes[resolvedShape]
|
|
7690
7690
|
),
|
|
@@ -7704,7 +7704,7 @@ var InputListGroup = ({
|
|
|
7704
7704
|
ref: provided2.innerRef,
|
|
7705
7705
|
...draggableProps,
|
|
7706
7706
|
style: draggableStyle,
|
|
7707
|
-
className:
|
|
7707
|
+
className: classNames73__default.default(
|
|
7708
7708
|
"flex items-center gap-2 bg-eui-primary-300/10 p-2",
|
|
7709
7709
|
shapes[resolvedShape]
|
|
7710
7710
|
),
|
|
@@ -7715,7 +7715,7 @@ var InputListGroup = ({
|
|
|
7715
7715
|
{
|
|
7716
7716
|
name: `${itemsFieldName}[${itemIndex}]`,
|
|
7717
7717
|
placeholder: `Item ${itemIndex + 1}`,
|
|
7718
|
-
className:
|
|
7718
|
+
className: classNames73__default.default(
|
|
7719
7719
|
"h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
|
|
7720
7720
|
shapes[resolvedShape],
|
|
7721
7721
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -8084,7 +8084,7 @@ var DateSelector = ({
|
|
|
8084
8084
|
...field,
|
|
8085
8085
|
...props,
|
|
8086
8086
|
placeholder,
|
|
8087
|
-
className:
|
|
8087
|
+
className: classNames73__default.default({
|
|
8088
8088
|
"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,
|
|
8089
8089
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
8090
8090
|
"transition-all ease-in-out": true,
|
|
@@ -8247,23 +8247,47 @@ function FormResponse({
|
|
|
8247
8247
|
const styles = resolveFormResponseStyles({ shape, size, variant });
|
|
8248
8248
|
return /* @__PURE__ */ jsxRuntime.jsx(Transition.TransitionDropdown, { visibility: Boolean(text10), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles.rootClassName, className), children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(styles.textClassName, textClassName), children: text10 }) }) });
|
|
8249
8249
|
}
|
|
8250
|
-
|
|
8250
|
+
var CloudinaryContext = React26.createContext(null);
|
|
8251
|
+
var CloudinaryProvider = ({
|
|
8252
|
+
cloudName,
|
|
8253
|
+
uploadPreset,
|
|
8254
|
+
children: children3
|
|
8255
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(CloudinaryContext.Provider, { value: { cloudName, uploadPreset }, children: children3 });
|
|
8256
|
+
var useCloudinaryConfig = () => {
|
|
8257
|
+
const ctx = React26.useContext(CloudinaryContext);
|
|
8258
|
+
if (!ctx) {
|
|
8259
|
+
throw new Error(
|
|
8260
|
+
"CloudinaryProvider is missing. Wrap your app with <CloudinaryProvider />"
|
|
8261
|
+
);
|
|
8262
|
+
}
|
|
8263
|
+
return ctx;
|
|
8264
|
+
};
|
|
8265
|
+
|
|
8266
|
+
// src/components/data-entry/image-input/base/ImageInput.config.ts
|
|
8267
|
+
var defaultImageInputTitle = "Upload Image";
|
|
8268
|
+
var defaultImageInputUploadDir = "eg-frontend-admin-temp";
|
|
8269
|
+
var imageInputPlaceholderPublicId = "public/placeholders/placeholder-dark_uwuxct";
|
|
8270
|
+
function ImageView({
|
|
8271
|
+
imageUrl,
|
|
8272
|
+
secure = true,
|
|
8273
|
+
alt = "image"
|
|
8274
|
+
}) {
|
|
8275
|
+
const { cloudName } = useCloudinaryConfig();
|
|
8251
8276
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-[200px] w-[300px]", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full h-full overflow-hidden bg-gray-900 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8252
8277
|
cloudinaryReact.Image,
|
|
8253
8278
|
{
|
|
8254
|
-
cloudName
|
|
8255
|
-
publicId: imageUrl ? imageUrl :
|
|
8279
|
+
cloudName,
|
|
8280
|
+
publicId: imageUrl ? imageUrl : imageInputPlaceholderPublicId,
|
|
8256
8281
|
secure,
|
|
8257
8282
|
alt,
|
|
8258
8283
|
className: "w-full h-full object-cover"
|
|
8259
8284
|
}
|
|
8260
8285
|
) }) });
|
|
8261
8286
|
}
|
|
8262
|
-
var ImageView_default = ImageView;
|
|
8263
8287
|
var ImageInput = React26.forwardRef(
|
|
8264
8288
|
({
|
|
8265
|
-
title =
|
|
8266
|
-
uploadDir =
|
|
8289
|
+
title = defaultImageInputTitle,
|
|
8290
|
+
uploadDir = defaultImageInputUploadDir,
|
|
8267
8291
|
onValueChanged = () => {
|
|
8268
8292
|
},
|
|
8269
8293
|
disableSetValue = false,
|
|
@@ -8272,6 +8296,7 @@ var ImageInput = React26.forwardRef(
|
|
|
8272
8296
|
const [field, meta, helpers] = formik.useField(props);
|
|
8273
8297
|
const { value: imageUrl } = field;
|
|
8274
8298
|
const { setValue } = helpers;
|
|
8299
|
+
const { cloudName, uploadPreset = "" } = useCloudinaryConfig();
|
|
8275
8300
|
const [image3, setImage] = React26.useState(null);
|
|
8276
8301
|
const [url, setUrl] = React26.useState(imageUrl);
|
|
8277
8302
|
const [loading, setLoading] = React26.useState(false);
|
|
@@ -8281,8 +8306,6 @@ var ImageInput = React26.forwardRef(
|
|
|
8281
8306
|
setLoading(true);
|
|
8282
8307
|
const data = new FormData();
|
|
8283
8308
|
data.append("file", image3);
|
|
8284
|
-
const uploadPreset = process.env.REACT_APP_CLOUDINARY_UPLOAD_PRESET || "";
|
|
8285
|
-
const cloudName = process.env.REACT_APP_CLOUDINARY_CLOUD_NAME || "";
|
|
8286
8309
|
data.append("upload_preset", uploadPreset);
|
|
8287
8310
|
data.append("cloud_name", cloudName);
|
|
8288
8311
|
data.append("folder", uploadDir);
|
|
@@ -8299,7 +8322,7 @@ var ImageInput = React26.forwardRef(
|
|
|
8299
8322
|
if (!disableSetValue) setValue(res.public_id);
|
|
8300
8323
|
onValueChanged(res.public_id);
|
|
8301
8324
|
setLoading(false);
|
|
8302
|
-
} catch
|
|
8325
|
+
} catch {
|
|
8303
8326
|
setLoading(false);
|
|
8304
8327
|
}
|
|
8305
8328
|
};
|
|
@@ -8343,7 +8366,7 @@ var ImageInput = React26.forwardRef(
|
|
|
8343
8366
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8344
8367
|
"label",
|
|
8345
8368
|
{
|
|
8346
|
-
className:
|
|
8369
|
+
className: classNames73__default.default({
|
|
8347
8370
|
"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,
|
|
8348
8371
|
"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
|
|
8349
8372
|
"transition-all ease-in-out duration-150": true
|
|
@@ -8368,7 +8391,7 @@ var ImageInput = React26.forwardRef(
|
|
|
8368
8391
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-[200px] w-[300px] bg-black opacity-50" }),
|
|
8369
8392
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(index_js$1.AiOutlineLoading, { className: "animate-spin" }) })
|
|
8370
8393
|
] }),
|
|
8371
|
-
!loading && url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8394
|
+
!loading && url && /* @__PURE__ */ jsxRuntime.jsx(ImageView, { imageUrl: url, alt: url ? url : "image" }),
|
|
8372
8395
|
(preview || url) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1 text-3xl", children: [
|
|
8373
8396
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8374
8397
|
"div",
|
|
@@ -8400,29 +8423,217 @@ var ImageInput = React26.forwardRef(
|
|
|
8400
8423
|
] });
|
|
8401
8424
|
}
|
|
8402
8425
|
);
|
|
8403
|
-
var
|
|
8426
|
+
var ImageInput_web_default = ImageInput;
|
|
8427
|
+
|
|
8428
|
+
// src/components/data-entry/multi-image-input/base/MultiImageInput.config.ts
|
|
8429
|
+
var defaultMultiImageInputTitle = "Upload Images";
|
|
8430
|
+
var defaultMultiImageInputUploadDir = "eg-frontend-admin-temp";
|
|
8431
|
+
function areImageListsEqual(current, next2) {
|
|
8432
|
+
return current.length === next2.length && current.every((imageUrl, index3) => imageUrl === next2[index3]);
|
|
8433
|
+
}
|
|
8404
8434
|
function MultiImageInput({
|
|
8405
|
-
title =
|
|
8406
|
-
uploadDir =
|
|
8435
|
+
title = defaultMultiImageInputTitle,
|
|
8436
|
+
uploadDir = defaultMultiImageInputUploadDir,
|
|
8407
8437
|
...props
|
|
8408
8438
|
}) {
|
|
8409
8439
|
const [field, meta, helpers] = formik.useField(props);
|
|
8410
|
-
const { value: imageUrls } = field;
|
|
8411
8440
|
const { setValue } = helpers;
|
|
8441
|
+
const { cloudName, uploadPreset = "" } = useCloudinaryConfig();
|
|
8442
|
+
const fieldImageUrls = React26.useMemo(
|
|
8443
|
+
() => Array.isArray(field.value) ? field.value : [],
|
|
8444
|
+
[field.value]
|
|
8445
|
+
);
|
|
8446
|
+
const [imageUrls, setImageUrls] = React26.useState(fieldImageUrls);
|
|
8412
8447
|
const imageInputRef = React26.useRef(null);
|
|
8448
|
+
const [draggedIndex, setDraggedIndex] = React26.useState(null);
|
|
8449
|
+
const [replacingIndex, setReplacingIndex] = React26.useState(null);
|
|
8450
|
+
const isOrganizerBusy = replacingIndex !== null;
|
|
8451
|
+
React26.useEffect(() => {
|
|
8452
|
+
setImageUrls(
|
|
8453
|
+
(currentImageUrls) => areImageListsEqual(currentImageUrls, fieldImageUrls) ? currentImageUrls : fieldImageUrls
|
|
8454
|
+
);
|
|
8455
|
+
}, [fieldImageUrls]);
|
|
8456
|
+
const commitImageUrls = (nextImageUrls) => {
|
|
8457
|
+
setImageUrls(nextImageUrls);
|
|
8458
|
+
void setValue(nextImageUrls);
|
|
8459
|
+
};
|
|
8413
8460
|
const onValueChanged = (url) => {
|
|
8414
|
-
|
|
8461
|
+
if (!url) {
|
|
8462
|
+
return;
|
|
8463
|
+
}
|
|
8464
|
+
commitImageUrls([...imageUrls, url]);
|
|
8415
8465
|
if (imageInputRef.current) {
|
|
8416
8466
|
imageInputRef.current.handleResetClick();
|
|
8417
8467
|
}
|
|
8418
8468
|
};
|
|
8419
|
-
|
|
8420
|
-
|
|
8469
|
+
const uploadImage = async (file) => {
|
|
8470
|
+
const data = new FormData();
|
|
8471
|
+
data.append("file", file);
|
|
8472
|
+
data.append("upload_preset", uploadPreset);
|
|
8473
|
+
data.append("cloud_name", cloudName);
|
|
8474
|
+
data.append("folder", uploadDir);
|
|
8475
|
+
const response = await fetch(
|
|
8476
|
+
`https://api.cloudinary.com/v1_1/${cloudName}/image/upload`,
|
|
8477
|
+
{
|
|
8478
|
+
method: "POST",
|
|
8479
|
+
body: data
|
|
8480
|
+
}
|
|
8481
|
+
);
|
|
8482
|
+
const res = await response.json();
|
|
8483
|
+
if (!res.public_id) {
|
|
8484
|
+
throw new Error("Cloudinary upload failed");
|
|
8485
|
+
}
|
|
8486
|
+
return res.public_id;
|
|
8487
|
+
};
|
|
8488
|
+
const removeImage = (index3) => {
|
|
8489
|
+
commitImageUrls(
|
|
8490
|
+
imageUrls.filter((_2, imageIndex) => imageIndex !== index3)
|
|
8491
|
+
);
|
|
8492
|
+
};
|
|
8493
|
+
const moveImage = (fromIndex, toIndex) => {
|
|
8494
|
+
if (toIndex < 0 || toIndex >= imageUrls.length || fromIndex === toIndex || isOrganizerBusy) {
|
|
8495
|
+
return;
|
|
8496
|
+
}
|
|
8497
|
+
const nextImageUrls = [...imageUrls];
|
|
8498
|
+
const [movedImage] = nextImageUrls.splice(fromIndex, 1);
|
|
8499
|
+
if (!movedImage) {
|
|
8500
|
+
return;
|
|
8501
|
+
}
|
|
8502
|
+
nextImageUrls.splice(toIndex, 0, movedImage);
|
|
8503
|
+
commitImageUrls(nextImageUrls);
|
|
8504
|
+
};
|
|
8505
|
+
const handleReplaceImage = async (index3, event) => {
|
|
8506
|
+
const input = event.currentTarget;
|
|
8507
|
+
const file = input.files?.[0];
|
|
8508
|
+
if (!file || isOrganizerBusy) {
|
|
8509
|
+
return;
|
|
8510
|
+
}
|
|
8511
|
+
setReplacingIndex(index3);
|
|
8512
|
+
try {
|
|
8513
|
+
const publicId = await uploadImage(file);
|
|
8514
|
+
const nextImageUrls = [...imageUrls];
|
|
8515
|
+
nextImageUrls[index3] = publicId;
|
|
8516
|
+
commitImageUrls(nextImageUrls);
|
|
8517
|
+
} catch {
|
|
8518
|
+
} finally {
|
|
8519
|
+
setReplacingIndex(null);
|
|
8520
|
+
input.value = "";
|
|
8521
|
+
}
|
|
8522
|
+
};
|
|
8523
|
+
const handleDragStart = (index3) => {
|
|
8524
|
+
if (isOrganizerBusy) {
|
|
8525
|
+
return;
|
|
8526
|
+
}
|
|
8527
|
+
setDraggedIndex(index3);
|
|
8528
|
+
};
|
|
8529
|
+
const handleDragOver = (event) => {
|
|
8530
|
+
if (!isOrganizerBusy) {
|
|
8531
|
+
event.preventDefault();
|
|
8532
|
+
}
|
|
8533
|
+
};
|
|
8534
|
+
const handleDrop = (index3) => {
|
|
8535
|
+
if (draggedIndex === null) {
|
|
8536
|
+
return;
|
|
8537
|
+
}
|
|
8538
|
+
moveImage(draggedIndex, index3);
|
|
8539
|
+
setDraggedIndex(null);
|
|
8540
|
+
};
|
|
8421
8541
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
8422
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row flex-wrap gap-5 w-
|
|
8423
|
-
imageUrls.map((url, index3) =>
|
|
8542
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row flex-wrap gap-5 w-full", children: [
|
|
8543
|
+
imageUrls.map((url, index3) => {
|
|
8544
|
+
const isReplacing = replacingIndex === index3;
|
|
8545
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8546
|
+
"div",
|
|
8547
|
+
{
|
|
8548
|
+
draggable: !isOrganizerBusy,
|
|
8549
|
+
onDragStart: () => handleDragStart(index3),
|
|
8550
|
+
onDragOver: handleDragOver,
|
|
8551
|
+
onDrop: () => handleDrop(index3),
|
|
8552
|
+
onDragEnd: () => setDraggedIndex(null),
|
|
8553
|
+
className: classNames73__default.default(
|
|
8554
|
+
"relative h-[200px] w-[300px] overflow-hidden bg-gray-900",
|
|
8555
|
+
"transition-all duration-150",
|
|
8556
|
+
draggedIndex === index3 && "opacity-60",
|
|
8557
|
+
!isOrganizerBusy && "cursor-grab active:cursor-grabbing"
|
|
8558
|
+
),
|
|
8559
|
+
children: [
|
|
8560
|
+
/* @__PURE__ */ jsxRuntime.jsx(ImageView, { imageUrl: url }),
|
|
8561
|
+
/* @__PURE__ */ jsxRuntime.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: [
|
|
8562
|
+
/* @__PURE__ */ jsxRuntime.jsx(index_js.MdDragIndicator, {}),
|
|
8563
|
+
index3 + 1
|
|
8564
|
+
] }),
|
|
8565
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute right-2 top-2 flex gap-1", children: [
|
|
8566
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8567
|
+
"button",
|
|
8568
|
+
{
|
|
8569
|
+
type: "button",
|
|
8570
|
+
title: "Move image left",
|
|
8571
|
+
"aria-label": "Move image left",
|
|
8572
|
+
disabled: index3 === 0 || isOrganizerBusy,
|
|
8573
|
+
onClick: () => moveImage(index3, index3 - 1),
|
|
8574
|
+
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",
|
|
8575
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(index_js.MdKeyboardArrowLeft, {})
|
|
8576
|
+
}
|
|
8577
|
+
),
|
|
8578
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8579
|
+
"button",
|
|
8580
|
+
{
|
|
8581
|
+
type: "button",
|
|
8582
|
+
title: "Move image right",
|
|
8583
|
+
"aria-label": "Move image right",
|
|
8584
|
+
disabled: index3 === imageUrls.length - 1 || isOrganizerBusy,
|
|
8585
|
+
onClick: () => moveImage(index3, index3 + 1),
|
|
8586
|
+
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",
|
|
8587
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(index_js.MdKeyboardArrowRight, {})
|
|
8588
|
+
}
|
|
8589
|
+
)
|
|
8590
|
+
] }),
|
|
8591
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute bottom-2 left-2 right-2 flex items-center justify-between gap-2", children: [
|
|
8592
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8593
|
+
"label",
|
|
8594
|
+
{
|
|
8595
|
+
title: "Change image",
|
|
8596
|
+
className: classNames73__default.default(
|
|
8597
|
+
"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",
|
|
8598
|
+
isOrganizerBusy ? "pointer-events-none cursor-not-allowed opacity-50" : "cursor-pointer hover:bg-green-700"
|
|
8599
|
+
),
|
|
8600
|
+
children: [
|
|
8601
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8602
|
+
"input",
|
|
8603
|
+
{
|
|
8604
|
+
type: "file",
|
|
8605
|
+
className: "hidden",
|
|
8606
|
+
accept: "image/*",
|
|
8607
|
+
disabled: isOrganizerBusy,
|
|
8608
|
+
onChange: (event) => void handleReplaceImage(index3, event)
|
|
8609
|
+
}
|
|
8610
|
+
),
|
|
8611
|
+
/* @__PURE__ */ jsxRuntime.jsx(index_js.MdUpload, {}),
|
|
8612
|
+
"Change"
|
|
8613
|
+
]
|
|
8614
|
+
}
|
|
8615
|
+
),
|
|
8616
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8617
|
+
"button",
|
|
8618
|
+
{
|
|
8619
|
+
type: "button",
|
|
8620
|
+
title: "Delete image",
|
|
8621
|
+
"aria-label": "Delete image",
|
|
8622
|
+
disabled: isOrganizerBusy,
|
|
8623
|
+
onClick: () => removeImage(index3),
|
|
8624
|
+
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",
|
|
8625
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(index_js.MdOutlineDelete, {})
|
|
8626
|
+
}
|
|
8627
|
+
)
|
|
8628
|
+
] }),
|
|
8629
|
+
isReplacing && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60 text-2xl text-white", children: /* @__PURE__ */ jsxRuntime.jsx(index_js$1.AiOutlineLoading, { className: "animate-spin" }) })
|
|
8630
|
+
]
|
|
8631
|
+
},
|
|
8632
|
+
`${url}-${index3}`
|
|
8633
|
+
);
|
|
8634
|
+
}),
|
|
8424
8635
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8425
|
-
|
|
8636
|
+
ImageInput_web_default,
|
|
8426
8637
|
{
|
|
8427
8638
|
ref: imageInputRef,
|
|
8428
8639
|
name: "new_img",
|
|
@@ -8444,7 +8655,7 @@ function MultiImageInput({
|
|
|
8444
8655
|
)
|
|
8445
8656
|
] });
|
|
8446
8657
|
}
|
|
8447
|
-
var
|
|
8658
|
+
var MultiImageInput_web_default = MultiImageInput;
|
|
8448
8659
|
function Radio({
|
|
8449
8660
|
placeholder,
|
|
8450
8661
|
options,
|
|
@@ -8460,7 +8671,7 @@ function Radio({
|
|
|
8460
8671
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8461
8672
|
"div",
|
|
8462
8673
|
{
|
|
8463
|
-
className:
|
|
8674
|
+
className: classNames73__default.default({
|
|
8464
8675
|
"flex flex-row gap-2 items-center mx-1 my-2": true
|
|
8465
8676
|
}),
|
|
8466
8677
|
children: [
|
|
@@ -8473,7 +8684,7 @@ function Radio({
|
|
|
8473
8684
|
...props,
|
|
8474
8685
|
value: option.value,
|
|
8475
8686
|
checked: field2.value === option.value,
|
|
8476
|
-
className:
|
|
8687
|
+
className: classNames73__default.default({
|
|
8477
8688
|
"appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
|
|
8478
8689
|
// base radio button styles
|
|
8479
8690
|
"checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
|
|
@@ -8485,7 +8696,7 @@ function Radio({
|
|
|
8485
8696
|
"label",
|
|
8486
8697
|
{
|
|
8487
8698
|
htmlFor: option.value,
|
|
8488
|
-
className:
|
|
8699
|
+
className: classNames73__default.default({
|
|
8489
8700
|
"eui-text-md text-sm": true
|
|
8490
8701
|
}),
|
|
8491
8702
|
children: option.label
|
|
@@ -8528,7 +8739,7 @@ function StarRatingInput({
|
|
|
8528
8739
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8529
8740
|
"div",
|
|
8530
8741
|
{
|
|
8531
|
-
className:
|
|
8742
|
+
className: classNames73__default.default({
|
|
8532
8743
|
"inline-flex gap-[4px] text-[20px]": true,
|
|
8533
8744
|
[`${styles}`]: styles
|
|
8534
8745
|
}),
|
|
@@ -8541,7 +8752,7 @@ function StarRatingInput({
|
|
|
8541
8752
|
onClick: () => handleOnClick(index3),
|
|
8542
8753
|
onMouseEnter: () => setHover(index3),
|
|
8543
8754
|
onMouseLeave: () => setHover(null),
|
|
8544
|
-
className:
|
|
8755
|
+
className: classNames73__default.default({
|
|
8545
8756
|
"text-yellow-600": index3 <= (hover ?? rating - 1),
|
|
8546
8757
|
"text-gray-400": index3 > (hover ?? rating - 1)
|
|
8547
8758
|
}),
|
|
@@ -8585,7 +8796,7 @@ function Select({
|
|
|
8585
8796
|
{
|
|
8586
8797
|
as: "select",
|
|
8587
8798
|
...props,
|
|
8588
|
-
className:
|
|
8799
|
+
className: classNames73__default.default({
|
|
8589
8800
|
"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,
|
|
8590
8801
|
"border-eui-primary-400": !(meta.touched && meta.error),
|
|
8591
8802
|
"border-red-500": meta.touched && meta.error,
|
|
@@ -8637,7 +8848,7 @@ function Switch({
|
|
|
8637
8848
|
"div",
|
|
8638
8849
|
{
|
|
8639
8850
|
onClick: () => helpers.setValue(!field.value),
|
|
8640
|
-
className:
|
|
8851
|
+
className: classNames73__default.default(
|
|
8641
8852
|
"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
|
|
8642
8853
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
8643
8854
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
|
|
@@ -8694,7 +8905,7 @@ function Tags({
|
|
|
8694
8905
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8695
8906
|
"div",
|
|
8696
8907
|
{
|
|
8697
|
-
className:
|
|
8908
|
+
className: classNames73__default.default(
|
|
8698
8909
|
"border rounded-sm flex flex-wrap items-center gap-2 px-2 pt-2 pb-6 min-h-[3rem]",
|
|
8699
8910
|
{
|
|
8700
8911
|
"bg-eui-primary-300/10 eui-text-md": true,
|
|
@@ -8742,7 +8953,7 @@ function Tags({
|
|
|
8742
8953
|
InputLabel,
|
|
8743
8954
|
{
|
|
8744
8955
|
text: placeholder,
|
|
8745
|
-
className:
|
|
8956
|
+
className: classNames73__default.default(
|
|
8746
8957
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
8747
8958
|
input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
8748
8959
|
)
|
|
@@ -8783,7 +8994,7 @@ function TextArea({
|
|
|
8783
8994
|
as: "textarea",
|
|
8784
8995
|
...field,
|
|
8785
8996
|
...props,
|
|
8786
|
-
className:
|
|
8997
|
+
className: classNames73__default.default({
|
|
8787
8998
|
"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,
|
|
8788
8999
|
"transition-all ease-in-out": true,
|
|
8789
9000
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -8797,7 +9008,7 @@ function TextArea({
|
|
|
8797
9008
|
InputLabel,
|
|
8798
9009
|
{
|
|
8799
9010
|
text: placeholder,
|
|
8800
|
-
className:
|
|
9011
|
+
className: classNames73__default.default(
|
|
8801
9012
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
8802
9013
|
field.value ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
8803
9014
|
)
|
|
@@ -8831,7 +9042,7 @@ function BreadcrumbItem({
|
|
|
8831
9042
|
{
|
|
8832
9043
|
href,
|
|
8833
9044
|
onClick,
|
|
8834
|
-
className:
|
|
9045
|
+
className: classNames73__default.default({
|
|
8835
9046
|
"text-lg font-semibold": true,
|
|
8836
9047
|
"text-gray-400 hover:text-gray-600 cursor-pointer": !active,
|
|
8837
9048
|
"text-eui-light-800": active,
|
|
@@ -8908,7 +9119,7 @@ var Breadcrumb = ({
|
|
|
8908
9119
|
index3 < resolvedData.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8909
9120
|
"span",
|
|
8910
9121
|
{
|
|
8911
|
-
className:
|
|
9122
|
+
className: classNames73__default.default({
|
|
8912
9123
|
"text-lg font-semibold text-gray-500": true,
|
|
8913
9124
|
[`px-${gap}`]: gap
|
|
8914
9125
|
}),
|
|
@@ -8922,7 +9133,7 @@ var Breadcrumb = ({
|
|
|
8922
9133
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8923
9134
|
"div",
|
|
8924
9135
|
{
|
|
8925
|
-
className:
|
|
9136
|
+
className: classNames73__default.default({
|
|
8926
9137
|
"inline-flex": true,
|
|
8927
9138
|
[`${styles}`]: styles
|
|
8928
9139
|
}),
|
|
@@ -8966,7 +9177,7 @@ var Drawer = ({
|
|
|
8966
9177
|
isMobile && showBackdrop && /* @__PURE__ */ jsxRuntime.jsx(TransitionFade_default, { visibility, leaveDuration: 200, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8967
9178
|
"div",
|
|
8968
9179
|
{
|
|
8969
|
-
className:
|
|
9180
|
+
className: classNames73__default.default(
|
|
8970
9181
|
"fixed inset-0 bg-black/50 z-40",
|
|
8971
9182
|
backdropStyles
|
|
8972
9183
|
),
|
|
@@ -8977,7 +9188,7 @@ var Drawer = ({
|
|
|
8977
9188
|
"div",
|
|
8978
9189
|
{
|
|
8979
9190
|
style: drawerStyle,
|
|
8980
|
-
className:
|
|
9191
|
+
className: classNames73__default.default(
|
|
8981
9192
|
"fixed shadow-lg z-50",
|
|
8982
9193
|
{
|
|
8983
9194
|
"h-full w-[300px] top-0": isHorizontal && !hasOffset,
|
|
@@ -9006,7 +9217,7 @@ function DrawerToggler({
|
|
|
9006
9217
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9007
9218
|
"div",
|
|
9008
9219
|
{
|
|
9009
|
-
className:
|
|
9220
|
+
className: classNames73__default.default({
|
|
9010
9221
|
"text-xl p-3 cursor-pointer": true,
|
|
9011
9222
|
"transition-all ease-in-out": true,
|
|
9012
9223
|
"text-eui-dark-500 dark:text-eui-secondary-600": !styles,
|
|
@@ -9054,7 +9265,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
9054
9265
|
childrenContent = /* @__PURE__ */ jsxRuntime.jsx(
|
|
9055
9266
|
"div",
|
|
9056
9267
|
{
|
|
9057
|
-
className:
|
|
9268
|
+
className: classNames73__default.default({
|
|
9058
9269
|
"grid w-full": true,
|
|
9059
9270
|
"grid-cols-1": isMobile,
|
|
9060
9271
|
"grid-cols-3": !isMobile,
|
|
@@ -9067,7 +9278,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
9067
9278
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9068
9279
|
"div",
|
|
9069
9280
|
{
|
|
9070
|
-
className:
|
|
9281
|
+
className: classNames73__default.default({
|
|
9071
9282
|
[`${styles}`]: styles
|
|
9072
9283
|
}),
|
|
9073
9284
|
children: childrenContent
|
|
@@ -9108,7 +9319,7 @@ var FooterNavGroup = ({
|
|
|
9108
9319
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9109
9320
|
"div",
|
|
9110
9321
|
{
|
|
9111
|
-
className:
|
|
9322
|
+
className: classNames73__default.default({
|
|
9112
9323
|
"": true,
|
|
9113
9324
|
"py-2 font-semibold eui-text-lg": !styles,
|
|
9114
9325
|
[`${styles}`]: styles
|
|
@@ -9153,7 +9364,7 @@ var FooterNavItem = ({
|
|
|
9153
9364
|
"div",
|
|
9154
9365
|
{
|
|
9155
9366
|
onClick: handleNavigation,
|
|
9156
|
-
className:
|
|
9367
|
+
className: classNames73__default.default({
|
|
9157
9368
|
"flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
|
|
9158
9369
|
"transition-all duration-200 ease-in-out": true,
|
|
9159
9370
|
"text-sm eui-text-sm": !styles,
|
|
@@ -9182,7 +9393,7 @@ var FooterNavItemTitle = ({
|
|
|
9182
9393
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9183
9394
|
"div",
|
|
9184
9395
|
{
|
|
9185
|
-
className:
|
|
9396
|
+
className: classNames73__default.default({
|
|
9186
9397
|
"": true,
|
|
9187
9398
|
"py-2 font-thin eui-text-md": !styles,
|
|
9188
9399
|
[`${styles}`]: styles
|
|
@@ -9235,7 +9446,7 @@ function HeaderNav({ data = [], styles }) {
|
|
|
9235
9446
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9236
9447
|
"div",
|
|
9237
9448
|
{
|
|
9238
|
-
className:
|
|
9449
|
+
className: classNames73__default.default({
|
|
9239
9450
|
[`${styles}`]: styles
|
|
9240
9451
|
}),
|
|
9241
9452
|
children: childrenContent
|
|
@@ -9297,7 +9508,7 @@ var HeaderNavGroup = ({
|
|
|
9297
9508
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9298
9509
|
"div",
|
|
9299
9510
|
{
|
|
9300
|
-
className:
|
|
9511
|
+
className: classNames73__default.default({
|
|
9301
9512
|
"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
|
|
9302
9513
|
"transition-all duration-300 ease-in-out": true,
|
|
9303
9514
|
"eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
|
|
@@ -9325,7 +9536,7 @@ var HeaderNavGroup = ({
|
|
|
9325
9536
|
children3 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9326
9537
|
index_js$3.BsChevronDown,
|
|
9327
9538
|
{
|
|
9328
|
-
className:
|
|
9539
|
+
className: classNames73__default.default({
|
|
9329
9540
|
"text-md": true,
|
|
9330
9541
|
"transition-all ease-in-out duration-300": true,
|
|
9331
9542
|
"rotate-180": !collapsed
|
|
@@ -9338,7 +9549,7 @@ var HeaderNavGroup = ({
|
|
|
9338
9549
|
!collapsed && children3 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9339
9550
|
"div",
|
|
9340
9551
|
{
|
|
9341
|
-
className:
|
|
9552
|
+
className: classNames73__default.default({
|
|
9342
9553
|
"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,
|
|
9343
9554
|
"transition-all duration-300 ease-in-out": true
|
|
9344
9555
|
}),
|
|
@@ -9368,7 +9579,7 @@ var HeaderNavItem = ({
|
|
|
9368
9579
|
"div",
|
|
9369
9580
|
{
|
|
9370
9581
|
onClick: handleNavigation,
|
|
9371
|
-
className:
|
|
9582
|
+
className: classNames73__default.default({
|
|
9372
9583
|
"flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
|
|
9373
9584
|
"transition-all duration-200 ease-in-out": true,
|
|
9374
9585
|
"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,
|
|
@@ -9397,7 +9608,7 @@ var HeaderNavItemTitle = ({
|
|
|
9397
9608
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9398
9609
|
"div",
|
|
9399
9610
|
{
|
|
9400
|
-
className:
|
|
9611
|
+
className: classNames73__default.default({
|
|
9401
9612
|
"p-3 font-thin": true,
|
|
9402
9613
|
"eui-text-md": !styles,
|
|
9403
9614
|
[`${styles}`]: styles
|
|
@@ -9437,7 +9648,7 @@ var Link = ({
|
|
|
9437
9648
|
href: href || "#",
|
|
9438
9649
|
target: targets[target],
|
|
9439
9650
|
onClick: handleClick,
|
|
9440
|
-
className:
|
|
9651
|
+
className: classNames73__default.default({
|
|
9441
9652
|
[`${textVariants[variant]}`]: variant,
|
|
9442
9653
|
[`${decorations[decoration]}`]: decoration,
|
|
9443
9654
|
"font-bold": bold,
|
|
@@ -12629,7 +12840,7 @@ function Accordion({
|
|
|
12629
12840
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12630
12841
|
"div",
|
|
12631
12842
|
{
|
|
12632
|
-
className:
|
|
12843
|
+
className: classNames73__default.default(
|
|
12633
12844
|
"inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs",
|
|
12634
12845
|
{
|
|
12635
12846
|
"hover:cursor-pointer": toggleOnSummaryClick
|
|
@@ -12650,7 +12861,7 @@ function Accordion({
|
|
|
12650
12861
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12651
12862
|
index_js$4.FaCircleChevronDown,
|
|
12652
12863
|
{
|
|
12653
|
-
className:
|
|
12864
|
+
className: classNames73__default.default("text-xl transition-transform duration-300", {
|
|
12654
12865
|
"rotate-180": collapse
|
|
12655
12866
|
})
|
|
12656
12867
|
}
|
|
@@ -12664,7 +12875,7 @@ function Accordion({
|
|
|
12664
12875
|
/* @__PURE__ */ jsxRuntime.jsx(TransitionAccordion_default, { visibility: collapse, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12665
12876
|
"div",
|
|
12666
12877
|
{
|
|
12667
|
-
className:
|
|
12878
|
+
className: classNames73__default.default(
|
|
12668
12879
|
"border-t border-t-eui-dark-400/40 eui-text-sm",
|
|
12669
12880
|
{
|
|
12670
12881
|
"p-5": enableChildrenPadding
|
|
@@ -12721,7 +12932,7 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
12721
12932
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12722
12933
|
"div",
|
|
12723
12934
|
{
|
|
12724
|
-
className:
|
|
12935
|
+
className: classNames73__default.default(
|
|
12725
12936
|
"flex items-start gap-4 p-6 border-b border-white/10",
|
|
12726
12937
|
className
|
|
12727
12938
|
),
|
|
@@ -12737,14 +12948,14 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
12737
12948
|
}
|
|
12738
12949
|
var CardHeader_default = CardHeader;
|
|
12739
12950
|
function CardContent({ children: children3, className }) {
|
|
12740
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
12951
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames73__default.default("p-6 text-gray-300 text-sm", className), children: children3 });
|
|
12741
12952
|
}
|
|
12742
12953
|
var CardContent_default = CardContent;
|
|
12743
12954
|
function CardFooter({ children: children3, className }) {
|
|
12744
12955
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12745
12956
|
"div",
|
|
12746
12957
|
{
|
|
12747
|
-
className:
|
|
12958
|
+
className: classNames73__default.default(
|
|
12748
12959
|
"flex items-center gap-3 p-5 border-t border-white/10 text-sm text-gray-400",
|
|
12749
12960
|
className
|
|
12750
12961
|
),
|
|
@@ -12786,7 +12997,7 @@ function GradientAnimation({
|
|
|
12786
12997
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12787
12998
|
"div",
|
|
12788
12999
|
{
|
|
12789
|
-
className:
|
|
13000
|
+
className: classNames73__default.default("absolute inset-0"),
|
|
12790
13001
|
style: {
|
|
12791
13002
|
background: `linear-gradient(${cfg.angle}deg, ${cfg.colors?.join(",")})`,
|
|
12792
13003
|
backgroundSize: cfg.backgroundSize,
|
|
@@ -12932,7 +13143,7 @@ function MotionSurface({
|
|
|
12932
13143
|
}) {
|
|
12933
13144
|
const AnimationComponent = animationVariant === "custom" ? CustomAnimation : animationRegistry[animationVariant];
|
|
12934
13145
|
const OverlayComponent = overlay === "custom" ? CustomOverlay : overlayRegistry[overlay];
|
|
12935
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
13146
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames73__default.default("relative overflow-hidden", className), children: [
|
|
12936
13147
|
AnimationComponent && /* @__PURE__ */ jsxRuntime.jsx(AnimationComponent, { config: animationConfig, animated }),
|
|
12937
13148
|
OverlayComponent && /* @__PURE__ */ jsxRuntime.jsx(OverlayComponent, { config: overlayConfig }),
|
|
12938
13149
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative z-10", children: children3 })
|
|
@@ -16314,20 +16525,6 @@ var Graph = ({
|
|
|
16314
16525
|
}
|
|
16315
16526
|
);
|
|
16316
16527
|
};
|
|
16317
|
-
var CloudinaryContext = React26.createContext(null);
|
|
16318
|
-
var CloudinaryProvider = ({
|
|
16319
|
-
cloudName,
|
|
16320
|
-
children: children3
|
|
16321
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(CloudinaryContext.Provider, { value: { cloudName }, children: children3 });
|
|
16322
|
-
var useCloudinaryConfig = () => {
|
|
16323
|
-
const ctx = React26.useContext(CloudinaryContext);
|
|
16324
|
-
if (!ctx) {
|
|
16325
|
-
throw new Error(
|
|
16326
|
-
"CloudinaryProvider is missing. Wrap your app with <CloudinaryProvider />"
|
|
16327
|
-
);
|
|
16328
|
-
}
|
|
16329
|
-
return ctx;
|
|
16330
|
-
};
|
|
16331
16528
|
var DEFAULT_PUBLIC_CLOUD = "demo";
|
|
16332
16529
|
var CloudinaryImage2 = ({
|
|
16333
16530
|
publicId = "sample",
|
|
@@ -18017,7 +18214,7 @@ var ThemeSwitch = () => {
|
|
|
18017
18214
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18018
18215
|
"div",
|
|
18019
18216
|
{
|
|
18020
|
-
className:
|
|
18217
|
+
className: classNames73__default.default(
|
|
18021
18218
|
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
18022
18219
|
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
18023
18220
|
)
|
|
@@ -29786,7 +29983,7 @@ function Modal({
|
|
|
29786
29983
|
"div",
|
|
29787
29984
|
{
|
|
29788
29985
|
ref: modalRef,
|
|
29789
|
-
className:
|
|
29986
|
+
className: classNames73__default.default(
|
|
29790
29987
|
"eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit",
|
|
29791
29988
|
shapes[resolvedShape],
|
|
29792
29989
|
styles
|
|
@@ -29798,7 +29995,7 @@ function Modal({
|
|
|
29798
29995
|
"button",
|
|
29799
29996
|
{
|
|
29800
29997
|
type: "button",
|
|
29801
|
-
className:
|
|
29998
|
+
className: classNames73__default.default(
|
|
29802
29999
|
"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast",
|
|
29803
30000
|
"hover:cursor-pointer hover:bg-eui-dark-500"
|
|
29804
30001
|
),
|
|
@@ -30190,7 +30387,7 @@ var ContentArea = React26.forwardRef(
|
|
|
30190
30387
|
"div",
|
|
30191
30388
|
{
|
|
30192
30389
|
ref,
|
|
30193
|
-
className:
|
|
30390
|
+
className: classNames73__default.default({
|
|
30194
30391
|
"min-h-screen h-full w-full transition-all duration-[200ms]": true,
|
|
30195
30392
|
"py-3 px-5": !enablePadding,
|
|
30196
30393
|
"py-3 px-5 lg:px-[150px]": enablePadding,
|
|
@@ -30207,7 +30404,7 @@ function FlexCol({ children: children3, gap = 3, styles }) {
|
|
|
30207
30404
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30208
30405
|
"div",
|
|
30209
30406
|
{
|
|
30210
|
-
className:
|
|
30407
|
+
className: classNames73__default.default({
|
|
30211
30408
|
[`flex flex-col gap-${gap}`]: true,
|
|
30212
30409
|
[`${styles}`]: styles
|
|
30213
30410
|
}),
|
|
@@ -30220,7 +30417,7 @@ function FlexRow({ children: children3, gap = 3, styles }) {
|
|
|
30220
30417
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30221
30418
|
"div",
|
|
30222
30419
|
{
|
|
30223
|
-
className:
|
|
30420
|
+
className: classNames73__default.default({
|
|
30224
30421
|
[`flex flex-row gap-${gap}`]: true,
|
|
30225
30422
|
[`${styles}`]: styles
|
|
30226
30423
|
}),
|
|
@@ -30239,7 +30436,7 @@ function Grid({ children: children3, styles }) {
|
|
|
30239
30436
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30240
30437
|
"div",
|
|
30241
30438
|
{
|
|
30242
|
-
className:
|
|
30439
|
+
className: classNames73__default.default({
|
|
30243
30440
|
[`grid`]: true,
|
|
30244
30441
|
[`${styles}`]: styles
|
|
30245
30442
|
}),
|
|
@@ -30256,7 +30453,7 @@ var Layout = ({
|
|
|
30256
30453
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30257
30454
|
"div",
|
|
30258
30455
|
{
|
|
30259
|
-
className:
|
|
30456
|
+
className: classNames73__default.default({
|
|
30260
30457
|
// "flex h-full w-screen bg-gray-100 overflow-auto": true,
|
|
30261
30458
|
"flex bg-eui-light-600": true,
|
|
30262
30459
|
"flex-col": flexDirection === "vertical",
|
|
@@ -30278,7 +30475,7 @@ var Header = ({
|
|
|
30278
30475
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30279
30476
|
"div",
|
|
30280
30477
|
{
|
|
30281
|
-
className:
|
|
30478
|
+
className: classNames73__default.default({
|
|
30282
30479
|
static: position4 === "static",
|
|
30283
30480
|
fixed: position4 === "fixed",
|
|
30284
30481
|
sticky: position4 === "sticky",
|
|
@@ -30313,7 +30510,7 @@ var Content = ({
|
|
|
30313
30510
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30314
30511
|
"div",
|
|
30315
30512
|
{
|
|
30316
|
-
className:
|
|
30513
|
+
className: classNames73__default.default({
|
|
30317
30514
|
"w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
|
|
30318
30515
|
"md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
|
|
30319
30516
|
// Shift when sidebar is open (desktop)
|
|
@@ -30329,7 +30526,7 @@ var Footer = ({ children: children3, styles }) => {
|
|
|
30329
30526
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30330
30527
|
"div",
|
|
30331
30528
|
{
|
|
30332
|
-
className:
|
|
30529
|
+
className: classNames73__default.default({
|
|
30333
30530
|
"bottom-0 w-full h-fit": true,
|
|
30334
30531
|
"border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
|
|
30335
30532
|
[`${styles}`]: styles
|
|
@@ -30517,7 +30714,7 @@ function ShowMore({ text: text10, limit }) {
|
|
|
30517
30714
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30518
30715
|
"div",
|
|
30519
30716
|
{
|
|
30520
|
-
className:
|
|
30717
|
+
className: classNames73__default.default({
|
|
30521
30718
|
"text-blue-300 px-1 pb-1 mt-1": true,
|
|
30522
30719
|
"bg-slate-900/70": !showMore,
|
|
30523
30720
|
"bg-gradient-to-t from-slate-900/50 to-transparent": showMore
|
|
@@ -31433,7 +31630,7 @@ function DocumentationPanel({
|
|
|
31433
31630
|
return /* @__PURE__ */ jsxRuntime.jsx(MarkdownProvider_default, { markdown: value, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31434
31631
|
"section",
|
|
31435
31632
|
{
|
|
31436
|
-
className:
|
|
31633
|
+
className: classNames73__default.default(
|
|
31437
31634
|
"eui-documentation-panel",
|
|
31438
31635
|
"min-h-0 overflow-hidden bg-white text-gray-900",
|
|
31439
31636
|
"dark:bg-gray-950 dark:text-gray-100",
|
|
@@ -31447,7 +31644,7 @@ function DocumentationPanel({
|
|
|
31447
31644
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31448
31645
|
"main",
|
|
31449
31646
|
{
|
|
31450
|
-
className:
|
|
31647
|
+
className: classNames73__default.default(
|
|
31451
31648
|
"eui-documentation-panel-viewer",
|
|
31452
31649
|
"documentation-panel-scrollbar min-w-0 overflow-y-auto scroll-smooth",
|
|
31453
31650
|
viewerClassName
|
|
@@ -31455,7 +31652,7 @@ function DocumentationPanel({
|
|
|
31455
31652
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31456
31653
|
"div",
|
|
31457
31654
|
{
|
|
31458
|
-
className:
|
|
31655
|
+
className: classNames73__default.default(
|
|
31459
31656
|
"mx-auto px-5 py-8 sm:px-6 lg:px-8",
|
|
31460
31657
|
contentMaxWidthClassName,
|
|
31461
31658
|
contentClassName
|
|
@@ -31468,7 +31665,7 @@ function DocumentationPanel({
|
|
|
31468
31665
|
toc ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
31469
31666
|
"aside",
|
|
31470
31667
|
{
|
|
31471
|
-
className:
|
|
31668
|
+
className: classNames73__default.default(
|
|
31472
31669
|
"eui-documentation-panel-toc",
|
|
31473
31670
|
"hidden min-w-0 border-l border-gray-200 bg-white lg:block",
|
|
31474
31671
|
"dark:border-gray-800 dark:bg-gray-950",
|
|
@@ -31477,7 +31674,7 @@ function DocumentationPanel({
|
|
|
31477
31674
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31478
31675
|
"div",
|
|
31479
31676
|
{
|
|
31480
|
-
className:
|
|
31677
|
+
className: classNames73__default.default(
|
|
31481
31678
|
"documentation-panel-scrollbar h-full overflow-y-auto px-5 py-8"
|
|
31482
31679
|
),
|
|
31483
31680
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sticky top-0", children: /* @__PURE__ */ jsxRuntime.jsx(MarkdownTOC_default, {}) })
|
|
@@ -31753,7 +31950,7 @@ function BoxNavItem({ icon, name: name2, to, selected, onClick }) {
|
|
|
31753
31950
|
type: "button",
|
|
31754
31951
|
onClick: handleClick,
|
|
31755
31952
|
"aria-current": selected ? "page" : void 0,
|
|
31756
|
-
className:
|
|
31953
|
+
className: classNames73__default.default(
|
|
31757
31954
|
"w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
|
|
31758
31955
|
"hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
|
|
31759
31956
|
selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
|
|
@@ -34455,11 +34652,11 @@ function addChildren(props, children3) {
|
|
|
34455
34652
|
}
|
|
34456
34653
|
}
|
|
34457
34654
|
}
|
|
34458
|
-
function productionCreate(_2,
|
|
34655
|
+
function productionCreate(_2, jsx256, jsxs129) {
|
|
34459
34656
|
return create3;
|
|
34460
34657
|
function create3(_3, type2, props, key) {
|
|
34461
34658
|
const isStaticChildren = Array.isArray(props.children);
|
|
34462
|
-
const fn = isStaticChildren ? jsxs129 :
|
|
34659
|
+
const fn = isStaticChildren ? jsxs129 : jsx256;
|
|
34463
34660
|
return key ? fn(type2, props, key) : fn(type2, props);
|
|
34464
34661
|
}
|
|
34465
34662
|
}
|
|
@@ -54490,7 +54687,7 @@ function MarkdownHeading({
|
|
|
54490
54687
|
id: id2,
|
|
54491
54688
|
level: typographyLevel,
|
|
54492
54689
|
bold: true,
|
|
54493
|
-
className:
|
|
54690
|
+
className: classNames73__default.default(
|
|
54494
54691
|
"eui-markdown-heading group relative scroll-mt-24 font-bold leading-tight text-gray-900 dark:text-gray-100",
|
|
54495
54692
|
HEADING_STYLES[level],
|
|
54496
54693
|
className
|
|
@@ -54653,18 +54850,18 @@ function powerSetPermutations(arr) {
|
|
|
54653
54850
|
}
|
|
54654
54851
|
}
|
|
54655
54852
|
var classNameCombinations = {};
|
|
54656
|
-
function getClassNameCombinations(
|
|
54657
|
-
if (
|
|
54658
|
-
var key =
|
|
54853
|
+
function getClassNameCombinations(classNames77) {
|
|
54854
|
+
if (classNames77.length === 0 || classNames77.length === 1) return classNames77;
|
|
54855
|
+
var key = classNames77.join(".");
|
|
54659
54856
|
if (!classNameCombinations[key]) {
|
|
54660
|
-
classNameCombinations[key] = powerSetPermutations(
|
|
54857
|
+
classNameCombinations[key] = powerSetPermutations(classNames77);
|
|
54661
54858
|
}
|
|
54662
54859
|
return classNameCombinations[key];
|
|
54663
54860
|
}
|
|
54664
|
-
function createStyleObject(
|
|
54861
|
+
function createStyleObject(classNames77) {
|
|
54665
54862
|
var elementStyle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
54666
54863
|
var stylesheet = arguments.length > 2 ? arguments[2] : void 0;
|
|
54667
|
-
var nonTokenClassNames =
|
|
54864
|
+
var nonTokenClassNames = classNames77.filter(function(className) {
|
|
54668
54865
|
return className !== "token";
|
|
54669
54866
|
});
|
|
54670
54867
|
var classNamesCombinations = getClassNameCombinations(nonTokenClassNames);
|
|
@@ -54672,8 +54869,8 @@ function createStyleObject(classNames76) {
|
|
|
54672
54869
|
return _objectSpread(_objectSpread({}, styleObject), stylesheet[className]);
|
|
54673
54870
|
}, elementStyle);
|
|
54674
54871
|
}
|
|
54675
|
-
function createClassNameString(
|
|
54676
|
-
return
|
|
54872
|
+
function createClassNameString(classNames77) {
|
|
54873
|
+
return classNames77.join(" ");
|
|
54677
54874
|
}
|
|
54678
54875
|
function createChildren2(stylesheet, useInlineStyles) {
|
|
54679
54876
|
var childrenCount = 0;
|
|
@@ -54846,8 +55043,8 @@ function flattenCodeTree(tree) {
|
|
|
54846
55043
|
}));
|
|
54847
55044
|
} else if (node2.children) {
|
|
54848
55045
|
var _node$properties;
|
|
54849
|
-
var
|
|
54850
|
-
flattenCodeTree(node2.children,
|
|
55046
|
+
var classNames77 = className.concat(((_node$properties = node2.properties) === null || _node$properties === void 0 ? void 0 : _node$properties.className) || []);
|
|
55047
|
+
flattenCodeTree(node2.children, classNames77).forEach(function(i2) {
|
|
54851
55048
|
return newTree.push(i2);
|
|
54852
55049
|
});
|
|
54853
55050
|
}
|
|
@@ -55378,7 +55575,7 @@ var json_default = json;
|
|
|
55378
55575
|
|
|
55379
55576
|
// node_modules/react-syntax-highlighter/dist/esm/languages/prism/jsx.js
|
|
55380
55577
|
init_jsx();
|
|
55381
|
-
var jsx_default =
|
|
55578
|
+
var jsx_default = jsx217;
|
|
55382
55579
|
|
|
55383
55580
|
// node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js
|
|
55384
55581
|
init_markup();
|
|
@@ -55511,7 +55708,7 @@ function MarkdownCodeBlock({
|
|
|
55511
55708
|
"div",
|
|
55512
55709
|
{
|
|
55513
55710
|
...props,
|
|
55514
|
-
className:
|
|
55711
|
+
className: classNames73__default.default(
|
|
55515
55712
|
"eui-markdown-code my-6 overflow-hidden rounded-md border border-slate-700 bg-[#0d1117] text-slate-300",
|
|
55516
55713
|
className
|
|
55517
55714
|
),
|
|
@@ -55582,7 +55779,7 @@ function MarkdownInlineCode({
|
|
|
55582
55779
|
Code,
|
|
55583
55780
|
{
|
|
55584
55781
|
...props,
|
|
55585
|
-
className:
|
|
55782
|
+
className: classNames73__default.default(
|
|
55586
55783
|
"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",
|
|
55587
55784
|
className
|
|
55588
55785
|
),
|
|
@@ -55623,7 +55820,7 @@ function MarkdownLink({
|
|
|
55623
55820
|
href: safeHref,
|
|
55624
55821
|
target: resolvedTarget,
|
|
55625
55822
|
rel,
|
|
55626
|
-
className:
|
|
55823
|
+
className: classNames73__default.default(
|
|
55627
55824
|
"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",
|
|
55628
55825
|
className
|
|
55629
55826
|
),
|
|
@@ -55658,7 +55855,7 @@ function MarkdownImage({
|
|
|
55658
55855
|
title,
|
|
55659
55856
|
loading: "lazy",
|
|
55660
55857
|
decoding: "async",
|
|
55661
|
-
className:
|
|
55858
|
+
className: classNames73__default.default(
|
|
55662
55859
|
"eui-markdown-image my-6 h-auto max-w-full rounded-md border border-gray-200 dark:border-gray-700",
|
|
55663
55860
|
className
|
|
55664
55861
|
)
|
|
@@ -55675,7 +55872,7 @@ function MarkdownTable({
|
|
|
55675
55872
|
TableElement,
|
|
55676
55873
|
{
|
|
55677
55874
|
...props,
|
|
55678
|
-
className:
|
|
55875
|
+
className: classNames73__default.default(
|
|
55679
55876
|
"eui-markdown-table w-full border-collapse text-[0.925rem]",
|
|
55680
55877
|
className
|
|
55681
55878
|
),
|
|
@@ -55692,7 +55889,7 @@ function MarkdownTableCell({
|
|
|
55692
55889
|
TableCell,
|
|
55693
55890
|
{
|
|
55694
55891
|
...props,
|
|
55695
|
-
className:
|
|
55892
|
+
className: classNames73__default.default(
|
|
55696
55893
|
"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",
|
|
55697
55894
|
className
|
|
55698
55895
|
),
|
|
@@ -55709,7 +55906,7 @@ function MarkdownTableHeaderCell({
|
|
|
55709
55906
|
TableHeaderCell,
|
|
55710
55907
|
{
|
|
55711
55908
|
...props,
|
|
55712
|
-
className:
|
|
55909
|
+
className: classNames73__default.default(
|
|
55713
55910
|
"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",
|
|
55714
55911
|
className
|
|
55715
55912
|
),
|
|
@@ -55725,7 +55922,7 @@ function MarkdownTableHead({
|
|
|
55725
55922
|
TableHead,
|
|
55726
55923
|
{
|
|
55727
55924
|
...props,
|
|
55728
|
-
className:
|
|
55925
|
+
className: classNames73__default.default(
|
|
55729
55926
|
"eui-markdown-table-head bg-gray-50 dark:bg-gray-900",
|
|
55730
55927
|
className
|
|
55731
55928
|
)
|
|
@@ -55740,7 +55937,7 @@ function MarkdownTableBody({
|
|
|
55740
55937
|
TableBody,
|
|
55741
55938
|
{
|
|
55742
55939
|
...props,
|
|
55743
|
-
className:
|
|
55940
|
+
className: classNames73__default.default("eui-markdown-table-body", className)
|
|
55744
55941
|
}
|
|
55745
55942
|
);
|
|
55746
55943
|
}
|
|
@@ -55752,7 +55949,7 @@ function MarkdownTableRow({
|
|
|
55752
55949
|
TableRow,
|
|
55753
55950
|
{
|
|
55754
55951
|
...props,
|
|
55755
|
-
className:
|
|
55952
|
+
className: classNames73__default.default(
|
|
55756
55953
|
"eui-markdown-table-row even:bg-gray-50/70 dark:even:bg-gray-900/60",
|
|
55757
55954
|
className
|
|
55758
55955
|
)
|
|
@@ -55770,7 +55967,7 @@ function MarkdownBlockquote({
|
|
|
55770
55967
|
{
|
|
55771
55968
|
...props,
|
|
55772
55969
|
as: "blockquote",
|
|
55773
|
-
className:
|
|
55970
|
+
className: classNames73__default.default(
|
|
55774
55971
|
"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",
|
|
55775
55972
|
className
|
|
55776
55973
|
),
|
|
@@ -55789,7 +55986,7 @@ function MarkdownParagraph({
|
|
|
55789
55986
|
{
|
|
55790
55987
|
...props,
|
|
55791
55988
|
level: 1,
|
|
55792
|
-
className:
|
|
55989
|
+
className: classNames73__default.default("eui-markdown-paragraph my-4", className),
|
|
55793
55990
|
children: /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: children3 })
|
|
55794
55991
|
}
|
|
55795
55992
|
);
|
|
@@ -55800,7 +55997,7 @@ function MarkdownStrong({ className, ...props }) {
|
|
|
55800
55997
|
"strong",
|
|
55801
55998
|
{
|
|
55802
55999
|
...props,
|
|
55803
|
-
className:
|
|
56000
|
+
className: classNames73__default.default(
|
|
55804
56001
|
"eui-markdown-strong font-semibold text-gray-950 dark:text-gray-100",
|
|
55805
56002
|
className
|
|
55806
56003
|
)
|
|
@@ -55813,7 +56010,7 @@ function MarkdownEmphasis({ className, ...props }) {
|
|
|
55813
56010
|
"em",
|
|
55814
56011
|
{
|
|
55815
56012
|
...props,
|
|
55816
|
-
className:
|
|
56013
|
+
className: classNames73__default.default("eui-markdown-emphasis italic", className)
|
|
55817
56014
|
}
|
|
55818
56015
|
);
|
|
55819
56016
|
}
|
|
@@ -55826,7 +56023,7 @@ function MarkdownStrikethrough({
|
|
|
55826
56023
|
"del",
|
|
55827
56024
|
{
|
|
55828
56025
|
...props,
|
|
55829
|
-
className:
|
|
56026
|
+
className: classNames73__default.default(
|
|
55830
56027
|
"eui-markdown-strikethrough text-gray-500 dark:text-gray-400",
|
|
55831
56028
|
className
|
|
55832
56029
|
)
|
|
@@ -55887,7 +56084,7 @@ function MarkdownTaskCheckbox({
|
|
|
55887
56084
|
"input",
|
|
55888
56085
|
{
|
|
55889
56086
|
...props,
|
|
55890
|
-
className:
|
|
56087
|
+
className: classNames73__default.default(
|
|
55891
56088
|
"eui-markdown-task-checkbox mr-2 translate-y-px accent-blue-600",
|
|
55892
56089
|
className
|
|
55893
56090
|
)
|
|
@@ -55903,7 +56100,7 @@ function MarkdownThematicBreak({
|
|
|
55903
56100
|
"hr",
|
|
55904
56101
|
{
|
|
55905
56102
|
...props,
|
|
55906
|
-
className:
|
|
56103
|
+
className: classNames73__default.default(
|
|
55907
56104
|
"eui-markdown-thematic-break my-8 border-0 border-t border-gray-200 dark:border-gray-800",
|
|
55908
56105
|
className
|
|
55909
56106
|
)
|
|
@@ -55920,7 +56117,7 @@ function MarkdownDetails({ className, ...props }) {
|
|
|
55920
56117
|
"details",
|
|
55921
56118
|
{
|
|
55922
56119
|
...props,
|
|
55923
|
-
className:
|
|
56120
|
+
className: classNames73__default.default(
|
|
55924
56121
|
"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",
|
|
55925
56122
|
className
|
|
55926
56123
|
)
|
|
@@ -55932,7 +56129,7 @@ function MarkdownSummary({ className, ...props }) {
|
|
|
55932
56129
|
"summary",
|
|
55933
56130
|
{
|
|
55934
56131
|
...props,
|
|
55935
|
-
className:
|
|
56132
|
+
className: classNames73__default.default(
|
|
55936
56133
|
"eui-markdown-summary cursor-pointer font-semibold text-gray-950 dark:text-gray-100",
|
|
55937
56134
|
className
|
|
55938
56135
|
)
|
|
@@ -55944,7 +56141,7 @@ function MarkdownFigure({ className, ...props }) {
|
|
|
55944
56141
|
"figure",
|
|
55945
56142
|
{
|
|
55946
56143
|
...props,
|
|
55947
|
-
className:
|
|
56144
|
+
className: classNames73__default.default("eui-markdown-figure my-6", className)
|
|
55948
56145
|
}
|
|
55949
56146
|
);
|
|
55950
56147
|
}
|
|
@@ -55956,7 +56153,7 @@ function MarkdownFigcaption({
|
|
|
55956
56153
|
return /* @__PURE__ */ jsxRuntime.jsx("figcaption", { ...props, className: "eui-markdown-figcaption mt-2 text-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
55957
56154
|
Caption,
|
|
55958
56155
|
{
|
|
55959
|
-
className:
|
|
56156
|
+
className: classNames73__default.default(
|
|
55960
56157
|
"text-gray-500 opacity-100 dark:text-gray-400",
|
|
55961
56158
|
className
|
|
55962
56159
|
),
|
|
@@ -56355,14 +56552,14 @@ function MarkdownRenderer({
|
|
|
56355
56552
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56356
56553
|
"div",
|
|
56357
56554
|
{
|
|
56358
|
-
className:
|
|
56555
|
+
className: classNames73__default.default(
|
|
56359
56556
|
"eui-markdown markdown-body break-words bg-transparent text-[0.95rem] leading-7 text-gray-800 dark:text-gray-300",
|
|
56360
56557
|
className
|
|
56361
56558
|
),
|
|
56362
56559
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
56363
56560
|
"div",
|
|
56364
56561
|
{
|
|
56365
|
-
className:
|
|
56562
|
+
className: classNames73__default.default(
|
|
56366
56563
|
"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0",
|
|
56367
56564
|
contentClassName
|
|
56368
56565
|
),
|
|
@@ -56440,11 +56637,11 @@ function MarkdownTOCItem({
|
|
|
56440
56637
|
onClick: () => onSelect?.(heading3),
|
|
56441
56638
|
"aria-current": active ? "location" : void 0,
|
|
56442
56639
|
title: label,
|
|
56443
|
-
className:
|
|
56640
|
+
className: classNames73__default.default(
|
|
56444
56641
|
"eui-markdown-toc-item",
|
|
56445
56642
|
"block w-full text-left text-sm transition-all ease-in-out duration-150",
|
|
56446
56643
|
"hover:text-primary",
|
|
56447
|
-
active ?
|
|
56644
|
+
active ? classNames73__default.default("text-primary font-semibold underline", activeClassName) : classNames73__default.default("text-gray-500 dark:text-gray-400", inactiveClassName),
|
|
56448
56645
|
className
|
|
56449
56646
|
),
|
|
56450
56647
|
style: {
|
|
@@ -56510,7 +56707,7 @@ function MarkdownTOC({
|
|
|
56510
56707
|
return emptyState ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
56511
56708
|
"div",
|
|
56512
56709
|
{
|
|
56513
|
-
className:
|
|
56710
|
+
className: classNames73__default.default(
|
|
56514
56711
|
"eui-markdown-toc",
|
|
56515
56712
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
56516
56713
|
className
|
|
@@ -56530,7 +56727,7 @@ function MarkdownTOC({
|
|
|
56530
56727
|
{
|
|
56531
56728
|
type: "button",
|
|
56532
56729
|
onClick: () => setCollapsed((value) => !value),
|
|
56533
|
-
className:
|
|
56730
|
+
className: classNames73__default.default(
|
|
56534
56731
|
"eui-markdown-toc-title",
|
|
56535
56732
|
"flex w-full items-center justify-between gap-2 text-left",
|
|
56536
56733
|
"text-sm font-semibold uppercase tracking-wide",
|
|
@@ -56543,7 +56740,7 @@ function MarkdownTOC({
|
|
|
56543
56740
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
56544
56741
|
"span",
|
|
56545
56742
|
{
|
|
56546
|
-
className:
|
|
56743
|
+
className: classNames73__default.default(
|
|
56547
56744
|
"text-xs opacity-60 transition-transform duration-150",
|
|
56548
56745
|
!collapsed && "rotate-90"
|
|
56549
56746
|
),
|
|
@@ -56556,7 +56753,7 @@ function MarkdownTOC({
|
|
|
56556
56753
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
56557
56754
|
"h2",
|
|
56558
56755
|
{
|
|
56559
|
-
className:
|
|
56756
|
+
className: classNames73__default.default(
|
|
56560
56757
|
"eui-markdown-toc-title",
|
|
56561
56758
|
"text-sm font-semibold uppercase tracking-wide",
|
|
56562
56759
|
"text-gray-900 dark:text-gray-100",
|
|
@@ -56568,7 +56765,7 @@ function MarkdownTOC({
|
|
|
56568
56765
|
!collapsed ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
56569
56766
|
"nav",
|
|
56570
56767
|
{
|
|
56571
|
-
className:
|
|
56768
|
+
className: classNames73__default.default(
|
|
56572
56769
|
"eui-markdown-toc-list",
|
|
56573
56770
|
"space-y-1",
|
|
56574
56771
|
listClassName
|
|
@@ -56592,7 +56789,7 @@ function MarkdownTOC({
|
|
|
56592
56789
|
}
|
|
56593
56790
|
) : null
|
|
56594
56791
|
] });
|
|
56595
|
-
return /* @__PURE__ */ jsxRuntime.jsx("aside", { className:
|
|
56792
|
+
return /* @__PURE__ */ jsxRuntime.jsx("aside", { className: classNames73__default.default("eui-markdown-toc", "space-y-4", className), children: content3 });
|
|
56596
56793
|
}
|
|
56597
56794
|
var MarkdownTOC_default = MarkdownTOC;
|
|
56598
56795
|
var DEFAULT_MARKDOWN_TOOLBAR_ACTIONS = [
|
|
@@ -56691,7 +56888,7 @@ function MarkdownToolbar({
|
|
|
56691
56888
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
56692
56889
|
"div",
|
|
56693
56890
|
{
|
|
56694
|
-
className:
|
|
56891
|
+
className: classNames73__default.default(
|
|
56695
56892
|
"eui-markdown-toolbar",
|
|
56696
56893
|
"flex flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 p-2",
|
|
56697
56894
|
"dark:border-gray-700 dark:bg-gray-900",
|
|
@@ -56705,7 +56902,7 @@ function MarkdownToolbar({
|
|
|
56705
56902
|
disabled: disabled || actionsDisabled,
|
|
56706
56903
|
title: action.shortcut ? `${action.title || action.label} (${action.shortcut})` : action.title || action.label,
|
|
56707
56904
|
onClick: () => onAction?.(action.id),
|
|
56708
|
-
className:
|
|
56905
|
+
className: classNames73__default.default(
|
|
56709
56906
|
"eui-markdown-toolbar-button",
|
|
56710
56907
|
"inline-flex items-center justify-center rounded border border-transparent",
|
|
56711
56908
|
"text-gray-700 transition-colors hover:border-gray-300 hover:bg-white",
|
|
@@ -56725,7 +56922,7 @@ function MarkdownToolbar({
|
|
|
56725
56922
|
disabled,
|
|
56726
56923
|
onClick: onViewModeToggle,
|
|
56727
56924
|
title: isPreviewMode ? "Switch to Markdown syntax" : "Switch to preview",
|
|
56728
|
-
className:
|
|
56925
|
+
className: classNames73__default.default(
|
|
56729
56926
|
"eui-markdown-view-toggle",
|
|
56730
56927
|
"inline-flex items-center justify-center rounded border font-medium transition-colors",
|
|
56731
56928
|
"border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -56982,7 +57179,7 @@ function MarkdownSourceEditor({
|
|
|
56982
57179
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
56983
57180
|
"div",
|
|
56984
57181
|
{
|
|
56985
|
-
className:
|
|
57182
|
+
className: classNames73__default.default(
|
|
56986
57183
|
"eui-markdown-editor",
|
|
56987
57184
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
56988
57185
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -56998,7 +57195,7 @@ function MarkdownSourceEditor({
|
|
|
56998
57195
|
actionsDisabled: readOnly,
|
|
56999
57196
|
viewMode: currentViewMode,
|
|
57000
57197
|
showViewModeToggle,
|
|
57001
|
-
className:
|
|
57198
|
+
className: classNames73__default.default(toolbarClassName, toolbarProps?.className),
|
|
57002
57199
|
onViewModeToggle: toggleViewMode,
|
|
57003
57200
|
onAction: handleToolbarAction
|
|
57004
57201
|
}
|
|
@@ -57006,7 +57203,7 @@ function MarkdownSourceEditor({
|
|
|
57006
57203
|
currentViewMode === "preview" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57007
57204
|
"div",
|
|
57008
57205
|
{
|
|
57009
|
-
className:
|
|
57206
|
+
className: classNames73__default.default(
|
|
57010
57207
|
"eui-markdown-editor-preview",
|
|
57011
57208
|
"min-h-[260px] p-4",
|
|
57012
57209
|
previewClassName
|
|
@@ -57029,7 +57226,7 @@ function MarkdownSourceEditor({
|
|
|
57029
57226
|
onChange: (event) => updateValue(event.target.value),
|
|
57030
57227
|
onBlur,
|
|
57031
57228
|
onKeyDown: handleKeyDown,
|
|
57032
|
-
className:
|
|
57229
|
+
className: classNames73__default.default(
|
|
57033
57230
|
"eui-markdown-source-textarea",
|
|
57034
57231
|
"block w-full resize-y border-0 bg-transparent p-4 font-mono text-sm leading-7",
|
|
57035
57232
|
"text-gray-900 outline-none placeholder:text-gray-400",
|
|
@@ -57059,7 +57256,7 @@ function MarkdownPreviewPane({
|
|
|
57059
57256
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
57060
57257
|
"div",
|
|
57061
57258
|
{
|
|
57062
|
-
className:
|
|
57259
|
+
className: classNames73__default.default(
|
|
57063
57260
|
"eui-markdown-preview-pane",
|
|
57064
57261
|
"rounded border border-gray-300 bg-white p-4",
|
|
57065
57262
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -57109,7 +57306,7 @@ function MarkdownSplitEditor({
|
|
|
57109
57306
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57110
57307
|
"div",
|
|
57111
57308
|
{
|
|
57112
|
-
className:
|
|
57309
|
+
className: classNames73__default.default(
|
|
57113
57310
|
"eui-markdown-split-editor",
|
|
57114
57311
|
"grid gap-4",
|
|
57115
57312
|
isHorizontal ? "grid-cols-1 lg:grid-cols-2" : "grid-cols-1",
|
|
@@ -57119,7 +57316,7 @@ function MarkdownSplitEditor({
|
|
|
57119
57316
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
57120
57317
|
"div",
|
|
57121
57318
|
{
|
|
57122
|
-
className:
|
|
57319
|
+
className: classNames73__default.default(
|
|
57123
57320
|
"eui-markdown-split-source",
|
|
57124
57321
|
"min-w-0 space-y-2",
|
|
57125
57322
|
sourceWrapperClassName
|
|
@@ -57143,7 +57340,7 @@ function MarkdownSplitEditor({
|
|
|
57143
57340
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
57144
57341
|
"div",
|
|
57145
57342
|
{
|
|
57146
|
-
className:
|
|
57343
|
+
className: classNames73__default.default(
|
|
57147
57344
|
"eui-markdown-split-preview",
|
|
57148
57345
|
"min-w-0 space-y-2",
|
|
57149
57346
|
previewWrapperClassName
|
|
@@ -57233,7 +57430,7 @@ function MarkdownField({
|
|
|
57233
57430
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57234
57431
|
"div",
|
|
57235
57432
|
{
|
|
57236
|
-
className:
|
|
57433
|
+
className: classNames73__default.default(
|
|
57237
57434
|
"eui-markdown-field",
|
|
57238
57435
|
"relative space-y-2",
|
|
57239
57436
|
wrapperClassName
|
|
@@ -57243,7 +57440,7 @@ function MarkdownField({
|
|
|
57243
57440
|
"label",
|
|
57244
57441
|
{
|
|
57245
57442
|
htmlFor: editorProps.id || field.name,
|
|
57246
|
-
className:
|
|
57443
|
+
className: classNames73__default.default(
|
|
57247
57444
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
57248
57445
|
labelClassName
|
|
57249
57446
|
),
|
|
@@ -57268,7 +57465,7 @@ function MarkdownField({
|
|
|
57268
57465
|
helperText && !hasError ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57269
57466
|
"p",
|
|
57270
57467
|
{
|
|
57271
|
-
className:
|
|
57468
|
+
className: classNames73__default.default(
|
|
57272
57469
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
57273
57470
|
helperTextClassName
|
|
57274
57471
|
),
|
|
@@ -57323,7 +57520,7 @@ function CodeMirrorMarkdownEditor({
|
|
|
57323
57520
|
{
|
|
57324
57521
|
id: id2,
|
|
57325
57522
|
"data-name": name2,
|
|
57326
|
-
className:
|
|
57523
|
+
className: classNames73__default.default(
|
|
57327
57524
|
"eui-markdown-adapter",
|
|
57328
57525
|
"eui-markdown-codemirror-adapter",
|
|
57329
57526
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
@@ -57357,7 +57554,7 @@ function CodeMirrorMarkdownEditor({
|
|
|
57357
57554
|
closeBrackets: true,
|
|
57358
57555
|
bracketMatching: true
|
|
57359
57556
|
},
|
|
57360
|
-
className:
|
|
57557
|
+
className: classNames73__default.default("eui-markdown-codemirror", editorClassName),
|
|
57361
57558
|
onChange: updateValue,
|
|
57362
57559
|
onBlur
|
|
57363
57560
|
}
|
|
@@ -57452,7 +57649,7 @@ function createDefaultPlugins({
|
|
|
57452
57649
|
...showToolbar ? [
|
|
57453
57650
|
editor.toolbarPlugin({
|
|
57454
57651
|
toolbarContents: toolbarContents ?? DefaultToolbar,
|
|
57455
|
-
toolbarClassName:
|
|
57652
|
+
toolbarClassName: classNames73__default.default(
|
|
57456
57653
|
"eui-markdown-mdx-toolbar",
|
|
57457
57654
|
toolbarClassName
|
|
57458
57655
|
),
|
|
@@ -57569,7 +57766,7 @@ var MDXMarkdownEditor = React26.forwardRef(
|
|
|
57569
57766
|
"aria-required": required || void 0,
|
|
57570
57767
|
"aria-invalid": invalid || void 0,
|
|
57571
57768
|
onBlurCapture: handleBlur,
|
|
57572
|
-
className:
|
|
57769
|
+
className: classNames73__default.default(
|
|
57573
57770
|
"eui-markdown-adapter",
|
|
57574
57771
|
"eui-markdown-mdx-adapter",
|
|
57575
57772
|
dark && ["dark", "dark-theme"],
|
|
@@ -57587,8 +57784,8 @@ var MDXMarkdownEditor = React26.forwardRef(
|
|
|
57587
57784
|
markdown: currentValue ?? "",
|
|
57588
57785
|
readOnly: disabled || readOnly,
|
|
57589
57786
|
plugins: plugins ?? defaultPlugins,
|
|
57590
|
-
className:
|
|
57591
|
-
contentEditableClassName:
|
|
57787
|
+
className: classNames73__default.default("eui-markdown-mdx-editor", editorClassName),
|
|
57788
|
+
contentEditableClassName: classNames73__default.default(
|
|
57592
57789
|
"eui-markdown-mdx-content",
|
|
57593
57790
|
contentEditableClassName
|
|
57594
57791
|
),
|
|
@@ -57625,7 +57822,7 @@ function MDXMarkdownField({
|
|
|
57625
57822
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57626
57823
|
"div",
|
|
57627
57824
|
{
|
|
57628
|
-
className:
|
|
57825
|
+
className: classNames73__default.default(
|
|
57629
57826
|
"eui-markdown-mdx-field",
|
|
57630
57827
|
"relative space-y-2",
|
|
57631
57828
|
wrapperClassName
|
|
@@ -57635,7 +57832,7 @@ function MDXMarkdownField({
|
|
|
57635
57832
|
"label",
|
|
57636
57833
|
{
|
|
57637
57834
|
htmlFor: editorId,
|
|
57638
|
-
className:
|
|
57835
|
+
className: classNames73__default.default(
|
|
57639
57836
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
57640
57837
|
labelClassName
|
|
57641
57838
|
),
|
|
@@ -57669,7 +57866,7 @@ function MDXMarkdownField({
|
|
|
57669
57866
|
"p",
|
|
57670
57867
|
{
|
|
57671
57868
|
id: helperId,
|
|
57672
|
-
className:
|
|
57869
|
+
className: classNames73__default.default(
|
|
57673
57870
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
57674
57871
|
helperTextClassName
|
|
57675
57872
|
),
|
|
@@ -57729,10 +57926,10 @@ function MarkdownLayout({
|
|
|
57729
57926
|
};
|
|
57730
57927
|
const hasLeftToc = hasToc && tocPosition === "left";
|
|
57731
57928
|
const hasRightToc = hasToc && tocPosition === "right";
|
|
57732
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
57929
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames73__default.default("eui-markdown-layout", "w-full", className), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57733
57930
|
"div",
|
|
57734
57931
|
{
|
|
57735
|
-
className:
|
|
57932
|
+
className: classNames73__default.default(
|
|
57736
57933
|
"eui-markdown-layout-container",
|
|
57737
57934
|
"mx-auto w-full px-4 sm:px-6 lg:px-8",
|
|
57738
57935
|
containerClassName
|
|
@@ -57744,7 +57941,7 @@ function MarkdownLayout({
|
|
|
57744
57941
|
header ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57745
57942
|
"header",
|
|
57746
57943
|
{
|
|
57747
|
-
className:
|
|
57944
|
+
className: classNames73__default.default(
|
|
57748
57945
|
"eui-markdown-layout-header",
|
|
57749
57946
|
"mb-8",
|
|
57750
57947
|
headerClassName
|
|
@@ -57755,7 +57952,7 @@ function MarkdownLayout({
|
|
|
57755
57952
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
57756
57953
|
"div",
|
|
57757
57954
|
{
|
|
57758
|
-
className:
|
|
57955
|
+
className: classNames73__default.default(
|
|
57759
57956
|
"eui-markdown-layout-grid",
|
|
57760
57957
|
"grid grid-cols-1 gap-8",
|
|
57761
57958
|
hasSidebar && hasToc && "xl:grid-cols-[16rem_minmax(0,1fr)_18rem]",
|
|
@@ -57768,7 +57965,7 @@ function MarkdownLayout({
|
|
|
57768
57965
|
hasSidebar ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57769
57966
|
"aside",
|
|
57770
57967
|
{
|
|
57771
|
-
className:
|
|
57968
|
+
className: classNames73__default.default(
|
|
57772
57969
|
"eui-markdown-layout-sidebar",
|
|
57773
57970
|
"min-w-0",
|
|
57774
57971
|
stickySidebar && "lg:sticky lg:self-start",
|
|
@@ -57781,7 +57978,7 @@ function MarkdownLayout({
|
|
|
57781
57978
|
hasLeftToc ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57782
57979
|
"aside",
|
|
57783
57980
|
{
|
|
57784
|
-
className:
|
|
57981
|
+
className: classNames73__default.default(
|
|
57785
57982
|
"eui-markdown-layout-toc",
|
|
57786
57983
|
"min-w-0",
|
|
57787
57984
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -57794,7 +57991,7 @@ function MarkdownLayout({
|
|
|
57794
57991
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57795
57992
|
"main",
|
|
57796
57993
|
{
|
|
57797
|
-
className:
|
|
57994
|
+
className: classNames73__default.default(
|
|
57798
57995
|
"eui-markdown-layout-content",
|
|
57799
57996
|
"min-w-0",
|
|
57800
57997
|
contentClassName
|
|
@@ -57805,7 +58002,7 @@ function MarkdownLayout({
|
|
|
57805
58002
|
hasRightToc ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57806
58003
|
"aside",
|
|
57807
58004
|
{
|
|
57808
|
-
className:
|
|
58005
|
+
className: classNames73__default.default(
|
|
57809
58006
|
"eui-markdown-layout-toc",
|
|
57810
58007
|
"min-w-0",
|
|
57811
58008
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -57818,7 +58015,7 @@ function MarkdownLayout({
|
|
|
57818
58015
|
hasAside ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57819
58016
|
"aside",
|
|
57820
58017
|
{
|
|
57821
|
-
className:
|
|
58018
|
+
className: classNames73__default.default(
|
|
57822
58019
|
"eui-markdown-layout-aside",
|
|
57823
58020
|
"min-w-0",
|
|
57824
58021
|
stickyAside && "2xl:sticky 2xl:self-start",
|
|
@@ -57834,7 +58031,7 @@ function MarkdownLayout({
|
|
|
57834
58031
|
footer2 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57835
58032
|
"footer",
|
|
57836
58033
|
{
|
|
57837
|
-
className:
|
|
58034
|
+
className: classNames73__default.default(
|
|
57838
58035
|
"eui-markdown-layout-footer",
|
|
57839
58036
|
"mt-10",
|
|
57840
58037
|
footerClassName
|
|
@@ -57871,7 +58068,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57871
58068
|
const resolvedHeader = header ?? (title || description || headerActions ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57872
58069
|
"div",
|
|
57873
58070
|
{
|
|
57874
|
-
className:
|
|
58071
|
+
className: classNames73__default.default(
|
|
57875
58072
|
"eui-markdown-docs-header",
|
|
57876
58073
|
"flex flex-col gap-4 border-b border-gray-200 pb-6",
|
|
57877
58074
|
"dark:border-gray-700",
|
|
@@ -57882,7 +58079,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57882
58079
|
title ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57883
58080
|
"h1",
|
|
57884
58081
|
{
|
|
57885
|
-
className:
|
|
58082
|
+
className: classNames73__default.default(
|
|
57886
58083
|
"eui-markdown-docs-title",
|
|
57887
58084
|
"text-3xl font-bold tracking-tight text-gray-950",
|
|
57888
58085
|
"dark:text-gray-50",
|
|
@@ -57894,7 +58091,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57894
58091
|
description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57895
58092
|
"div",
|
|
57896
58093
|
{
|
|
57897
|
-
className:
|
|
58094
|
+
className: classNames73__default.default(
|
|
57898
58095
|
"eui-markdown-docs-description",
|
|
57899
58096
|
"max-w-3xl text-base leading-7 text-gray-600",
|
|
57900
58097
|
"dark:text-gray-400",
|
|
@@ -57982,7 +58179,7 @@ function GenericLayout({
|
|
|
57982
58179
|
return /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57983
58180
|
"div",
|
|
57984
58181
|
{
|
|
57985
|
-
className:
|
|
58182
|
+
className: classNames73__default.default({
|
|
57986
58183
|
[`${styles}`]: styles
|
|
57987
58184
|
}),
|
|
57988
58185
|
children: children3
|
|
@@ -58031,7 +58228,7 @@ function SidemenuLayout({ data, children: children3 }) {
|
|
|
58031
58228
|
return /* @__PURE__ */ jsxRuntime.jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
58032
58229
|
"div",
|
|
58033
58230
|
{
|
|
58034
|
-
className:
|
|
58231
|
+
className: classNames73__default.default({
|
|
58035
58232
|
grid: true,
|
|
58036
58233
|
"grid-cols-7 gap-10": !isMobile,
|
|
58037
58234
|
"grid-cols-1 gap-": isMobile
|
|
@@ -58237,7 +58434,8 @@ exports.HeaderNavItemContext = HeaderNavItemContext;
|
|
|
58237
58434
|
exports.HeaderNavItemTitle = HeaderNavItemTitle;
|
|
58238
58435
|
exports.HomeLayout = HomeLayout_default;
|
|
58239
58436
|
exports.Image = Image2;
|
|
58240
|
-
exports.ImageInput =
|
|
58437
|
+
exports.ImageInput = ImageInput_web_default;
|
|
58438
|
+
exports.ImageView = ImageView;
|
|
58241
58439
|
exports.InfiniteScrollTrigger = InfiniteScrollTrigger_default;
|
|
58242
58440
|
exports.Info = Info;
|
|
58243
58441
|
exports.Input = Input;
|
|
@@ -58303,7 +58501,7 @@ exports.MenuItem = MenuItem;
|
|
|
58303
58501
|
exports.MenuItemTitle = MenuItemTitle;
|
|
58304
58502
|
exports.Modal = Modal_default;
|
|
58305
58503
|
exports.MotionSurface = MotionSurface_default;
|
|
58306
|
-
exports.MultiImageInput =
|
|
58504
|
+
exports.MultiImageInput = MultiImageInput_web_default;
|
|
58307
58505
|
exports.NumericRating = NumericRating;
|
|
58308
58506
|
exports.Overline = Overline;
|
|
58309
58507
|
exports.Paragraph = Paragraph;
|