elseware-ui 2.39.0 → 2.39.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +760 -417
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +204 -279
- package/dist/index.d.ts +204 -279
- package/dist/index.js +1513 -574
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1218 -309
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { twMerge } from 'tailwind-merge';
|
|
2
|
-
import
|
|
2
|
+
import React26, { createContext, forwardRef, useState, useImperativeHandle, useEffect, useRef, useMemo, useCallback, useContext, Children, createElement, isValidElement } from 'react';
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import { BsStarFill, BsStarHalf, BsStar, BsChevronDown, BsFillDiamondFill } from 'react-icons/bs/index.js';
|
|
5
5
|
import { FaSun, FaMoon, FaGripVertical, FaTrash, FaPlus, FaTimes, FaBars, FaCircle, FaEyeSlash, FaEye } from 'react-icons/fa/index.js';
|
|
6
6
|
import { ResponsiveContainer, LineChart, CartesianGrid, XAxis, YAxis, Tooltip, Line, AreaChart, Area, BarChart, Bar, PieChart, Pie, Cell, ScatterChart, Scatter } from 'recharts';
|
|
7
|
-
import
|
|
7
|
+
import classNames77 from 'classnames';
|
|
8
8
|
import { FaCircleChevronDown } from 'react-icons/fa6/index.js';
|
|
9
9
|
import ReactWorldFlags from 'react-world-flags';
|
|
10
10
|
import emojiFlags from 'emoji-flags';
|
|
@@ -19,6 +19,11 @@ import { BiCheckCircle, BiXCircle, BiChevronDown, BiChevronUp, BiSolidLike, BiLi
|
|
|
19
19
|
import default2 from 'path';
|
|
20
20
|
import default3 from 'process';
|
|
21
21
|
import { fileURLToPath } from 'url';
|
|
22
|
+
import CodeMirror from '@uiw/react-codemirror';
|
|
23
|
+
import { markdown } from '@codemirror/lang-markdown';
|
|
24
|
+
import { oneDark } from '@codemirror/theme-one-dark';
|
|
25
|
+
import { MDXEditor, headingsPlugin, listsPlugin, quotePlugin, thematicBreakPlugin, markdownShortcutPlugin, linkPlugin, linkDialogPlugin, imagePlugin, tablePlugin, codeBlockPlugin, codeMirrorPlugin, toolbarPlugin, ConditionalContents, UndoRedo, Separator, ChangeCodeMirrorLanguage, BlockTypeSelect, BoldItalicUnderlineToggles, CodeToggle, StrikeThroughSupSubToggles, ListsToggle, CreateLink, InsertImage, InsertTable, InsertCodeBlock, InsertThematicBreak } from '@mdxeditor/editor';
|
|
26
|
+
import '@mdxeditor/editor/style.css';
|
|
22
27
|
|
|
23
28
|
var __create = Object.create;
|
|
24
29
|
var __defProp = Object.defineProperty;
|
|
@@ -7028,7 +7033,7 @@ var init_python = __esm({
|
|
|
7028
7033
|
});
|
|
7029
7034
|
|
|
7030
7035
|
// node_modules/refractor/lang/jsx.js
|
|
7031
|
-
function
|
|
7036
|
+
function jsx213(Prism2) {
|
|
7032
7037
|
Prism2.register(javascript);
|
|
7033
7038
|
Prism2.register(markup);
|
|
7034
7039
|
(function(Prism3) {
|
|
@@ -7161,14 +7166,14 @@ var init_jsx = __esm({
|
|
|
7161
7166
|
"node_modules/refractor/lang/jsx.js"() {
|
|
7162
7167
|
init_javascript();
|
|
7163
7168
|
init_markup();
|
|
7164
|
-
|
|
7165
|
-
|
|
7169
|
+
jsx213.displayName = "jsx";
|
|
7170
|
+
jsx213.aliases = [];
|
|
7166
7171
|
}
|
|
7167
7172
|
});
|
|
7168
7173
|
|
|
7169
7174
|
// node_modules/refractor/lang/tsx.js
|
|
7170
7175
|
function tsx(Prism2) {
|
|
7171
|
-
Prism2.register(
|
|
7176
|
+
Prism2.register(jsx213);
|
|
7172
7177
|
Prism2.register(typescript);
|
|
7173
7178
|
(function(Prism3) {
|
|
7174
7179
|
var typescript2 = Prism3.util.clone(Prism3.languages.typescript);
|
|
@@ -11030,12 +11035,12 @@ function renderTransitionChild(children3, className) {
|
|
|
11030
11035
|
return /* @__PURE__ */ jsx("div", { className, children: children3 });
|
|
11031
11036
|
}
|
|
11032
11037
|
const child = Children.only(children3);
|
|
11033
|
-
if (!
|
|
11038
|
+
if (!React26.isValidElement(child)) {
|
|
11034
11039
|
return /* @__PURE__ */ jsx("div", { className, children: child });
|
|
11035
11040
|
}
|
|
11036
11041
|
const element6 = child;
|
|
11037
|
-
return
|
|
11038
|
-
className:
|
|
11042
|
+
return React26.cloneElement(element6, {
|
|
11043
|
+
className: classNames77(element6.props.className, className)
|
|
11039
11044
|
});
|
|
11040
11045
|
}
|
|
11041
11046
|
function TransitionBase({
|
|
@@ -11055,7 +11060,7 @@ function TransitionBase({
|
|
|
11055
11060
|
if (!mounted && unmountOnExit) {
|
|
11056
11061
|
return null;
|
|
11057
11062
|
}
|
|
11058
|
-
const transitionClassName =
|
|
11063
|
+
const transitionClassName = classNames77(
|
|
11059
11064
|
visibility ? enterClassName : leaveClassName,
|
|
11060
11065
|
active ? visibleClassName : hiddenClassName
|
|
11061
11066
|
);
|
|
@@ -11230,7 +11235,7 @@ function Accordion({
|
|
|
11230
11235
|
/* @__PURE__ */ jsxs(
|
|
11231
11236
|
"div",
|
|
11232
11237
|
{
|
|
11233
|
-
className:
|
|
11238
|
+
className: classNames77(
|
|
11234
11239
|
"inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs",
|
|
11235
11240
|
{
|
|
11236
11241
|
"hover:cursor-pointer": toggleOnSummaryClick
|
|
@@ -11251,7 +11256,7 @@ function Accordion({
|
|
|
11251
11256
|
children: /* @__PURE__ */ jsx(
|
|
11252
11257
|
FaCircleChevronDown,
|
|
11253
11258
|
{
|
|
11254
|
-
className:
|
|
11259
|
+
className: classNames77("text-xl transition-transform duration-300", {
|
|
11255
11260
|
"rotate-180": collapse
|
|
11256
11261
|
})
|
|
11257
11262
|
}
|
|
@@ -11265,7 +11270,7 @@ function Accordion({
|
|
|
11265
11270
|
/* @__PURE__ */ jsx(TransitionAccordion_default, { visibility: collapse, children: /* @__PURE__ */ jsx(
|
|
11266
11271
|
"div",
|
|
11267
11272
|
{
|
|
11268
|
-
className:
|
|
11273
|
+
className: classNames77(
|
|
11269
11274
|
"border-t border-t-eui-dark-400/40 eui-text-sm",
|
|
11270
11275
|
{
|
|
11271
11276
|
"p-5": enableChildrenPadding
|
|
@@ -11349,7 +11354,7 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
11349
11354
|
return /* @__PURE__ */ jsxs(
|
|
11350
11355
|
"div",
|
|
11351
11356
|
{
|
|
11352
|
-
className:
|
|
11357
|
+
className: classNames77(
|
|
11353
11358
|
"flex items-start gap-4 p-6 border-b border-white/10",
|
|
11354
11359
|
className
|
|
11355
11360
|
),
|
|
@@ -11365,14 +11370,14 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
11365
11370
|
}
|
|
11366
11371
|
var CardHeader_default = CardHeader;
|
|
11367
11372
|
function CardContent({ children: children3, className }) {
|
|
11368
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
11373
|
+
return /* @__PURE__ */ jsx("div", { className: classNames77("p-6 text-gray-300 text-sm", className), children: children3 });
|
|
11369
11374
|
}
|
|
11370
11375
|
var CardContent_default = CardContent;
|
|
11371
11376
|
function CardFooter({ children: children3, className }) {
|
|
11372
11377
|
return /* @__PURE__ */ jsx(
|
|
11373
11378
|
"div",
|
|
11374
11379
|
{
|
|
11375
|
-
className:
|
|
11380
|
+
className: classNames77(
|
|
11376
11381
|
"flex items-center gap-3 p-5 border-t border-white/10 text-sm text-gray-400",
|
|
11377
11382
|
className
|
|
11378
11383
|
),
|
|
@@ -11414,7 +11419,7 @@ function GradientAnimation({
|
|
|
11414
11419
|
return /* @__PURE__ */ jsx(
|
|
11415
11420
|
"div",
|
|
11416
11421
|
{
|
|
11417
|
-
className:
|
|
11422
|
+
className: classNames77("absolute inset-0"),
|
|
11418
11423
|
style: {
|
|
11419
11424
|
background: `linear-gradient(${cfg.angle}deg, ${cfg.colors?.join(",")})`,
|
|
11420
11425
|
backgroundSize: cfg.backgroundSize,
|
|
@@ -11560,7 +11565,7 @@ function MotionSurface({
|
|
|
11560
11565
|
}) {
|
|
11561
11566
|
const AnimationComponent = animationVariant === "custom" ? CustomAnimation : animationRegistry[animationVariant];
|
|
11562
11567
|
const OverlayComponent = overlay === "custom" ? CustomOverlay : overlayRegistry[overlay];
|
|
11563
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
11568
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames77("relative overflow-hidden", className), children: [
|
|
11564
11569
|
AnimationComponent && /* @__PURE__ */ jsx(AnimationComponent, { config: animationConfig, animated }),
|
|
11565
11570
|
OverlayComponent && /* @__PURE__ */ jsx(OverlayComponent, { config: overlayConfig }),
|
|
11566
11571
|
/* @__PURE__ */ jsx("div", { className: "relative z-10", children: children3 })
|
|
@@ -14987,6 +14992,7 @@ var Image2 = ({
|
|
|
14987
14992
|
height,
|
|
14988
14993
|
width,
|
|
14989
14994
|
className,
|
|
14995
|
+
style: style2,
|
|
14990
14996
|
...rest
|
|
14991
14997
|
}) => {
|
|
14992
14998
|
return /* @__PURE__ */ jsx(
|
|
@@ -14996,6 +15002,7 @@ var Image2 = ({
|
|
|
14996
15002
|
src,
|
|
14997
15003
|
alt,
|
|
14998
15004
|
style: {
|
|
15005
|
+
...style2,
|
|
14999
15006
|
...width ? { width } : {},
|
|
15000
15007
|
...height ? { height } : {}
|
|
15001
15008
|
},
|
|
@@ -15167,6 +15174,7 @@ var Paragraph = ({
|
|
|
15167
15174
|
);
|
|
15168
15175
|
};
|
|
15169
15176
|
var Quote = ({
|
|
15177
|
+
as: Component,
|
|
15170
15178
|
level = 1,
|
|
15171
15179
|
children: children3,
|
|
15172
15180
|
variant,
|
|
@@ -15176,8 +15184,9 @@ var Quote = ({
|
|
|
15176
15184
|
className,
|
|
15177
15185
|
...rest
|
|
15178
15186
|
}) => {
|
|
15187
|
+
const QuoteElement = Component ?? "div";
|
|
15179
15188
|
return /* @__PURE__ */ jsx(
|
|
15180
|
-
|
|
15189
|
+
QuoteElement,
|
|
15181
15190
|
{
|
|
15182
15191
|
...rest,
|
|
15183
15192
|
className: cn(
|
|
@@ -15360,6 +15369,29 @@ var Typography = {
|
|
|
15360
15369
|
Code,
|
|
15361
15370
|
Overline
|
|
15362
15371
|
};
|
|
15372
|
+
function ListRoot({
|
|
15373
|
+
as: Component,
|
|
15374
|
+
className,
|
|
15375
|
+
...props
|
|
15376
|
+
}) {
|
|
15377
|
+
const Root = Component ?? "div";
|
|
15378
|
+
const semanticStyles = Component === "ul" ? "my-4 list-disc space-y-1 pl-6" : Component === "ol" ? "my-4 list-decimal space-y-1 pl-6" : void 0;
|
|
15379
|
+
return /* @__PURE__ */ jsx(Root, { ...props, className: cn("w-full", semanticStyles, className) });
|
|
15380
|
+
}
|
|
15381
|
+
function ListItemElement({
|
|
15382
|
+
as: Component,
|
|
15383
|
+
className,
|
|
15384
|
+
...props
|
|
15385
|
+
}) {
|
|
15386
|
+
const Item = Component ?? "div";
|
|
15387
|
+
return /* @__PURE__ */ jsx(
|
|
15388
|
+
Item,
|
|
15389
|
+
{
|
|
15390
|
+
...props,
|
|
15391
|
+
className: cn("min-w-0", Component === "li" && "pl-1", className)
|
|
15392
|
+
}
|
|
15393
|
+
);
|
|
15394
|
+
}
|
|
15363
15395
|
var ListItem = ({
|
|
15364
15396
|
content: content3,
|
|
15365
15397
|
TypographyComponent = /* @__PURE__ */ jsx(Paragraph, { level: 1 }),
|
|
@@ -15374,8 +15406,9 @@ var ListItem = ({
|
|
|
15374
15406
|
"."
|
|
15375
15407
|
] }) : bulletTypes[bulletType]);
|
|
15376
15408
|
return /* @__PURE__ */ jsxs(
|
|
15377
|
-
|
|
15409
|
+
ListItemElement,
|
|
15378
15410
|
{
|
|
15411
|
+
role: "listitem",
|
|
15379
15412
|
className: cn(
|
|
15380
15413
|
"flex gap-3",
|
|
15381
15414
|
align === "center" ? "items-center" : "items-baseline",
|
|
@@ -15393,7 +15426,7 @@ var ListItem = ({
|
|
|
15393
15426
|
children: bullet
|
|
15394
15427
|
}
|
|
15395
15428
|
),
|
|
15396
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1 min-w-0", children: TypographyComponent ?
|
|
15429
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 min-w-0", children: TypographyComponent ? React26.cloneElement(
|
|
15397
15430
|
TypographyComponent,
|
|
15398
15431
|
{
|
|
15399
15432
|
className: cn(
|
|
@@ -15427,7 +15460,7 @@ function normalizeItem(item, defaultBulletType) {
|
|
|
15427
15460
|
bulletType: defaultBulletType
|
|
15428
15461
|
};
|
|
15429
15462
|
}
|
|
15430
|
-
if (
|
|
15463
|
+
if (React26.isValidElement(item)) {
|
|
15431
15464
|
return {
|
|
15432
15465
|
content: item,
|
|
15433
15466
|
bulletType: defaultBulletType
|
|
@@ -15451,13 +15484,12 @@ function List({
|
|
|
15451
15484
|
...rest
|
|
15452
15485
|
}) {
|
|
15453
15486
|
const isGrid = !!columns;
|
|
15454
|
-
const isOrdered = bulletType === "number";
|
|
15455
15487
|
return /* @__PURE__ */ jsxs("div", { ...rest, className: cn("py-2", className), children: [
|
|
15456
15488
|
title && /* @__PURE__ */ jsx("div", { className: "text-sm font-semibold mb-3", children: title }),
|
|
15457
15489
|
/* @__PURE__ */ jsx(
|
|
15458
|
-
|
|
15490
|
+
ListRoot,
|
|
15459
15491
|
{
|
|
15460
|
-
role:
|
|
15492
|
+
role: "list",
|
|
15461
15493
|
className: cn(
|
|
15462
15494
|
isGrid ? `grid ${gridCols[columns]}` : direction === "horizontal" ? "flex flex-row" : "flex flex-col",
|
|
15463
15495
|
gapMap[gap],
|
|
@@ -15887,7 +15919,7 @@ var Backdrop = ({ children: children3, styles }) => {
|
|
|
15887
15919
|
return /* @__PURE__ */ jsx(
|
|
15888
15920
|
"div",
|
|
15889
15921
|
{
|
|
15890
|
-
className:
|
|
15922
|
+
className: classNames77({
|
|
15891
15923
|
"bg-black/75 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden": true,
|
|
15892
15924
|
[`${styles}`]: styles
|
|
15893
15925
|
}),
|
|
@@ -16104,6 +16136,75 @@ function Spinner({
|
|
|
16104
16136
|
);
|
|
16105
16137
|
}
|
|
16106
16138
|
var Spinner_default = Spinner;
|
|
16139
|
+
function TableFrame({
|
|
16140
|
+
className,
|
|
16141
|
+
...props
|
|
16142
|
+
}) {
|
|
16143
|
+
return /* @__PURE__ */ jsx(
|
|
16144
|
+
"div",
|
|
16145
|
+
{
|
|
16146
|
+
...props,
|
|
16147
|
+
className: cn(
|
|
16148
|
+
"w-full overflow-x-auto border border-gray-200 dark:border-gray-700",
|
|
16149
|
+
className
|
|
16150
|
+
)
|
|
16151
|
+
}
|
|
16152
|
+
);
|
|
16153
|
+
}
|
|
16154
|
+
function TableElement({
|
|
16155
|
+
className,
|
|
16156
|
+
...props
|
|
16157
|
+
}) {
|
|
16158
|
+
return /* @__PURE__ */ jsx("table", { ...props, className: cn("w-full", className) });
|
|
16159
|
+
}
|
|
16160
|
+
function TableHead({
|
|
16161
|
+
className,
|
|
16162
|
+
...props
|
|
16163
|
+
}) {
|
|
16164
|
+
return /* @__PURE__ */ jsx(
|
|
16165
|
+
"thead",
|
|
16166
|
+
{
|
|
16167
|
+
...props,
|
|
16168
|
+
className: cn("bg-gray-100 dark:bg-gray-800", className)
|
|
16169
|
+
}
|
|
16170
|
+
);
|
|
16171
|
+
}
|
|
16172
|
+
function TableBody({
|
|
16173
|
+
className,
|
|
16174
|
+
...props
|
|
16175
|
+
}) {
|
|
16176
|
+
return /* @__PURE__ */ jsx("tbody", { ...props, className });
|
|
16177
|
+
}
|
|
16178
|
+
function TableRow({
|
|
16179
|
+
className,
|
|
16180
|
+
...props
|
|
16181
|
+
}) {
|
|
16182
|
+
return /* @__PURE__ */ jsx(
|
|
16183
|
+
"tr",
|
|
16184
|
+
{
|
|
16185
|
+
...props,
|
|
16186
|
+
className: cn("border-t border-gray-200 dark:border-gray-700", className)
|
|
16187
|
+
}
|
|
16188
|
+
);
|
|
16189
|
+
}
|
|
16190
|
+
function TableHeaderCell({
|
|
16191
|
+
className,
|
|
16192
|
+
...props
|
|
16193
|
+
}) {
|
|
16194
|
+
return /* @__PURE__ */ jsx(
|
|
16195
|
+
"th",
|
|
16196
|
+
{
|
|
16197
|
+
...props,
|
|
16198
|
+
className: cn("px-4 py-3 text-left text-xs font-semibold", className)
|
|
16199
|
+
}
|
|
16200
|
+
);
|
|
16201
|
+
}
|
|
16202
|
+
function TableCell({
|
|
16203
|
+
className,
|
|
16204
|
+
...props
|
|
16205
|
+
}) {
|
|
16206
|
+
return /* @__PURE__ */ jsx("td", { ...props, className: cn("px-4 py-2", className) });
|
|
16207
|
+
}
|
|
16107
16208
|
function Table({
|
|
16108
16209
|
title,
|
|
16109
16210
|
columns,
|
|
@@ -16136,58 +16237,49 @@ function Table({
|
|
|
16136
16237
|
}, [data, sortKey, sortOrder]);
|
|
16137
16238
|
return /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
|
|
16138
16239
|
title && /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold mb-3 font-poppins", children: title }),
|
|
16139
|
-
/* @__PURE__ */ jsx(
|
|
16140
|
-
"
|
|
16141
|
-
|
|
16142
|
-
|
|
16143
|
-
|
|
16144
|
-
|
|
16145
|
-
|
|
16146
|
-
|
|
16147
|
-
|
|
16148
|
-
|
|
16149
|
-
|
|
16150
|
-
|
|
16151
|
-
|
|
16152
|
-
|
|
16153
|
-
|
|
16154
|
-
|
|
16155
|
-
|
|
16156
|
-
|
|
16157
|
-
|
|
16158
|
-
|
|
16159
|
-
|
|
16160
|
-
|
|
16161
|
-
|
|
16162
|
-
|
|
16163
|
-
|
|
16164
|
-
|
|
16165
|
-
|
|
16166
|
-
|
|
16167
|
-
|
|
16168
|
-
|
|
16169
|
-
|
|
16170
|
-
|
|
16171
|
-
|
|
16172
|
-
|
|
16173
|
-
|
|
16174
|
-
|
|
16175
|
-
|
|
16176
|
-
|
|
16177
|
-
|
|
16178
|
-
|
|
16179
|
-
|
|
16180
|
-
|
|
16181
|
-
|
|
16182
|
-
String(col.key)
|
|
16183
|
-
);
|
|
16184
|
-
})
|
|
16185
|
-
},
|
|
16186
|
-
rowIndex
|
|
16187
|
-
)) })
|
|
16188
|
-
] })
|
|
16189
|
-
}
|
|
16190
|
-
)
|
|
16240
|
+
/* @__PURE__ */ jsx(TableFrame, { className: cn(shapes[resolvedShape]), children: /* @__PURE__ */ jsxs(TableElement, { children: [
|
|
16241
|
+
/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsx(TableRow, { className: "border-t-0", children: columns.map((col) => /* @__PURE__ */ jsx(
|
|
16242
|
+
TableHeaderCell,
|
|
16243
|
+
{
|
|
16244
|
+
onClick: () => col.sortable && toggleSort(String(col.key)),
|
|
16245
|
+
className: cn(
|
|
16246
|
+
"text-gray-700 dark:text-gray-200",
|
|
16247
|
+
col.sortable && "cursor-pointer select-none hover:bg-gray-200 dark:hover:bg-gray-700",
|
|
16248
|
+
sortKey === col.key && "bg-gray-300 dark:bg-gray-600"
|
|
16249
|
+
),
|
|
16250
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
16251
|
+
col.header,
|
|
16252
|
+
col.sortable && sortKey === col.key && /* @__PURE__ */ jsx("span", { className: "text-xs", children: sortOrder === "asc" ? "\u25B2" : "\u25BC" })
|
|
16253
|
+
] })
|
|
16254
|
+
},
|
|
16255
|
+
String(col.key)
|
|
16256
|
+
)) }) }),
|
|
16257
|
+
/* @__PURE__ */ jsx(TableBody, { children: sortedData.length === 0 ? /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(
|
|
16258
|
+
TableCell,
|
|
16259
|
+
{
|
|
16260
|
+
colSpan: columns.length,
|
|
16261
|
+
className: "py-4 text-center text-gray-500",
|
|
16262
|
+
children: "No data available"
|
|
16263
|
+
}
|
|
16264
|
+
) }) : sortedData.map((row, rowIndex) => /* @__PURE__ */ jsx(
|
|
16265
|
+
TableRow,
|
|
16266
|
+
{
|
|
16267
|
+
className: "odd:eui-bg-sm even:eui-bg-md hover:bg-gray-50 dark:hover:bg-gray-900",
|
|
16268
|
+
children: columns.map((col) => {
|
|
16269
|
+
const value = col.key in row ? row[col.key] : void 0;
|
|
16270
|
+
return /* @__PURE__ */ jsx(
|
|
16271
|
+
TableCell,
|
|
16272
|
+
{
|
|
16273
|
+
className: "py-1 text-gray-800 dark:text-gray-400",
|
|
16274
|
+
children: col.render ? col.render(value, row) : String(value ?? "-")
|
|
16275
|
+
},
|
|
16276
|
+
String(col.key)
|
|
16277
|
+
);
|
|
16278
|
+
})
|
|
16279
|
+
},
|
|
16280
|
+
rowIndex
|
|
16281
|
+
)) })
|
|
16282
|
+
] }) })
|
|
16191
16283
|
] });
|
|
16192
16284
|
}
|
|
16193
16285
|
var Table_default = Table;
|
|
@@ -16411,7 +16503,7 @@ var Form = ({
|
|
|
16411
16503
|
/* @__PURE__ */ jsx(UnsavedChangesGuard_default, { formik, enabled: warnOnUnsavedChanges }),
|
|
16412
16504
|
/* @__PURE__ */ jsx(DirtyObserver_default, { formik, onDirtyChange }),
|
|
16413
16505
|
/* @__PURE__ */ jsx(FormObserver_default, { formik, onChange }),
|
|
16414
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
16506
|
+
/* @__PURE__ */ jsx("div", { className: classNames77(styles), children: children3 })
|
|
16415
16507
|
] })
|
|
16416
16508
|
}
|
|
16417
16509
|
);
|
|
@@ -16928,7 +17020,7 @@ function FormResponse({
|
|
|
16928
17020
|
return /* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility: text10 ? true : false, children: /* @__PURE__ */ jsx(
|
|
16929
17021
|
"div",
|
|
16930
17022
|
{
|
|
16931
|
-
className:
|
|
17023
|
+
className: classNames77({
|
|
16932
17024
|
"font-poppins font-light text-sm": true,
|
|
16933
17025
|
[`${variantsLite[variant]}`]: variant,
|
|
16934
17026
|
[`${shapes[shape]}`]: shape,
|
|
@@ -17045,7 +17137,7 @@ var ThemeSwitch = () => {
|
|
|
17045
17137
|
/* @__PURE__ */ jsx(
|
|
17046
17138
|
"div",
|
|
17047
17139
|
{
|
|
17048
|
-
className:
|
|
17140
|
+
className: classNames77(
|
|
17049
17141
|
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
17050
17142
|
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
17051
17143
|
)
|
|
@@ -28593,7 +28685,7 @@ function InputResponse({
|
|
|
28593
28685
|
return /* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility, children: /* @__PURE__ */ jsx(
|
|
28594
28686
|
"div",
|
|
28595
28687
|
{
|
|
28596
|
-
className:
|
|
28688
|
+
className: classNames77({
|
|
28597
28689
|
"font-medium text-sm py-1 px-2": true,
|
|
28598
28690
|
[`${textVariants[variant]}`]: variant,
|
|
28599
28691
|
"transition-all ease-in-out": true,
|
|
@@ -28608,7 +28700,7 @@ function InputLabel({ text: text10, children: children3, styles }) {
|
|
|
28608
28700
|
return /* @__PURE__ */ jsx(
|
|
28609
28701
|
"label",
|
|
28610
28702
|
{
|
|
28611
|
-
className:
|
|
28703
|
+
className: classNames77({
|
|
28612
28704
|
"px-0 eui-text-sm text-[13.5px] pointer-events-none select-none": true,
|
|
28613
28705
|
"transition-all ease-in-out": true,
|
|
28614
28706
|
[`${styles}`]: styles
|
|
@@ -28660,7 +28752,7 @@ var Input = ({
|
|
|
28660
28752
|
...field,
|
|
28661
28753
|
...props,
|
|
28662
28754
|
placeholder,
|
|
28663
|
-
className:
|
|
28755
|
+
className: classNames77({
|
|
28664
28756
|
"border peer w-full bg-eui-primary-300/10 pt-5 px-3 pb-2 text-md eui-text-md placeholder-transparent placeholder-shown:p-3 focus:outline-none h-[50px]": true,
|
|
28665
28757
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
28666
28758
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
@@ -28705,7 +28797,7 @@ var InputFile = ({
|
|
|
28705
28797
|
/* @__PURE__ */ jsx(
|
|
28706
28798
|
"div",
|
|
28707
28799
|
{
|
|
28708
|
-
className:
|
|
28800
|
+
className: classNames77(
|
|
28709
28801
|
"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",
|
|
28710
28802
|
{
|
|
28711
28803
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -28731,7 +28823,7 @@ var InputFile = ({
|
|
|
28731
28823
|
InputLabel_default,
|
|
28732
28824
|
{
|
|
28733
28825
|
text: placeholder,
|
|
28734
|
-
styles:
|
|
28826
|
+
styles: classNames77({
|
|
28735
28827
|
"absolute left-2 eui-text-sm peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none": true,
|
|
28736
28828
|
"top-[0.7px]": showFloatingLabel,
|
|
28737
28829
|
"top-[13px] text-base": !showFloatingLabel
|
|
@@ -28784,7 +28876,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
28784
28876
|
/* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(FieldArray, { name: name2, children: ({ push: push2, remove: remove2, move }) => /* @__PURE__ */ jsxs(
|
|
28785
28877
|
"div",
|
|
28786
28878
|
{
|
|
28787
|
-
className:
|
|
28879
|
+
className: classNames77(
|
|
28788
28880
|
"flex w-full flex-col space-y-2 bg-eui-primary-300/10",
|
|
28789
28881
|
shapes[resolvedShape]
|
|
28790
28882
|
),
|
|
@@ -28813,7 +28905,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
28813
28905
|
ref: provided2.innerRef,
|
|
28814
28906
|
...draggableProps,
|
|
28815
28907
|
style: draggableStyle,
|
|
28816
|
-
className:
|
|
28908
|
+
className: classNames77(
|
|
28817
28909
|
"flex items-center space-x-2 bg-eui-primary-300/10 p-2",
|
|
28818
28910
|
shapes[resolvedShape]
|
|
28819
28911
|
),
|
|
@@ -28824,7 +28916,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
28824
28916
|
{
|
|
28825
28917
|
name: `${name2}[${index3}]`,
|
|
28826
28918
|
placeholder: `Item ${index3 + 1}`,
|
|
28827
|
-
className:
|
|
28919
|
+
className: classNames77(
|
|
28828
28920
|
"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",
|
|
28829
28921
|
shapes[resolvedShape],
|
|
28830
28922
|
hasItemError ? "border-eui-danger-500" : "border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -28920,7 +29012,7 @@ var InputListGroup = ({
|
|
|
28920
29012
|
return /* @__PURE__ */ jsxs(
|
|
28921
29013
|
"div",
|
|
28922
29014
|
{
|
|
28923
|
-
className:
|
|
29015
|
+
className: classNames77(
|
|
28924
29016
|
"flex flex-col gap-2 bg-eui-primary-300/10 p-3",
|
|
28925
29017
|
shapes[resolvedShape]
|
|
28926
29018
|
),
|
|
@@ -28932,7 +29024,7 @@ var InputListGroup = ({
|
|
|
28932
29024
|
{
|
|
28933
29025
|
name: `${name2}[${groupIndex}].name`,
|
|
28934
29026
|
placeholder: `Group ${groupIndex + 1}`,
|
|
28935
|
-
className:
|
|
29027
|
+
className: classNames77(
|
|
28936
29028
|
"h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
|
|
28937
29029
|
shapes[resolvedShape],
|
|
28938
29030
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -28963,7 +29055,7 @@ var InputListGroup = ({
|
|
|
28963
29055
|
{
|
|
28964
29056
|
ref: provided.innerRef,
|
|
28965
29057
|
...provided.droppableProps,
|
|
28966
|
-
className:
|
|
29058
|
+
className: classNames77(
|
|
28967
29059
|
"space-y-2 bg-eui-primary-300/10 p-2",
|
|
28968
29060
|
shapes[resolvedShape]
|
|
28969
29061
|
),
|
|
@@ -28983,7 +29075,7 @@ var InputListGroup = ({
|
|
|
28983
29075
|
ref: provided2.innerRef,
|
|
28984
29076
|
...draggableProps,
|
|
28985
29077
|
style: draggableStyle,
|
|
28986
|
-
className:
|
|
29078
|
+
className: classNames77(
|
|
28987
29079
|
"flex items-center gap-2 bg-eui-primary-300/10 p-2",
|
|
28988
29080
|
shapes[resolvedShape]
|
|
28989
29081
|
),
|
|
@@ -28994,7 +29086,7 @@ var InputListGroup = ({
|
|
|
28994
29086
|
{
|
|
28995
29087
|
name: `${itemsFieldName}[${itemIndex}]`,
|
|
28996
29088
|
placeholder: `Item ${itemIndex + 1}`,
|
|
28997
|
-
className:
|
|
29089
|
+
className: classNames77(
|
|
28998
29090
|
"h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
|
|
28999
29091
|
shapes[resolvedShape],
|
|
29000
29092
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -29208,7 +29300,7 @@ var DateSelector = ({
|
|
|
29208
29300
|
...field,
|
|
29209
29301
|
...props,
|
|
29210
29302
|
placeholder,
|
|
29211
|
-
className:
|
|
29303
|
+
className: classNames77({
|
|
29212
29304
|
"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,
|
|
29213
29305
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
29214
29306
|
"transition-all ease-in-out": true,
|
|
@@ -29317,7 +29409,7 @@ var ImageInput = forwardRef(
|
|
|
29317
29409
|
/* @__PURE__ */ jsxs(
|
|
29318
29410
|
"label",
|
|
29319
29411
|
{
|
|
29320
|
-
className:
|
|
29412
|
+
className: classNames77({
|
|
29321
29413
|
"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,
|
|
29322
29414
|
"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
|
|
29323
29415
|
"transition-all ease-in-out duration-150": true
|
|
@@ -29434,7 +29526,7 @@ function Radio({
|
|
|
29434
29526
|
return /* @__PURE__ */ jsxs(
|
|
29435
29527
|
"div",
|
|
29436
29528
|
{
|
|
29437
|
-
className:
|
|
29529
|
+
className: classNames77({
|
|
29438
29530
|
"flex flex-row gap-2 items-center mx-1 my-2": true
|
|
29439
29531
|
}),
|
|
29440
29532
|
children: [
|
|
@@ -29447,7 +29539,7 @@ function Radio({
|
|
|
29447
29539
|
...props,
|
|
29448
29540
|
value: option.value,
|
|
29449
29541
|
checked: field2.value === option.value,
|
|
29450
|
-
className:
|
|
29542
|
+
className: classNames77({
|
|
29451
29543
|
"appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
|
|
29452
29544
|
// base radio button styles
|
|
29453
29545
|
"checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
|
|
@@ -29459,7 +29551,7 @@ function Radio({
|
|
|
29459
29551
|
"label",
|
|
29460
29552
|
{
|
|
29461
29553
|
htmlFor: option.value,
|
|
29462
|
-
className:
|
|
29554
|
+
className: classNames77({
|
|
29463
29555
|
"eui-text-md text-sm": true
|
|
29464
29556
|
}),
|
|
29465
29557
|
children: option.label
|
|
@@ -29502,7 +29594,7 @@ function StarRatingInput({
|
|
|
29502
29594
|
return /* @__PURE__ */ jsxs(
|
|
29503
29595
|
"div",
|
|
29504
29596
|
{
|
|
29505
|
-
className:
|
|
29597
|
+
className: classNames77({
|
|
29506
29598
|
"inline-flex gap-[4px] text-[20px]": true,
|
|
29507
29599
|
[`${styles}`]: styles
|
|
29508
29600
|
}),
|
|
@@ -29515,7 +29607,7 @@ function StarRatingInput({
|
|
|
29515
29607
|
onClick: () => handleOnClick(index3),
|
|
29516
29608
|
onMouseEnter: () => setHover(index3),
|
|
29517
29609
|
onMouseLeave: () => setHover(null),
|
|
29518
|
-
className:
|
|
29610
|
+
className: classNames77({
|
|
29519
29611
|
"text-yellow-600": index3 <= (hover ?? rating - 1),
|
|
29520
29612
|
"text-gray-400": index3 > (hover ?? rating - 1)
|
|
29521
29613
|
}),
|
|
@@ -29559,7 +29651,7 @@ function Select({
|
|
|
29559
29651
|
{
|
|
29560
29652
|
as: "select",
|
|
29561
29653
|
...props,
|
|
29562
|
-
className:
|
|
29654
|
+
className: classNames77({
|
|
29563
29655
|
"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,
|
|
29564
29656
|
"border-eui-primary-400": !(meta.touched && meta.error),
|
|
29565
29657
|
"border-red-500": meta.touched && meta.error,
|
|
@@ -29611,7 +29703,7 @@ function Switch({
|
|
|
29611
29703
|
"div",
|
|
29612
29704
|
{
|
|
29613
29705
|
onClick: () => helpers.setValue(!field.value),
|
|
29614
|
-
className:
|
|
29706
|
+
className: classNames77(
|
|
29615
29707
|
"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
|
|
29616
29708
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
29617
29709
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
|
|
@@ -29668,7 +29760,7 @@ function Tags({
|
|
|
29668
29760
|
/* @__PURE__ */ jsxs(
|
|
29669
29761
|
"div",
|
|
29670
29762
|
{
|
|
29671
|
-
className:
|
|
29763
|
+
className: classNames77(
|
|
29672
29764
|
"border rounded-sm flex flex-wrap items-center gap-2 px-2 pt-2 pb-6 min-h-[3rem]",
|
|
29673
29765
|
{
|
|
29674
29766
|
"bg-eui-primary-300/10 eui-text-md": true,
|
|
@@ -29716,7 +29808,7 @@ function Tags({
|
|
|
29716
29808
|
InputLabel_default,
|
|
29717
29809
|
{
|
|
29718
29810
|
text: placeholder,
|
|
29719
|
-
styles:
|
|
29811
|
+
styles: classNames77(
|
|
29720
29812
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
29721
29813
|
input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
29722
29814
|
)
|
|
@@ -29757,7 +29849,7 @@ function TextArea({
|
|
|
29757
29849
|
as: "textarea",
|
|
29758
29850
|
...field,
|
|
29759
29851
|
...props,
|
|
29760
|
-
className:
|
|
29852
|
+
className: classNames77({
|
|
29761
29853
|
"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,
|
|
29762
29854
|
"transition-all ease-in-out": true,
|
|
29763
29855
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -29771,7 +29863,7 @@ function TextArea({
|
|
|
29771
29863
|
InputLabel_default,
|
|
29772
29864
|
{
|
|
29773
29865
|
text: placeholder,
|
|
29774
|
-
styles:
|
|
29866
|
+
styles: classNames77(
|
|
29775
29867
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
29776
29868
|
field.value ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
29777
29869
|
)
|
|
@@ -29800,7 +29892,7 @@ var ContentArea = forwardRef(
|
|
|
29800
29892
|
"div",
|
|
29801
29893
|
{
|
|
29802
29894
|
ref,
|
|
29803
|
-
className:
|
|
29895
|
+
className: classNames77({
|
|
29804
29896
|
"min-h-screen h-full w-full transition-all duration-[200ms]": true,
|
|
29805
29897
|
"py-3 px-5": !enablePadding,
|
|
29806
29898
|
"py-3 px-5 lg:px-[150px]": enablePadding,
|
|
@@ -29817,7 +29909,7 @@ function FlexCol({ children: children3, gap = 3, styles }) {
|
|
|
29817
29909
|
return /* @__PURE__ */ jsx(
|
|
29818
29910
|
"div",
|
|
29819
29911
|
{
|
|
29820
|
-
className:
|
|
29912
|
+
className: classNames77({
|
|
29821
29913
|
[`flex flex-col gap-${gap}`]: true,
|
|
29822
29914
|
[`${styles}`]: styles
|
|
29823
29915
|
}),
|
|
@@ -29830,7 +29922,7 @@ function FlexRow({ children: children3, gap = 3, styles }) {
|
|
|
29830
29922
|
return /* @__PURE__ */ jsx(
|
|
29831
29923
|
"div",
|
|
29832
29924
|
{
|
|
29833
|
-
className:
|
|
29925
|
+
className: classNames77({
|
|
29834
29926
|
[`flex flex-row gap-${gap}`]: true,
|
|
29835
29927
|
[`${styles}`]: styles
|
|
29836
29928
|
}),
|
|
@@ -29849,7 +29941,7 @@ function Grid({ children: children3, styles }) {
|
|
|
29849
29941
|
return /* @__PURE__ */ jsx(
|
|
29850
29942
|
"div",
|
|
29851
29943
|
{
|
|
29852
|
-
className:
|
|
29944
|
+
className: classNames77({
|
|
29853
29945
|
[`grid`]: true,
|
|
29854
29946
|
[`${styles}`]: styles
|
|
29855
29947
|
}),
|
|
@@ -29866,7 +29958,7 @@ var Layout = ({
|
|
|
29866
29958
|
return /* @__PURE__ */ jsx(
|
|
29867
29959
|
"div",
|
|
29868
29960
|
{
|
|
29869
|
-
className:
|
|
29961
|
+
className: classNames77({
|
|
29870
29962
|
// "flex h-full w-screen bg-gray-100 overflow-auto": true,
|
|
29871
29963
|
"flex bg-eui-light-600": true,
|
|
29872
29964
|
"flex-col": flexDirection === "vertical",
|
|
@@ -29885,7 +29977,7 @@ var Header = ({
|
|
|
29885
29977
|
return /* @__PURE__ */ jsx(
|
|
29886
29978
|
"div",
|
|
29887
29979
|
{
|
|
29888
|
-
className:
|
|
29980
|
+
className: classNames77({
|
|
29889
29981
|
static: position4 === "static",
|
|
29890
29982
|
fixed: position4 === "fixed",
|
|
29891
29983
|
sticky: position4 === "sticky",
|
|
@@ -29925,7 +30017,7 @@ var Content = ({
|
|
|
29925
30017
|
return /* @__PURE__ */ jsx(
|
|
29926
30018
|
"div",
|
|
29927
30019
|
{
|
|
29928
|
-
className:
|
|
30020
|
+
className: classNames77({
|
|
29929
30021
|
"w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
|
|
29930
30022
|
"md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
|
|
29931
30023
|
// Shift when sidebar is open (desktop)
|
|
@@ -29941,7 +30033,7 @@ var Footer = ({ children: children3, styles }) => {
|
|
|
29941
30033
|
return /* @__PURE__ */ jsx(
|
|
29942
30034
|
"div",
|
|
29943
30035
|
{
|
|
29944
|
-
className:
|
|
30036
|
+
className: classNames77({
|
|
29945
30037
|
"bottom-0 w-full h-fit": true,
|
|
29946
30038
|
"border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
|
|
29947
30039
|
[`${styles}`]: styles
|
|
@@ -30025,7 +30117,7 @@ function BreadcrumbItem({
|
|
|
30025
30117
|
{
|
|
30026
30118
|
href,
|
|
30027
30119
|
onClick,
|
|
30028
|
-
className:
|
|
30120
|
+
className: classNames77({
|
|
30029
30121
|
"text-lg font-semibold": true,
|
|
30030
30122
|
"text-gray-400 hover:text-gray-600 cursor-pointer": !active,
|
|
30031
30123
|
"text-eui-light-800": active,
|
|
@@ -30089,7 +30181,7 @@ var Breadcrumb = ({
|
|
|
30089
30181
|
navigate(item.href);
|
|
30090
30182
|
}
|
|
30091
30183
|
};
|
|
30092
|
-
return /* @__PURE__ */ jsxs(
|
|
30184
|
+
return /* @__PURE__ */ jsxs(React26.Fragment, { children: [
|
|
30093
30185
|
/* @__PURE__ */ jsx(
|
|
30094
30186
|
BreadcrumbItem_default,
|
|
30095
30187
|
{
|
|
@@ -30102,7 +30194,7 @@ var Breadcrumb = ({
|
|
|
30102
30194
|
index3 < resolvedData.length - 1 && /* @__PURE__ */ jsx(
|
|
30103
30195
|
"span",
|
|
30104
30196
|
{
|
|
30105
|
-
className:
|
|
30197
|
+
className: classNames77({
|
|
30106
30198
|
"text-lg font-semibold text-gray-500": true,
|
|
30107
30199
|
[`px-${gap}`]: gap
|
|
30108
30200
|
}),
|
|
@@ -30116,7 +30208,7 @@ var Breadcrumb = ({
|
|
|
30116
30208
|
return /* @__PURE__ */ jsx(
|
|
30117
30209
|
"div",
|
|
30118
30210
|
{
|
|
30119
|
-
className:
|
|
30211
|
+
className: classNames77({
|
|
30120
30212
|
"inline-flex": true,
|
|
30121
30213
|
[`${styles}`]: styles
|
|
30122
30214
|
}),
|
|
@@ -30148,7 +30240,7 @@ var Drawer = ({
|
|
|
30148
30240
|
isMobile && showBackdrop && /* @__PURE__ */ jsx(TransitionFade_default, { visibility, leaveDuration: 200, children: /* @__PURE__ */ jsx(
|
|
30149
30241
|
"div",
|
|
30150
30242
|
{
|
|
30151
|
-
className:
|
|
30243
|
+
className: classNames77(
|
|
30152
30244
|
"fixed inset-0 bg-black/50 z-40",
|
|
30153
30245
|
backdropStyles
|
|
30154
30246
|
),
|
|
@@ -30159,7 +30251,7 @@ var Drawer = ({
|
|
|
30159
30251
|
"div",
|
|
30160
30252
|
{
|
|
30161
30253
|
style: drawerStyle,
|
|
30162
|
-
className:
|
|
30254
|
+
className: classNames77(
|
|
30163
30255
|
"fixed shadow-lg z-50",
|
|
30164
30256
|
{
|
|
30165
30257
|
"h-full w-[300px] top-0": isHorizontal && !hasOffset,
|
|
@@ -30188,7 +30280,7 @@ function DrawerToggler({
|
|
|
30188
30280
|
return /* @__PURE__ */ jsx(
|
|
30189
30281
|
"div",
|
|
30190
30282
|
{
|
|
30191
|
-
className:
|
|
30283
|
+
className: classNames77({
|
|
30192
30284
|
"text-xl p-3 cursor-pointer": true,
|
|
30193
30285
|
"transition-all ease-in-out": true,
|
|
30194
30286
|
"text-eui-dark-500 dark:text-eui-secondary-600": !styles,
|
|
@@ -30236,7 +30328,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
30236
30328
|
childrenContent = /* @__PURE__ */ jsx(
|
|
30237
30329
|
"div",
|
|
30238
30330
|
{
|
|
30239
|
-
className:
|
|
30331
|
+
className: classNames77({
|
|
30240
30332
|
"grid w-full": true,
|
|
30241
30333
|
"grid-cols-1": isMobile,
|
|
30242
30334
|
"grid-cols-3": !isMobile,
|
|
@@ -30249,7 +30341,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
30249
30341
|
return /* @__PURE__ */ jsx(
|
|
30250
30342
|
"div",
|
|
30251
30343
|
{
|
|
30252
|
-
className:
|
|
30344
|
+
className: classNames77({
|
|
30253
30345
|
[`${styles}`]: styles
|
|
30254
30346
|
}),
|
|
30255
30347
|
children: childrenContent
|
|
@@ -30290,7 +30382,7 @@ var FooterNavGroup = ({
|
|
|
30290
30382
|
/* @__PURE__ */ jsx(
|
|
30291
30383
|
"div",
|
|
30292
30384
|
{
|
|
30293
|
-
className:
|
|
30385
|
+
className: classNames77({
|
|
30294
30386
|
"": true,
|
|
30295
30387
|
"py-2 font-semibold eui-text-lg": !styles,
|
|
30296
30388
|
[`${styles}`]: styles
|
|
@@ -30335,7 +30427,7 @@ var FooterNavItem = ({
|
|
|
30335
30427
|
"div",
|
|
30336
30428
|
{
|
|
30337
30429
|
onClick: handleNavigation,
|
|
30338
|
-
className:
|
|
30430
|
+
className: classNames77({
|
|
30339
30431
|
"flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
|
|
30340
30432
|
"transition-all duration-200 ease-in-out": true,
|
|
30341
30433
|
"text-sm eui-text-sm": !styles,
|
|
@@ -30364,7 +30456,7 @@ var FooterNavItemTitle = ({
|
|
|
30364
30456
|
return /* @__PURE__ */ jsx(
|
|
30365
30457
|
"div",
|
|
30366
30458
|
{
|
|
30367
|
-
className:
|
|
30459
|
+
className: classNames77({
|
|
30368
30460
|
"": true,
|
|
30369
30461
|
"py-2 font-thin eui-text-md": !styles,
|
|
30370
30462
|
[`${styles}`]: styles
|
|
@@ -30417,7 +30509,7 @@ function HeaderNav({ data = [], styles }) {
|
|
|
30417
30509
|
return /* @__PURE__ */ jsx(
|
|
30418
30510
|
"div",
|
|
30419
30511
|
{
|
|
30420
|
-
className:
|
|
30512
|
+
className: classNames77({
|
|
30421
30513
|
[`${styles}`]: styles
|
|
30422
30514
|
}),
|
|
30423
30515
|
children: childrenContent
|
|
@@ -30479,7 +30571,7 @@ var HeaderNavGroup = ({
|
|
|
30479
30571
|
/* @__PURE__ */ jsxs(
|
|
30480
30572
|
"div",
|
|
30481
30573
|
{
|
|
30482
|
-
className:
|
|
30574
|
+
className: classNames77({
|
|
30483
30575
|
"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
|
|
30484
30576
|
"transition-all duration-300 ease-in-out": true,
|
|
30485
30577
|
"eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
|
|
@@ -30507,7 +30599,7 @@ var HeaderNavGroup = ({
|
|
|
30507
30599
|
children3 && /* @__PURE__ */ jsx(
|
|
30508
30600
|
BsChevronDown,
|
|
30509
30601
|
{
|
|
30510
|
-
className:
|
|
30602
|
+
className: classNames77({
|
|
30511
30603
|
"text-md": true,
|
|
30512
30604
|
"transition-all ease-in-out duration-300": true,
|
|
30513
30605
|
"rotate-180": !collapsed
|
|
@@ -30520,7 +30612,7 @@ var HeaderNavGroup = ({
|
|
|
30520
30612
|
!collapsed && children3 && /* @__PURE__ */ jsx(
|
|
30521
30613
|
"div",
|
|
30522
30614
|
{
|
|
30523
|
-
className:
|
|
30615
|
+
className: classNames77({
|
|
30524
30616
|
"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,
|
|
30525
30617
|
"transition-all duration-300 ease-in-out": true
|
|
30526
30618
|
}),
|
|
@@ -30550,7 +30642,7 @@ var HeaderNavItem = ({
|
|
|
30550
30642
|
"div",
|
|
30551
30643
|
{
|
|
30552
30644
|
onClick: handleNavigation,
|
|
30553
|
-
className:
|
|
30645
|
+
className: classNames77({
|
|
30554
30646
|
"flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
|
|
30555
30647
|
"transition-all duration-200 ease-in-out": true,
|
|
30556
30648
|
"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,
|
|
@@ -30579,7 +30671,7 @@ var HeaderNavItemTitle = ({
|
|
|
30579
30671
|
return /* @__PURE__ */ jsx(
|
|
30580
30672
|
"div",
|
|
30581
30673
|
{
|
|
30582
|
-
className:
|
|
30674
|
+
className: classNames77({
|
|
30583
30675
|
"p-3 font-thin": true,
|
|
30584
30676
|
"eui-text-md": !styles,
|
|
30585
30677
|
[`${styles}`]: styles
|
|
@@ -30619,7 +30711,7 @@ var Link = ({
|
|
|
30619
30711
|
href: href || "#",
|
|
30620
30712
|
target: targets[target],
|
|
30621
30713
|
onClick: handleClick,
|
|
30622
|
-
className:
|
|
30714
|
+
className: classNames77({
|
|
30623
30715
|
[`${textVariants[variant]}`]: variant,
|
|
30624
30716
|
[`${decorations[decoration]}`]: decoration,
|
|
30625
30717
|
"font-bold": bold,
|
|
@@ -31063,7 +31155,7 @@ function AsyncStateCard({
|
|
|
31063
31155
|
}
|
|
31064
31156
|
);
|
|
31065
31157
|
}
|
|
31066
|
-
var AsyncStateCard_default =
|
|
31158
|
+
var AsyncStateCard_default = React26.memo(AsyncStateCard);
|
|
31067
31159
|
|
|
31068
31160
|
// src/components/utils/async-component-wrapper/asyncError.utils.ts
|
|
31069
31161
|
var getDefaultErrorMessage = (error) => {
|
|
@@ -31244,7 +31336,7 @@ function AsyncComponentWrapper({
|
|
|
31244
31336
|
/* @__PURE__ */ jsx("div", { className: cn(contentClassName), children: children3 })
|
|
31245
31337
|
] });
|
|
31246
31338
|
}
|
|
31247
|
-
var AsyncComponentWrapper_default =
|
|
31339
|
+
var AsyncComponentWrapper_default = React26.memo(AsyncComponentWrapper);
|
|
31248
31340
|
function Modal({
|
|
31249
31341
|
title,
|
|
31250
31342
|
show = false,
|
|
@@ -31269,7 +31361,7 @@ function Modal({
|
|
|
31269
31361
|
"div",
|
|
31270
31362
|
{
|
|
31271
31363
|
ref: modalRef,
|
|
31272
|
-
className:
|
|
31364
|
+
className: classNames77(
|
|
31273
31365
|
"eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit",
|
|
31274
31366
|
shapes[resolvedShape],
|
|
31275
31367
|
styles
|
|
@@ -31281,7 +31373,7 @@ function Modal({
|
|
|
31281
31373
|
"button",
|
|
31282
31374
|
{
|
|
31283
31375
|
type: "button",
|
|
31284
|
-
className:
|
|
31376
|
+
className: classNames77(
|
|
31285
31377
|
"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast",
|
|
31286
31378
|
"hover:cursor-pointer hover:bg-eui-dark-500"
|
|
31287
31379
|
),
|
|
@@ -31415,7 +31507,7 @@ function ShowMore({ text: text10, limit }) {
|
|
|
31415
31507
|
/* @__PURE__ */ jsx(
|
|
31416
31508
|
"div",
|
|
31417
31509
|
{
|
|
31418
|
-
className:
|
|
31510
|
+
className: classNames77({
|
|
31419
31511
|
"text-blue-300 px-1 pb-1 mt-1": true,
|
|
31420
31512
|
"bg-slate-900/70": !showMore,
|
|
31421
31513
|
"bg-gradient-to-t from-slate-900/50 to-transparent": showMore
|
|
@@ -32331,7 +32423,7 @@ function DocumentationPanel({
|
|
|
32331
32423
|
return /* @__PURE__ */ jsx(MarkdownProvider_default, { markdown: value, children: /* @__PURE__ */ jsxs(
|
|
32332
32424
|
"section",
|
|
32333
32425
|
{
|
|
32334
|
-
className:
|
|
32426
|
+
className: classNames77(
|
|
32335
32427
|
"eui-documentation-panel",
|
|
32336
32428
|
"min-h-0 overflow-hidden bg-white text-gray-900",
|
|
32337
32429
|
"dark:bg-gray-950 dark:text-gray-100",
|
|
@@ -32345,7 +32437,7 @@ function DocumentationPanel({
|
|
|
32345
32437
|
/* @__PURE__ */ jsx(
|
|
32346
32438
|
"main",
|
|
32347
32439
|
{
|
|
32348
|
-
className:
|
|
32440
|
+
className: classNames77(
|
|
32349
32441
|
"eui-documentation-panel-viewer",
|
|
32350
32442
|
"documentation-panel-scrollbar min-w-0 overflow-y-auto scroll-smooth",
|
|
32351
32443
|
viewerClassName
|
|
@@ -32353,7 +32445,7 @@ function DocumentationPanel({
|
|
|
32353
32445
|
children: /* @__PURE__ */ jsx(
|
|
32354
32446
|
"div",
|
|
32355
32447
|
{
|
|
32356
|
-
className:
|
|
32448
|
+
className: classNames77(
|
|
32357
32449
|
"mx-auto px-5 py-8 sm:px-6 lg:px-8",
|
|
32358
32450
|
contentMaxWidthClassName,
|
|
32359
32451
|
contentClassName
|
|
@@ -32366,7 +32458,7 @@ function DocumentationPanel({
|
|
|
32366
32458
|
toc ? /* @__PURE__ */ jsx(
|
|
32367
32459
|
"aside",
|
|
32368
32460
|
{
|
|
32369
|
-
className:
|
|
32461
|
+
className: classNames77(
|
|
32370
32462
|
"eui-documentation-panel-toc",
|
|
32371
32463
|
"hidden min-w-0 border-l border-gray-200 bg-white lg:block",
|
|
32372
32464
|
"dark:border-gray-800 dark:bg-gray-950",
|
|
@@ -32375,7 +32467,7 @@ function DocumentationPanel({
|
|
|
32375
32467
|
children: /* @__PURE__ */ jsx(
|
|
32376
32468
|
"div",
|
|
32377
32469
|
{
|
|
32378
|
-
className:
|
|
32470
|
+
className: classNames77(
|
|
32379
32471
|
"documentation-panel-scrollbar h-full overflow-y-auto px-5 py-8"
|
|
32380
32472
|
),
|
|
32381
32473
|
children: /* @__PURE__ */ jsx("div", { className: "sticky top-0", children: /* @__PURE__ */ jsx(MarkdownTOC_default, {}) })
|
|
@@ -32651,7 +32743,7 @@ function BoxNavItem({ icon, name: name2, to, selected, onClick }) {
|
|
|
32651
32743
|
type: "button",
|
|
32652
32744
|
onClick: handleClick,
|
|
32653
32745
|
"aria-current": selected ? "page" : void 0,
|
|
32654
|
-
className:
|
|
32746
|
+
className: classNames77(
|
|
32655
32747
|
"w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
|
|
32656
32748
|
"hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
|
|
32657
32749
|
selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
|
|
@@ -35353,11 +35445,11 @@ function addChildren(props, children3) {
|
|
|
35353
35445
|
}
|
|
35354
35446
|
}
|
|
35355
35447
|
}
|
|
35356
|
-
function productionCreate(_2,
|
|
35448
|
+
function productionCreate(_2, jsx252, jsxs125) {
|
|
35357
35449
|
return create3;
|
|
35358
35450
|
function create3(_3, type2, props, key) {
|
|
35359
35451
|
const isStaticChildren = Array.isArray(props.children);
|
|
35360
|
-
const fn = isStaticChildren ?
|
|
35452
|
+
const fn = isStaticChildren ? jsxs125 : jsx252;
|
|
35361
35453
|
return key ? fn(type2, props, key) : fn(type2, props);
|
|
35362
35454
|
}
|
|
35363
35455
|
}
|
|
@@ -55101,6 +55193,14 @@ function rehypeSanitize(options) {
|
|
|
55101
55193
|
return result;
|
|
55102
55194
|
};
|
|
55103
55195
|
}
|
|
55196
|
+
var HEADING_STYLES = {
|
|
55197
|
+
1: "mb-6 text-4xl tracking-[-0.035em]",
|
|
55198
|
+
2: "mb-4 mt-10 border-b border-gray-200 pb-2 text-[1.75rem] tracking-[-0.025em] dark:border-gray-700",
|
|
55199
|
+
3: "mb-3 mt-8 text-[1.35rem]",
|
|
55200
|
+
4: "mb-2 mt-7 text-[1.1rem]",
|
|
55201
|
+
5: "mb-2 mt-6 text-base",
|
|
55202
|
+
6: "mb-2 mt-5 text-sm uppercase tracking-[0.08em] text-gray-500 dark:text-gray-400"
|
|
55203
|
+
};
|
|
55104
55204
|
function MarkdownHeading({
|
|
55105
55205
|
id: id2,
|
|
55106
55206
|
level,
|
|
@@ -55109,13 +55209,21 @@ function MarkdownHeading({
|
|
|
55109
55209
|
showAnchor = true,
|
|
55110
55210
|
...props
|
|
55111
55211
|
}) {
|
|
55112
|
-
const
|
|
55113
|
-
|
|
55114
|
-
|
|
55212
|
+
const normalizedLevel = Math.min(Math.max(level, 1), 6);
|
|
55213
|
+
const TypographyComponent = normalizedLevel <= 3 ? Chapter : Section;
|
|
55214
|
+
const typographyLevel = normalizedLevel <= 3 ? normalizedLevel : normalizedLevel - 3;
|
|
55215
|
+
return createElement(
|
|
55216
|
+
TypographyComponent,
|
|
55115
55217
|
{
|
|
55116
55218
|
...props,
|
|
55117
55219
|
id: id2,
|
|
55118
|
-
|
|
55220
|
+
level: typographyLevel,
|
|
55221
|
+
bold: true,
|
|
55222
|
+
className: classNames77(
|
|
55223
|
+
"eui-markdown-heading group relative scroll-mt-24 font-bold leading-tight text-gray-900 dark:text-gray-100",
|
|
55224
|
+
HEADING_STYLES[level],
|
|
55225
|
+
className
|
|
55226
|
+
)
|
|
55119
55227
|
},
|
|
55120
55228
|
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
55121
55229
|
children3,
|
|
@@ -55123,7 +55231,7 @@ function MarkdownHeading({
|
|
|
55123
55231
|
"a",
|
|
55124
55232
|
{
|
|
55125
55233
|
href: `#${id2}`,
|
|
55126
|
-
className: "eui-markdown-heading-anchor",
|
|
55234
|
+
className: "eui-markdown-heading-anchor ml-2 text-gray-400 no-underline opacity-0 transition group-hover:opacity-100 hover:text-blue-600 focus:opacity-100 dark:text-gray-500 dark:hover:text-blue-400",
|
|
55127
55235
|
"aria-label": "Link to heading",
|
|
55128
55236
|
children: "#"
|
|
55129
55237
|
}
|
|
@@ -55176,18 +55284,18 @@ function powerSetPermutations(arr) {
|
|
|
55176
55284
|
}
|
|
55177
55285
|
}
|
|
55178
55286
|
var classNameCombinations = {};
|
|
55179
|
-
function getClassNameCombinations(
|
|
55180
|
-
if (
|
|
55181
|
-
var key =
|
|
55287
|
+
function getClassNameCombinations(classNames81) {
|
|
55288
|
+
if (classNames81.length === 0 || classNames81.length === 1) return classNames81;
|
|
55289
|
+
var key = classNames81.join(".");
|
|
55182
55290
|
if (!classNameCombinations[key]) {
|
|
55183
|
-
classNameCombinations[key] = powerSetPermutations(
|
|
55291
|
+
classNameCombinations[key] = powerSetPermutations(classNames81);
|
|
55184
55292
|
}
|
|
55185
55293
|
return classNameCombinations[key];
|
|
55186
55294
|
}
|
|
55187
|
-
function createStyleObject(
|
|
55295
|
+
function createStyleObject(classNames81) {
|
|
55188
55296
|
var elementStyle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
55189
55297
|
var stylesheet = arguments.length > 2 ? arguments[2] : void 0;
|
|
55190
|
-
var nonTokenClassNames =
|
|
55298
|
+
var nonTokenClassNames = classNames81.filter(function(className) {
|
|
55191
55299
|
return className !== "token";
|
|
55192
55300
|
});
|
|
55193
55301
|
var classNamesCombinations = getClassNameCombinations(nonTokenClassNames);
|
|
@@ -55195,15 +55303,15 @@ function createStyleObject(classNames70) {
|
|
|
55195
55303
|
return _objectSpread(_objectSpread({}, styleObject), stylesheet[className]);
|
|
55196
55304
|
}, elementStyle);
|
|
55197
55305
|
}
|
|
55198
|
-
function createClassNameString(
|
|
55199
|
-
return
|
|
55306
|
+
function createClassNameString(classNames81) {
|
|
55307
|
+
return classNames81.join(" ");
|
|
55200
55308
|
}
|
|
55201
55309
|
function createChildren2(stylesheet, useInlineStyles) {
|
|
55202
55310
|
var childrenCount = 0;
|
|
55203
55311
|
return function(children3) {
|
|
55204
55312
|
childrenCount += 1;
|
|
55205
55313
|
return children3.map(function(child, i) {
|
|
55206
|
-
return
|
|
55314
|
+
return createElement2({
|
|
55207
55315
|
node: child,
|
|
55208
55316
|
stylesheet,
|
|
55209
55317
|
useInlineStyles,
|
|
@@ -55212,7 +55320,7 @@ function createChildren2(stylesheet, useInlineStyles) {
|
|
|
55212
55320
|
});
|
|
55213
55321
|
};
|
|
55214
55322
|
}
|
|
55215
|
-
function
|
|
55323
|
+
function createElement2(_ref) {
|
|
55216
55324
|
var node2 = _ref.node, stylesheet = _ref.stylesheet, _ref$style = _ref.style, style2 = _ref$style === void 0 ? {} : _ref$style, useInlineStyles = _ref.useInlineStyles, key = _ref.key;
|
|
55217
55325
|
var properties2 = node2.properties, type2 = node2.type, TagName = node2.tagName, value = node2.value;
|
|
55218
55326
|
if (type2 === "text") {
|
|
@@ -55241,7 +55349,7 @@ function createElement(_ref) {
|
|
|
55241
55349
|
});
|
|
55242
55350
|
}
|
|
55243
55351
|
var children3 = childrenCreator(node2.children);
|
|
55244
|
-
return /* @__PURE__ */
|
|
55352
|
+
return /* @__PURE__ */ React26.createElement(TagName, (0, import_extends.default)({
|
|
55245
55353
|
key
|
|
55246
55354
|
}, props), children3);
|
|
55247
55355
|
}
|
|
@@ -55284,7 +55392,7 @@ function getAllLineNumbers(_ref) {
|
|
|
55284
55392
|
var lines = _ref.lines, startingLineNumber = _ref.startingLineNumber, style2 = _ref.style;
|
|
55285
55393
|
return lines.map(function(_2, i) {
|
|
55286
55394
|
var number3 = i + startingLineNumber;
|
|
55287
|
-
return /* @__PURE__ */
|
|
55395
|
+
return /* @__PURE__ */ React26.createElement("span", {
|
|
55288
55396
|
key: "line-".concat(i),
|
|
55289
55397
|
className: "react-syntax-highlighter-line-number",
|
|
55290
55398
|
style: typeof style2 === "function" ? style2(number3) : style2
|
|
@@ -55296,7 +55404,7 @@ function AllLineNumbers(_ref2) {
|
|
|
55296
55404
|
"float": "left",
|
|
55297
55405
|
paddingRight: "10px"
|
|
55298
55406
|
} : _ref2$containerStyle, _ref2$numberStyle = _ref2.numberStyle, numberStyle = _ref2$numberStyle === void 0 ? {} : _ref2$numberStyle, startingLineNumber = _ref2.startingLineNumber;
|
|
55299
|
-
return /* @__PURE__ */
|
|
55407
|
+
return /* @__PURE__ */ React26.createElement("code", {
|
|
55300
55408
|
style: Object.assign({}, codeStyle, containerStyle)
|
|
55301
55409
|
}, getAllLineNumbers({
|
|
55302
55410
|
lines: codeString.replace(/\n$/, "").split("\n"),
|
|
@@ -55369,8 +55477,8 @@ function flattenCodeTree(tree) {
|
|
|
55369
55477
|
}));
|
|
55370
55478
|
} else if (node2.children) {
|
|
55371
55479
|
var _node$properties;
|
|
55372
|
-
var
|
|
55373
|
-
flattenCodeTree(node2.children,
|
|
55480
|
+
var classNames81 = className.concat(((_node$properties = node2.properties) === null || _node$properties === void 0 ? void 0 : _node$properties.className) || []);
|
|
55481
|
+
flattenCodeTree(node2.children, classNames81).forEach(function(i2) {
|
|
55374
55482
|
return newTree.push(i2);
|
|
55375
55483
|
});
|
|
55376
55484
|
}
|
|
@@ -55471,7 +55579,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin
|
|
|
55471
55579
|
function defaultRenderer(_ref5) {
|
|
55472
55580
|
var rows = _ref5.rows, stylesheet = _ref5.stylesheet, useInlineStyles = _ref5.useInlineStyles;
|
|
55473
55581
|
return rows.map(function(node2, i) {
|
|
55474
|
-
return
|
|
55582
|
+
return createElement2({
|
|
55475
55583
|
node: node2,
|
|
55476
55584
|
stylesheet,
|
|
55477
55585
|
useInlineStyles,
|
|
@@ -55517,7 +55625,7 @@ function highlight_default(defaultAstGenerator, defaultStyle) {
|
|
|
55517
55625
|
style: _objectSpread2(_objectSpread2({}, style2['code[class*="language-"]']), style2['code[class*="language-'.concat(language, '"]')])
|
|
55518
55626
|
} : _ref7$codeTagProps, _ref7$useInlineStyles = _ref7.useInlineStyles, useInlineStyles = _ref7$useInlineStyles === void 0 ? true : _ref7$useInlineStyles, _ref7$showLineNumbers = _ref7.showLineNumbers, showLineNumbers = _ref7$showLineNumbers === void 0 ? false : _ref7$showLineNumbers, _ref7$showInlineLineN = _ref7.showInlineLineNumbers, showInlineLineNumbers = _ref7$showInlineLineN === void 0 ? true : _ref7$showInlineLineN, _ref7$startingLineNum = _ref7.startingLineNumber, startingLineNumber = _ref7$startingLineNum === void 0 ? 1 : _ref7$startingLineNum, lineNumberContainerStyle = _ref7.lineNumberContainerStyle, _ref7$lineNumberStyle = _ref7.lineNumberStyle, lineNumberStyle = _ref7$lineNumberStyle === void 0 ? {} : _ref7$lineNumberStyle, wrapLines = _ref7.wrapLines, _ref7$wrapLongLines = _ref7.wrapLongLines, wrapLongLines = _ref7$wrapLongLines === void 0 ? false : _ref7$wrapLongLines, _ref7$lineProps = _ref7.lineProps, lineProps = _ref7$lineProps === void 0 ? {} : _ref7$lineProps, renderer = _ref7.renderer, _ref7$PreTag = _ref7.PreTag, PreTag = _ref7$PreTag === void 0 ? "pre" : _ref7$PreTag, _ref7$CodeTag = _ref7.CodeTag, CodeTag = _ref7$CodeTag === void 0 ? "code" : _ref7$CodeTag, _ref7$code = _ref7.code, code4 = _ref7$code === void 0 ? (Array.isArray(children3) ? children3[0] : children3) || "" : _ref7$code, astGenerator = _ref7.astGenerator, rest = (0, import_objectWithoutProperties.default)(_ref7, _excluded);
|
|
55519
55627
|
astGenerator = astGenerator || defaultAstGenerator;
|
|
55520
|
-
var allLineNumbers = showLineNumbers ? /* @__PURE__ */
|
|
55628
|
+
var allLineNumbers = showLineNumbers ? /* @__PURE__ */ React26.createElement(AllLineNumbers, {
|
|
55521
55629
|
containerStyle: lineNumberContainerStyle,
|
|
55522
55630
|
codeStyle: codeTagProps.style || {},
|
|
55523
55631
|
numberStyle: lineNumberStyle,
|
|
@@ -55544,7 +55652,7 @@ function highlight_default(defaultAstGenerator, defaultStyle) {
|
|
|
55544
55652
|
}, codeTagProps.style);
|
|
55545
55653
|
}
|
|
55546
55654
|
if (!astGenerator) {
|
|
55547
|
-
return /* @__PURE__ */
|
|
55655
|
+
return /* @__PURE__ */ React26.createElement(PreTag, preProps, allLineNumbers, /* @__PURE__ */ React26.createElement(CodeTag, codeTagProps, code4));
|
|
55548
55656
|
}
|
|
55549
55657
|
if (wrapLines === void 0 && renderer || wrapLongLines) wrapLines = true;
|
|
55550
55658
|
renderer = renderer || defaultRenderer;
|
|
@@ -55564,7 +55672,7 @@ function highlight_default(defaultAstGenerator, defaultStyle) {
|
|
|
55564
55672
|
var lineBreakCount = (_code$match$length = (_code$match = code4.match(/\n/g)) === null || _code$match === void 0 ? void 0 : _code$match.length) !== null && _code$match$length !== void 0 ? _code$match$length : 0;
|
|
55565
55673
|
var largestLineNumber = startingLineNumber + lineBreakCount;
|
|
55566
55674
|
var rows = processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlineLineNumbers, startingLineNumber, largestLineNumber, lineNumberStyle, wrapLongLines);
|
|
55567
|
-
return /* @__PURE__ */
|
|
55675
|
+
return /* @__PURE__ */ React26.createElement(PreTag, preProps, /* @__PURE__ */ React26.createElement(CodeTag, codeTagProps, !showInlineLineNumbers && allLineNumbers, renderer({
|
|
55568
55676
|
rows,
|
|
55569
55677
|
stylesheet: style2,
|
|
55570
55678
|
useInlineStyles
|
|
@@ -55901,7 +56009,7 @@ var json_default = json;
|
|
|
55901
56009
|
|
|
55902
56010
|
// node_modules/react-syntax-highlighter/dist/esm/languages/prism/jsx.js
|
|
55903
56011
|
init_jsx();
|
|
55904
|
-
var jsx_default =
|
|
56012
|
+
var jsx_default = jsx213;
|
|
55905
56013
|
|
|
55906
56014
|
// node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js
|
|
55907
56015
|
init_markup();
|
|
@@ -56030,60 +56138,70 @@ function MarkdownCodeBlock({
|
|
|
56030
56138
|
textAlign: "right",
|
|
56031
56139
|
userSelect: "none"
|
|
56032
56140
|
};
|
|
56033
|
-
return /* @__PURE__ */ jsxs(
|
|
56034
|
-
|
|
56035
|
-
|
|
56036
|
-
|
|
56037
|
-
|
|
56038
|
-
|
|
56039
|
-
|
|
56040
|
-
|
|
56041
|
-
|
|
56042
|
-
|
|
56043
|
-
className: "eui-markdown-
|
|
56044
|
-
|
|
56045
|
-
|
|
56046
|
-
|
|
56047
|
-
|
|
56048
|
-
|
|
56049
|
-
|
|
56050
|
-
|
|
56051
|
-
|
|
56052
|
-
|
|
56053
|
-
|
|
56054
|
-
|
|
56055
|
-
showLineNumbers,
|
|
56056
|
-
wrapLines: highlightLines.size > 0,
|
|
56057
|
-
wrapLongLines,
|
|
56058
|
-
PreTag: "pre",
|
|
56059
|
-
CodeTag: "code",
|
|
56060
|
-
customStyle: {
|
|
56061
|
-
margin: 0,
|
|
56062
|
-
padding: "1rem",
|
|
56063
|
-
background: "transparent",
|
|
56064
|
-
fontSize: "0.875rem",
|
|
56065
|
-
lineHeight: 1.7
|
|
56066
|
-
},
|
|
56067
|
-
codeTagProps: {
|
|
56068
|
-
style: {
|
|
56069
|
-
fontFamily: '"JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace'
|
|
56070
|
-
}
|
|
56071
|
-
},
|
|
56072
|
-
lineNumberStyle,
|
|
56073
|
-
lineProps: (lineNumber) => {
|
|
56074
|
-
const highlighted = highlightLines.has(lineNumber);
|
|
56075
|
-
return {
|
|
56076
|
-
className: highlighted ? "eui-markdown-code-line-highlighted" : void 0,
|
|
56077
|
-
style: {
|
|
56078
|
-
display: "block",
|
|
56079
|
-
background: highlighted ? "rgba(250, 204, 21, 0.12)" : void 0
|
|
56141
|
+
return /* @__PURE__ */ jsxs(
|
|
56142
|
+
"div",
|
|
56143
|
+
{
|
|
56144
|
+
...props,
|
|
56145
|
+
className: classNames77(
|
|
56146
|
+
"eui-markdown-code my-6 overflow-hidden rounded-md border border-slate-700 bg-[#0d1117] text-slate-300",
|
|
56147
|
+
className
|
|
56148
|
+
),
|
|
56149
|
+
children: [
|
|
56150
|
+
showHeader ? /* @__PURE__ */ jsxs("div", { className: "eui-markdown-code-header flex min-h-10 items-center justify-between gap-3 border-b border-slate-700 bg-[#161b22] px-3 py-2", children: [
|
|
56151
|
+
/* @__PURE__ */ jsxs("div", { className: "eui-markdown-code-header-main flex min-w-0 items-center gap-2.5", children: [
|
|
56152
|
+
title ? /* @__PURE__ */ jsx(Caption, { className: "eui-markdown-code-title truncate text-[0.8125rem] font-semibold text-slate-100 opacity-100", children: title }) : null,
|
|
56153
|
+
languageLabel ? /* @__PURE__ */ jsx(Overline, { className: "eui-markdown-code-language inline-flex h-[1.35rem] items-center rounded-full border border-slate-700 bg-[#0d1117] px-2 text-[0.6875rem] font-bold uppercase tracking-wider text-slate-400", children: languageLabel }) : null
|
|
56154
|
+
] }),
|
|
56155
|
+
showCopy ? /* @__PURE__ */ jsx(
|
|
56156
|
+
"button",
|
|
56157
|
+
{
|
|
56158
|
+
type: "button",
|
|
56159
|
+
className: "eui-markdown-copy-button inline-flex h-7 shrink-0 cursor-pointer items-center justify-center rounded-md border border-slate-700 bg-slate-800 px-2.5 text-xs font-medium leading-none text-slate-300 transition hover:border-slate-500 hover:bg-slate-700 hover:text-slate-100 active:scale-95 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-400",
|
|
56160
|
+
onClick: copyCode,
|
|
56161
|
+
"aria-label": copied ? "Code copied" : "Copy code",
|
|
56162
|
+
children: copied ? "Copied" : "Copy"
|
|
56080
56163
|
}
|
|
56081
|
-
|
|
56082
|
-
},
|
|
56083
|
-
|
|
56084
|
-
|
|
56085
|
-
|
|
56086
|
-
|
|
56164
|
+
) : null
|
|
56165
|
+
] }) : null,
|
|
56166
|
+
/* @__PURE__ */ jsx(
|
|
56167
|
+
prism_light_default,
|
|
56168
|
+
{
|
|
56169
|
+
className: "eui-markdown-code-highlighter !m-0 !rounded-none !border-0 !bg-transparent !shadow-none [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:border-[3px] [&::-webkit-scrollbar-thumb]:border-[#0d1117] [&::-webkit-scrollbar-thumb]:bg-slate-700 hover:[&::-webkit-scrollbar-thumb]:bg-slate-500 [&::-webkit-scrollbar-track]:bg-[#0d1117] [&::-webkit-scrollbar]:h-3 [&::-webkit-scrollbar]:w-3",
|
|
56170
|
+
language: resolvedLanguage,
|
|
56171
|
+
style: vsc_dark_plus_default,
|
|
56172
|
+
showLineNumbers,
|
|
56173
|
+
wrapLines: highlightLines.size > 0,
|
|
56174
|
+
wrapLongLines,
|
|
56175
|
+
PreTag: "pre",
|
|
56176
|
+
CodeTag: "code",
|
|
56177
|
+
customStyle: {
|
|
56178
|
+
margin: 0,
|
|
56179
|
+
padding: "1rem",
|
|
56180
|
+
background: "transparent",
|
|
56181
|
+
fontSize: "0.875rem",
|
|
56182
|
+
lineHeight: 1.7
|
|
56183
|
+
},
|
|
56184
|
+
codeTagProps: {
|
|
56185
|
+
style: {
|
|
56186
|
+
fontFamily: '"JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace'
|
|
56187
|
+
}
|
|
56188
|
+
},
|
|
56189
|
+
lineNumberStyle,
|
|
56190
|
+
lineProps: (lineNumber) => {
|
|
56191
|
+
const highlighted = highlightLines.has(lineNumber);
|
|
56192
|
+
return {
|
|
56193
|
+
className: highlighted ? "eui-markdown-code-line-highlighted border-l-[3px] border-amber-600 bg-yellow-400/10" : void 0,
|
|
56194
|
+
style: {
|
|
56195
|
+
display: "block"
|
|
56196
|
+
}
|
|
56197
|
+
};
|
|
56198
|
+
},
|
|
56199
|
+
children: code4
|
|
56200
|
+
}
|
|
56201
|
+
)
|
|
56202
|
+
]
|
|
56203
|
+
}
|
|
56204
|
+
);
|
|
56087
56205
|
}
|
|
56088
56206
|
var MarkdownCodeBlock_default = MarkdownCodeBlock;
|
|
56089
56207
|
function MarkdownInlineCode({
|
|
@@ -56092,11 +56210,14 @@ function MarkdownInlineCode({
|
|
|
56092
56210
|
...props
|
|
56093
56211
|
}) {
|
|
56094
56212
|
return /* @__PURE__ */ jsx(
|
|
56095
|
-
|
|
56213
|
+
Code,
|
|
56096
56214
|
{
|
|
56097
56215
|
...props,
|
|
56098
|
-
className:
|
|
56099
|
-
|
|
56216
|
+
className: classNames77(
|
|
56217
|
+
"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",
|
|
56218
|
+
className
|
|
56219
|
+
),
|
|
56220
|
+
children: /* @__PURE__ */ jsx(Fragment, { children: children3 })
|
|
56100
56221
|
}
|
|
56101
56222
|
);
|
|
56102
56223
|
}
|
|
@@ -56133,7 +56254,10 @@ function MarkdownLink({
|
|
|
56133
56254
|
href: safeHref,
|
|
56134
56255
|
target: resolvedTarget,
|
|
56135
56256
|
rel,
|
|
56136
|
-
className:
|
|
56257
|
+
className: classNames77(
|
|
56258
|
+
"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",
|
|
56259
|
+
className
|
|
56260
|
+
),
|
|
56137
56261
|
children: children3
|
|
56138
56262
|
}
|
|
56139
56263
|
);
|
|
@@ -56157,7 +56281,7 @@ function MarkdownImage({
|
|
|
56157
56281
|
return null;
|
|
56158
56282
|
}
|
|
56159
56283
|
return /* @__PURE__ */ jsx(
|
|
56160
|
-
|
|
56284
|
+
Image2,
|
|
56161
56285
|
{
|
|
56162
56286
|
...props,
|
|
56163
56287
|
src: safeSrc,
|
|
@@ -56165,7 +56289,10 @@ function MarkdownImage({
|
|
|
56165
56289
|
title,
|
|
56166
56290
|
loading: "lazy",
|
|
56167
56291
|
decoding: "async",
|
|
56168
|
-
className:
|
|
56292
|
+
className: classNames77(
|
|
56293
|
+
"eui-markdown-image my-6 h-auto max-w-full rounded-md border border-gray-200 dark:border-gray-700",
|
|
56294
|
+
className
|
|
56295
|
+
)
|
|
56169
56296
|
}
|
|
56170
56297
|
);
|
|
56171
56298
|
}
|
|
@@ -56175,14 +56302,34 @@ function MarkdownTable({
|
|
|
56175
56302
|
className,
|
|
56176
56303
|
...props
|
|
56177
56304
|
}) {
|
|
56178
|
-
return /* @__PURE__ */ jsx(
|
|
56305
|
+
return /* @__PURE__ */ jsx(TableFrame, { className: "eui-markdown-table-wrapper my-6 rounded-md", children: /* @__PURE__ */ jsx(
|
|
56306
|
+
TableElement,
|
|
56307
|
+
{
|
|
56308
|
+
...props,
|
|
56309
|
+
className: classNames77(
|
|
56310
|
+
"eui-markdown-table w-full border-collapse text-[0.925rem]",
|
|
56311
|
+
className
|
|
56312
|
+
),
|
|
56313
|
+
children: children3
|
|
56314
|
+
}
|
|
56315
|
+
) });
|
|
56179
56316
|
}
|
|
56180
56317
|
function MarkdownTableCell({
|
|
56181
56318
|
children: children3,
|
|
56182
56319
|
className,
|
|
56183
56320
|
...props
|
|
56184
56321
|
}) {
|
|
56185
|
-
return /* @__PURE__ */ jsx(
|
|
56322
|
+
return /* @__PURE__ */ jsx(
|
|
56323
|
+
TableCell,
|
|
56324
|
+
{
|
|
56325
|
+
...props,
|
|
56326
|
+
className: classNames77(
|
|
56327
|
+
"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",
|
|
56328
|
+
className
|
|
56329
|
+
),
|
|
56330
|
+
children: children3
|
|
56331
|
+
}
|
|
56332
|
+
);
|
|
56186
56333
|
}
|
|
56187
56334
|
function MarkdownTableHeaderCell({
|
|
56188
56335
|
children: children3,
|
|
@@ -56190,14 +56337,59 @@ function MarkdownTableHeaderCell({
|
|
|
56190
56337
|
...props
|
|
56191
56338
|
}) {
|
|
56192
56339
|
return /* @__PURE__ */ jsx(
|
|
56193
|
-
|
|
56340
|
+
TableHeaderCell,
|
|
56194
56341
|
{
|
|
56195
56342
|
...props,
|
|
56196
|
-
className:
|
|
56343
|
+
className: classNames77(
|
|
56344
|
+
"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",
|
|
56345
|
+
className
|
|
56346
|
+
),
|
|
56197
56347
|
children: children3
|
|
56198
56348
|
}
|
|
56199
56349
|
);
|
|
56200
56350
|
}
|
|
56351
|
+
function MarkdownTableHead({
|
|
56352
|
+
className,
|
|
56353
|
+
...props
|
|
56354
|
+
}) {
|
|
56355
|
+
return /* @__PURE__ */ jsx(
|
|
56356
|
+
TableHead,
|
|
56357
|
+
{
|
|
56358
|
+
...props,
|
|
56359
|
+
className: classNames77(
|
|
56360
|
+
"eui-markdown-table-head bg-gray-50 dark:bg-gray-900",
|
|
56361
|
+
className
|
|
56362
|
+
)
|
|
56363
|
+
}
|
|
56364
|
+
);
|
|
56365
|
+
}
|
|
56366
|
+
function MarkdownTableBody({
|
|
56367
|
+
className,
|
|
56368
|
+
...props
|
|
56369
|
+
}) {
|
|
56370
|
+
return /* @__PURE__ */ jsx(
|
|
56371
|
+
TableBody,
|
|
56372
|
+
{
|
|
56373
|
+
...props,
|
|
56374
|
+
className: classNames77("eui-markdown-table-body", className)
|
|
56375
|
+
}
|
|
56376
|
+
);
|
|
56377
|
+
}
|
|
56378
|
+
function MarkdownTableRow({
|
|
56379
|
+
className,
|
|
56380
|
+
...props
|
|
56381
|
+
}) {
|
|
56382
|
+
return /* @__PURE__ */ jsx(
|
|
56383
|
+
TableRow,
|
|
56384
|
+
{
|
|
56385
|
+
...props,
|
|
56386
|
+
className: classNames77(
|
|
56387
|
+
"eui-markdown-table-row even:bg-gray-50/70 dark:even:bg-gray-900/60",
|
|
56388
|
+
className
|
|
56389
|
+
)
|
|
56390
|
+
}
|
|
56391
|
+
);
|
|
56392
|
+
}
|
|
56201
56393
|
var MarkdownTable_default = MarkdownTable;
|
|
56202
56394
|
function MarkdownBlockquote({
|
|
56203
56395
|
children: children3,
|
|
@@ -56205,15 +56397,204 @@ function MarkdownBlockquote({
|
|
|
56205
56397
|
...props
|
|
56206
56398
|
}) {
|
|
56207
56399
|
return /* @__PURE__ */ jsx(
|
|
56208
|
-
|
|
56400
|
+
Quote,
|
|
56209
56401
|
{
|
|
56210
56402
|
...props,
|
|
56211
|
-
|
|
56212
|
-
|
|
56403
|
+
as: "blockquote",
|
|
56404
|
+
className: classNames77(
|
|
56405
|
+
"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",
|
|
56406
|
+
className
|
|
56407
|
+
),
|
|
56408
|
+
children: /* @__PURE__ */ jsx(Fragment, { children: children3 })
|
|
56213
56409
|
}
|
|
56214
56410
|
);
|
|
56215
56411
|
}
|
|
56216
56412
|
var MarkdownBlockquote_default = MarkdownBlockquote;
|
|
56413
|
+
function MarkdownParagraph({
|
|
56414
|
+
children: children3,
|
|
56415
|
+
className,
|
|
56416
|
+
...props
|
|
56417
|
+
}) {
|
|
56418
|
+
return /* @__PURE__ */ jsx(
|
|
56419
|
+
Paragraph,
|
|
56420
|
+
{
|
|
56421
|
+
...props,
|
|
56422
|
+
level: 1,
|
|
56423
|
+
className: classNames77("eui-markdown-paragraph my-4", className),
|
|
56424
|
+
children: /* @__PURE__ */ jsx(Fragment, { children: children3 })
|
|
56425
|
+
}
|
|
56426
|
+
);
|
|
56427
|
+
}
|
|
56428
|
+
var MarkdownParagraph_default = MarkdownParagraph;
|
|
56429
|
+
function MarkdownStrong({ className, ...props }) {
|
|
56430
|
+
return /* @__PURE__ */ jsx(
|
|
56431
|
+
"strong",
|
|
56432
|
+
{
|
|
56433
|
+
...props,
|
|
56434
|
+
className: classNames77(
|
|
56435
|
+
"eui-markdown-strong font-semibold text-gray-950 dark:text-gray-100",
|
|
56436
|
+
className
|
|
56437
|
+
)
|
|
56438
|
+
}
|
|
56439
|
+
);
|
|
56440
|
+
}
|
|
56441
|
+
var MarkdownStrong_default = MarkdownStrong;
|
|
56442
|
+
function MarkdownEmphasis({ className, ...props }) {
|
|
56443
|
+
return /* @__PURE__ */ jsx(
|
|
56444
|
+
"em",
|
|
56445
|
+
{
|
|
56446
|
+
...props,
|
|
56447
|
+
className: classNames77("eui-markdown-emphasis italic", className)
|
|
56448
|
+
}
|
|
56449
|
+
);
|
|
56450
|
+
}
|
|
56451
|
+
var MarkdownEmphasis_default = MarkdownEmphasis;
|
|
56452
|
+
function MarkdownStrikethrough({
|
|
56453
|
+
className,
|
|
56454
|
+
...props
|
|
56455
|
+
}) {
|
|
56456
|
+
return /* @__PURE__ */ jsx(
|
|
56457
|
+
"del",
|
|
56458
|
+
{
|
|
56459
|
+
...props,
|
|
56460
|
+
className: classNames77(
|
|
56461
|
+
"eui-markdown-strikethrough text-gray-500 dark:text-gray-400",
|
|
56462
|
+
className
|
|
56463
|
+
)
|
|
56464
|
+
}
|
|
56465
|
+
);
|
|
56466
|
+
}
|
|
56467
|
+
var MarkdownStrikethrough_default = MarkdownStrikethrough;
|
|
56468
|
+
function MarkdownUnorderedList({
|
|
56469
|
+
className,
|
|
56470
|
+
...props
|
|
56471
|
+
}) {
|
|
56472
|
+
return /* @__PURE__ */ jsx(
|
|
56473
|
+
ListRoot,
|
|
56474
|
+
{
|
|
56475
|
+
...props,
|
|
56476
|
+
as: "ul",
|
|
56477
|
+
className: cn(
|
|
56478
|
+
"eui-markdown-unordered-list",
|
|
56479
|
+
className?.includes("contains-task-list") && "list-none pl-0",
|
|
56480
|
+
className
|
|
56481
|
+
)
|
|
56482
|
+
}
|
|
56483
|
+
);
|
|
56484
|
+
}
|
|
56485
|
+
function MarkdownOrderedList({
|
|
56486
|
+
className,
|
|
56487
|
+
...props
|
|
56488
|
+
}) {
|
|
56489
|
+
return /* @__PURE__ */ jsx(
|
|
56490
|
+
ListRoot,
|
|
56491
|
+
{
|
|
56492
|
+
...props,
|
|
56493
|
+
as: "ol",
|
|
56494
|
+
className: cn("eui-markdown-ordered-list", className)
|
|
56495
|
+
}
|
|
56496
|
+
);
|
|
56497
|
+
}
|
|
56498
|
+
function MarkdownListItem({ className, ...props }) {
|
|
56499
|
+
return /* @__PURE__ */ jsx(
|
|
56500
|
+
ListItemElement,
|
|
56501
|
+
{
|
|
56502
|
+
...props,
|
|
56503
|
+
as: "li",
|
|
56504
|
+
className: cn(
|
|
56505
|
+
"eui-markdown-list-item",
|
|
56506
|
+
className?.includes("task-list-item") && "list-none pl-0",
|
|
56507
|
+
className
|
|
56508
|
+
)
|
|
56509
|
+
}
|
|
56510
|
+
);
|
|
56511
|
+
}
|
|
56512
|
+
var MarkdownListItem_default = MarkdownListItem;
|
|
56513
|
+
function MarkdownTaskCheckbox({
|
|
56514
|
+
className,
|
|
56515
|
+
...props
|
|
56516
|
+
}) {
|
|
56517
|
+
return /* @__PURE__ */ jsx(
|
|
56518
|
+
"input",
|
|
56519
|
+
{
|
|
56520
|
+
...props,
|
|
56521
|
+
className: classNames77(
|
|
56522
|
+
"eui-markdown-task-checkbox mr-2 translate-y-px accent-blue-600",
|
|
56523
|
+
className
|
|
56524
|
+
)
|
|
56525
|
+
}
|
|
56526
|
+
);
|
|
56527
|
+
}
|
|
56528
|
+
var MarkdownTaskCheckbox_default = MarkdownTaskCheckbox;
|
|
56529
|
+
function MarkdownThematicBreak({
|
|
56530
|
+
className,
|
|
56531
|
+
...props
|
|
56532
|
+
}) {
|
|
56533
|
+
return /* @__PURE__ */ jsx(
|
|
56534
|
+
"hr",
|
|
56535
|
+
{
|
|
56536
|
+
...props,
|
|
56537
|
+
className: classNames77(
|
|
56538
|
+
"eui-markdown-thematic-break my-8 border-0 border-t border-gray-200 dark:border-gray-800",
|
|
56539
|
+
className
|
|
56540
|
+
)
|
|
56541
|
+
}
|
|
56542
|
+
);
|
|
56543
|
+
}
|
|
56544
|
+
var MarkdownThematicBreak_default = MarkdownThematicBreak;
|
|
56545
|
+
function MarkdownBreak(props) {
|
|
56546
|
+
return /* @__PURE__ */ jsx("br", { ...props });
|
|
56547
|
+
}
|
|
56548
|
+
var MarkdownBreak_default = MarkdownBreak;
|
|
56549
|
+
function MarkdownDetails({ className, ...props }) {
|
|
56550
|
+
return /* @__PURE__ */ jsx(
|
|
56551
|
+
"details",
|
|
56552
|
+
{
|
|
56553
|
+
...props,
|
|
56554
|
+
className: classNames77(
|
|
56555
|
+
"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",
|
|
56556
|
+
className
|
|
56557
|
+
)
|
|
56558
|
+
}
|
|
56559
|
+
);
|
|
56560
|
+
}
|
|
56561
|
+
function MarkdownSummary({ className, ...props }) {
|
|
56562
|
+
return /* @__PURE__ */ jsx(
|
|
56563
|
+
"summary",
|
|
56564
|
+
{
|
|
56565
|
+
...props,
|
|
56566
|
+
className: classNames77(
|
|
56567
|
+
"eui-markdown-summary cursor-pointer font-semibold text-gray-950 dark:text-gray-100",
|
|
56568
|
+
className
|
|
56569
|
+
)
|
|
56570
|
+
}
|
|
56571
|
+
);
|
|
56572
|
+
}
|
|
56573
|
+
function MarkdownFigure({ className, ...props }) {
|
|
56574
|
+
return /* @__PURE__ */ jsx(
|
|
56575
|
+
"figure",
|
|
56576
|
+
{
|
|
56577
|
+
...props,
|
|
56578
|
+
className: classNames77("eui-markdown-figure my-6", className)
|
|
56579
|
+
}
|
|
56580
|
+
);
|
|
56581
|
+
}
|
|
56582
|
+
function MarkdownFigcaption({
|
|
56583
|
+
children: children3,
|
|
56584
|
+
className,
|
|
56585
|
+
...props
|
|
56586
|
+
}) {
|
|
56587
|
+
return /* @__PURE__ */ jsx("figcaption", { ...props, className: "eui-markdown-figcaption mt-2 text-center", children: /* @__PURE__ */ jsx(
|
|
56588
|
+
Caption,
|
|
56589
|
+
{
|
|
56590
|
+
className: classNames77(
|
|
56591
|
+
"text-gray-500 opacity-100 dark:text-gray-400",
|
|
56592
|
+
className
|
|
56593
|
+
),
|
|
56594
|
+
children: /* @__PURE__ */ jsx(Fragment, { children: children3 })
|
|
56595
|
+
}
|
|
56596
|
+
) });
|
|
56597
|
+
}
|
|
56217
56598
|
function getTextContent(node2) {
|
|
56218
56599
|
if (typeof node2 === "string" || typeof node2 === "number") {
|
|
56219
56600
|
return String(node2);
|
|
@@ -56229,6 +56610,24 @@ function getTextContent(node2) {
|
|
|
56229
56610
|
function createHeadingKey(level, text10) {
|
|
56230
56611
|
return `${level}:${sanitizeHeading(text10)}`;
|
|
56231
56612
|
}
|
|
56613
|
+
function remarkCodeMetadata() {
|
|
56614
|
+
return (tree) => {
|
|
56615
|
+
const visit2 = (node2) => {
|
|
56616
|
+
if (node2.type === "code") {
|
|
56617
|
+
const data = node2.data ?? (node2.data = {});
|
|
56618
|
+
const properties2 = data.hProperties ?? (data.hProperties = {});
|
|
56619
|
+
if (node2.lang) {
|
|
56620
|
+
properties2["data-language"] = node2.lang;
|
|
56621
|
+
}
|
|
56622
|
+
if (node2.meta) {
|
|
56623
|
+
properties2["data-meta"] = node2.meta;
|
|
56624
|
+
}
|
|
56625
|
+
}
|
|
56626
|
+
node2.children?.forEach(visit2);
|
|
56627
|
+
};
|
|
56628
|
+
visit2(tree);
|
|
56629
|
+
};
|
|
56630
|
+
}
|
|
56232
56631
|
function parseNumberRanges(value) {
|
|
56233
56632
|
if (!value) return [];
|
|
56234
56633
|
const normalized = value.replace(/[{}[\]\s]/g, "");
|
|
@@ -56254,15 +56653,19 @@ function parseNumberRanges(value) {
|
|
|
56254
56653
|
}
|
|
56255
56654
|
function parseCodeMeta(metaString) {
|
|
56256
56655
|
if (!metaString) return void 0;
|
|
56257
|
-
const
|
|
56258
|
-
|
|
56259
|
-
|
|
56260
|
-
|
|
56261
|
-
|
|
56656
|
+
const readValue = (key) => {
|
|
56657
|
+
const match = metaString.match(
|
|
56658
|
+
new RegExp(`(?:^|\\s)${key}=(?:"([^"]*)"|'([^']*)'|([^\\s]+))`, "i")
|
|
56659
|
+
);
|
|
56660
|
+
return match?.[1] ?? match?.[2] ?? match?.[3];
|
|
56661
|
+
};
|
|
56662
|
+
const filename = readValue("(?:filename|file)");
|
|
56663
|
+
const title = readValue("title");
|
|
56664
|
+
const highlightMatch = metaString.match(/(?:highlight|lines)=["']?([^"'\s]+)["']?/i) || metaString.match(/{([^}]+)}/);
|
|
56262
56665
|
return {
|
|
56263
|
-
filename
|
|
56264
|
-
title
|
|
56265
|
-
showLineNumbers: /\b(showLineNumbers|lineNumbers|line-numbers)\b
|
|
56666
|
+
filename,
|
|
56667
|
+
title,
|
|
56668
|
+
showLineNumbers: /\b(showLineNumbers|lineNumbers|line-numbers)\b/i.test(
|
|
56266
56669
|
metaString
|
|
56267
56670
|
),
|
|
56268
56671
|
highlightLines: parseNumberRanges(highlightMatch?.[1])
|
|
@@ -56270,26 +56673,35 @@ function parseCodeMeta(metaString) {
|
|
|
56270
56673
|
}
|
|
56271
56674
|
function getCodeMetaString(node2) {
|
|
56272
56675
|
const value = node2;
|
|
56273
|
-
return value?.data?.meta || value?.data?.hProperties?.meta || value?.properties?.meta || value?.properties?.dataMeta || value?.meta;
|
|
56676
|
+
return value?.data?.meta || value?.data?.hProperties?.meta || value?.properties?.meta || value?.properties?.dataMeta || value?.properties?.["data-meta"] || value?.meta;
|
|
56677
|
+
}
|
|
56678
|
+
function getStringProperty(value) {
|
|
56679
|
+
if (typeof value === "string") return value;
|
|
56680
|
+
if (Array.isArray(value)) {
|
|
56681
|
+
return value.map(String).join(" ");
|
|
56682
|
+
}
|
|
56683
|
+
return void 0;
|
|
56274
56684
|
}
|
|
56275
56685
|
function getLanguageFromClassName(className) {
|
|
56276
56686
|
if (!className) return void 0;
|
|
56277
56687
|
const match = className.match(/language-([^\s]+)/);
|
|
56278
56688
|
return match?.[1];
|
|
56279
56689
|
}
|
|
56280
|
-
function
|
|
56281
|
-
|
|
56282
|
-
|
|
56283
|
-
|
|
56284
|
-
|
|
56285
|
-
|
|
56286
|
-
const
|
|
56287
|
-
const
|
|
56288
|
-
|
|
56289
|
-
|
|
56290
|
-
);
|
|
56291
|
-
const
|
|
56292
|
-
const
|
|
56690
|
+
function getAstTextContent(node2) {
|
|
56691
|
+
if (!node2) return "";
|
|
56692
|
+
if (typeof node2.value === "string") return node2.value;
|
|
56693
|
+
return node2.children?.map(getAstTextContent).join("") ?? "";
|
|
56694
|
+
}
|
|
56695
|
+
function getCodeInfoFromPreNode(node2, fallbackChildren) {
|
|
56696
|
+
const preNode = node2;
|
|
56697
|
+
const codeNode = preNode?.children?.find((child) => child.tagName === "code");
|
|
56698
|
+
const properties2 = codeNode?.properties;
|
|
56699
|
+
const className = getStringProperty(properties2?.className);
|
|
56700
|
+
const dataLanguage = getStringProperty(properties2?.dataLanguage) ?? getStringProperty(properties2?.["data-language"]);
|
|
56701
|
+
const astCode = getAstTextContent(codeNode);
|
|
56702
|
+
const code4 = (astCode || getTextContent(fallbackChildren)).replace(/\n$/, "");
|
|
56703
|
+
const language = getLanguageFromClassName(className) ?? dataLanguage;
|
|
56704
|
+
const meta = parseCodeMeta(getCodeMetaString(codeNode));
|
|
56293
56705
|
return {
|
|
56294
56706
|
code: code4,
|
|
56295
56707
|
language,
|
|
@@ -56337,6 +56749,7 @@ function MarkdownRenderer({
|
|
|
56337
56749
|
})}`;
|
|
56338
56750
|
};
|
|
56339
56751
|
const remarkPlugins = [];
|
|
56752
|
+
remarkPlugins.push(remarkCodeMetadata);
|
|
56340
56753
|
if (enableGfm) {
|
|
56341
56754
|
remarkPlugins.push(remarkGfm);
|
|
56342
56755
|
}
|
|
@@ -56432,13 +56845,15 @@ function MarkdownRenderer({
|
|
|
56432
56845
|
* Then the pre renderer can reliably extract language + meta.
|
|
56433
56846
|
*/
|
|
56434
56847
|
code: ({ node: node2, className: className2, children: children3, ...rest }) => {
|
|
56435
|
-
const
|
|
56848
|
+
const astNode = node2;
|
|
56849
|
+
const language = getLanguageFromClassName(className2) ?? getStringProperty(astNode.properties?.dataLanguage) ?? getStringProperty(astNode.properties?.["data-language"]);
|
|
56436
56850
|
if (language) {
|
|
56437
56851
|
return /* @__PURE__ */ jsx(
|
|
56438
56852
|
"code",
|
|
56439
56853
|
{
|
|
56440
56854
|
...rest,
|
|
56441
56855
|
className: className2,
|
|
56856
|
+
"data-language": language,
|
|
56442
56857
|
"data-meta": getCodeMetaString(node2),
|
|
56443
56858
|
children: children3
|
|
56444
56859
|
}
|
|
@@ -56452,9 +56867,9 @@ function MarkdownRenderer({
|
|
|
56452
56867
|
* React-markdown's pre props are HTMLPreElement props.
|
|
56453
56868
|
* MarkdownCodeBlock root is a div.
|
|
56454
56869
|
*/
|
|
56455
|
-
pre: ({ node:
|
|
56870
|
+
pre: ({ node: node2, children: children3 }) => {
|
|
56456
56871
|
const Component = components?.pre ?? MarkdownCodeBlock_default;
|
|
56457
|
-
const { code: code4, language, meta } =
|
|
56872
|
+
const { code: code4, language, meta } = getCodeInfoFromPreNode(node2, children3);
|
|
56458
56873
|
return /* @__PURE__ */ jsx(
|
|
56459
56874
|
Component,
|
|
56460
56875
|
{
|
|
@@ -56498,18 +56913,104 @@ function MarkdownRenderer({
|
|
|
56498
56913
|
const Component = components?.blockquote ?? MarkdownBlockquote_default;
|
|
56499
56914
|
return /* @__PURE__ */ jsx(Component, { ...rest, children: children3 });
|
|
56500
56915
|
},
|
|
56916
|
+
p: ({ node: _node, ...rest }) => {
|
|
56917
|
+
const Component = components?.p ?? MarkdownParagraph_default;
|
|
56918
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56919
|
+
},
|
|
56920
|
+
strong: ({ node: _node, ...rest }) => {
|
|
56921
|
+
const Component = components?.strong ?? MarkdownStrong_default;
|
|
56922
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56923
|
+
},
|
|
56924
|
+
em: ({ node: _node, ...rest }) => {
|
|
56925
|
+
const Component = components?.em ?? MarkdownEmphasis_default;
|
|
56926
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56927
|
+
},
|
|
56928
|
+
del: ({ node: _node, ...rest }) => {
|
|
56929
|
+
const Component = components?.del ?? MarkdownStrikethrough_default;
|
|
56930
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56931
|
+
},
|
|
56932
|
+
ul: ({ node: _node, ...rest }) => {
|
|
56933
|
+
const Component = components?.ul ?? MarkdownUnorderedList;
|
|
56934
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56935
|
+
},
|
|
56936
|
+
ol: ({ node: _node, ...rest }) => {
|
|
56937
|
+
const Component = components?.ol ?? MarkdownOrderedList;
|
|
56938
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56939
|
+
},
|
|
56940
|
+
li: ({ node: _node, ...rest }) => {
|
|
56941
|
+
const Component = components?.li ?? MarkdownListItem_default;
|
|
56942
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56943
|
+
},
|
|
56944
|
+
input: ({ node: _node, ...rest }) => {
|
|
56945
|
+
const Component = components?.input ?? MarkdownTaskCheckbox_default;
|
|
56946
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56947
|
+
},
|
|
56948
|
+
hr: ({ node: _node, ...rest }) => {
|
|
56949
|
+
const Component = components?.hr ?? MarkdownThematicBreak_default;
|
|
56950
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56951
|
+
},
|
|
56952
|
+
br: ({ node: _node, ...rest }) => {
|
|
56953
|
+
const Component = components?.br ?? MarkdownBreak_default;
|
|
56954
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56955
|
+
},
|
|
56956
|
+
details: ({ node: _node, ...rest }) => {
|
|
56957
|
+
const Component = components?.details ?? MarkdownDetails;
|
|
56958
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56959
|
+
},
|
|
56960
|
+
summary: ({ node: _node, ...rest }) => {
|
|
56961
|
+
const Component = components?.summary ?? MarkdownSummary;
|
|
56962
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56963
|
+
},
|
|
56964
|
+
figure: ({ node: _node, ...rest }) => {
|
|
56965
|
+
const Component = components?.figure ?? MarkdownFigure;
|
|
56966
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56967
|
+
},
|
|
56968
|
+
figcaption: ({ node: _node, ...rest }) => {
|
|
56969
|
+
const Component = components?.figcaption ?? MarkdownFigcaption;
|
|
56970
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56971
|
+
},
|
|
56972
|
+
thead: ({ node: _node, ...rest }) => {
|
|
56973
|
+
const Component = components?.thead ?? MarkdownTableHead;
|
|
56974
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56975
|
+
},
|
|
56976
|
+
tbody: ({ node: _node, ...rest }) => {
|
|
56977
|
+
const Component = components?.tbody ?? MarkdownTableBody;
|
|
56978
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56979
|
+
},
|
|
56980
|
+
tr: ({ node: _node, ...rest }) => {
|
|
56981
|
+
const Component = components?.tr ?? MarkdownTableRow;
|
|
56982
|
+
return /* @__PURE__ */ jsx(Component, { ...rest });
|
|
56983
|
+
},
|
|
56501
56984
|
...components
|
|
56502
56985
|
};
|
|
56503
|
-
return /* @__PURE__ */ jsx(
|
|
56504
|
-
|
|
56986
|
+
return /* @__PURE__ */ jsx(
|
|
56987
|
+
"div",
|
|
56505
56988
|
{
|
|
56506
|
-
|
|
56507
|
-
|
|
56508
|
-
|
|
56509
|
-
|
|
56510
|
-
children:
|
|
56989
|
+
className: classNames77(
|
|
56990
|
+
"eui-markdown markdown-body break-words bg-transparent text-[0.95rem] leading-7 text-gray-800 dark:text-gray-300",
|
|
56991
|
+
className
|
|
56992
|
+
),
|
|
56993
|
+
children: /* @__PURE__ */ jsx(
|
|
56994
|
+
"div",
|
|
56995
|
+
{
|
|
56996
|
+
className: classNames77(
|
|
56997
|
+
"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0",
|
|
56998
|
+
contentClassName
|
|
56999
|
+
),
|
|
57000
|
+
children: /* @__PURE__ */ jsx(
|
|
57001
|
+
Markdown,
|
|
57002
|
+
{
|
|
57003
|
+
remarkPlugins,
|
|
57004
|
+
rehypePlugins,
|
|
57005
|
+
skipHtml: !allowHtml,
|
|
57006
|
+
components: rendererComponents,
|
|
57007
|
+
children: markdown
|
|
57008
|
+
}
|
|
57009
|
+
)
|
|
57010
|
+
}
|
|
57011
|
+
)
|
|
56511
57012
|
}
|
|
56512
|
-
)
|
|
57013
|
+
);
|
|
56513
57014
|
}
|
|
56514
57015
|
var MarkdownRenderer_default = MarkdownRenderer;
|
|
56515
57016
|
function MarkdownViewer({
|
|
@@ -56570,11 +57071,11 @@ function MarkdownTOCItem({
|
|
|
56570
57071
|
onClick: () => onSelect?.(heading3),
|
|
56571
57072
|
"aria-current": active ? "location" : void 0,
|
|
56572
57073
|
title: label,
|
|
56573
|
-
className:
|
|
57074
|
+
className: classNames77(
|
|
56574
57075
|
"eui-markdown-toc-item",
|
|
56575
57076
|
"block w-full text-left text-sm transition-all ease-in-out duration-150",
|
|
56576
57077
|
"hover:text-primary",
|
|
56577
|
-
active ?
|
|
57078
|
+
active ? classNames77("text-primary font-semibold underline", activeClassName) : classNames77("text-gray-500 dark:text-gray-400", inactiveClassName),
|
|
56578
57079
|
className
|
|
56579
57080
|
),
|
|
56580
57081
|
style: {
|
|
@@ -56640,7 +57141,7 @@ function MarkdownTOC({
|
|
|
56640
57141
|
return emptyState ? /* @__PURE__ */ jsx(
|
|
56641
57142
|
"div",
|
|
56642
57143
|
{
|
|
56643
|
-
className:
|
|
57144
|
+
className: classNames77(
|
|
56644
57145
|
"eui-markdown-toc",
|
|
56645
57146
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
56646
57147
|
className
|
|
@@ -56660,7 +57161,7 @@ function MarkdownTOC({
|
|
|
56660
57161
|
{
|
|
56661
57162
|
type: "button",
|
|
56662
57163
|
onClick: () => setCollapsed((value) => !value),
|
|
56663
|
-
className:
|
|
57164
|
+
className: classNames77(
|
|
56664
57165
|
"eui-markdown-toc-title",
|
|
56665
57166
|
"flex w-full items-center justify-between gap-2 text-left",
|
|
56666
57167
|
"text-sm font-semibold uppercase tracking-wide",
|
|
@@ -56673,7 +57174,7 @@ function MarkdownTOC({
|
|
|
56673
57174
|
/* @__PURE__ */ jsx(
|
|
56674
57175
|
"span",
|
|
56675
57176
|
{
|
|
56676
|
-
className:
|
|
57177
|
+
className: classNames77(
|
|
56677
57178
|
"text-xs opacity-60 transition-transform duration-150",
|
|
56678
57179
|
!collapsed && "rotate-90"
|
|
56679
57180
|
),
|
|
@@ -56686,7 +57187,7 @@ function MarkdownTOC({
|
|
|
56686
57187
|
) : /* @__PURE__ */ jsx(
|
|
56687
57188
|
"h2",
|
|
56688
57189
|
{
|
|
56689
|
-
className:
|
|
57190
|
+
className: classNames77(
|
|
56690
57191
|
"eui-markdown-toc-title",
|
|
56691
57192
|
"text-sm font-semibold uppercase tracking-wide",
|
|
56692
57193
|
"text-gray-900 dark:text-gray-100",
|
|
@@ -56698,7 +57199,7 @@ function MarkdownTOC({
|
|
|
56698
57199
|
!collapsed ? /* @__PURE__ */ jsx(
|
|
56699
57200
|
"nav",
|
|
56700
57201
|
{
|
|
56701
|
-
className:
|
|
57202
|
+
className: classNames77(
|
|
56702
57203
|
"eui-markdown-toc-list",
|
|
56703
57204
|
"space-y-1",
|
|
56704
57205
|
listClassName
|
|
@@ -56722,7 +57223,7 @@ function MarkdownTOC({
|
|
|
56722
57223
|
}
|
|
56723
57224
|
) : null
|
|
56724
57225
|
] });
|
|
56725
|
-
return /* @__PURE__ */ jsx("aside", { className:
|
|
57226
|
+
return /* @__PURE__ */ jsx("aside", { className: classNames77("eui-markdown-toc", "space-y-4", className), children: content3 });
|
|
56726
57227
|
}
|
|
56727
57228
|
var MarkdownTOC_default = MarkdownTOC;
|
|
56728
57229
|
var DEFAULT_MARKDOWN_TOOLBAR_ACTIONS = [
|
|
@@ -56821,7 +57322,7 @@ function MarkdownToolbar({
|
|
|
56821
57322
|
return /* @__PURE__ */ jsxs(
|
|
56822
57323
|
"div",
|
|
56823
57324
|
{
|
|
56824
|
-
className:
|
|
57325
|
+
className: classNames77(
|
|
56825
57326
|
"eui-markdown-toolbar",
|
|
56826
57327
|
"flex flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 p-2",
|
|
56827
57328
|
"dark:border-gray-700 dark:bg-gray-900",
|
|
@@ -56835,7 +57336,7 @@ function MarkdownToolbar({
|
|
|
56835
57336
|
disabled: disabled || actionsDisabled,
|
|
56836
57337
|
title: action.shortcut ? `${action.title || action.label} (${action.shortcut})` : action.title || action.label,
|
|
56837
57338
|
onClick: () => onAction?.(action.id),
|
|
56838
|
-
className:
|
|
57339
|
+
className: classNames77(
|
|
56839
57340
|
"eui-markdown-toolbar-button",
|
|
56840
57341
|
"inline-flex items-center justify-center rounded border border-transparent",
|
|
56841
57342
|
"text-gray-700 transition-colors hover:border-gray-300 hover:bg-white",
|
|
@@ -56855,7 +57356,7 @@ function MarkdownToolbar({
|
|
|
56855
57356
|
disabled,
|
|
56856
57357
|
onClick: onViewModeToggle,
|
|
56857
57358
|
title: isPreviewMode ? "Switch to Markdown syntax" : "Switch to preview",
|
|
56858
|
-
className:
|
|
57359
|
+
className: classNames77(
|
|
56859
57360
|
"eui-markdown-view-toggle",
|
|
56860
57361
|
"inline-flex items-center justify-center rounded border font-medium transition-colors",
|
|
56861
57362
|
"border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -57112,7 +57613,7 @@ function MarkdownSourceEditor({
|
|
|
57112
57613
|
return /* @__PURE__ */ jsxs(
|
|
57113
57614
|
"div",
|
|
57114
57615
|
{
|
|
57115
|
-
className:
|
|
57616
|
+
className: classNames77(
|
|
57116
57617
|
"eui-markdown-editor",
|
|
57117
57618
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
57118
57619
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -57128,7 +57629,7 @@ function MarkdownSourceEditor({
|
|
|
57128
57629
|
actionsDisabled: readOnly,
|
|
57129
57630
|
viewMode: currentViewMode,
|
|
57130
57631
|
showViewModeToggle,
|
|
57131
|
-
className:
|
|
57632
|
+
className: classNames77(toolbarClassName, toolbarProps?.className),
|
|
57132
57633
|
onViewModeToggle: toggleViewMode,
|
|
57133
57634
|
onAction: handleToolbarAction
|
|
57134
57635
|
}
|
|
@@ -57136,7 +57637,7 @@ function MarkdownSourceEditor({
|
|
|
57136
57637
|
currentViewMode === "preview" ? /* @__PURE__ */ jsx(
|
|
57137
57638
|
"div",
|
|
57138
57639
|
{
|
|
57139
|
-
className:
|
|
57640
|
+
className: classNames77(
|
|
57140
57641
|
"eui-markdown-editor-preview",
|
|
57141
57642
|
"min-h-[260px] p-4",
|
|
57142
57643
|
previewClassName
|
|
@@ -57159,7 +57660,7 @@ function MarkdownSourceEditor({
|
|
|
57159
57660
|
onChange: (event) => updateValue(event.target.value),
|
|
57160
57661
|
onBlur,
|
|
57161
57662
|
onKeyDown: handleKeyDown,
|
|
57162
|
-
className:
|
|
57663
|
+
className: classNames77(
|
|
57163
57664
|
"eui-markdown-source-textarea",
|
|
57164
57665
|
"block w-full resize-y border-0 bg-transparent p-4 font-mono text-sm leading-7",
|
|
57165
57666
|
"text-gray-900 outline-none placeholder:text-gray-400",
|
|
@@ -57189,7 +57690,7 @@ function MarkdownPreviewPane({
|
|
|
57189
57690
|
return /* @__PURE__ */ jsx(
|
|
57190
57691
|
"div",
|
|
57191
57692
|
{
|
|
57192
|
-
className:
|
|
57693
|
+
className: classNames77(
|
|
57193
57694
|
"eui-markdown-preview-pane",
|
|
57194
57695
|
"rounded border border-gray-300 bg-white p-4",
|
|
57195
57696
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -57239,7 +57740,7 @@ function MarkdownSplitEditor({
|
|
|
57239
57740
|
return /* @__PURE__ */ jsxs(
|
|
57240
57741
|
"div",
|
|
57241
57742
|
{
|
|
57242
|
-
className:
|
|
57743
|
+
className: classNames77(
|
|
57243
57744
|
"eui-markdown-split-editor",
|
|
57244
57745
|
"grid gap-4",
|
|
57245
57746
|
isHorizontal ? "grid-cols-1 lg:grid-cols-2" : "grid-cols-1",
|
|
@@ -57249,7 +57750,7 @@ function MarkdownSplitEditor({
|
|
|
57249
57750
|
/* @__PURE__ */ jsxs(
|
|
57250
57751
|
"div",
|
|
57251
57752
|
{
|
|
57252
|
-
className:
|
|
57753
|
+
className: classNames77(
|
|
57253
57754
|
"eui-markdown-split-source",
|
|
57254
57755
|
"min-w-0 space-y-2",
|
|
57255
57756
|
sourceWrapperClassName
|
|
@@ -57273,7 +57774,7 @@ function MarkdownSplitEditor({
|
|
|
57273
57774
|
/* @__PURE__ */ jsxs(
|
|
57274
57775
|
"div",
|
|
57275
57776
|
{
|
|
57276
|
-
className:
|
|
57777
|
+
className: classNames77(
|
|
57277
57778
|
"eui-markdown-split-preview",
|
|
57278
57779
|
"min-w-0 space-y-2",
|
|
57279
57780
|
previewWrapperClassName
|
|
@@ -57363,7 +57864,7 @@ function MarkdownField({
|
|
|
57363
57864
|
return /* @__PURE__ */ jsxs(
|
|
57364
57865
|
"div",
|
|
57365
57866
|
{
|
|
57366
|
-
className:
|
|
57867
|
+
className: classNames77(
|
|
57367
57868
|
"eui-markdown-field",
|
|
57368
57869
|
"relative space-y-2",
|
|
57369
57870
|
wrapperClassName
|
|
@@ -57373,7 +57874,7 @@ function MarkdownField({
|
|
|
57373
57874
|
"label",
|
|
57374
57875
|
{
|
|
57375
57876
|
htmlFor: editorProps.id || field.name,
|
|
57376
|
-
className:
|
|
57877
|
+
className: classNames77(
|
|
57377
57878
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
57378
57879
|
labelClassName
|
|
57379
57880
|
),
|
|
@@ -57398,7 +57899,7 @@ function MarkdownField({
|
|
|
57398
57899
|
helperText && !hasError ? /* @__PURE__ */ jsx(
|
|
57399
57900
|
"p",
|
|
57400
57901
|
{
|
|
57401
|
-
className:
|
|
57902
|
+
className: classNames77(
|
|
57402
57903
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
57403
57904
|
helperTextClassName
|
|
57404
57905
|
),
|
|
@@ -57411,6 +57912,414 @@ function MarkdownField({
|
|
|
57411
57912
|
);
|
|
57412
57913
|
}
|
|
57413
57914
|
var MarkdownField_default = MarkdownField;
|
|
57915
|
+
function toCssSize2(value) {
|
|
57916
|
+
if (typeof value === "number") return `${value}px`;
|
|
57917
|
+
return value;
|
|
57918
|
+
}
|
|
57919
|
+
function CodeMirrorMarkdownEditor({
|
|
57920
|
+
value,
|
|
57921
|
+
defaultValue = "",
|
|
57922
|
+
onChange,
|
|
57923
|
+
onBlur,
|
|
57924
|
+
id: id2,
|
|
57925
|
+
name: name2,
|
|
57926
|
+
placeholder = "Write markdown...",
|
|
57927
|
+
disabled = false,
|
|
57928
|
+
readOnly = false,
|
|
57929
|
+
autoFocus = false,
|
|
57930
|
+
minHeight = 320,
|
|
57931
|
+
maxHeight,
|
|
57932
|
+
height,
|
|
57933
|
+
dark = false,
|
|
57934
|
+
className,
|
|
57935
|
+
editorClassName,
|
|
57936
|
+
extensions
|
|
57937
|
+
}) {
|
|
57938
|
+
const isControlled = value !== void 0;
|
|
57939
|
+
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
57940
|
+
const currentValue = isControlled ? value : internalValue;
|
|
57941
|
+
useEffect(() => {
|
|
57942
|
+
if (!isControlled) {
|
|
57943
|
+
setInternalValue(defaultValue);
|
|
57944
|
+
}
|
|
57945
|
+
}, [defaultValue, isControlled]);
|
|
57946
|
+
const updateValue = (nextValue) => {
|
|
57947
|
+
if (!isControlled) {
|
|
57948
|
+
setInternalValue(nextValue);
|
|
57949
|
+
}
|
|
57950
|
+
onChange?.(nextValue);
|
|
57951
|
+
};
|
|
57952
|
+
return /* @__PURE__ */ jsx(
|
|
57953
|
+
"div",
|
|
57954
|
+
{
|
|
57955
|
+
id: id2,
|
|
57956
|
+
"data-name": name2,
|
|
57957
|
+
className: classNames77(
|
|
57958
|
+
"eui-markdown-adapter",
|
|
57959
|
+
"eui-markdown-codemirror-adapter",
|
|
57960
|
+
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
57961
|
+
"dark:border-gray-700 dark:bg-gray-950",
|
|
57962
|
+
disabled && "cursor-not-allowed opacity-60",
|
|
57963
|
+
className
|
|
57964
|
+
),
|
|
57965
|
+
style: {
|
|
57966
|
+
minHeight: toCssSize2(minHeight),
|
|
57967
|
+
maxHeight: toCssSize2(maxHeight)
|
|
57968
|
+
},
|
|
57969
|
+
children: /* @__PURE__ */ jsx(
|
|
57970
|
+
CodeMirror,
|
|
57971
|
+
{
|
|
57972
|
+
value: currentValue,
|
|
57973
|
+
height,
|
|
57974
|
+
minHeight: toCssSize2(minHeight),
|
|
57975
|
+
maxHeight: toCssSize2(maxHeight),
|
|
57976
|
+
placeholder,
|
|
57977
|
+
autoFocus,
|
|
57978
|
+
editable: !disabled && !readOnly,
|
|
57979
|
+
readOnly,
|
|
57980
|
+
theme: dark ? oneDark : void 0,
|
|
57981
|
+
extensions: [markdown(), ...extensions ?? []],
|
|
57982
|
+
basicSetup: {
|
|
57983
|
+
lineNumbers: true,
|
|
57984
|
+
foldGutter: true,
|
|
57985
|
+
highlightActiveLine: true,
|
|
57986
|
+
highlightSelectionMatches: true,
|
|
57987
|
+
autocompletion: true,
|
|
57988
|
+
closeBrackets: true,
|
|
57989
|
+
bracketMatching: true
|
|
57990
|
+
},
|
|
57991
|
+
className: classNames77("eui-markdown-codemirror", editorClassName),
|
|
57992
|
+
onChange: updateValue,
|
|
57993
|
+
onBlur
|
|
57994
|
+
}
|
|
57995
|
+
)
|
|
57996
|
+
}
|
|
57997
|
+
);
|
|
57998
|
+
}
|
|
57999
|
+
var CodeMirrorMarkdownEditor_default = CodeMirrorMarkdownEditor;
|
|
58000
|
+
var DEFAULT_CODE_BLOCK_LANGUAGES = {
|
|
58001
|
+
js: "JavaScript",
|
|
58002
|
+
jsx: "JSX",
|
|
58003
|
+
ts: "TypeScript",
|
|
58004
|
+
tsx: "TSX",
|
|
58005
|
+
css: "CSS",
|
|
58006
|
+
scss: "SCSS",
|
|
58007
|
+
json: "JSON",
|
|
58008
|
+
bash: "Bash",
|
|
58009
|
+
sh: "Shell",
|
|
58010
|
+
html: "HTML",
|
|
58011
|
+
xml: "XML",
|
|
58012
|
+
md: "Markdown"
|
|
58013
|
+
};
|
|
58014
|
+
function toCssSize3(value) {
|
|
58015
|
+
if (typeof value === "number") return `${value}px`;
|
|
58016
|
+
return value;
|
|
58017
|
+
}
|
|
58018
|
+
function DefaultToolbar() {
|
|
58019
|
+
return /* @__PURE__ */ jsx(
|
|
58020
|
+
ConditionalContents,
|
|
58021
|
+
{
|
|
58022
|
+
options: [
|
|
58023
|
+
{
|
|
58024
|
+
when: (editor) => editor?.editorType === "codeblock",
|
|
58025
|
+
contents: () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
58026
|
+
/* @__PURE__ */ jsx(UndoRedo, {}),
|
|
58027
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
58028
|
+
/* @__PURE__ */ jsx(ChangeCodeMirrorLanguage, {})
|
|
58029
|
+
] })
|
|
58030
|
+
},
|
|
58031
|
+
{
|
|
58032
|
+
fallback: () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
58033
|
+
/* @__PURE__ */ jsx(UndoRedo, {}),
|
|
58034
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
58035
|
+
/* @__PURE__ */ jsx(BlockTypeSelect, {}),
|
|
58036
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
58037
|
+
/* @__PURE__ */ jsx(BoldItalicUnderlineToggles, {}),
|
|
58038
|
+
/* @__PURE__ */ jsx(CodeToggle, {}),
|
|
58039
|
+
/* @__PURE__ */ jsx(StrikeThroughSupSubToggles, {}),
|
|
58040
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
58041
|
+
/* @__PURE__ */ jsx(ListsToggle, {}),
|
|
58042
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
58043
|
+
/* @__PURE__ */ jsx(CreateLink, {}),
|
|
58044
|
+
/* @__PURE__ */ jsx(InsertImage, {}),
|
|
58045
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
58046
|
+
/* @__PURE__ */ jsx(InsertTable, {}),
|
|
58047
|
+
/* @__PURE__ */ jsx(InsertCodeBlock, {}),
|
|
58048
|
+
/* @__PURE__ */ jsx(InsertThematicBreak, {})
|
|
58049
|
+
] })
|
|
58050
|
+
}
|
|
58051
|
+
]
|
|
58052
|
+
}
|
|
58053
|
+
);
|
|
58054
|
+
}
|
|
58055
|
+
function createDefaultPlugins({
|
|
58056
|
+
showToolbar,
|
|
58057
|
+
toolbarPosition,
|
|
58058
|
+
toolbarClassName,
|
|
58059
|
+
toolbarContents,
|
|
58060
|
+
defaultCodeBlockLanguage,
|
|
58061
|
+
codeMirrorOptions,
|
|
58062
|
+
imageOptions,
|
|
58063
|
+
linkDialogOptions
|
|
58064
|
+
}) {
|
|
58065
|
+
const codeBlockLanguages = codeMirrorOptions?.codeBlockLanguages ?? DEFAULT_CODE_BLOCK_LANGUAGES;
|
|
58066
|
+
return [
|
|
58067
|
+
headingsPlugin(),
|
|
58068
|
+
listsPlugin(),
|
|
58069
|
+
quotePlugin(),
|
|
58070
|
+
thematicBreakPlugin(),
|
|
58071
|
+
markdownShortcutPlugin(),
|
|
58072
|
+
linkPlugin(),
|
|
58073
|
+
linkDialogPlugin(linkDialogOptions),
|
|
58074
|
+
imagePlugin(imageOptions),
|
|
58075
|
+
tablePlugin(),
|
|
58076
|
+
codeBlockPlugin({
|
|
58077
|
+
defaultCodeBlockLanguage
|
|
58078
|
+
}),
|
|
58079
|
+
codeMirrorPlugin({
|
|
58080
|
+
...codeMirrorOptions,
|
|
58081
|
+
codeBlockLanguages
|
|
58082
|
+
}),
|
|
58083
|
+
...showToolbar ? [
|
|
58084
|
+
toolbarPlugin({
|
|
58085
|
+
toolbarContents: toolbarContents ?? DefaultToolbar,
|
|
58086
|
+
toolbarClassName: classNames77(
|
|
58087
|
+
"eui-markdown-mdx-toolbar",
|
|
58088
|
+
toolbarClassName
|
|
58089
|
+
),
|
|
58090
|
+
toolbarPosition
|
|
58091
|
+
})
|
|
58092
|
+
] : []
|
|
58093
|
+
];
|
|
58094
|
+
}
|
|
58095
|
+
var MDXMarkdownEditor = forwardRef(
|
|
58096
|
+
function MDXMarkdownEditor2({
|
|
58097
|
+
value,
|
|
58098
|
+
defaultValue = "",
|
|
58099
|
+
onChange,
|
|
58100
|
+
onBlur,
|
|
58101
|
+
id: id2,
|
|
58102
|
+
name: name2,
|
|
58103
|
+
disabled = false,
|
|
58104
|
+
readOnly = false,
|
|
58105
|
+
required = false,
|
|
58106
|
+
minHeight = 360,
|
|
58107
|
+
maxHeight,
|
|
58108
|
+
dark = false,
|
|
58109
|
+
invalid = false,
|
|
58110
|
+
ariaLabel,
|
|
58111
|
+
ariaDescribedBy,
|
|
58112
|
+
className,
|
|
58113
|
+
editorClassName,
|
|
58114
|
+
contentEditableClassName,
|
|
58115
|
+
toolbarClassName,
|
|
58116
|
+
plugins,
|
|
58117
|
+
showToolbar = true,
|
|
58118
|
+
toolbarPosition = "top",
|
|
58119
|
+
toolbarContents,
|
|
58120
|
+
defaultCodeBlockLanguage = "tsx",
|
|
58121
|
+
codeMirrorOptions,
|
|
58122
|
+
imageOptions,
|
|
58123
|
+
linkDialogOptions,
|
|
58124
|
+
...props
|
|
58125
|
+
}, forwardedRef) {
|
|
58126
|
+
const editorRef = useRef(null);
|
|
58127
|
+
const isControlled = value !== void 0;
|
|
58128
|
+
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
58129
|
+
const currentValue = isControlled ? value : internalValue;
|
|
58130
|
+
const defaultPlugins = useMemo(
|
|
58131
|
+
() => createDefaultPlugins({
|
|
58132
|
+
showToolbar,
|
|
58133
|
+
toolbarPosition,
|
|
58134
|
+
toolbarClassName,
|
|
58135
|
+
toolbarContents,
|
|
58136
|
+
defaultCodeBlockLanguage,
|
|
58137
|
+
codeMirrorOptions,
|
|
58138
|
+
imageOptions,
|
|
58139
|
+
linkDialogOptions
|
|
58140
|
+
}),
|
|
58141
|
+
[
|
|
58142
|
+
codeMirrorOptions,
|
|
58143
|
+
defaultCodeBlockLanguage,
|
|
58144
|
+
imageOptions,
|
|
58145
|
+
linkDialogOptions,
|
|
58146
|
+
showToolbar,
|
|
58147
|
+
toolbarClassName,
|
|
58148
|
+
toolbarContents,
|
|
58149
|
+
toolbarPosition
|
|
58150
|
+
]
|
|
58151
|
+
);
|
|
58152
|
+
useImperativeHandle(
|
|
58153
|
+
forwardedRef,
|
|
58154
|
+
() => ({
|
|
58155
|
+
focus: (callbackFn, options) => editorRef.current?.focus(callbackFn, options),
|
|
58156
|
+
getContentEditableHTML: () => editorRef.current?.getContentEditableHTML() ?? "",
|
|
58157
|
+
getMarkdown: () => editorRef.current?.getMarkdown() ?? currentValue,
|
|
58158
|
+
getSelectionMarkdown: () => editorRef.current?.getSelectionMarkdown() ?? "",
|
|
58159
|
+
insertMarkdown: (markdown) => editorRef.current?.insertMarkdown(markdown),
|
|
58160
|
+
setMarkdown: (markdown) => editorRef.current?.setMarkdown(markdown)
|
|
58161
|
+
}),
|
|
58162
|
+
[currentValue]
|
|
58163
|
+
);
|
|
58164
|
+
useEffect(() => {
|
|
58165
|
+
if (!isControlled || !editorRef.current) return;
|
|
58166
|
+
const nextValue = value ?? "";
|
|
58167
|
+
if (editorRef.current.getMarkdown() !== nextValue) {
|
|
58168
|
+
editorRef.current.setMarkdown(nextValue);
|
|
58169
|
+
}
|
|
58170
|
+
}, [isControlled, value]);
|
|
58171
|
+
const updateValue = (nextValue, initialMarkdownNormalize) => {
|
|
58172
|
+
if (!isControlled) {
|
|
58173
|
+
setInternalValue(nextValue);
|
|
58174
|
+
}
|
|
58175
|
+
onChange?.(nextValue, initialMarkdownNormalize);
|
|
58176
|
+
};
|
|
58177
|
+
const handleBlur = (event) => {
|
|
58178
|
+
const nextTarget = event.relatedTarget;
|
|
58179
|
+
if (nextTarget instanceof Node && event.currentTarget.contains(nextTarget)) {
|
|
58180
|
+
return;
|
|
58181
|
+
}
|
|
58182
|
+
onBlur?.(event.nativeEvent);
|
|
58183
|
+
};
|
|
58184
|
+
const style2 = {
|
|
58185
|
+
minHeight: toCssSize3(minHeight),
|
|
58186
|
+
maxHeight: toCssSize3(maxHeight),
|
|
58187
|
+
"--eui-mdx-min-height": toCssSize3(minHeight),
|
|
58188
|
+
"--eui-mdx-max-height": toCssSize3(maxHeight)
|
|
58189
|
+
};
|
|
58190
|
+
return /* @__PURE__ */ jsx(
|
|
58191
|
+
"div",
|
|
58192
|
+
{
|
|
58193
|
+
id: id2,
|
|
58194
|
+
role: "group",
|
|
58195
|
+
"data-name": name2,
|
|
58196
|
+
"aria-label": ariaLabel,
|
|
58197
|
+
"aria-describedby": ariaDescribedBy,
|
|
58198
|
+
"aria-disabled": disabled || void 0,
|
|
58199
|
+
"aria-readonly": readOnly || void 0,
|
|
58200
|
+
"aria-required": required || void 0,
|
|
58201
|
+
"aria-invalid": invalid || void 0,
|
|
58202
|
+
onBlurCapture: handleBlur,
|
|
58203
|
+
className: classNames77(
|
|
58204
|
+
"eui-markdown-adapter",
|
|
58205
|
+
"eui-markdown-mdx-adapter",
|
|
58206
|
+
dark && ["dark", "dark-theme"],
|
|
58207
|
+
disabled && "is-disabled",
|
|
58208
|
+
readOnly && "is-read-only",
|
|
58209
|
+
invalid && "has-error",
|
|
58210
|
+
className
|
|
58211
|
+
),
|
|
58212
|
+
style: style2,
|
|
58213
|
+
children: /* @__PURE__ */ jsx(
|
|
58214
|
+
MDXEditor,
|
|
58215
|
+
{
|
|
58216
|
+
...props,
|
|
58217
|
+
ref: editorRef,
|
|
58218
|
+
markdown: currentValue ?? "",
|
|
58219
|
+
readOnly: disabled || readOnly,
|
|
58220
|
+
plugins: plugins ?? defaultPlugins,
|
|
58221
|
+
className: classNames77("eui-markdown-mdx-editor", editorClassName),
|
|
58222
|
+
contentEditableClassName: classNames77(
|
|
58223
|
+
"eui-markdown-mdx-content",
|
|
58224
|
+
contentEditableClassName
|
|
58225
|
+
),
|
|
58226
|
+
onChange: updateValue
|
|
58227
|
+
}
|
|
58228
|
+
)
|
|
58229
|
+
}
|
|
58230
|
+
);
|
|
58231
|
+
}
|
|
58232
|
+
);
|
|
58233
|
+
var MDXMarkdownEditor_default = MDXMarkdownEditor;
|
|
58234
|
+
function MDXMarkdownField({
|
|
58235
|
+
name: name2,
|
|
58236
|
+
validate,
|
|
58237
|
+
label,
|
|
58238
|
+
helperText,
|
|
58239
|
+
validateOnChange = true,
|
|
58240
|
+
validateOnBlur = true,
|
|
58241
|
+
wrapperClassName,
|
|
58242
|
+
labelClassName,
|
|
58243
|
+
helperTextClassName,
|
|
58244
|
+
...editorProps
|
|
58245
|
+
}) {
|
|
58246
|
+
const editorRef = useRef(null);
|
|
58247
|
+
const [field, meta, helpers] = useField({
|
|
58248
|
+
name: name2,
|
|
58249
|
+
validate
|
|
58250
|
+
});
|
|
58251
|
+
const editorId = editorProps.id || field.name;
|
|
58252
|
+
const helperId = helperText ? `${editorId}-help` : void 0;
|
|
58253
|
+
const errorId = `${editorId}-error`;
|
|
58254
|
+
const hasError = Boolean(meta.touched && meta.error);
|
|
58255
|
+
const describedBy = [helperId, hasError ? errorId : void 0].filter(Boolean).join(" ");
|
|
58256
|
+
return /* @__PURE__ */ jsxs(
|
|
58257
|
+
"div",
|
|
58258
|
+
{
|
|
58259
|
+
className: classNames77(
|
|
58260
|
+
"eui-markdown-mdx-field",
|
|
58261
|
+
"relative space-y-2",
|
|
58262
|
+
wrapperClassName
|
|
58263
|
+
),
|
|
58264
|
+
children: [
|
|
58265
|
+
label ? /* @__PURE__ */ jsxs(
|
|
58266
|
+
"label",
|
|
58267
|
+
{
|
|
58268
|
+
htmlFor: editorId,
|
|
58269
|
+
className: classNames77(
|
|
58270
|
+
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
58271
|
+
labelClassName
|
|
58272
|
+
),
|
|
58273
|
+
onClick: () => editorRef.current?.focus(),
|
|
58274
|
+
children: [
|
|
58275
|
+
label,
|
|
58276
|
+
editorProps.required ? /* @__PURE__ */ jsx("span", { className: "ml-1 text-red-600", "aria-hidden": "true", children: "*" }) : null
|
|
58277
|
+
]
|
|
58278
|
+
}
|
|
58279
|
+
) : null,
|
|
58280
|
+
/* @__PURE__ */ jsx(
|
|
58281
|
+
MDXMarkdownEditor_default,
|
|
58282
|
+
{
|
|
58283
|
+
...editorProps,
|
|
58284
|
+
ref: editorRef,
|
|
58285
|
+
id: editorId,
|
|
58286
|
+
name: field.name,
|
|
58287
|
+
value: field.value ?? "",
|
|
58288
|
+
invalid: hasError,
|
|
58289
|
+
ariaLabel: editorProps.ariaLabel ?? label,
|
|
58290
|
+
ariaDescribedBy: describedBy || void 0,
|
|
58291
|
+
onChange: (nextValue) => {
|
|
58292
|
+
void helpers.setValue(nextValue, validateOnChange);
|
|
58293
|
+
},
|
|
58294
|
+
onBlur: () => {
|
|
58295
|
+
void helpers.setTouched(true, validateOnBlur);
|
|
58296
|
+
}
|
|
58297
|
+
}
|
|
58298
|
+
),
|
|
58299
|
+
helperText ? /* @__PURE__ */ jsx(
|
|
58300
|
+
"p",
|
|
58301
|
+
{
|
|
58302
|
+
id: helperId,
|
|
58303
|
+
className: classNames77(
|
|
58304
|
+
"text-sm text-gray-500 dark:text-gray-400",
|
|
58305
|
+
helperTextClassName
|
|
58306
|
+
),
|
|
58307
|
+
children: helperText
|
|
58308
|
+
}
|
|
58309
|
+
) : null,
|
|
58310
|
+
/* @__PURE__ */ jsx("div", { id: errorId, role: hasError ? "alert" : void 0, children: /* @__PURE__ */ jsx(
|
|
58311
|
+
InputResponse_default,
|
|
58312
|
+
{
|
|
58313
|
+
name: field.name,
|
|
58314
|
+
visibility: hasError,
|
|
58315
|
+
variant: "danger"
|
|
58316
|
+
}
|
|
58317
|
+
) })
|
|
58318
|
+
]
|
|
58319
|
+
}
|
|
58320
|
+
);
|
|
58321
|
+
}
|
|
58322
|
+
var MDXMarkdownField_default = MDXMarkdownField;
|
|
57414
58323
|
function resolveSize(value) {
|
|
57415
58324
|
if (value === void 0) return void 0;
|
|
57416
58325
|
return typeof value === "number" ? `${value}px` : value;
|
|
@@ -57451,10 +58360,10 @@ function MarkdownLayout({
|
|
|
57451
58360
|
};
|
|
57452
58361
|
const hasLeftToc = hasToc && tocPosition === "left";
|
|
57453
58362
|
const hasRightToc = hasToc && tocPosition === "right";
|
|
57454
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
58363
|
+
return /* @__PURE__ */ jsx("div", { className: classNames77("eui-markdown-layout", "w-full", className), children: /* @__PURE__ */ jsxs(
|
|
57455
58364
|
"div",
|
|
57456
58365
|
{
|
|
57457
|
-
className:
|
|
58366
|
+
className: classNames77(
|
|
57458
58367
|
"eui-markdown-layout-container",
|
|
57459
58368
|
"mx-auto w-full px-4 sm:px-6 lg:px-8",
|
|
57460
58369
|
containerClassName
|
|
@@ -57466,7 +58375,7 @@ function MarkdownLayout({
|
|
|
57466
58375
|
header ? /* @__PURE__ */ jsx(
|
|
57467
58376
|
"header",
|
|
57468
58377
|
{
|
|
57469
|
-
className:
|
|
58378
|
+
className: classNames77(
|
|
57470
58379
|
"eui-markdown-layout-header",
|
|
57471
58380
|
"mb-8",
|
|
57472
58381
|
headerClassName
|
|
@@ -57477,7 +58386,7 @@ function MarkdownLayout({
|
|
|
57477
58386
|
/* @__PURE__ */ jsxs(
|
|
57478
58387
|
"div",
|
|
57479
58388
|
{
|
|
57480
|
-
className:
|
|
58389
|
+
className: classNames77(
|
|
57481
58390
|
"eui-markdown-layout-grid",
|
|
57482
58391
|
"grid grid-cols-1 gap-8",
|
|
57483
58392
|
hasSidebar && hasToc && "xl:grid-cols-[16rem_minmax(0,1fr)_18rem]",
|
|
@@ -57490,7 +58399,7 @@ function MarkdownLayout({
|
|
|
57490
58399
|
hasSidebar ? /* @__PURE__ */ jsx(
|
|
57491
58400
|
"aside",
|
|
57492
58401
|
{
|
|
57493
|
-
className:
|
|
58402
|
+
className: classNames77(
|
|
57494
58403
|
"eui-markdown-layout-sidebar",
|
|
57495
58404
|
"min-w-0",
|
|
57496
58405
|
stickySidebar && "lg:sticky lg:self-start",
|
|
@@ -57503,7 +58412,7 @@ function MarkdownLayout({
|
|
|
57503
58412
|
hasLeftToc ? /* @__PURE__ */ jsx(
|
|
57504
58413
|
"aside",
|
|
57505
58414
|
{
|
|
57506
|
-
className:
|
|
58415
|
+
className: classNames77(
|
|
57507
58416
|
"eui-markdown-layout-toc",
|
|
57508
58417
|
"min-w-0",
|
|
57509
58418
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -57516,7 +58425,7 @@ function MarkdownLayout({
|
|
|
57516
58425
|
/* @__PURE__ */ jsx(
|
|
57517
58426
|
"main",
|
|
57518
58427
|
{
|
|
57519
|
-
className:
|
|
58428
|
+
className: classNames77(
|
|
57520
58429
|
"eui-markdown-layout-content",
|
|
57521
58430
|
"min-w-0",
|
|
57522
58431
|
contentClassName
|
|
@@ -57527,7 +58436,7 @@ function MarkdownLayout({
|
|
|
57527
58436
|
hasRightToc ? /* @__PURE__ */ jsx(
|
|
57528
58437
|
"aside",
|
|
57529
58438
|
{
|
|
57530
|
-
className:
|
|
58439
|
+
className: classNames77(
|
|
57531
58440
|
"eui-markdown-layout-toc",
|
|
57532
58441
|
"min-w-0",
|
|
57533
58442
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -57540,7 +58449,7 @@ function MarkdownLayout({
|
|
|
57540
58449
|
hasAside ? /* @__PURE__ */ jsx(
|
|
57541
58450
|
"aside",
|
|
57542
58451
|
{
|
|
57543
|
-
className:
|
|
58452
|
+
className: classNames77(
|
|
57544
58453
|
"eui-markdown-layout-aside",
|
|
57545
58454
|
"min-w-0",
|
|
57546
58455
|
stickyAside && "2xl:sticky 2xl:self-start",
|
|
@@ -57556,7 +58465,7 @@ function MarkdownLayout({
|
|
|
57556
58465
|
footer2 ? /* @__PURE__ */ jsx(
|
|
57557
58466
|
"footer",
|
|
57558
58467
|
{
|
|
57559
|
-
className:
|
|
58468
|
+
className: classNames77(
|
|
57560
58469
|
"eui-markdown-layout-footer",
|
|
57561
58470
|
"mt-10",
|
|
57562
58471
|
footerClassName
|
|
@@ -57593,7 +58502,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57593
58502
|
const resolvedHeader = header ?? (title || description || headerActions ? /* @__PURE__ */ jsx(
|
|
57594
58503
|
"div",
|
|
57595
58504
|
{
|
|
57596
|
-
className:
|
|
58505
|
+
className: classNames77(
|
|
57597
58506
|
"eui-markdown-docs-header",
|
|
57598
58507
|
"flex flex-col gap-4 border-b border-gray-200 pb-6",
|
|
57599
58508
|
"dark:border-gray-700",
|
|
@@ -57604,7 +58513,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57604
58513
|
title ? /* @__PURE__ */ jsx(
|
|
57605
58514
|
"h1",
|
|
57606
58515
|
{
|
|
57607
|
-
className:
|
|
58516
|
+
className: classNames77(
|
|
57608
58517
|
"eui-markdown-docs-title",
|
|
57609
58518
|
"text-3xl font-bold tracking-tight text-gray-950",
|
|
57610
58519
|
"dark:text-gray-50",
|
|
@@ -57616,7 +58525,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57616
58525
|
description ? /* @__PURE__ */ jsx(
|
|
57617
58526
|
"div",
|
|
57618
58527
|
{
|
|
57619
|
-
className:
|
|
58528
|
+
className: classNames77(
|
|
57620
58529
|
"eui-markdown-docs-description",
|
|
57621
58530
|
"max-w-3xl text-base leading-7 text-gray-600",
|
|
57622
58531
|
"dark:text-gray-400",
|
|
@@ -57704,7 +58613,7 @@ function GenericLayout({
|
|
|
57704
58613
|
return /* @__PURE__ */ jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsx(
|
|
57705
58614
|
"div",
|
|
57706
58615
|
{
|
|
57707
|
-
className:
|
|
58616
|
+
className: classNames77({
|
|
57708
58617
|
[`${styles}`]: styles
|
|
57709
58618
|
}),
|
|
57710
58619
|
children: children3
|
|
@@ -57753,7 +58662,7 @@ function SidemenuLayout({ data, children: children3 }) {
|
|
|
57753
58662
|
return /* @__PURE__ */ jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxs(
|
|
57754
58663
|
"div",
|
|
57755
58664
|
{
|
|
57756
|
-
className:
|
|
58665
|
+
className: classNames77({
|
|
57757
58666
|
grid: true,
|
|
57758
58667
|
"grid-cols-7 gap-10": !isMobile,
|
|
57759
58668
|
"grid-cols-1 gap-": isMobile
|
|
@@ -57812,6 +58721,6 @@ function ScrollToTop({
|
|
|
57812
58721
|
}
|
|
57813
58722
|
var ScrollToTop_default = ScrollToTop;
|
|
57814
58723
|
|
|
57815
|
-
export { Accordion_default as Accordion, AreaPlot, AsyncComponentWrapper_default as AsyncComponentWrapper, Avatar, Backdrop_default as Backdrop, Badge, BarPlot, BaseChartDataSource, Block_default as Block, BlockGroup_default as BlockGroup, BoxNav_default as BoxNav, BoxNavItem_default as BoxNavItem, Brand_default as Brand, Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, Button_default as Button, CHART_COLOR_PALETTE, CHART_DARK_THEME, CHART_DATA_MODES, CHART_DEFAULT_ACTIVE_DOT_RADIUS, CHART_DEFAULT_ANIMATION_DURATION, CHART_DEFAULT_BAR_RADIUS, CHART_DEFAULT_DOT_RADIUS, CHART_DEFAULT_HEIGHT, CHART_DEFAULT_MARGIN, CHART_DEFAULT_MAX_REALTIME_POINTS, CHART_DEFAULT_POLLING_INTERVAL, CHART_DEFAULT_STROKE_WIDTH, CHART_EMPTY_MESSAGE, CHART_ERROR_MESSAGE, CHART_LIGHT_THEME, CHART_LOADING_MESSAGE, CHART_STATUSES, CHART_STATUS_COLORS, CHART_VALUE_FORMATS, Caption, Card_default as Card, CardContent_default as CardContent, CardFooter_default as CardFooter, CardHeader_default as CardHeader, Chapter, Chart, ChartContainer, ChartContext, ChartEmptyState, ChartErrorState, ChartHeader, ChartLegend, ChartLoadingState, ChartPanel, ChartProvider, ChartToolbar, ChartTooltip, Checkbox_default as Checkbox, Chip, CloudinaryImage_default as CloudinaryImage, CloudinaryProvider, CloudinaryVideo_default as CloudinaryVideo, Code, CommentThread_default as CommentThread, ConfigBootstrap_default as ConfigBootstrap, Configurator, ConfiguratorError, Content, ContentArea_default as ContentArea, DEFAULT_CHART_THEME, DEFAULT_REVIEW_THREAD_CONFIG, DataView2 as DataView, DataViewTable_default as DataViewTable, DateSelector_default as DateSelector, DefaultLayout_default as DefaultLayout, Display, DocumentationPanel_default as DocumentationPanel, Drawer, DrawerToggler_default as DrawerToggler, EUIDevLayout_default as EUIDevLayout, EUIProvider, EnvErrorScreen_default as EnvErrorScreen, Flag, Flex, FlexCol_default as FlexCol, FlexRow_default as FlexRow, Footer, FooterNav_default as FooterNav, FooterNavGroup_default as FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse_default as FormResponse, GaugePlot, GenericLayout_default as GenericLayout, GlowWrapper_default as GlowWrapper, Graph, GraphEdge, GraphNode, GraphRenderer, Grid_default as Grid, Header, HeaderNav_default as HeaderNav, HeaderNavGroup_default as HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout_default as HomeLayout, Image2 as Image, ImageInput_default as ImageInput, InfiniteScrollTrigger_default as InfiniteScrollTrigger, Info_default as Info, Input, InputFile, InputLabel_default as InputLabel, InputList, InputListGroup, InputResponse_default as InputResponse, Label, Layout, Lead, LinePlot, Link, List_default as List, ListItem_default as ListItem, MarkdownBlockquote_default as MarkdownBlockquote, MarkdownCodeBlock_default as MarkdownCodeBlock, MarkdownContext, MarkdownDocsLayout_default as MarkdownDocsLayout, MarkdownEditor_default as MarkdownEditor, MarkdownField_default as MarkdownField, MarkdownHeading_default as MarkdownHeadingComponent, MarkdownImage_default as MarkdownImage, MarkdownInlineCode_default as MarkdownInlineCode, MarkdownLayout_default as MarkdownLayout, MarkdownLink_default as MarkdownLink, MarkdownPreviewPane_default as MarkdownPreviewPane, MarkdownProvider_default as MarkdownProvider, MarkdownRenderer_default as MarkdownRenderer, MarkdownSourceEditor_default as MarkdownSourceEditor, MarkdownSplitEditor_default as MarkdownSplitEditor, MarkdownTOC_default as MarkdownTOC, MarkdownTOCItem_default as MarkdownTOCItem, MarkdownTable_default as MarkdownTable, MarkdownTableCell, MarkdownTableHeaderCell, MarkdownToolbar_default as MarkdownToolbar, MarkdownViewer_default as MarkdownViewer, Menu, MenuGroup, MenuItem, MenuItemTitle, Modal_default as Modal, MotionSurface_default as MotionSurface, MultiImageInput_default as MultiImageInput, NumericRating_default as NumericRating, Overline, Paragraph, PiePlot, PollingChartDataSource, PriceTag, ProgressBar, ProgressBarRating_default as ProgressBarRating, Quote, Radio_default as Radio, RealtimeChartDataSource, ReviewThread_default as ReviewThread, RouteTab_default as RouteTab, RouteTabs_default as RouteTabs, ScatterPlot, ScrollToTop_default as ScrollToTop, Section, Select_default as Select, ShapeSwitch, ShowMore_default as ShowMore, Sidebar_default as Sidebar, SidebarLayout_default as SidebarLayout, SidemenuLayout_default as SidemenuLayout, Skeleton, Slider_default as Slider, Spinner_default as Spinner, StarRating_default as StarRating, StarRatingDistribution_default as StarRatingDistribution, StarRatingInput_default as StarRatingInput, StatPlot, StaticChartDataSource, Switch_default as Switch, TNDropdown, TNDropdownItem, TNDropdownTitle, TNGroup, Table_default as Table, Tag_default as Tag, Tags_default as Tags, TextArea_default as TextArea, ThemeContext, ThemeProvider, ThemeSwitch, TitleBanner, Toast, Tooltip6 as Tooltip, TopNav, Transition, TransitionAccordion_default as TransitionAccordion, TransitionBase_default as TransitionBase, TransitionDropdown_default as TransitionDropdown, TransitionFade_default as TransitionFade, TransitionFadeIn_default as TransitionFadeIn, TransitionScale_default as TransitionScale, TransitionSlide_default as TransitionSlide, Typography, UnderConstructionBanner, ValueBadge_default as ValueBadge, WorldMap, WorldMapCountryTable, YoutubeVideo_default as YoutubeVideoPlayer, addReplyToCache, addReviewReply, appendReview, applyReactionState, assertAbsoluteURL, buildURL, canDeleteReview, canDeleteReviewReply, canEditReview, canEditReviewReply, canReplyToReview, canReportReview, canReportReviewReply, chartReducer, cn, createConfigurator, createForceLayout, createGridLayout, createHeadingSlug, createInitialChartState, createTreeLayout, createURLResolver, decrementReplyCount, enumValues, euiToast, extractHeadings, findReview, formatChartValue, formatCommentDate, formatConfigError, formatReviewDate, generateHeadingNumbers, getAllowedOrigins, getBrowserHref, getBrowserOrigin, getBrowserRedirectURL, getCurrencySymbol, getLayout, getOptimisticDislikeState, getOptimisticLikeState, getSafeRedirect, hasReviewReply, incrementReplyCount, isMatch, isRenderFn, limitRealtimePoints, normalize, normalizeChartData, normalizeChartDataPoint, normalizeMarkdown, normalizeReview, normalizeReviewAuthor, normalizeReviewReply, parseJson, parseJsonRecord, parseUrlMap, prependReview, registerLayout, removeComment, removeCommentTreeFromCache, removeReview, removeReviewReply, replaceRealtimePoints, replaceReview, replaceReviewReply, resolveAppearanceStyles, resolveChartColor, resolveChartColors, resolveWithGlobal, sanitizeHeading, sendToast, slugify, toConfiguratorError, updateComment, updateReplyCacheComment, updateReview, updateReviewReply, upsertReview, useActiveHeading, useChartContext, useChartData, useChartPolling, useChartRealtime, useChartSeries, useChartTheme, useClickOutside, useCloudinaryConfig, useCurrentTheme_default as useCurrentTheme, useDrawer_default as useDrawer, useEUIConfig, useIsMobile_default as useIsMobile, useMarkdown, useMarkdownHeadings, useModal_default as useModal, useReviewThreadState, useTheme_default as useTheme };
|
|
58724
|
+
export { Accordion_default as Accordion, AreaPlot, AsyncComponentWrapper_default as AsyncComponentWrapper, Avatar, Backdrop_default as Backdrop, Badge, BarPlot, BaseChartDataSource, Block_default as Block, BlockGroup_default as BlockGroup, BoxNav_default as BoxNav, BoxNavItem_default as BoxNavItem, Brand_default as Brand, Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, Button_default as Button, CHART_COLOR_PALETTE, CHART_DARK_THEME, CHART_DATA_MODES, CHART_DEFAULT_ACTIVE_DOT_RADIUS, CHART_DEFAULT_ANIMATION_DURATION, CHART_DEFAULT_BAR_RADIUS, CHART_DEFAULT_DOT_RADIUS, CHART_DEFAULT_HEIGHT, CHART_DEFAULT_MARGIN, CHART_DEFAULT_MAX_REALTIME_POINTS, CHART_DEFAULT_POLLING_INTERVAL, CHART_DEFAULT_STROKE_WIDTH, CHART_EMPTY_MESSAGE, CHART_ERROR_MESSAGE, CHART_LIGHT_THEME, CHART_LOADING_MESSAGE, CHART_STATUSES, CHART_STATUS_COLORS, CHART_VALUE_FORMATS, Caption, Card_default as Card, CardContent_default as CardContent, CardFooter_default as CardFooter, CardHeader_default as CardHeader, Chapter, Chart, ChartContainer, ChartContext, ChartEmptyState, ChartErrorState, ChartHeader, ChartLegend, ChartLoadingState, ChartPanel, ChartProvider, ChartToolbar, ChartTooltip, Checkbox_default as Checkbox, Chip, CloudinaryImage_default as CloudinaryImage, CloudinaryProvider, CloudinaryVideo_default as CloudinaryVideo, Code, CodeMirrorMarkdownEditor_default as CodeMirrorMarkdownEditor, CommentThread_default as CommentThread, ConfigBootstrap_default as ConfigBootstrap, Configurator, ConfiguratorError, Content, ContentArea_default as ContentArea, DEFAULT_CHART_THEME, DEFAULT_REVIEW_THREAD_CONFIG, DataView2 as DataView, DataViewTable_default as DataViewTable, DateSelector_default as DateSelector, DefaultLayout_default as DefaultLayout, Display, DocumentationPanel_default as DocumentationPanel, Drawer, DrawerToggler_default as DrawerToggler, EUIDevLayout_default as EUIDevLayout, EUIProvider, EnvErrorScreen_default as EnvErrorScreen, Flag, Flex, FlexCol_default as FlexCol, FlexRow_default as FlexRow, Footer, FooterNav_default as FooterNav, FooterNavGroup_default as FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse_default as FormResponse, GaugePlot, GenericLayout_default as GenericLayout, GlowWrapper_default as GlowWrapper, Graph, GraphEdge, GraphNode, GraphRenderer, Grid_default as Grid, Header, HeaderNav_default as HeaderNav, HeaderNavGroup_default as HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout_default as HomeLayout, Image2 as Image, ImageInput_default as ImageInput, InfiniteScrollTrigger_default as InfiniteScrollTrigger, Info_default as Info, Input, InputFile, InputLabel_default as InputLabel, InputList, InputListGroup, InputResponse_default as InputResponse, Label, Layout, Lead, LinePlot, Link, List_default as List, ListItem_default as ListItem, ListItemElement, ListRoot, MDXMarkdownEditor_default as MDXMarkdownEditor, MDXMarkdownField_default as MDXMarkdownField, MarkdownBlockquote_default as MarkdownBlockquote, MarkdownBreak_default as MarkdownBreak, MarkdownCodeBlock_default as MarkdownCodeBlock, MarkdownContext, MarkdownDetails, MarkdownDocsLayout_default as MarkdownDocsLayout, MarkdownEditor_default as MarkdownEditor, MarkdownEmphasis_default as MarkdownEmphasis, MarkdownField_default as MarkdownField, MarkdownFigcaption, MarkdownFigure, MarkdownHeading_default as MarkdownHeadingComponent, MarkdownImage_default as MarkdownImage, MarkdownInlineCode_default as MarkdownInlineCode, MarkdownLayout_default as MarkdownLayout, MarkdownLink_default as MarkdownLink, MarkdownListItem_default as MarkdownListItem, MarkdownOrderedList, MarkdownParagraph_default as MarkdownParagraph, MarkdownPreviewPane_default as MarkdownPreviewPane, MarkdownProvider_default as MarkdownProvider, MarkdownRenderer_default as MarkdownRenderer, MarkdownSourceEditor_default as MarkdownSourceEditor, MarkdownSplitEditor_default as MarkdownSplitEditor, MarkdownStrikethrough_default as MarkdownStrikethrough, MarkdownStrong_default as MarkdownStrong, MarkdownSummary, MarkdownTOC_default as MarkdownTOC, MarkdownTOCItem_default as MarkdownTOCItem, MarkdownTable_default as MarkdownTable, MarkdownTableBody, MarkdownTableCell, MarkdownTableHead, MarkdownTableHeaderCell, MarkdownTableRow, MarkdownTaskCheckbox_default as MarkdownTaskCheckbox, MarkdownThematicBreak_default as MarkdownThematicBreak, MarkdownToolbar_default as MarkdownToolbar, MarkdownUnorderedList, MarkdownViewer_default as MarkdownViewer, Menu, MenuGroup, MenuItem, MenuItemTitle, Modal_default as Modal, MotionSurface_default as MotionSurface, MultiImageInput_default as MultiImageInput, NumericRating_default as NumericRating, Overline, Paragraph, PiePlot, PollingChartDataSource, PriceTag, ProgressBar, ProgressBarRating_default as ProgressBarRating, Quote, Radio_default as Radio, RealtimeChartDataSource, ReviewThread_default as ReviewThread, RouteTab_default as RouteTab, RouteTabs_default as RouteTabs, ScatterPlot, ScrollToTop_default as ScrollToTop, Section, Select_default as Select, ShapeSwitch, ShowMore_default as ShowMore, Sidebar_default as Sidebar, SidebarLayout_default as SidebarLayout, SidemenuLayout_default as SidemenuLayout, Skeleton, Slider_default as Slider, Spinner_default as Spinner, StarRating_default as StarRating, StarRatingDistribution_default as StarRatingDistribution, StarRatingInput_default as StarRatingInput, StatPlot, StaticChartDataSource, Switch_default as Switch, TNDropdown, TNDropdownItem, TNDropdownTitle, TNGroup, Table_default as Table, TableBody, TableCell, TableElement, TableFrame, TableHead, TableHeaderCell, TableRow, Tag_default as Tag, Tags_default as Tags, TextArea_default as TextArea, ThemeContext, ThemeProvider, ThemeSwitch, TitleBanner, Toast, Tooltip6 as Tooltip, TopNav, Transition, TransitionAccordion_default as TransitionAccordion, TransitionBase_default as TransitionBase, TransitionDropdown_default as TransitionDropdown, TransitionFade_default as TransitionFade, TransitionFadeIn_default as TransitionFadeIn, TransitionScale_default as TransitionScale, TransitionSlide_default as TransitionSlide, Typography, UnderConstructionBanner, ValueBadge_default as ValueBadge, WorldMap, WorldMapCountryTable, YoutubeVideo_default as YoutubeVideoPlayer, addReplyToCache, addReviewReply, appendReview, applyReactionState, assertAbsoluteURL, buildURL, canDeleteReview, canDeleteReviewReply, canEditReview, canEditReviewReply, canReplyToReview, canReportReview, canReportReviewReply, chartReducer, cn, createConfigurator, createForceLayout, createGridLayout, createHeadingSlug, createInitialChartState, createTreeLayout, createURLResolver, decrementReplyCount, enumValues, euiToast, extractHeadings, findReview, formatChartValue, formatCommentDate, formatConfigError, formatReviewDate, generateHeadingNumbers, getAllowedOrigins, getBrowserHref, getBrowserOrigin, getBrowserRedirectURL, getCurrencySymbol, getLayout, getOptimisticDislikeState, getOptimisticLikeState, getSafeRedirect, hasReviewReply, incrementReplyCount, isMatch, isRenderFn, limitRealtimePoints, normalize, normalizeChartData, normalizeChartDataPoint, normalizeMarkdown, normalizeReview, normalizeReviewAuthor, normalizeReviewReply, parseJson, parseJsonRecord, parseUrlMap, prependReview, registerLayout, removeComment, removeCommentTreeFromCache, removeReview, removeReviewReply, replaceRealtimePoints, replaceReview, replaceReviewReply, resolveAppearanceStyles, resolveChartColor, resolveChartColors, resolveWithGlobal, sanitizeHeading, sendToast, slugify, toConfiguratorError, updateComment, updateReplyCacheComment, updateReview, updateReviewReply, upsertReview, useActiveHeading, useChartContext, useChartData, useChartPolling, useChartRealtime, useChartSeries, useChartTheme, useClickOutside, useCloudinaryConfig, useCurrentTheme_default as useCurrentTheme, useDrawer_default as useDrawer, useEUIConfig, useIsMobile_default as useIsMobile, useMarkdown, useMarkdownHeadings, useModal_default as useModal, useReviewThreadState, useTheme_default as useTheme };
|
|
57816
58725
|
//# sourceMappingURL=index.mjs.map
|
|
57817
58726
|
//# sourceMappingURL=index.mjs.map
|