elseware-ui 3.0.1 → 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/README.md +289 -289
- package/dist/index.css +68 -32
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +19 -29
- package/dist/index.d.ts +19 -29
- package/dist/index.js +510 -261
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +508 -260
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.d.mts +8 -4
- package/dist/index.native.d.ts +8 -4
- package/dist/index.native.js +140 -1
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +140 -3
- package/dist/index.native.mjs.map +1 -1
- package/dist/{resolveGlobalConfigs-Cuiq_Zix.d.mts → resolveGlobalConfigs-CL-Puk7Y.d.mts} +28 -2
- package/dist/{resolveGlobalConfigs-Cuiq_Zix.d.ts → resolveGlobalConfigs-CL-Puk7Y.d.ts} +28 -2
- package/package.json +173 -173
- package/tailwind.preset.js +116 -116
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"
|
|
@@ -7923,7 +7923,11 @@ function Checkbox(checkboxProps) {
|
|
|
7923
7923
|
checkedIconClassName,
|
|
7924
7924
|
labelClassName
|
|
7925
7925
|
} = checkboxProps;
|
|
7926
|
-
const {
|
|
7926
|
+
const {
|
|
7927
|
+
shape: resolvedShape,
|
|
7928
|
+
variant: resolvedVariant,
|
|
7929
|
+
label: resolvedLabel
|
|
7930
|
+
} = useResolvedCheckboxConfig({
|
|
7927
7931
|
label,
|
|
7928
7932
|
placeholder,
|
|
7929
7933
|
variant,
|
|
@@ -8080,7 +8084,7 @@ var DateSelector = ({
|
|
|
8080
8084
|
...field,
|
|
8081
8085
|
...props,
|
|
8082
8086
|
placeholder,
|
|
8083
|
-
className:
|
|
8087
|
+
className: classNames73__default.default({
|
|
8084
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,
|
|
8085
8089
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
8086
8090
|
"transition-all ease-in-out": true,
|
|
@@ -8093,8 +8097,18 @@ var DateSelector = ({
|
|
|
8093
8097
|
] });
|
|
8094
8098
|
};
|
|
8095
8099
|
var DateSelector_default = DateSelector;
|
|
8096
|
-
|
|
8100
|
+
function renderFormChildren(children3, formik) {
|
|
8101
|
+
return typeof children3 === "function" ? children3(formik) : children3;
|
|
8102
|
+
}
|
|
8103
|
+
function FormObservers({
|
|
8104
|
+
formik,
|
|
8105
|
+
onChange,
|
|
8106
|
+
onDirtyChange
|
|
8107
|
+
}) {
|
|
8097
8108
|
const prevValuesRef = React26.useRef(formik.values);
|
|
8109
|
+
React26.useEffect(() => {
|
|
8110
|
+
onDirtyChange?.(formik.dirty);
|
|
8111
|
+
}, [formik.dirty, onDirtyChange]);
|
|
8098
8112
|
React26.useEffect(() => {
|
|
8099
8113
|
if (!onChange) return;
|
|
8100
8114
|
const currentValues = formik.values;
|
|
@@ -8111,24 +8125,17 @@ var FormObserver = ({ formik, onChange }) => {
|
|
|
8111
8125
|
prevValuesRef.current = currentValues;
|
|
8112
8126
|
}, [formik.values, onChange]);
|
|
8113
8127
|
return null;
|
|
8114
|
-
}
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
onDirtyChange(formik.dirty);
|
|
8120
|
-
}
|
|
8121
|
-
}, [formik.dirty, onDirtyChange]);
|
|
8122
|
-
return null;
|
|
8123
|
-
};
|
|
8124
|
-
var DirtyObserver_default = DirtyObserver;
|
|
8125
|
-
var UnsavedChangesGuard = ({ formik, enabled }) => {
|
|
8128
|
+
}
|
|
8129
|
+
function UnsavedChangesGuard({
|
|
8130
|
+
formik,
|
|
8131
|
+
enabled
|
|
8132
|
+
}) {
|
|
8126
8133
|
React26.useEffect(() => {
|
|
8127
8134
|
if (!enabled) return;
|
|
8128
|
-
const handleBeforeUnload = (
|
|
8135
|
+
const handleBeforeUnload = (event) => {
|
|
8129
8136
|
if (!formik.dirty) return;
|
|
8130
|
-
|
|
8131
|
-
|
|
8137
|
+
event.preventDefault();
|
|
8138
|
+
event.returnValue = "";
|
|
8132
8139
|
};
|
|
8133
8140
|
window.addEventListener("beforeunload", handleBeforeUnload);
|
|
8134
8141
|
return () => {
|
|
@@ -8136,19 +8143,19 @@ var UnsavedChangesGuard = ({ formik, enabled }) => {
|
|
|
8136
8143
|
};
|
|
8137
8144
|
}, [formik.dirty, enabled]);
|
|
8138
8145
|
return null;
|
|
8139
|
-
}
|
|
8140
|
-
|
|
8141
|
-
var Form = ({
|
|
8146
|
+
}
|
|
8147
|
+
function Form({
|
|
8142
8148
|
initialValues = {},
|
|
8143
8149
|
validationSchema,
|
|
8144
8150
|
enableReinitialize,
|
|
8145
8151
|
children: children3,
|
|
8146
|
-
|
|
8152
|
+
className,
|
|
8153
|
+
contentClassName,
|
|
8147
8154
|
onSubmit,
|
|
8148
8155
|
onChange,
|
|
8149
8156
|
warnOnUnsavedChanges = false,
|
|
8150
8157
|
onDirtyChange
|
|
8151
|
-
})
|
|
8158
|
+
}) {
|
|
8152
8159
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8153
8160
|
formik.Formik,
|
|
8154
8161
|
{
|
|
@@ -8158,61 +8165,129 @@ var Form = ({
|
|
|
8158
8165
|
onSubmit: async (values, helpers) => {
|
|
8159
8166
|
await onSubmit(values, helpers);
|
|
8160
8167
|
},
|
|
8161
|
-
children: (formik$1) => /* @__PURE__ */ jsxRuntime.jsxs(formik.Form, { children: [
|
|
8162
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8163
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8164
|
-
|
|
8165
|
-
|
|
8168
|
+
children: (formik$1) => /* @__PURE__ */ jsxRuntime.jsxs(formik.Form, { className, children: [
|
|
8169
|
+
/* @__PURE__ */ jsxRuntime.jsx(UnsavedChangesGuard, { formik: formik$1, enabled: warnOnUnsavedChanges }),
|
|
8170
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8171
|
+
FormObservers,
|
|
8172
|
+
{
|
|
8173
|
+
formik: formik$1,
|
|
8174
|
+
onChange,
|
|
8175
|
+
onDirtyChange
|
|
8176
|
+
}
|
|
8177
|
+
),
|
|
8178
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(contentClassName), children: renderFormChildren(children3, formik$1) })
|
|
8166
8179
|
] })
|
|
8167
8180
|
}
|
|
8168
8181
|
);
|
|
8182
|
+
}
|
|
8183
|
+
|
|
8184
|
+
// src/components/data-entry/form/form-response/base/FormResponse.styles.ts
|
|
8185
|
+
var formResponseSizeStyles = {
|
|
8186
|
+
xs: {
|
|
8187
|
+
root: "px-2 py-1",
|
|
8188
|
+
text: "text-xs"
|
|
8189
|
+
},
|
|
8190
|
+
sm: {
|
|
8191
|
+
root: "px-3 py-2",
|
|
8192
|
+
text: "text-sm"
|
|
8193
|
+
},
|
|
8194
|
+
md: {
|
|
8195
|
+
root: "px-4 py-2",
|
|
8196
|
+
text: "text-base"
|
|
8197
|
+
},
|
|
8198
|
+
lg: {
|
|
8199
|
+
root: "px-5 py-3",
|
|
8200
|
+
text: "text-lg"
|
|
8201
|
+
},
|
|
8202
|
+
xl: {
|
|
8203
|
+
root: "px-6 py-4",
|
|
8204
|
+
text: "text-xl"
|
|
8205
|
+
}
|
|
8169
8206
|
};
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8207
|
+
function isTextClassName(token) {
|
|
8208
|
+
const styleToken = token.split(":").pop() ?? token;
|
|
8209
|
+
return styleToken.startsWith("text-");
|
|
8210
|
+
}
|
|
8211
|
+
function splitClassName(className) {
|
|
8212
|
+
const tokens = className.split(/\s+/).filter(Boolean);
|
|
8213
|
+
return {
|
|
8214
|
+
root: tokens.filter((token) => !isTextClassName(token)).join(" "),
|
|
8215
|
+
text: tokens.filter(isTextClassName).join(" ")
|
|
8216
|
+
};
|
|
8217
|
+
}
|
|
8218
|
+
function resolveFormResponseStyles({
|
|
8219
|
+
shape,
|
|
8220
|
+
size,
|
|
8221
|
+
variant
|
|
8222
|
+
}) {
|
|
8223
|
+
const variantClassNames = splitClassName(variantsLite[variant]);
|
|
8224
|
+
const sizeClassNames = formResponseSizeStyles[size];
|
|
8225
|
+
return {
|
|
8226
|
+
rootClassName: [
|
|
8227
|
+
"border",
|
|
8228
|
+
variantClassNames.root,
|
|
8229
|
+
shapes[shape],
|
|
8230
|
+
sizeClassNames.root
|
|
8231
|
+
].filter(Boolean).join(" "),
|
|
8232
|
+
textClassName: [
|
|
8233
|
+
"font-poppins font-light",
|
|
8234
|
+
variantClassNames.text,
|
|
8235
|
+
sizeClassNames.text
|
|
8236
|
+
].filter(Boolean).join(" ")
|
|
8237
|
+
};
|
|
8238
|
+
}
|
|
8177
8239
|
function FormResponse({
|
|
8178
8240
|
text: text10,
|
|
8179
8241
|
variant = "default",
|
|
8180
8242
|
shape = "roundedSquare",
|
|
8181
8243
|
size = "md",
|
|
8182
|
-
|
|
8244
|
+
className,
|
|
8245
|
+
textClassName
|
|
8183
8246
|
}) {
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
{
|
|
8187
|
-
className: classNames74__default.default({
|
|
8188
|
-
"font-poppins font-light text-sm": true,
|
|
8189
|
-
[`${variantsLite[variant]}`]: variant,
|
|
8190
|
-
[`${shapes[shape]}`]: shape,
|
|
8191
|
-
[`${sizes[size]}`]: size,
|
|
8192
|
-
[`${styles}`]: styles
|
|
8193
|
-
}),
|
|
8194
|
-
children: text10
|
|
8195
|
-
}
|
|
8196
|
-
) });
|
|
8247
|
+
const styles = resolveFormResponseStyles({ shape, size, variant });
|
|
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 }) }) });
|
|
8197
8249
|
}
|
|
8198
|
-
var
|
|
8199
|
-
|
|
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();
|
|
8200
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(
|
|
8201
8277
|
cloudinaryReact.Image,
|
|
8202
8278
|
{
|
|
8203
|
-
cloudName
|
|
8204
|
-
publicId: imageUrl ? imageUrl :
|
|
8279
|
+
cloudName,
|
|
8280
|
+
publicId: imageUrl ? imageUrl : imageInputPlaceholderPublicId,
|
|
8205
8281
|
secure,
|
|
8206
8282
|
alt,
|
|
8207
8283
|
className: "w-full h-full object-cover"
|
|
8208
8284
|
}
|
|
8209
8285
|
) }) });
|
|
8210
8286
|
}
|
|
8211
|
-
var ImageView_default = ImageView;
|
|
8212
8287
|
var ImageInput = React26.forwardRef(
|
|
8213
8288
|
({
|
|
8214
|
-
title =
|
|
8215
|
-
uploadDir =
|
|
8289
|
+
title = defaultImageInputTitle,
|
|
8290
|
+
uploadDir = defaultImageInputUploadDir,
|
|
8216
8291
|
onValueChanged = () => {
|
|
8217
8292
|
},
|
|
8218
8293
|
disableSetValue = false,
|
|
@@ -8221,6 +8296,7 @@ var ImageInput = React26.forwardRef(
|
|
|
8221
8296
|
const [field, meta, helpers] = formik.useField(props);
|
|
8222
8297
|
const { value: imageUrl } = field;
|
|
8223
8298
|
const { setValue } = helpers;
|
|
8299
|
+
const { cloudName, uploadPreset = "" } = useCloudinaryConfig();
|
|
8224
8300
|
const [image3, setImage] = React26.useState(null);
|
|
8225
8301
|
const [url, setUrl] = React26.useState(imageUrl);
|
|
8226
8302
|
const [loading, setLoading] = React26.useState(false);
|
|
@@ -8230,8 +8306,6 @@ var ImageInput = React26.forwardRef(
|
|
|
8230
8306
|
setLoading(true);
|
|
8231
8307
|
const data = new FormData();
|
|
8232
8308
|
data.append("file", image3);
|
|
8233
|
-
const uploadPreset = process.env.REACT_APP_CLOUDINARY_UPLOAD_PRESET || "";
|
|
8234
|
-
const cloudName = process.env.REACT_APP_CLOUDINARY_CLOUD_NAME || "";
|
|
8235
8309
|
data.append("upload_preset", uploadPreset);
|
|
8236
8310
|
data.append("cloud_name", cloudName);
|
|
8237
8311
|
data.append("folder", uploadDir);
|
|
@@ -8248,7 +8322,7 @@ var ImageInput = React26.forwardRef(
|
|
|
8248
8322
|
if (!disableSetValue) setValue(res.public_id);
|
|
8249
8323
|
onValueChanged(res.public_id);
|
|
8250
8324
|
setLoading(false);
|
|
8251
|
-
} catch
|
|
8325
|
+
} catch {
|
|
8252
8326
|
setLoading(false);
|
|
8253
8327
|
}
|
|
8254
8328
|
};
|
|
@@ -8292,7 +8366,7 @@ var ImageInput = React26.forwardRef(
|
|
|
8292
8366
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8293
8367
|
"label",
|
|
8294
8368
|
{
|
|
8295
|
-
className:
|
|
8369
|
+
className: classNames73__default.default({
|
|
8296
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,
|
|
8297
8371
|
"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
|
|
8298
8372
|
"transition-all ease-in-out duration-150": true
|
|
@@ -8317,7 +8391,7 @@ var ImageInput = React26.forwardRef(
|
|
|
8317
8391
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-[200px] w-[300px] bg-black opacity-50" }),
|
|
8318
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" }) })
|
|
8319
8393
|
] }),
|
|
8320
|
-
!loading && url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8394
|
+
!loading && url && /* @__PURE__ */ jsxRuntime.jsx(ImageView, { imageUrl: url, alt: url ? url : "image" }),
|
|
8321
8395
|
(preview || url) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1 text-3xl", children: [
|
|
8322
8396
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8323
8397
|
"div",
|
|
@@ -8349,29 +8423,217 @@ var ImageInput = React26.forwardRef(
|
|
|
8349
8423
|
] });
|
|
8350
8424
|
}
|
|
8351
8425
|
);
|
|
8352
|
-
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
|
+
}
|
|
8353
8434
|
function MultiImageInput({
|
|
8354
|
-
title =
|
|
8355
|
-
uploadDir =
|
|
8435
|
+
title = defaultMultiImageInputTitle,
|
|
8436
|
+
uploadDir = defaultMultiImageInputUploadDir,
|
|
8356
8437
|
...props
|
|
8357
8438
|
}) {
|
|
8358
8439
|
const [field, meta, helpers] = formik.useField(props);
|
|
8359
|
-
const { value: imageUrls } = field;
|
|
8360
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);
|
|
8361
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
|
+
};
|
|
8362
8460
|
const onValueChanged = (url) => {
|
|
8363
|
-
|
|
8461
|
+
if (!url) {
|
|
8462
|
+
return;
|
|
8463
|
+
}
|
|
8464
|
+
commitImageUrls([...imageUrls, url]);
|
|
8364
8465
|
if (imageInputRef.current) {
|
|
8365
8466
|
imageInputRef.current.handleResetClick();
|
|
8366
8467
|
}
|
|
8367
8468
|
};
|
|
8368
|
-
|
|
8369
|
-
|
|
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
|
+
};
|
|
8370
8541
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
8371
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row flex-wrap gap-5 w-
|
|
8372
|
-
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
|
+
}),
|
|
8373
8635
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8374
|
-
|
|
8636
|
+
ImageInput_web_default,
|
|
8375
8637
|
{
|
|
8376
8638
|
ref: imageInputRef,
|
|
8377
8639
|
name: "new_img",
|
|
@@ -8393,7 +8655,7 @@ function MultiImageInput({
|
|
|
8393
8655
|
)
|
|
8394
8656
|
] });
|
|
8395
8657
|
}
|
|
8396
|
-
var
|
|
8658
|
+
var MultiImageInput_web_default = MultiImageInput;
|
|
8397
8659
|
function Radio({
|
|
8398
8660
|
placeholder,
|
|
8399
8661
|
options,
|
|
@@ -8409,7 +8671,7 @@ function Radio({
|
|
|
8409
8671
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8410
8672
|
"div",
|
|
8411
8673
|
{
|
|
8412
|
-
className:
|
|
8674
|
+
className: classNames73__default.default({
|
|
8413
8675
|
"flex flex-row gap-2 items-center mx-1 my-2": true
|
|
8414
8676
|
}),
|
|
8415
8677
|
children: [
|
|
@@ -8422,7 +8684,7 @@ function Radio({
|
|
|
8422
8684
|
...props,
|
|
8423
8685
|
value: option.value,
|
|
8424
8686
|
checked: field2.value === option.value,
|
|
8425
|
-
className:
|
|
8687
|
+
className: classNames73__default.default({
|
|
8426
8688
|
"appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
|
|
8427
8689
|
// base radio button styles
|
|
8428
8690
|
"checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
|
|
@@ -8434,7 +8696,7 @@ function Radio({
|
|
|
8434
8696
|
"label",
|
|
8435
8697
|
{
|
|
8436
8698
|
htmlFor: option.value,
|
|
8437
|
-
className:
|
|
8699
|
+
className: classNames73__default.default({
|
|
8438
8700
|
"eui-text-md text-sm": true
|
|
8439
8701
|
}),
|
|
8440
8702
|
children: option.label
|
|
@@ -8477,7 +8739,7 @@ function StarRatingInput({
|
|
|
8477
8739
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8478
8740
|
"div",
|
|
8479
8741
|
{
|
|
8480
|
-
className:
|
|
8742
|
+
className: classNames73__default.default({
|
|
8481
8743
|
"inline-flex gap-[4px] text-[20px]": true,
|
|
8482
8744
|
[`${styles}`]: styles
|
|
8483
8745
|
}),
|
|
@@ -8490,7 +8752,7 @@ function StarRatingInput({
|
|
|
8490
8752
|
onClick: () => handleOnClick(index3),
|
|
8491
8753
|
onMouseEnter: () => setHover(index3),
|
|
8492
8754
|
onMouseLeave: () => setHover(null),
|
|
8493
|
-
className:
|
|
8755
|
+
className: classNames73__default.default({
|
|
8494
8756
|
"text-yellow-600": index3 <= (hover ?? rating - 1),
|
|
8495
8757
|
"text-gray-400": index3 > (hover ?? rating - 1)
|
|
8496
8758
|
}),
|
|
@@ -8534,7 +8796,7 @@ function Select({
|
|
|
8534
8796
|
{
|
|
8535
8797
|
as: "select",
|
|
8536
8798
|
...props,
|
|
8537
|
-
className:
|
|
8799
|
+
className: classNames73__default.default({
|
|
8538
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,
|
|
8539
8801
|
"border-eui-primary-400": !(meta.touched && meta.error),
|
|
8540
8802
|
"border-red-500": meta.touched && meta.error,
|
|
@@ -8586,7 +8848,7 @@ function Switch({
|
|
|
8586
8848
|
"div",
|
|
8587
8849
|
{
|
|
8588
8850
|
onClick: () => helpers.setValue(!field.value),
|
|
8589
|
-
className:
|
|
8851
|
+
className: classNames73__default.default(
|
|
8590
8852
|
"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
|
|
8591
8853
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
8592
8854
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
|
|
@@ -8643,7 +8905,7 @@ function Tags({
|
|
|
8643
8905
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8644
8906
|
"div",
|
|
8645
8907
|
{
|
|
8646
|
-
className:
|
|
8908
|
+
className: classNames73__default.default(
|
|
8647
8909
|
"border rounded-sm flex flex-wrap items-center gap-2 px-2 pt-2 pb-6 min-h-[3rem]",
|
|
8648
8910
|
{
|
|
8649
8911
|
"bg-eui-primary-300/10 eui-text-md": true,
|
|
@@ -8691,7 +8953,7 @@ function Tags({
|
|
|
8691
8953
|
InputLabel,
|
|
8692
8954
|
{
|
|
8693
8955
|
text: placeholder,
|
|
8694
|
-
className:
|
|
8956
|
+
className: classNames73__default.default(
|
|
8695
8957
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
8696
8958
|
input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
8697
8959
|
)
|
|
@@ -8732,7 +8994,7 @@ function TextArea({
|
|
|
8732
8994
|
as: "textarea",
|
|
8733
8995
|
...field,
|
|
8734
8996
|
...props,
|
|
8735
|
-
className:
|
|
8997
|
+
className: classNames73__default.default({
|
|
8736
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,
|
|
8737
8999
|
"transition-all ease-in-out": true,
|
|
8738
9000
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -8746,7 +9008,7 @@ function TextArea({
|
|
|
8746
9008
|
InputLabel,
|
|
8747
9009
|
{
|
|
8748
9010
|
text: placeholder,
|
|
8749
|
-
className:
|
|
9011
|
+
className: classNames73__default.default(
|
|
8750
9012
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
8751
9013
|
field.value ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
8752
9014
|
)
|
|
@@ -8780,7 +9042,7 @@ function BreadcrumbItem({
|
|
|
8780
9042
|
{
|
|
8781
9043
|
href,
|
|
8782
9044
|
onClick,
|
|
8783
|
-
className:
|
|
9045
|
+
className: classNames73__default.default({
|
|
8784
9046
|
"text-lg font-semibold": true,
|
|
8785
9047
|
"text-gray-400 hover:text-gray-600 cursor-pointer": !active,
|
|
8786
9048
|
"text-eui-light-800": active,
|
|
@@ -8857,7 +9119,7 @@ var Breadcrumb = ({
|
|
|
8857
9119
|
index3 < resolvedData.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8858
9120
|
"span",
|
|
8859
9121
|
{
|
|
8860
|
-
className:
|
|
9122
|
+
className: classNames73__default.default({
|
|
8861
9123
|
"text-lg font-semibold text-gray-500": true,
|
|
8862
9124
|
[`px-${gap}`]: gap
|
|
8863
9125
|
}),
|
|
@@ -8871,7 +9133,7 @@ var Breadcrumb = ({
|
|
|
8871
9133
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8872
9134
|
"div",
|
|
8873
9135
|
{
|
|
8874
|
-
className:
|
|
9136
|
+
className: classNames73__default.default({
|
|
8875
9137
|
"inline-flex": true,
|
|
8876
9138
|
[`${styles}`]: styles
|
|
8877
9139
|
}),
|
|
@@ -8915,7 +9177,7 @@ var Drawer = ({
|
|
|
8915
9177
|
isMobile && showBackdrop && /* @__PURE__ */ jsxRuntime.jsx(TransitionFade_default, { visibility, leaveDuration: 200, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8916
9178
|
"div",
|
|
8917
9179
|
{
|
|
8918
|
-
className:
|
|
9180
|
+
className: classNames73__default.default(
|
|
8919
9181
|
"fixed inset-0 bg-black/50 z-40",
|
|
8920
9182
|
backdropStyles
|
|
8921
9183
|
),
|
|
@@ -8926,7 +9188,7 @@ var Drawer = ({
|
|
|
8926
9188
|
"div",
|
|
8927
9189
|
{
|
|
8928
9190
|
style: drawerStyle,
|
|
8929
|
-
className:
|
|
9191
|
+
className: classNames73__default.default(
|
|
8930
9192
|
"fixed shadow-lg z-50",
|
|
8931
9193
|
{
|
|
8932
9194
|
"h-full w-[300px] top-0": isHorizontal && !hasOffset,
|
|
@@ -8955,7 +9217,7 @@ function DrawerToggler({
|
|
|
8955
9217
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8956
9218
|
"div",
|
|
8957
9219
|
{
|
|
8958
|
-
className:
|
|
9220
|
+
className: classNames73__default.default({
|
|
8959
9221
|
"text-xl p-3 cursor-pointer": true,
|
|
8960
9222
|
"transition-all ease-in-out": true,
|
|
8961
9223
|
"text-eui-dark-500 dark:text-eui-secondary-600": !styles,
|
|
@@ -9003,7 +9265,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
9003
9265
|
childrenContent = /* @__PURE__ */ jsxRuntime.jsx(
|
|
9004
9266
|
"div",
|
|
9005
9267
|
{
|
|
9006
|
-
className:
|
|
9268
|
+
className: classNames73__default.default({
|
|
9007
9269
|
"grid w-full": true,
|
|
9008
9270
|
"grid-cols-1": isMobile,
|
|
9009
9271
|
"grid-cols-3": !isMobile,
|
|
@@ -9016,7 +9278,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
9016
9278
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9017
9279
|
"div",
|
|
9018
9280
|
{
|
|
9019
|
-
className:
|
|
9281
|
+
className: classNames73__default.default({
|
|
9020
9282
|
[`${styles}`]: styles
|
|
9021
9283
|
}),
|
|
9022
9284
|
children: childrenContent
|
|
@@ -9057,7 +9319,7 @@ var FooterNavGroup = ({
|
|
|
9057
9319
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9058
9320
|
"div",
|
|
9059
9321
|
{
|
|
9060
|
-
className:
|
|
9322
|
+
className: classNames73__default.default({
|
|
9061
9323
|
"": true,
|
|
9062
9324
|
"py-2 font-semibold eui-text-lg": !styles,
|
|
9063
9325
|
[`${styles}`]: styles
|
|
@@ -9102,7 +9364,7 @@ var FooterNavItem = ({
|
|
|
9102
9364
|
"div",
|
|
9103
9365
|
{
|
|
9104
9366
|
onClick: handleNavigation,
|
|
9105
|
-
className:
|
|
9367
|
+
className: classNames73__default.default({
|
|
9106
9368
|
"flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
|
|
9107
9369
|
"transition-all duration-200 ease-in-out": true,
|
|
9108
9370
|
"text-sm eui-text-sm": !styles,
|
|
@@ -9131,7 +9393,7 @@ var FooterNavItemTitle = ({
|
|
|
9131
9393
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9132
9394
|
"div",
|
|
9133
9395
|
{
|
|
9134
|
-
className:
|
|
9396
|
+
className: classNames73__default.default({
|
|
9135
9397
|
"": true,
|
|
9136
9398
|
"py-2 font-thin eui-text-md": !styles,
|
|
9137
9399
|
[`${styles}`]: styles
|
|
@@ -9184,7 +9446,7 @@ function HeaderNav({ data = [], styles }) {
|
|
|
9184
9446
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9185
9447
|
"div",
|
|
9186
9448
|
{
|
|
9187
|
-
className:
|
|
9449
|
+
className: classNames73__default.default({
|
|
9188
9450
|
[`${styles}`]: styles
|
|
9189
9451
|
}),
|
|
9190
9452
|
children: childrenContent
|
|
@@ -9246,7 +9508,7 @@ var HeaderNavGroup = ({
|
|
|
9246
9508
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9247
9509
|
"div",
|
|
9248
9510
|
{
|
|
9249
|
-
className:
|
|
9511
|
+
className: classNames73__default.default({
|
|
9250
9512
|
"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
|
|
9251
9513
|
"transition-all duration-300 ease-in-out": true,
|
|
9252
9514
|
"eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
|
|
@@ -9274,7 +9536,7 @@ var HeaderNavGroup = ({
|
|
|
9274
9536
|
children3 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9275
9537
|
index_js$3.BsChevronDown,
|
|
9276
9538
|
{
|
|
9277
|
-
className:
|
|
9539
|
+
className: classNames73__default.default({
|
|
9278
9540
|
"text-md": true,
|
|
9279
9541
|
"transition-all ease-in-out duration-300": true,
|
|
9280
9542
|
"rotate-180": !collapsed
|
|
@@ -9287,7 +9549,7 @@ var HeaderNavGroup = ({
|
|
|
9287
9549
|
!collapsed && children3 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9288
9550
|
"div",
|
|
9289
9551
|
{
|
|
9290
|
-
className:
|
|
9552
|
+
className: classNames73__default.default({
|
|
9291
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,
|
|
9292
9554
|
"transition-all duration-300 ease-in-out": true
|
|
9293
9555
|
}),
|
|
@@ -9317,7 +9579,7 @@ var HeaderNavItem = ({
|
|
|
9317
9579
|
"div",
|
|
9318
9580
|
{
|
|
9319
9581
|
onClick: handleNavigation,
|
|
9320
|
-
className:
|
|
9582
|
+
className: classNames73__default.default({
|
|
9321
9583
|
"flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
|
|
9322
9584
|
"transition-all duration-200 ease-in-out": true,
|
|
9323
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,
|
|
@@ -9346,7 +9608,7 @@ var HeaderNavItemTitle = ({
|
|
|
9346
9608
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9347
9609
|
"div",
|
|
9348
9610
|
{
|
|
9349
|
-
className:
|
|
9611
|
+
className: classNames73__default.default({
|
|
9350
9612
|
"p-3 font-thin": true,
|
|
9351
9613
|
"eui-text-md": !styles,
|
|
9352
9614
|
[`${styles}`]: styles
|
|
@@ -9386,7 +9648,7 @@ var Link = ({
|
|
|
9386
9648
|
href: href || "#",
|
|
9387
9649
|
target: targets[target],
|
|
9388
9650
|
onClick: handleClick,
|
|
9389
|
-
className:
|
|
9651
|
+
className: classNames73__default.default({
|
|
9390
9652
|
[`${textVariants[variant]}`]: variant,
|
|
9391
9653
|
[`${decorations[decoration]}`]: decoration,
|
|
9392
9654
|
"font-bold": bold,
|
|
@@ -12578,7 +12840,7 @@ function Accordion({
|
|
|
12578
12840
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12579
12841
|
"div",
|
|
12580
12842
|
{
|
|
12581
|
-
className:
|
|
12843
|
+
className: classNames73__default.default(
|
|
12582
12844
|
"inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs",
|
|
12583
12845
|
{
|
|
12584
12846
|
"hover:cursor-pointer": toggleOnSummaryClick
|
|
@@ -12599,7 +12861,7 @@ function Accordion({
|
|
|
12599
12861
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12600
12862
|
index_js$4.FaCircleChevronDown,
|
|
12601
12863
|
{
|
|
12602
|
-
className:
|
|
12864
|
+
className: classNames73__default.default("text-xl transition-transform duration-300", {
|
|
12603
12865
|
"rotate-180": collapse
|
|
12604
12866
|
})
|
|
12605
12867
|
}
|
|
@@ -12613,7 +12875,7 @@ function Accordion({
|
|
|
12613
12875
|
/* @__PURE__ */ jsxRuntime.jsx(TransitionAccordion_default, { visibility: collapse, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12614
12876
|
"div",
|
|
12615
12877
|
{
|
|
12616
|
-
className:
|
|
12878
|
+
className: classNames73__default.default(
|
|
12617
12879
|
"border-t border-t-eui-dark-400/40 eui-text-sm",
|
|
12618
12880
|
{
|
|
12619
12881
|
"p-5": enableChildrenPadding
|
|
@@ -12670,7 +12932,7 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
12670
12932
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12671
12933
|
"div",
|
|
12672
12934
|
{
|
|
12673
|
-
className:
|
|
12935
|
+
className: classNames73__default.default(
|
|
12674
12936
|
"flex items-start gap-4 p-6 border-b border-white/10",
|
|
12675
12937
|
className
|
|
12676
12938
|
),
|
|
@@ -12686,14 +12948,14 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
12686
12948
|
}
|
|
12687
12949
|
var CardHeader_default = CardHeader;
|
|
12688
12950
|
function CardContent({ children: children3, className }) {
|
|
12689
|
-
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 });
|
|
12690
12952
|
}
|
|
12691
12953
|
var CardContent_default = CardContent;
|
|
12692
12954
|
function CardFooter({ children: children3, className }) {
|
|
12693
12955
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12694
12956
|
"div",
|
|
12695
12957
|
{
|
|
12696
|
-
className:
|
|
12958
|
+
className: classNames73__default.default(
|
|
12697
12959
|
"flex items-center gap-3 p-5 border-t border-white/10 text-sm text-gray-400",
|
|
12698
12960
|
className
|
|
12699
12961
|
),
|
|
@@ -12735,7 +12997,7 @@ function GradientAnimation({
|
|
|
12735
12997
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12736
12998
|
"div",
|
|
12737
12999
|
{
|
|
12738
|
-
className:
|
|
13000
|
+
className: classNames73__default.default("absolute inset-0"),
|
|
12739
13001
|
style: {
|
|
12740
13002
|
background: `linear-gradient(${cfg.angle}deg, ${cfg.colors?.join(",")})`,
|
|
12741
13003
|
backgroundSize: cfg.backgroundSize,
|
|
@@ -12881,7 +13143,7 @@ function MotionSurface({
|
|
|
12881
13143
|
}) {
|
|
12882
13144
|
const AnimationComponent = animationVariant === "custom" ? CustomAnimation : animationRegistry[animationVariant];
|
|
12883
13145
|
const OverlayComponent = overlay === "custom" ? CustomOverlay : overlayRegistry[overlay];
|
|
12884
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
13146
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames73__default.default("relative overflow-hidden", className), children: [
|
|
12885
13147
|
AnimationComponent && /* @__PURE__ */ jsxRuntime.jsx(AnimationComponent, { config: animationConfig, animated }),
|
|
12886
13148
|
OverlayComponent && /* @__PURE__ */ jsxRuntime.jsx(OverlayComponent, { config: overlayConfig }),
|
|
12887
13149
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative z-10", children: children3 })
|
|
@@ -16263,20 +16525,6 @@ var Graph = ({
|
|
|
16263
16525
|
}
|
|
16264
16526
|
);
|
|
16265
16527
|
};
|
|
16266
|
-
var CloudinaryContext = React26.createContext(null);
|
|
16267
|
-
var CloudinaryProvider = ({
|
|
16268
|
-
cloudName,
|
|
16269
|
-
children: children3
|
|
16270
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(CloudinaryContext.Provider, { value: { cloudName }, children: children3 });
|
|
16271
|
-
var useCloudinaryConfig = () => {
|
|
16272
|
-
const ctx = React26.useContext(CloudinaryContext);
|
|
16273
|
-
if (!ctx) {
|
|
16274
|
-
throw new Error(
|
|
16275
|
-
"CloudinaryProvider is missing. Wrap your app with <CloudinaryProvider />"
|
|
16276
|
-
);
|
|
16277
|
-
}
|
|
16278
|
-
return ctx;
|
|
16279
|
-
};
|
|
16280
16528
|
var DEFAULT_PUBLIC_CLOUD = "demo";
|
|
16281
16529
|
var CloudinaryImage2 = ({
|
|
16282
16530
|
publicId = "sample",
|
|
@@ -17127,7 +17375,7 @@ var ProgressBar = ({
|
|
|
17127
17375
|
hasBottomLabel && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2", children: labelNode })
|
|
17128
17376
|
] });
|
|
17129
17377
|
};
|
|
17130
|
-
var
|
|
17378
|
+
var sizes = {
|
|
17131
17379
|
["xs" /* xs */]: "text-[10px]",
|
|
17132
17380
|
["sm" /* sm */]: "text-xs",
|
|
17133
17381
|
["md" /* md */]: "text-sm",
|
|
@@ -17157,7 +17405,7 @@ var StarRating = ({
|
|
|
17157
17405
|
className: cn(
|
|
17158
17406
|
"inline-flex items-center gap-[2px]",
|
|
17159
17407
|
"text-yellow-500 dark:text-yellow-400",
|
|
17160
|
-
|
|
17408
|
+
sizes[size],
|
|
17161
17409
|
iconClassName
|
|
17162
17410
|
),
|
|
17163
17411
|
children: [
|
|
@@ -17170,7 +17418,7 @@ var StarRating = ({
|
|
|
17170
17418
|
showValue && valuePosition === "end" && ratingValue
|
|
17171
17419
|
] });
|
|
17172
17420
|
};
|
|
17173
|
-
var
|
|
17421
|
+
var sizes2 = {
|
|
17174
17422
|
["xs" /* xs */]: {
|
|
17175
17423
|
value: "text-2xl",
|
|
17176
17424
|
review: "text-xs"
|
|
@@ -17202,7 +17450,7 @@ var NumericRating = ({
|
|
|
17202
17450
|
className,
|
|
17203
17451
|
...rest
|
|
17204
17452
|
}) => {
|
|
17205
|
-
const sizeStyles =
|
|
17453
|
+
const sizeStyles = sizes2[size];
|
|
17206
17454
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
17207
17455
|
"div",
|
|
17208
17456
|
{
|
|
@@ -17878,7 +18126,7 @@ var YoutubeVideo = ({
|
|
|
17878
18126
|
}) => {
|
|
17879
18127
|
const videoId = getYoutubeVideoId(videoUrl);
|
|
17880
18128
|
if (!videoId) {
|
|
17881
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18129
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormResponse, { text: "Invalid YouTube URL", variant: "danger" });
|
|
17882
18130
|
}
|
|
17883
18131
|
const params = new URLSearchParams({
|
|
17884
18132
|
autoplay: autoPlay ? "1" : "0",
|
|
@@ -17966,7 +18214,7 @@ var ThemeSwitch = () => {
|
|
|
17966
18214
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17967
18215
|
"div",
|
|
17968
18216
|
{
|
|
17969
|
-
className:
|
|
18217
|
+
className: classNames73__default.default(
|
|
17970
18218
|
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
17971
18219
|
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
17972
18220
|
)
|
|
@@ -29511,7 +29759,7 @@ function AsyncStateCard({
|
|
|
29511
29759
|
),
|
|
29512
29760
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
29513
29761
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-eui-dark-900 dark:text-eui-light-600", children: title }),
|
|
29514
|
-
isError ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
29762
|
+
isError ? /* @__PURE__ */ jsxRuntime.jsx(FormResponse, { text: message, variant: "danger" }) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-eui-dark-500 dark:text-eui-light-400", children: message })
|
|
29515
29763
|
] }),
|
|
29516
29764
|
onAction && actionText && /* @__PURE__ */ jsxRuntime.jsx(
|
|
29517
29765
|
Button_web_default,
|
|
@@ -29735,7 +29983,7 @@ function Modal({
|
|
|
29735
29983
|
"div",
|
|
29736
29984
|
{
|
|
29737
29985
|
ref: modalRef,
|
|
29738
|
-
className:
|
|
29986
|
+
className: classNames73__default.default(
|
|
29739
29987
|
"eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit",
|
|
29740
29988
|
shapes[resolvedShape],
|
|
29741
29989
|
styles
|
|
@@ -29747,7 +29995,7 @@ function Modal({
|
|
|
29747
29995
|
"button",
|
|
29748
29996
|
{
|
|
29749
29997
|
type: "button",
|
|
29750
|
-
className:
|
|
29998
|
+
className: classNames73__default.default(
|
|
29751
29999
|
"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast",
|
|
29752
30000
|
"hover:cursor-pointer hover:bg-eui-dark-500"
|
|
29753
30001
|
),
|
|
@@ -30139,7 +30387,7 @@ var ContentArea = React26.forwardRef(
|
|
|
30139
30387
|
"div",
|
|
30140
30388
|
{
|
|
30141
30389
|
ref,
|
|
30142
|
-
className:
|
|
30390
|
+
className: classNames73__default.default({
|
|
30143
30391
|
"min-h-screen h-full w-full transition-all duration-[200ms]": true,
|
|
30144
30392
|
"py-3 px-5": !enablePadding,
|
|
30145
30393
|
"py-3 px-5 lg:px-[150px]": enablePadding,
|
|
@@ -30156,7 +30404,7 @@ function FlexCol({ children: children3, gap = 3, styles }) {
|
|
|
30156
30404
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30157
30405
|
"div",
|
|
30158
30406
|
{
|
|
30159
|
-
className:
|
|
30407
|
+
className: classNames73__default.default({
|
|
30160
30408
|
[`flex flex-col gap-${gap}`]: true,
|
|
30161
30409
|
[`${styles}`]: styles
|
|
30162
30410
|
}),
|
|
@@ -30169,7 +30417,7 @@ function FlexRow({ children: children3, gap = 3, styles }) {
|
|
|
30169
30417
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30170
30418
|
"div",
|
|
30171
30419
|
{
|
|
30172
|
-
className:
|
|
30420
|
+
className: classNames73__default.default({
|
|
30173
30421
|
[`flex flex-row gap-${gap}`]: true,
|
|
30174
30422
|
[`${styles}`]: styles
|
|
30175
30423
|
}),
|
|
@@ -30188,7 +30436,7 @@ function Grid({ children: children3, styles }) {
|
|
|
30188
30436
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30189
30437
|
"div",
|
|
30190
30438
|
{
|
|
30191
|
-
className:
|
|
30439
|
+
className: classNames73__default.default({
|
|
30192
30440
|
[`grid`]: true,
|
|
30193
30441
|
[`${styles}`]: styles
|
|
30194
30442
|
}),
|
|
@@ -30205,7 +30453,7 @@ var Layout = ({
|
|
|
30205
30453
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30206
30454
|
"div",
|
|
30207
30455
|
{
|
|
30208
|
-
className:
|
|
30456
|
+
className: classNames73__default.default({
|
|
30209
30457
|
// "flex h-full w-screen bg-gray-100 overflow-auto": true,
|
|
30210
30458
|
"flex bg-eui-light-600": true,
|
|
30211
30459
|
"flex-col": flexDirection === "vertical",
|
|
@@ -30227,7 +30475,7 @@ var Header = ({
|
|
|
30227
30475
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30228
30476
|
"div",
|
|
30229
30477
|
{
|
|
30230
|
-
className:
|
|
30478
|
+
className: classNames73__default.default({
|
|
30231
30479
|
static: position4 === "static",
|
|
30232
30480
|
fixed: position4 === "fixed",
|
|
30233
30481
|
sticky: position4 === "sticky",
|
|
@@ -30262,7 +30510,7 @@ var Content = ({
|
|
|
30262
30510
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30263
30511
|
"div",
|
|
30264
30512
|
{
|
|
30265
|
-
className:
|
|
30513
|
+
className: classNames73__default.default({
|
|
30266
30514
|
"w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
|
|
30267
30515
|
"md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
|
|
30268
30516
|
// Shift when sidebar is open (desktop)
|
|
@@ -30278,7 +30526,7 @@ var Footer = ({ children: children3, styles }) => {
|
|
|
30278
30526
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30279
30527
|
"div",
|
|
30280
30528
|
{
|
|
30281
|
-
className:
|
|
30529
|
+
className: classNames73__default.default({
|
|
30282
30530
|
"bottom-0 w-full h-fit": true,
|
|
30283
30531
|
"border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
|
|
30284
30532
|
[`${styles}`]: styles
|
|
@@ -30412,7 +30660,7 @@ var GlowWrapper = ({
|
|
|
30412
30660
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30413
30661
|
"span",
|
|
30414
30662
|
{
|
|
30415
|
-
className: "\
|
|
30663
|
+
className: "\n pointer-events-none absolute inset-0 opacity-0 \n group-hover:opacity-100 transition-opacity duration-300\n ",
|
|
30416
30664
|
style: { background: "var(--glow-bg)" }
|
|
30417
30665
|
}
|
|
30418
30666
|
),
|
|
@@ -30466,7 +30714,7 @@ function ShowMore({ text: text10, limit }) {
|
|
|
30466
30714
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30467
30715
|
"div",
|
|
30468
30716
|
{
|
|
30469
|
-
className:
|
|
30717
|
+
className: classNames73__default.default({
|
|
30470
30718
|
"text-blue-300 px-1 pb-1 mt-1": true,
|
|
30471
30719
|
"bg-slate-900/70": !showMore,
|
|
30472
30720
|
"bg-gradient-to-t from-slate-900/50 to-transparent": showMore
|
|
@@ -31382,7 +31630,7 @@ function DocumentationPanel({
|
|
|
31382
31630
|
return /* @__PURE__ */ jsxRuntime.jsx(MarkdownProvider_default, { markdown: value, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31383
31631
|
"section",
|
|
31384
31632
|
{
|
|
31385
|
-
className:
|
|
31633
|
+
className: classNames73__default.default(
|
|
31386
31634
|
"eui-documentation-panel",
|
|
31387
31635
|
"min-h-0 overflow-hidden bg-white text-gray-900",
|
|
31388
31636
|
"dark:bg-gray-950 dark:text-gray-100",
|
|
@@ -31396,7 +31644,7 @@ function DocumentationPanel({
|
|
|
31396
31644
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31397
31645
|
"main",
|
|
31398
31646
|
{
|
|
31399
|
-
className:
|
|
31647
|
+
className: classNames73__default.default(
|
|
31400
31648
|
"eui-documentation-panel-viewer",
|
|
31401
31649
|
"documentation-panel-scrollbar min-w-0 overflow-y-auto scroll-smooth",
|
|
31402
31650
|
viewerClassName
|
|
@@ -31404,7 +31652,7 @@ function DocumentationPanel({
|
|
|
31404
31652
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31405
31653
|
"div",
|
|
31406
31654
|
{
|
|
31407
|
-
className:
|
|
31655
|
+
className: classNames73__default.default(
|
|
31408
31656
|
"mx-auto px-5 py-8 sm:px-6 lg:px-8",
|
|
31409
31657
|
contentMaxWidthClassName,
|
|
31410
31658
|
contentClassName
|
|
@@ -31417,7 +31665,7 @@ function DocumentationPanel({
|
|
|
31417
31665
|
toc ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
31418
31666
|
"aside",
|
|
31419
31667
|
{
|
|
31420
|
-
className:
|
|
31668
|
+
className: classNames73__default.default(
|
|
31421
31669
|
"eui-documentation-panel-toc",
|
|
31422
31670
|
"hidden min-w-0 border-l border-gray-200 bg-white lg:block",
|
|
31423
31671
|
"dark:border-gray-800 dark:bg-gray-950",
|
|
@@ -31426,7 +31674,7 @@ function DocumentationPanel({
|
|
|
31426
31674
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31427
31675
|
"div",
|
|
31428
31676
|
{
|
|
31429
|
-
className:
|
|
31677
|
+
className: classNames73__default.default(
|
|
31430
31678
|
"documentation-panel-scrollbar h-full overflow-y-auto px-5 py-8"
|
|
31431
31679
|
),
|
|
31432
31680
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sticky top-0", children: /* @__PURE__ */ jsxRuntime.jsx(MarkdownTOC_default, {}) })
|
|
@@ -31702,7 +31950,7 @@ function BoxNavItem({ icon, name: name2, to, selected, onClick }) {
|
|
|
31702
31950
|
type: "button",
|
|
31703
31951
|
onClick: handleClick,
|
|
31704
31952
|
"aria-current": selected ? "page" : void 0,
|
|
31705
|
-
className:
|
|
31953
|
+
className: classNames73__default.default(
|
|
31706
31954
|
"w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
|
|
31707
31955
|
"hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
|
|
31708
31956
|
selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
|
|
@@ -34404,11 +34652,11 @@ function addChildren(props, children3) {
|
|
|
34404
34652
|
}
|
|
34405
34653
|
}
|
|
34406
34654
|
}
|
|
34407
|
-
function productionCreate(_2,
|
|
34655
|
+
function productionCreate(_2, jsx256, jsxs129) {
|
|
34408
34656
|
return create3;
|
|
34409
34657
|
function create3(_3, type2, props, key) {
|
|
34410
34658
|
const isStaticChildren = Array.isArray(props.children);
|
|
34411
|
-
const fn = isStaticChildren ? jsxs129 :
|
|
34659
|
+
const fn = isStaticChildren ? jsxs129 : jsx256;
|
|
34412
34660
|
return key ? fn(type2, props, key) : fn(type2, props);
|
|
34413
34661
|
}
|
|
34414
34662
|
}
|
|
@@ -42798,7 +43046,7 @@ function markdownTable(table2, options) {
|
|
|
42798
43046
|
let rowIndex = -1;
|
|
42799
43047
|
while (++rowIndex < table2.length) {
|
|
42800
43048
|
const row2 = [];
|
|
42801
|
-
const
|
|
43049
|
+
const sizes4 = [];
|
|
42802
43050
|
let columnIndex2 = -1;
|
|
42803
43051
|
if (table2[rowIndex].length > mostCellsPerRow) {
|
|
42804
43052
|
mostCellsPerRow = table2[rowIndex].length;
|
|
@@ -42807,7 +43055,7 @@ function markdownTable(table2, options) {
|
|
|
42807
43055
|
const cell = serialize2(table2[rowIndex][columnIndex2]);
|
|
42808
43056
|
if (settings.alignDelimiters !== false) {
|
|
42809
43057
|
const size = stringLength(cell);
|
|
42810
|
-
|
|
43058
|
+
sizes4[columnIndex2] = size;
|
|
42811
43059
|
if (longestCellByColumn[columnIndex2] === void 0 || size > longestCellByColumn[columnIndex2]) {
|
|
42812
43060
|
longestCellByColumn[columnIndex2] = size;
|
|
42813
43061
|
}
|
|
@@ -42815,7 +43063,7 @@ function markdownTable(table2, options) {
|
|
|
42815
43063
|
row2.push(cell);
|
|
42816
43064
|
}
|
|
42817
43065
|
cellMatrix[rowIndex] = row2;
|
|
42818
|
-
sizeMatrix[rowIndex] =
|
|
43066
|
+
sizeMatrix[rowIndex] = sizes4;
|
|
42819
43067
|
}
|
|
42820
43068
|
let columnIndex = -1;
|
|
42821
43069
|
if (typeof align === "object" && "length" in align) {
|
|
@@ -42830,7 +43078,7 @@ function markdownTable(table2, options) {
|
|
|
42830
43078
|
}
|
|
42831
43079
|
columnIndex = -1;
|
|
42832
43080
|
const row = [];
|
|
42833
|
-
const
|
|
43081
|
+
const sizes3 = [];
|
|
42834
43082
|
while (++columnIndex < mostCellsPerRow) {
|
|
42835
43083
|
const code4 = alignments[columnIndex];
|
|
42836
43084
|
let before = "";
|
|
@@ -42853,17 +43101,17 @@ function markdownTable(table2, options) {
|
|
|
42853
43101
|
if (size > longestCellByColumn[columnIndex]) {
|
|
42854
43102
|
longestCellByColumn[columnIndex] = size;
|
|
42855
43103
|
}
|
|
42856
|
-
|
|
43104
|
+
sizes3[columnIndex] = size;
|
|
42857
43105
|
}
|
|
42858
43106
|
row[columnIndex] = cell;
|
|
42859
43107
|
}
|
|
42860
43108
|
cellMatrix.splice(1, 0, row);
|
|
42861
|
-
sizeMatrix.splice(1, 0,
|
|
43109
|
+
sizeMatrix.splice(1, 0, sizes3);
|
|
42862
43110
|
rowIndex = -1;
|
|
42863
43111
|
const lines = [];
|
|
42864
43112
|
while (++rowIndex < cellMatrix.length) {
|
|
42865
43113
|
const row2 = cellMatrix[rowIndex];
|
|
42866
|
-
const
|
|
43114
|
+
const sizes4 = sizeMatrix[rowIndex];
|
|
42867
43115
|
columnIndex = -1;
|
|
42868
43116
|
const line = [];
|
|
42869
43117
|
while (++columnIndex < mostCellsPerRow) {
|
|
@@ -42871,7 +43119,7 @@ function markdownTable(table2, options) {
|
|
|
42871
43119
|
let before = "";
|
|
42872
43120
|
let after = "";
|
|
42873
43121
|
if (settings.alignDelimiters !== false) {
|
|
42874
|
-
const size = longestCellByColumn[columnIndex] - (
|
|
43122
|
+
const size = longestCellByColumn[columnIndex] - (sizes4[columnIndex] || 0);
|
|
42875
43123
|
const code4 = alignments[columnIndex];
|
|
42876
43124
|
if (code4 === 114) {
|
|
42877
43125
|
before = " ".repeat(size);
|
|
@@ -54439,7 +54687,7 @@ function MarkdownHeading({
|
|
|
54439
54687
|
id: id2,
|
|
54440
54688
|
level: typographyLevel,
|
|
54441
54689
|
bold: true,
|
|
54442
|
-
className:
|
|
54690
|
+
className: classNames73__default.default(
|
|
54443
54691
|
"eui-markdown-heading group relative scroll-mt-24 font-bold leading-tight text-gray-900 dark:text-gray-100",
|
|
54444
54692
|
HEADING_STYLES[level],
|
|
54445
54693
|
className
|
|
@@ -54602,18 +54850,18 @@ function powerSetPermutations(arr) {
|
|
|
54602
54850
|
}
|
|
54603
54851
|
}
|
|
54604
54852
|
var classNameCombinations = {};
|
|
54605
|
-
function getClassNameCombinations(
|
|
54606
|
-
if (
|
|
54607
|
-
var key =
|
|
54853
|
+
function getClassNameCombinations(classNames77) {
|
|
54854
|
+
if (classNames77.length === 0 || classNames77.length === 1) return classNames77;
|
|
54855
|
+
var key = classNames77.join(".");
|
|
54608
54856
|
if (!classNameCombinations[key]) {
|
|
54609
|
-
classNameCombinations[key] = powerSetPermutations(
|
|
54857
|
+
classNameCombinations[key] = powerSetPermutations(classNames77);
|
|
54610
54858
|
}
|
|
54611
54859
|
return classNameCombinations[key];
|
|
54612
54860
|
}
|
|
54613
|
-
function createStyleObject(
|
|
54861
|
+
function createStyleObject(classNames77) {
|
|
54614
54862
|
var elementStyle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
54615
54863
|
var stylesheet = arguments.length > 2 ? arguments[2] : void 0;
|
|
54616
|
-
var nonTokenClassNames =
|
|
54864
|
+
var nonTokenClassNames = classNames77.filter(function(className) {
|
|
54617
54865
|
return className !== "token";
|
|
54618
54866
|
});
|
|
54619
54867
|
var classNamesCombinations = getClassNameCombinations(nonTokenClassNames);
|
|
@@ -54621,8 +54869,8 @@ function createStyleObject(classNames78) {
|
|
|
54621
54869
|
return _objectSpread(_objectSpread({}, styleObject), stylesheet[className]);
|
|
54622
54870
|
}, elementStyle);
|
|
54623
54871
|
}
|
|
54624
|
-
function createClassNameString(
|
|
54625
|
-
return
|
|
54872
|
+
function createClassNameString(classNames77) {
|
|
54873
|
+
return classNames77.join(" ");
|
|
54626
54874
|
}
|
|
54627
54875
|
function createChildren2(stylesheet, useInlineStyles) {
|
|
54628
54876
|
var childrenCount = 0;
|
|
@@ -54795,8 +55043,8 @@ function flattenCodeTree(tree) {
|
|
|
54795
55043
|
}));
|
|
54796
55044
|
} else if (node2.children) {
|
|
54797
55045
|
var _node$properties;
|
|
54798
|
-
var
|
|
54799
|
-
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) {
|
|
54800
55048
|
return newTree.push(i2);
|
|
54801
55049
|
});
|
|
54802
55050
|
}
|
|
@@ -55327,7 +55575,7 @@ var json_default = json;
|
|
|
55327
55575
|
|
|
55328
55576
|
// node_modules/react-syntax-highlighter/dist/esm/languages/prism/jsx.js
|
|
55329
55577
|
init_jsx();
|
|
55330
|
-
var jsx_default =
|
|
55578
|
+
var jsx_default = jsx217;
|
|
55331
55579
|
|
|
55332
55580
|
// node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js
|
|
55333
55581
|
init_markup();
|
|
@@ -55460,7 +55708,7 @@ function MarkdownCodeBlock({
|
|
|
55460
55708
|
"div",
|
|
55461
55709
|
{
|
|
55462
55710
|
...props,
|
|
55463
|
-
className:
|
|
55711
|
+
className: classNames73__default.default(
|
|
55464
55712
|
"eui-markdown-code my-6 overflow-hidden rounded-md border border-slate-700 bg-[#0d1117] text-slate-300",
|
|
55465
55713
|
className
|
|
55466
55714
|
),
|
|
@@ -55531,7 +55779,7 @@ function MarkdownInlineCode({
|
|
|
55531
55779
|
Code,
|
|
55532
55780
|
{
|
|
55533
55781
|
...props,
|
|
55534
|
-
className:
|
|
55782
|
+
className: classNames73__default.default(
|
|
55535
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",
|
|
55536
55784
|
className
|
|
55537
55785
|
),
|
|
@@ -55572,7 +55820,7 @@ function MarkdownLink({
|
|
|
55572
55820
|
href: safeHref,
|
|
55573
55821
|
target: resolvedTarget,
|
|
55574
55822
|
rel,
|
|
55575
|
-
className:
|
|
55823
|
+
className: classNames73__default.default(
|
|
55576
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",
|
|
55577
55825
|
className
|
|
55578
55826
|
),
|
|
@@ -55607,7 +55855,7 @@ function MarkdownImage({
|
|
|
55607
55855
|
title,
|
|
55608
55856
|
loading: "lazy",
|
|
55609
55857
|
decoding: "async",
|
|
55610
|
-
className:
|
|
55858
|
+
className: classNames73__default.default(
|
|
55611
55859
|
"eui-markdown-image my-6 h-auto max-w-full rounded-md border border-gray-200 dark:border-gray-700",
|
|
55612
55860
|
className
|
|
55613
55861
|
)
|
|
@@ -55624,7 +55872,7 @@ function MarkdownTable({
|
|
|
55624
55872
|
TableElement,
|
|
55625
55873
|
{
|
|
55626
55874
|
...props,
|
|
55627
|
-
className:
|
|
55875
|
+
className: classNames73__default.default(
|
|
55628
55876
|
"eui-markdown-table w-full border-collapse text-[0.925rem]",
|
|
55629
55877
|
className
|
|
55630
55878
|
),
|
|
@@ -55641,7 +55889,7 @@ function MarkdownTableCell({
|
|
|
55641
55889
|
TableCell,
|
|
55642
55890
|
{
|
|
55643
55891
|
...props,
|
|
55644
|
-
className:
|
|
55892
|
+
className: classNames73__default.default(
|
|
55645
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",
|
|
55646
55894
|
className
|
|
55647
55895
|
),
|
|
@@ -55658,7 +55906,7 @@ function MarkdownTableHeaderCell({
|
|
|
55658
55906
|
TableHeaderCell,
|
|
55659
55907
|
{
|
|
55660
55908
|
...props,
|
|
55661
|
-
className:
|
|
55909
|
+
className: classNames73__default.default(
|
|
55662
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",
|
|
55663
55911
|
className
|
|
55664
55912
|
),
|
|
@@ -55674,7 +55922,7 @@ function MarkdownTableHead({
|
|
|
55674
55922
|
TableHead,
|
|
55675
55923
|
{
|
|
55676
55924
|
...props,
|
|
55677
|
-
className:
|
|
55925
|
+
className: classNames73__default.default(
|
|
55678
55926
|
"eui-markdown-table-head bg-gray-50 dark:bg-gray-900",
|
|
55679
55927
|
className
|
|
55680
55928
|
)
|
|
@@ -55689,7 +55937,7 @@ function MarkdownTableBody({
|
|
|
55689
55937
|
TableBody,
|
|
55690
55938
|
{
|
|
55691
55939
|
...props,
|
|
55692
|
-
className:
|
|
55940
|
+
className: classNames73__default.default("eui-markdown-table-body", className)
|
|
55693
55941
|
}
|
|
55694
55942
|
);
|
|
55695
55943
|
}
|
|
@@ -55701,7 +55949,7 @@ function MarkdownTableRow({
|
|
|
55701
55949
|
TableRow,
|
|
55702
55950
|
{
|
|
55703
55951
|
...props,
|
|
55704
|
-
className:
|
|
55952
|
+
className: classNames73__default.default(
|
|
55705
55953
|
"eui-markdown-table-row even:bg-gray-50/70 dark:even:bg-gray-900/60",
|
|
55706
55954
|
className
|
|
55707
55955
|
)
|
|
@@ -55719,7 +55967,7 @@ function MarkdownBlockquote({
|
|
|
55719
55967
|
{
|
|
55720
55968
|
...props,
|
|
55721
55969
|
as: "blockquote",
|
|
55722
|
-
className:
|
|
55970
|
+
className: classNames73__default.default(
|
|
55723
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",
|
|
55724
55972
|
className
|
|
55725
55973
|
),
|
|
@@ -55738,7 +55986,7 @@ function MarkdownParagraph({
|
|
|
55738
55986
|
{
|
|
55739
55987
|
...props,
|
|
55740
55988
|
level: 1,
|
|
55741
|
-
className:
|
|
55989
|
+
className: classNames73__default.default("eui-markdown-paragraph my-4", className),
|
|
55742
55990
|
children: /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: children3 })
|
|
55743
55991
|
}
|
|
55744
55992
|
);
|
|
@@ -55749,7 +55997,7 @@ function MarkdownStrong({ className, ...props }) {
|
|
|
55749
55997
|
"strong",
|
|
55750
55998
|
{
|
|
55751
55999
|
...props,
|
|
55752
|
-
className:
|
|
56000
|
+
className: classNames73__default.default(
|
|
55753
56001
|
"eui-markdown-strong font-semibold text-gray-950 dark:text-gray-100",
|
|
55754
56002
|
className
|
|
55755
56003
|
)
|
|
@@ -55762,7 +56010,7 @@ function MarkdownEmphasis({ className, ...props }) {
|
|
|
55762
56010
|
"em",
|
|
55763
56011
|
{
|
|
55764
56012
|
...props,
|
|
55765
|
-
className:
|
|
56013
|
+
className: classNames73__default.default("eui-markdown-emphasis italic", className)
|
|
55766
56014
|
}
|
|
55767
56015
|
);
|
|
55768
56016
|
}
|
|
@@ -55775,7 +56023,7 @@ function MarkdownStrikethrough({
|
|
|
55775
56023
|
"del",
|
|
55776
56024
|
{
|
|
55777
56025
|
...props,
|
|
55778
|
-
className:
|
|
56026
|
+
className: classNames73__default.default(
|
|
55779
56027
|
"eui-markdown-strikethrough text-gray-500 dark:text-gray-400",
|
|
55780
56028
|
className
|
|
55781
56029
|
)
|
|
@@ -55836,7 +56084,7 @@ function MarkdownTaskCheckbox({
|
|
|
55836
56084
|
"input",
|
|
55837
56085
|
{
|
|
55838
56086
|
...props,
|
|
55839
|
-
className:
|
|
56087
|
+
className: classNames73__default.default(
|
|
55840
56088
|
"eui-markdown-task-checkbox mr-2 translate-y-px accent-blue-600",
|
|
55841
56089
|
className
|
|
55842
56090
|
)
|
|
@@ -55852,7 +56100,7 @@ function MarkdownThematicBreak({
|
|
|
55852
56100
|
"hr",
|
|
55853
56101
|
{
|
|
55854
56102
|
...props,
|
|
55855
|
-
className:
|
|
56103
|
+
className: classNames73__default.default(
|
|
55856
56104
|
"eui-markdown-thematic-break my-8 border-0 border-t border-gray-200 dark:border-gray-800",
|
|
55857
56105
|
className
|
|
55858
56106
|
)
|
|
@@ -55869,7 +56117,7 @@ function MarkdownDetails({ className, ...props }) {
|
|
|
55869
56117
|
"details",
|
|
55870
56118
|
{
|
|
55871
56119
|
...props,
|
|
55872
|
-
className:
|
|
56120
|
+
className: classNames73__default.default(
|
|
55873
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",
|
|
55874
56122
|
className
|
|
55875
56123
|
)
|
|
@@ -55881,7 +56129,7 @@ function MarkdownSummary({ className, ...props }) {
|
|
|
55881
56129
|
"summary",
|
|
55882
56130
|
{
|
|
55883
56131
|
...props,
|
|
55884
|
-
className:
|
|
56132
|
+
className: classNames73__default.default(
|
|
55885
56133
|
"eui-markdown-summary cursor-pointer font-semibold text-gray-950 dark:text-gray-100",
|
|
55886
56134
|
className
|
|
55887
56135
|
)
|
|
@@ -55893,7 +56141,7 @@ function MarkdownFigure({ className, ...props }) {
|
|
|
55893
56141
|
"figure",
|
|
55894
56142
|
{
|
|
55895
56143
|
...props,
|
|
55896
|
-
className:
|
|
56144
|
+
className: classNames73__default.default("eui-markdown-figure my-6", className)
|
|
55897
56145
|
}
|
|
55898
56146
|
);
|
|
55899
56147
|
}
|
|
@@ -55905,7 +56153,7 @@ function MarkdownFigcaption({
|
|
|
55905
56153
|
return /* @__PURE__ */ jsxRuntime.jsx("figcaption", { ...props, className: "eui-markdown-figcaption mt-2 text-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
55906
56154
|
Caption,
|
|
55907
56155
|
{
|
|
55908
|
-
className:
|
|
56156
|
+
className: classNames73__default.default(
|
|
55909
56157
|
"text-gray-500 opacity-100 dark:text-gray-400",
|
|
55910
56158
|
className
|
|
55911
56159
|
),
|
|
@@ -56304,14 +56552,14 @@ function MarkdownRenderer({
|
|
|
56304
56552
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56305
56553
|
"div",
|
|
56306
56554
|
{
|
|
56307
|
-
className:
|
|
56555
|
+
className: classNames73__default.default(
|
|
56308
56556
|
"eui-markdown markdown-body break-words bg-transparent text-[0.95rem] leading-7 text-gray-800 dark:text-gray-300",
|
|
56309
56557
|
className
|
|
56310
56558
|
),
|
|
56311
56559
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
56312
56560
|
"div",
|
|
56313
56561
|
{
|
|
56314
|
-
className:
|
|
56562
|
+
className: classNames73__default.default(
|
|
56315
56563
|
"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0",
|
|
56316
56564
|
contentClassName
|
|
56317
56565
|
),
|
|
@@ -56389,11 +56637,11 @@ function MarkdownTOCItem({
|
|
|
56389
56637
|
onClick: () => onSelect?.(heading3),
|
|
56390
56638
|
"aria-current": active ? "location" : void 0,
|
|
56391
56639
|
title: label,
|
|
56392
|
-
className:
|
|
56640
|
+
className: classNames73__default.default(
|
|
56393
56641
|
"eui-markdown-toc-item",
|
|
56394
56642
|
"block w-full text-left text-sm transition-all ease-in-out duration-150",
|
|
56395
56643
|
"hover:text-primary",
|
|
56396
|
-
active ?
|
|
56644
|
+
active ? classNames73__default.default("text-primary font-semibold underline", activeClassName) : classNames73__default.default("text-gray-500 dark:text-gray-400", inactiveClassName),
|
|
56397
56645
|
className
|
|
56398
56646
|
),
|
|
56399
56647
|
style: {
|
|
@@ -56459,7 +56707,7 @@ function MarkdownTOC({
|
|
|
56459
56707
|
return emptyState ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
56460
56708
|
"div",
|
|
56461
56709
|
{
|
|
56462
|
-
className:
|
|
56710
|
+
className: classNames73__default.default(
|
|
56463
56711
|
"eui-markdown-toc",
|
|
56464
56712
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
56465
56713
|
className
|
|
@@ -56479,7 +56727,7 @@ function MarkdownTOC({
|
|
|
56479
56727
|
{
|
|
56480
56728
|
type: "button",
|
|
56481
56729
|
onClick: () => setCollapsed((value) => !value),
|
|
56482
|
-
className:
|
|
56730
|
+
className: classNames73__default.default(
|
|
56483
56731
|
"eui-markdown-toc-title",
|
|
56484
56732
|
"flex w-full items-center justify-between gap-2 text-left",
|
|
56485
56733
|
"text-sm font-semibold uppercase tracking-wide",
|
|
@@ -56492,7 +56740,7 @@ function MarkdownTOC({
|
|
|
56492
56740
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
56493
56741
|
"span",
|
|
56494
56742
|
{
|
|
56495
|
-
className:
|
|
56743
|
+
className: classNames73__default.default(
|
|
56496
56744
|
"text-xs opacity-60 transition-transform duration-150",
|
|
56497
56745
|
!collapsed && "rotate-90"
|
|
56498
56746
|
),
|
|
@@ -56505,7 +56753,7 @@ function MarkdownTOC({
|
|
|
56505
56753
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
56506
56754
|
"h2",
|
|
56507
56755
|
{
|
|
56508
|
-
className:
|
|
56756
|
+
className: classNames73__default.default(
|
|
56509
56757
|
"eui-markdown-toc-title",
|
|
56510
56758
|
"text-sm font-semibold uppercase tracking-wide",
|
|
56511
56759
|
"text-gray-900 dark:text-gray-100",
|
|
@@ -56517,7 +56765,7 @@ function MarkdownTOC({
|
|
|
56517
56765
|
!collapsed ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
56518
56766
|
"nav",
|
|
56519
56767
|
{
|
|
56520
|
-
className:
|
|
56768
|
+
className: classNames73__default.default(
|
|
56521
56769
|
"eui-markdown-toc-list",
|
|
56522
56770
|
"space-y-1",
|
|
56523
56771
|
listClassName
|
|
@@ -56541,7 +56789,7 @@ function MarkdownTOC({
|
|
|
56541
56789
|
}
|
|
56542
56790
|
) : null
|
|
56543
56791
|
] });
|
|
56544
|
-
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 });
|
|
56545
56793
|
}
|
|
56546
56794
|
var MarkdownTOC_default = MarkdownTOC;
|
|
56547
56795
|
var DEFAULT_MARKDOWN_TOOLBAR_ACTIONS = [
|
|
@@ -56640,7 +56888,7 @@ function MarkdownToolbar({
|
|
|
56640
56888
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
56641
56889
|
"div",
|
|
56642
56890
|
{
|
|
56643
|
-
className:
|
|
56891
|
+
className: classNames73__default.default(
|
|
56644
56892
|
"eui-markdown-toolbar",
|
|
56645
56893
|
"flex flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 p-2",
|
|
56646
56894
|
"dark:border-gray-700 dark:bg-gray-900",
|
|
@@ -56654,7 +56902,7 @@ function MarkdownToolbar({
|
|
|
56654
56902
|
disabled: disabled || actionsDisabled,
|
|
56655
56903
|
title: action.shortcut ? `${action.title || action.label} (${action.shortcut})` : action.title || action.label,
|
|
56656
56904
|
onClick: () => onAction?.(action.id),
|
|
56657
|
-
className:
|
|
56905
|
+
className: classNames73__default.default(
|
|
56658
56906
|
"eui-markdown-toolbar-button",
|
|
56659
56907
|
"inline-flex items-center justify-center rounded border border-transparent",
|
|
56660
56908
|
"text-gray-700 transition-colors hover:border-gray-300 hover:bg-white",
|
|
@@ -56674,7 +56922,7 @@ function MarkdownToolbar({
|
|
|
56674
56922
|
disabled,
|
|
56675
56923
|
onClick: onViewModeToggle,
|
|
56676
56924
|
title: isPreviewMode ? "Switch to Markdown syntax" : "Switch to preview",
|
|
56677
|
-
className:
|
|
56925
|
+
className: classNames73__default.default(
|
|
56678
56926
|
"eui-markdown-view-toggle",
|
|
56679
56927
|
"inline-flex items-center justify-center rounded border font-medium transition-colors",
|
|
56680
56928
|
"border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -56931,7 +57179,7 @@ function MarkdownSourceEditor({
|
|
|
56931
57179
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
56932
57180
|
"div",
|
|
56933
57181
|
{
|
|
56934
|
-
className:
|
|
57182
|
+
className: classNames73__default.default(
|
|
56935
57183
|
"eui-markdown-editor",
|
|
56936
57184
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
56937
57185
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -56947,7 +57195,7 @@ function MarkdownSourceEditor({
|
|
|
56947
57195
|
actionsDisabled: readOnly,
|
|
56948
57196
|
viewMode: currentViewMode,
|
|
56949
57197
|
showViewModeToggle,
|
|
56950
|
-
className:
|
|
57198
|
+
className: classNames73__default.default(toolbarClassName, toolbarProps?.className),
|
|
56951
57199
|
onViewModeToggle: toggleViewMode,
|
|
56952
57200
|
onAction: handleToolbarAction
|
|
56953
57201
|
}
|
|
@@ -56955,7 +57203,7 @@ function MarkdownSourceEditor({
|
|
|
56955
57203
|
currentViewMode === "preview" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
56956
57204
|
"div",
|
|
56957
57205
|
{
|
|
56958
|
-
className:
|
|
57206
|
+
className: classNames73__default.default(
|
|
56959
57207
|
"eui-markdown-editor-preview",
|
|
56960
57208
|
"min-h-[260px] p-4",
|
|
56961
57209
|
previewClassName
|
|
@@ -56978,7 +57226,7 @@ function MarkdownSourceEditor({
|
|
|
56978
57226
|
onChange: (event) => updateValue(event.target.value),
|
|
56979
57227
|
onBlur,
|
|
56980
57228
|
onKeyDown: handleKeyDown,
|
|
56981
|
-
className:
|
|
57229
|
+
className: classNames73__default.default(
|
|
56982
57230
|
"eui-markdown-source-textarea",
|
|
56983
57231
|
"block w-full resize-y border-0 bg-transparent p-4 font-mono text-sm leading-7",
|
|
56984
57232
|
"text-gray-900 outline-none placeholder:text-gray-400",
|
|
@@ -57008,7 +57256,7 @@ function MarkdownPreviewPane({
|
|
|
57008
57256
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
57009
57257
|
"div",
|
|
57010
57258
|
{
|
|
57011
|
-
className:
|
|
57259
|
+
className: classNames73__default.default(
|
|
57012
57260
|
"eui-markdown-preview-pane",
|
|
57013
57261
|
"rounded border border-gray-300 bg-white p-4",
|
|
57014
57262
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -57058,7 +57306,7 @@ function MarkdownSplitEditor({
|
|
|
57058
57306
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57059
57307
|
"div",
|
|
57060
57308
|
{
|
|
57061
|
-
className:
|
|
57309
|
+
className: classNames73__default.default(
|
|
57062
57310
|
"eui-markdown-split-editor",
|
|
57063
57311
|
"grid gap-4",
|
|
57064
57312
|
isHorizontal ? "grid-cols-1 lg:grid-cols-2" : "grid-cols-1",
|
|
@@ -57068,7 +57316,7 @@ function MarkdownSplitEditor({
|
|
|
57068
57316
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
57069
57317
|
"div",
|
|
57070
57318
|
{
|
|
57071
|
-
className:
|
|
57319
|
+
className: classNames73__default.default(
|
|
57072
57320
|
"eui-markdown-split-source",
|
|
57073
57321
|
"min-w-0 space-y-2",
|
|
57074
57322
|
sourceWrapperClassName
|
|
@@ -57092,7 +57340,7 @@ function MarkdownSplitEditor({
|
|
|
57092
57340
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
57093
57341
|
"div",
|
|
57094
57342
|
{
|
|
57095
|
-
className:
|
|
57343
|
+
className: classNames73__default.default(
|
|
57096
57344
|
"eui-markdown-split-preview",
|
|
57097
57345
|
"min-w-0 space-y-2",
|
|
57098
57346
|
previewWrapperClassName
|
|
@@ -57182,7 +57430,7 @@ function MarkdownField({
|
|
|
57182
57430
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57183
57431
|
"div",
|
|
57184
57432
|
{
|
|
57185
|
-
className:
|
|
57433
|
+
className: classNames73__default.default(
|
|
57186
57434
|
"eui-markdown-field",
|
|
57187
57435
|
"relative space-y-2",
|
|
57188
57436
|
wrapperClassName
|
|
@@ -57192,7 +57440,7 @@ function MarkdownField({
|
|
|
57192
57440
|
"label",
|
|
57193
57441
|
{
|
|
57194
57442
|
htmlFor: editorProps.id || field.name,
|
|
57195
|
-
className:
|
|
57443
|
+
className: classNames73__default.default(
|
|
57196
57444
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
57197
57445
|
labelClassName
|
|
57198
57446
|
),
|
|
@@ -57217,7 +57465,7 @@ function MarkdownField({
|
|
|
57217
57465
|
helperText && !hasError ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57218
57466
|
"p",
|
|
57219
57467
|
{
|
|
57220
|
-
className:
|
|
57468
|
+
className: classNames73__default.default(
|
|
57221
57469
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
57222
57470
|
helperTextClassName
|
|
57223
57471
|
),
|
|
@@ -57272,7 +57520,7 @@ function CodeMirrorMarkdownEditor({
|
|
|
57272
57520
|
{
|
|
57273
57521
|
id: id2,
|
|
57274
57522
|
"data-name": name2,
|
|
57275
|
-
className:
|
|
57523
|
+
className: classNames73__default.default(
|
|
57276
57524
|
"eui-markdown-adapter",
|
|
57277
57525
|
"eui-markdown-codemirror-adapter",
|
|
57278
57526
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
@@ -57306,7 +57554,7 @@ function CodeMirrorMarkdownEditor({
|
|
|
57306
57554
|
closeBrackets: true,
|
|
57307
57555
|
bracketMatching: true
|
|
57308
57556
|
},
|
|
57309
|
-
className:
|
|
57557
|
+
className: classNames73__default.default("eui-markdown-codemirror", editorClassName),
|
|
57310
57558
|
onChange: updateValue,
|
|
57311
57559
|
onBlur
|
|
57312
57560
|
}
|
|
@@ -57401,7 +57649,7 @@ function createDefaultPlugins({
|
|
|
57401
57649
|
...showToolbar ? [
|
|
57402
57650
|
editor.toolbarPlugin({
|
|
57403
57651
|
toolbarContents: toolbarContents ?? DefaultToolbar,
|
|
57404
|
-
toolbarClassName:
|
|
57652
|
+
toolbarClassName: classNames73__default.default(
|
|
57405
57653
|
"eui-markdown-mdx-toolbar",
|
|
57406
57654
|
toolbarClassName
|
|
57407
57655
|
),
|
|
@@ -57518,7 +57766,7 @@ var MDXMarkdownEditor = React26.forwardRef(
|
|
|
57518
57766
|
"aria-required": required || void 0,
|
|
57519
57767
|
"aria-invalid": invalid || void 0,
|
|
57520
57768
|
onBlurCapture: handleBlur,
|
|
57521
|
-
className:
|
|
57769
|
+
className: classNames73__default.default(
|
|
57522
57770
|
"eui-markdown-adapter",
|
|
57523
57771
|
"eui-markdown-mdx-adapter",
|
|
57524
57772
|
dark && ["dark", "dark-theme"],
|
|
@@ -57536,8 +57784,8 @@ var MDXMarkdownEditor = React26.forwardRef(
|
|
|
57536
57784
|
markdown: currentValue ?? "",
|
|
57537
57785
|
readOnly: disabled || readOnly,
|
|
57538
57786
|
plugins: plugins ?? defaultPlugins,
|
|
57539
|
-
className:
|
|
57540
|
-
contentEditableClassName:
|
|
57787
|
+
className: classNames73__default.default("eui-markdown-mdx-editor", editorClassName),
|
|
57788
|
+
contentEditableClassName: classNames73__default.default(
|
|
57541
57789
|
"eui-markdown-mdx-content",
|
|
57542
57790
|
contentEditableClassName
|
|
57543
57791
|
),
|
|
@@ -57574,7 +57822,7 @@ function MDXMarkdownField({
|
|
|
57574
57822
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57575
57823
|
"div",
|
|
57576
57824
|
{
|
|
57577
|
-
className:
|
|
57825
|
+
className: classNames73__default.default(
|
|
57578
57826
|
"eui-markdown-mdx-field",
|
|
57579
57827
|
"relative space-y-2",
|
|
57580
57828
|
wrapperClassName
|
|
@@ -57584,7 +57832,7 @@ function MDXMarkdownField({
|
|
|
57584
57832
|
"label",
|
|
57585
57833
|
{
|
|
57586
57834
|
htmlFor: editorId,
|
|
57587
|
-
className:
|
|
57835
|
+
className: classNames73__default.default(
|
|
57588
57836
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
57589
57837
|
labelClassName
|
|
57590
57838
|
),
|
|
@@ -57618,7 +57866,7 @@ function MDXMarkdownField({
|
|
|
57618
57866
|
"p",
|
|
57619
57867
|
{
|
|
57620
57868
|
id: helperId,
|
|
57621
|
-
className:
|
|
57869
|
+
className: classNames73__default.default(
|
|
57622
57870
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
57623
57871
|
helperTextClassName
|
|
57624
57872
|
),
|
|
@@ -57678,10 +57926,10 @@ function MarkdownLayout({
|
|
|
57678
57926
|
};
|
|
57679
57927
|
const hasLeftToc = hasToc && tocPosition === "left";
|
|
57680
57928
|
const hasRightToc = hasToc && tocPosition === "right";
|
|
57681
|
-
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(
|
|
57682
57930
|
"div",
|
|
57683
57931
|
{
|
|
57684
|
-
className:
|
|
57932
|
+
className: classNames73__default.default(
|
|
57685
57933
|
"eui-markdown-layout-container",
|
|
57686
57934
|
"mx-auto w-full px-4 sm:px-6 lg:px-8",
|
|
57687
57935
|
containerClassName
|
|
@@ -57693,7 +57941,7 @@ function MarkdownLayout({
|
|
|
57693
57941
|
header ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57694
57942
|
"header",
|
|
57695
57943
|
{
|
|
57696
|
-
className:
|
|
57944
|
+
className: classNames73__default.default(
|
|
57697
57945
|
"eui-markdown-layout-header",
|
|
57698
57946
|
"mb-8",
|
|
57699
57947
|
headerClassName
|
|
@@ -57704,7 +57952,7 @@ function MarkdownLayout({
|
|
|
57704
57952
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
57705
57953
|
"div",
|
|
57706
57954
|
{
|
|
57707
|
-
className:
|
|
57955
|
+
className: classNames73__default.default(
|
|
57708
57956
|
"eui-markdown-layout-grid",
|
|
57709
57957
|
"grid grid-cols-1 gap-8",
|
|
57710
57958
|
hasSidebar && hasToc && "xl:grid-cols-[16rem_minmax(0,1fr)_18rem]",
|
|
@@ -57717,7 +57965,7 @@ function MarkdownLayout({
|
|
|
57717
57965
|
hasSidebar ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57718
57966
|
"aside",
|
|
57719
57967
|
{
|
|
57720
|
-
className:
|
|
57968
|
+
className: classNames73__default.default(
|
|
57721
57969
|
"eui-markdown-layout-sidebar",
|
|
57722
57970
|
"min-w-0",
|
|
57723
57971
|
stickySidebar && "lg:sticky lg:self-start",
|
|
@@ -57730,7 +57978,7 @@ function MarkdownLayout({
|
|
|
57730
57978
|
hasLeftToc ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57731
57979
|
"aside",
|
|
57732
57980
|
{
|
|
57733
|
-
className:
|
|
57981
|
+
className: classNames73__default.default(
|
|
57734
57982
|
"eui-markdown-layout-toc",
|
|
57735
57983
|
"min-w-0",
|
|
57736
57984
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -57743,7 +57991,7 @@ function MarkdownLayout({
|
|
|
57743
57991
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57744
57992
|
"main",
|
|
57745
57993
|
{
|
|
57746
|
-
className:
|
|
57994
|
+
className: classNames73__default.default(
|
|
57747
57995
|
"eui-markdown-layout-content",
|
|
57748
57996
|
"min-w-0",
|
|
57749
57997
|
contentClassName
|
|
@@ -57754,7 +58002,7 @@ function MarkdownLayout({
|
|
|
57754
58002
|
hasRightToc ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57755
58003
|
"aside",
|
|
57756
58004
|
{
|
|
57757
|
-
className:
|
|
58005
|
+
className: classNames73__default.default(
|
|
57758
58006
|
"eui-markdown-layout-toc",
|
|
57759
58007
|
"min-w-0",
|
|
57760
58008
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -57767,7 +58015,7 @@ function MarkdownLayout({
|
|
|
57767
58015
|
hasAside ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57768
58016
|
"aside",
|
|
57769
58017
|
{
|
|
57770
|
-
className:
|
|
58018
|
+
className: classNames73__default.default(
|
|
57771
58019
|
"eui-markdown-layout-aside",
|
|
57772
58020
|
"min-w-0",
|
|
57773
58021
|
stickyAside && "2xl:sticky 2xl:self-start",
|
|
@@ -57783,7 +58031,7 @@ function MarkdownLayout({
|
|
|
57783
58031
|
footer2 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57784
58032
|
"footer",
|
|
57785
58033
|
{
|
|
57786
|
-
className:
|
|
58034
|
+
className: classNames73__default.default(
|
|
57787
58035
|
"eui-markdown-layout-footer",
|
|
57788
58036
|
"mt-10",
|
|
57789
58037
|
footerClassName
|
|
@@ -57820,7 +58068,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57820
58068
|
const resolvedHeader = header ?? (title || description || headerActions ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57821
58069
|
"div",
|
|
57822
58070
|
{
|
|
57823
|
-
className:
|
|
58071
|
+
className: classNames73__default.default(
|
|
57824
58072
|
"eui-markdown-docs-header",
|
|
57825
58073
|
"flex flex-col gap-4 border-b border-gray-200 pb-6",
|
|
57826
58074
|
"dark:border-gray-700",
|
|
@@ -57831,7 +58079,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57831
58079
|
title ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57832
58080
|
"h1",
|
|
57833
58081
|
{
|
|
57834
|
-
className:
|
|
58082
|
+
className: classNames73__default.default(
|
|
57835
58083
|
"eui-markdown-docs-title",
|
|
57836
58084
|
"text-3xl font-bold tracking-tight text-gray-950",
|
|
57837
58085
|
"dark:text-gray-50",
|
|
@@ -57843,7 +58091,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57843
58091
|
description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57844
58092
|
"div",
|
|
57845
58093
|
{
|
|
57846
|
-
className:
|
|
58094
|
+
className: classNames73__default.default(
|
|
57847
58095
|
"eui-markdown-docs-description",
|
|
57848
58096
|
"max-w-3xl text-base leading-7 text-gray-600",
|
|
57849
58097
|
"dark:text-gray-400",
|
|
@@ -57931,7 +58179,7 @@ function GenericLayout({
|
|
|
57931
58179
|
return /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57932
58180
|
"div",
|
|
57933
58181
|
{
|
|
57934
|
-
className:
|
|
58182
|
+
className: classNames73__default.default({
|
|
57935
58183
|
[`${styles}`]: styles
|
|
57936
58184
|
}),
|
|
57937
58185
|
children: children3
|
|
@@ -57980,7 +58228,7 @@ function SidemenuLayout({ data, children: children3 }) {
|
|
|
57980
58228
|
return /* @__PURE__ */ jsxRuntime.jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57981
58229
|
"div",
|
|
57982
58230
|
{
|
|
57983
|
-
className:
|
|
58231
|
+
className: classNames73__default.default({
|
|
57984
58232
|
grid: true,
|
|
57985
58233
|
"grid-cols-7 gap-10": !isMobile,
|
|
57986
58234
|
"grid-cols-1 gap-": isMobile
|
|
@@ -58169,7 +58417,7 @@ exports.FooterNavItem = FooterNavItem;
|
|
|
58169
58417
|
exports.FooterNavItemContext = FooterNavItemContext;
|
|
58170
58418
|
exports.FooterNavItemTitle = FooterNavItemTitle;
|
|
58171
58419
|
exports.Form = Form;
|
|
58172
|
-
exports.FormResponse =
|
|
58420
|
+
exports.FormResponse = FormResponse;
|
|
58173
58421
|
exports.GaugePlot = GaugePlot;
|
|
58174
58422
|
exports.GenericLayout = GenericLayout_default;
|
|
58175
58423
|
exports.GlowWrapper = GlowWrapper_default;
|
|
@@ -58186,7 +58434,8 @@ exports.HeaderNavItemContext = HeaderNavItemContext;
|
|
|
58186
58434
|
exports.HeaderNavItemTitle = HeaderNavItemTitle;
|
|
58187
58435
|
exports.HomeLayout = HomeLayout_default;
|
|
58188
58436
|
exports.Image = Image2;
|
|
58189
|
-
exports.ImageInput =
|
|
58437
|
+
exports.ImageInput = ImageInput_web_default;
|
|
58438
|
+
exports.ImageView = ImageView;
|
|
58190
58439
|
exports.InfiniteScrollTrigger = InfiniteScrollTrigger_default;
|
|
58191
58440
|
exports.Info = Info;
|
|
58192
58441
|
exports.Input = Input;
|
|
@@ -58252,7 +58501,7 @@ exports.MenuItem = MenuItem;
|
|
|
58252
58501
|
exports.MenuItemTitle = MenuItemTitle;
|
|
58253
58502
|
exports.Modal = Modal_default;
|
|
58254
58503
|
exports.MotionSurface = MotionSurface_default;
|
|
58255
|
-
exports.MultiImageInput =
|
|
58504
|
+
exports.MultiImageInput = MultiImageInput_web_default;
|
|
58256
58505
|
exports.NumericRating = NumericRating;
|
|
58257
58506
|
exports.Overline = Overline;
|
|
58258
58507
|
exports.Paragraph = Paragraph;
|