elseware-ui 3.0.0 → 3.0.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/LICENSE +20 -20
- package/README.md +289 -289
- package/dist/index.css +360 -286
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +10 -45
- package/dist/index.d.ts +10 -45
- package/dist/index.js +615 -374
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +612 -371
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.d.mts +13 -4
- package/dist/index.native.d.ts +13 -4
- package/dist/index.native.js +604 -42
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +603 -45
- package/dist/index.native.mjs.map +1 -1
- package/dist/{resolveGlobalConfigs-CcaOIQCE.d.mts → resolveGlobalConfigs-Cuiq_Zix.d.mts} +68 -8
- package/dist/{resolveGlobalConfigs-CcaOIQCE.d.ts → resolveGlobalConfigs-Cuiq_Zix.d.ts} +68 -8
- package/package.json +173 -171
- package/tailwind.preset.js +116 -116
package/dist/index.mjs
CHANGED
|
@@ -3,8 +3,8 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
3
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
4
|
import { AiOutlineLoading } from 'react-icons/ai/index.js';
|
|
5
5
|
import { useField, ErrorMessage, Field, useFormikContext, FieldArray, Formik, Form as Form$1 } from 'formik';
|
|
6
|
-
import classNames77 from 'classnames';
|
|
7
6
|
import { FaGripVertical, FaTrash, FaPlus, FaTimes, FaBars, FaSun, FaMoon, FaEyeSlash, FaEye, FaCircle } from 'react-icons/fa/index.js';
|
|
7
|
+
import classNames74 from 'classnames';
|
|
8
8
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
9
9
|
import { Image, CloudinaryContext as CloudinaryContext$1 } from 'cloudinary-react';
|
|
10
10
|
import { MdUpload, MdOutlineDone, MdOutlineRemoveCircleOutline } from 'react-icons/md/index.js';
|
|
@@ -6085,14 +6085,14 @@ var Shape = /* @__PURE__ */ ((Shape2) => {
|
|
|
6085
6085
|
// src/data/styles.tsx
|
|
6086
6086
|
var variantsSolid = {
|
|
6087
6087
|
["default" /* default */]: "bg-gray-300 text-gray-900 hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-100 dark:hover:bg-gray-600",
|
|
6088
|
-
["primary" /* primary */]: "bg-
|
|
6089
|
-
["secondary" /* secondary */]: "bg-
|
|
6090
|
-
["success" /* success */]: "bg-
|
|
6091
|
-
["danger" /* danger */]: "bg-
|
|
6092
|
-
["warning" /* warning */]: "bg-
|
|
6093
|
-
["info" /* info */]: "bg-
|
|
6094
|
-
["light" /* light */]: "bg-
|
|
6095
|
-
["dark" /* dark */]: "bg-
|
|
6088
|
+
["primary" /* primary */]: "bg-eui-primary-500 text-white hover:bg-eui-primary-600",
|
|
6089
|
+
["secondary" /* secondary */]: "bg-eui-secondary-500 text-white hover:bg-eui-secondary-600",
|
|
6090
|
+
["success" /* success */]: "bg-eui-success-500 text-white hover:bg-eui-success-600",
|
|
6091
|
+
["danger" /* danger */]: "bg-eui-danger-500 text-white hover:bg-eui-danger-600",
|
|
6092
|
+
["warning" /* warning */]: "bg-eui-warning-500 text-black hover:bg-eui-warning-400",
|
|
6093
|
+
["info" /* info */]: "bg-eui-info-500 text-white hover:bg-eui-info-600",
|
|
6094
|
+
["light" /* light */]: "bg-eui-light-400 text-gray-900 hover:bg-eui-light-300 dark:bg-gray-200 dark:text-gray-900 dark:hover:bg-gray-100",
|
|
6095
|
+
["dark" /* dark */]: "bg-eui-dark-500 text-white hover:bg-eui-dark-400 dark:bg-eui-dark-400 dark:hover:bg-eui-dark-300"
|
|
6096
6096
|
};
|
|
6097
6097
|
var variantsLite = {
|
|
6098
6098
|
["default" /* default */]: "bg-gray-500/10 border border-gray-300 text-gray-700 dark:bg-gray-400/10 dark:border-gray-700 dark:text-gray-200",
|
|
@@ -6178,17 +6178,6 @@ var cardBgVariants = {
|
|
|
6178
6178
|
["light" /* light */]: "bg-eui-light-500/10",
|
|
6179
6179
|
["dark" /* dark */]: "bg-eui-dark-500/20"
|
|
6180
6180
|
};
|
|
6181
|
-
var checkboxVariants = {
|
|
6182
|
-
["default" /* default */]: "checked:bg-gray-600 checked:border-gray-600 dark:checked:bg-gray-500 dark:checked:border-gray-500",
|
|
6183
|
-
["primary" /* primary */]: "checked:bg-eui-primary-600 checked:border-eui-primary-600 dark:checked:bg-eui-primary-500 dark:checked:border-eui-primary-500",
|
|
6184
|
-
["secondary" /* secondary */]: "checked:bg-eui-secondary-600 checked:border-eui-secondary-600 dark:checked:bg-eui-secondary-500 dark:checked:border-eui-secondary-500",
|
|
6185
|
-
["success" /* success */]: "checked:bg-eui-success-600 checked:border-eui-success-600 dark:checked:bg-eui-success-500 dark:checked:border-eui-success-500",
|
|
6186
|
-
["danger" /* danger */]: "checked:bg-eui-danger-600 checked:border-eui-danger-600 dark:checked:bg-eui-danger-500 dark:checked:border-eui-danger-500",
|
|
6187
|
-
["warning" /* warning */]: "checked:bg-eui-warning-500 checked:border-eui-warning-500 dark:checked:bg-eui-warning-400 dark:checked:border-eui-warning-400",
|
|
6188
|
-
["info" /* info */]: "checked:bg-eui-info-600 checked:border-eui-info-600 dark:checked:bg-eui-info-500 dark:checked:border-eui-info-500",
|
|
6189
|
-
["light" /* light */]: "checked:bg-eui-light-400 checked:border-eui-light-400 dark:checked:bg-gray-200 dark:checked:border-gray-200",
|
|
6190
|
-
["dark" /* dark */]: "checked:bg-eui-dark-500 checked:border-eui-dark-500 dark:checked:bg-eui-dark-300 dark:checked:border-eui-dark-300"
|
|
6191
|
-
};
|
|
6192
6181
|
var toastPositionStyles = {
|
|
6193
6182
|
["top-left" /* topLeft */]: "top-4 left-4 items-start",
|
|
6194
6183
|
["top-center" /* topCenter */]: "top-4 left-1/2 -translate-x-1/2 items-center",
|
|
@@ -6288,18 +6277,14 @@ function Button({
|
|
|
6288
6277
|
disabled = false,
|
|
6289
6278
|
block = false,
|
|
6290
6279
|
compact = false,
|
|
6280
|
+
glow = true,
|
|
6291
6281
|
mode,
|
|
6292
|
-
buttonColor,
|
|
6293
|
-
textColor,
|
|
6294
6282
|
contentClassName,
|
|
6295
6283
|
labelClassName,
|
|
6296
6284
|
variant,
|
|
6297
6285
|
appearance,
|
|
6298
6286
|
shape,
|
|
6299
6287
|
size,
|
|
6300
|
-
style: style2,
|
|
6301
|
-
contentStyle,
|
|
6302
|
-
labelStyle,
|
|
6303
6288
|
accessibilityLabel,
|
|
6304
6289
|
accessibilityRole,
|
|
6305
6290
|
accessibilityState,
|
|
@@ -6332,12 +6317,15 @@ function Button({
|
|
|
6332
6317
|
const iconSize = buttonIconSizes[resolvedSize];
|
|
6333
6318
|
const labelContent = text10 || children3;
|
|
6334
6319
|
const resolvedIcon = typeof icon === "function" ? icon({
|
|
6335
|
-
color:
|
|
6320
|
+
color: "currentColor",
|
|
6336
6321
|
size: iconSize
|
|
6337
6322
|
}) : icon;
|
|
6338
6323
|
const handleMouseMove = (e) => {
|
|
6339
6324
|
const btn = btnRef.current;
|
|
6340
|
-
if (!btn)
|
|
6325
|
+
if (!btn || !glow) {
|
|
6326
|
+
onMouseMove?.(e);
|
|
6327
|
+
return;
|
|
6328
|
+
}
|
|
6341
6329
|
const rect = btn.getBoundingClientRect();
|
|
6342
6330
|
const x3 = e.clientX - rect.left;
|
|
6343
6331
|
const y3 = e.clientY - rect.top;
|
|
@@ -6365,11 +6353,6 @@ function Button({
|
|
|
6365
6353
|
"aria-pressed": accessibility?.selected === void 0 ? void 0 : Boolean(accessibility.selected),
|
|
6366
6354
|
"data-testid": testID,
|
|
6367
6355
|
role: accessibilityRole,
|
|
6368
|
-
style: {
|
|
6369
|
-
background: buttonColor,
|
|
6370
|
-
color: textColor,
|
|
6371
|
-
...style2
|
|
6372
|
-
},
|
|
6373
6356
|
className: cn(
|
|
6374
6357
|
"relative overflow-hidden group inline-flex items-center justify-center gap-2 transition-all duration-300",
|
|
6375
6358
|
variantStyles,
|
|
@@ -6382,18 +6365,18 @@ function Button({
|
|
|
6382
6365
|
className
|
|
6383
6366
|
),
|
|
6384
6367
|
children: [
|
|
6385
|
-
/* @__PURE__ */ jsx(
|
|
6368
|
+
glow && /* @__PURE__ */ jsx(
|
|
6386
6369
|
"span",
|
|
6387
6370
|
{
|
|
6388
6371
|
className: "pointer-events-none absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-300",
|
|
6389
6372
|
style: {
|
|
6390
6373
|
background: `
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6374
|
+
radial-gradient(
|
|
6375
|
+
200px circle at var(--glow-x) var(--glow-y),
|
|
6376
|
+
rgba(255,255,255,0.18),
|
|
6377
|
+
transparent 50%
|
|
6378
|
+
)
|
|
6379
|
+
`
|
|
6397
6380
|
}
|
|
6398
6381
|
}
|
|
6399
6382
|
),
|
|
@@ -6408,8 +6391,7 @@ function Button({
|
|
|
6408
6391
|
style: {
|
|
6409
6392
|
height: iconSize,
|
|
6410
6393
|
lineHeight: 0,
|
|
6411
|
-
width: iconSize
|
|
6412
|
-
...contentStyle
|
|
6394
|
+
width: iconSize
|
|
6413
6395
|
},
|
|
6414
6396
|
children: resolvedIcon
|
|
6415
6397
|
}
|
|
@@ -6422,8 +6404,7 @@ function Button({
|
|
|
6422
6404
|
labelClassName
|
|
6423
6405
|
),
|
|
6424
6406
|
style: {
|
|
6425
|
-
minHeight: iconSize
|
|
6426
|
-
...labelStyle
|
|
6407
|
+
minHeight: iconSize
|
|
6427
6408
|
},
|
|
6428
6409
|
children: labelContent
|
|
6429
6410
|
}
|
|
@@ -6433,11 +6414,46 @@ function Button({
|
|
|
6433
6414
|
);
|
|
6434
6415
|
}
|
|
6435
6416
|
var Button_web_default = Button;
|
|
6417
|
+
|
|
6418
|
+
// src/components/data-entry/input/input-label/base/InputLabel.styles.ts
|
|
6419
|
+
var inputLabelStaticClassName = "pointer-events-none select-none px-0 text-[13.5px] leading-none text-[#6B7280]";
|
|
6420
|
+
var inputLabelBaseClassName = "pointer-events-none absolute left-3 z-10 select-none bg-white/95 px-1 font-medium leading-none dark:bg-eui-dark-800";
|
|
6421
|
+
var inputLabelTransitionClassName = "transition-all duration-200 ease-out";
|
|
6422
|
+
var inputLabelRestingClassName = "top-[18px] translate-y-0 text-base leading-none text-[#6B7280]";
|
|
6423
|
+
var inputLabelFloatingClassName = "top-1.5 translate-y-0 text-xs leading-none text-[#6B7280]";
|
|
6424
|
+
var inputLabelErrorClassName = "text-[#6B7280]";
|
|
6425
|
+
var inputLabelDisabledClassName = "opacity-60";
|
|
6426
|
+
function InputLabel({
|
|
6427
|
+
text: text10,
|
|
6428
|
+
children: children3,
|
|
6429
|
+
className,
|
|
6430
|
+
floating,
|
|
6431
|
+
errored = false,
|
|
6432
|
+
disabled = false,
|
|
6433
|
+
htmlFor
|
|
6434
|
+
}) {
|
|
6435
|
+
const isFloatingLabel = typeof floating === "boolean";
|
|
6436
|
+
return /* @__PURE__ */ jsx(
|
|
6437
|
+
"label",
|
|
6438
|
+
{
|
|
6439
|
+
htmlFor,
|
|
6440
|
+
className: cn(
|
|
6441
|
+
isFloatingLabel ? inputLabelBaseClassName : inputLabelStaticClassName,
|
|
6442
|
+
isFloatingLabel && inputLabelTransitionClassName,
|
|
6443
|
+
isFloatingLabel && (floating === true ? inputLabelFloatingClassName : inputLabelRestingClassName),
|
|
6444
|
+
errored && inputLabelErrorClassName,
|
|
6445
|
+
disabled && inputLabelDisabledClassName,
|
|
6446
|
+
className
|
|
6447
|
+
),
|
|
6448
|
+
children: text10 || children3
|
|
6449
|
+
}
|
|
6450
|
+
);
|
|
6451
|
+
}
|
|
6436
6452
|
var Backdrop = ({ children: children3, styles }) => {
|
|
6437
6453
|
return /* @__PURE__ */ jsx(
|
|
6438
6454
|
"div",
|
|
6439
6455
|
{
|
|
6440
|
-
className:
|
|
6456
|
+
className: classNames74({
|
|
6441
6457
|
"bg-black/75 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden": true,
|
|
6442
6458
|
[`${styles}`]: styles
|
|
6443
6459
|
}),
|
|
@@ -7027,7 +7043,7 @@ function renderTransitionChild(children3, className) {
|
|
|
7027
7043
|
}
|
|
7028
7044
|
const element7 = child;
|
|
7029
7045
|
return React26.cloneElement(element7, {
|
|
7030
|
-
className:
|
|
7046
|
+
className: classNames74(element7.props.className, className)
|
|
7031
7047
|
});
|
|
7032
7048
|
}
|
|
7033
7049
|
function TransitionBase({
|
|
@@ -7047,7 +7063,7 @@ function TransitionBase({
|
|
|
7047
7063
|
if (!mounted && unmountOnExit) {
|
|
7048
7064
|
return null;
|
|
7049
7065
|
}
|
|
7050
|
-
const transitionClassName =
|
|
7066
|
+
const transitionClassName = classNames74(
|
|
7051
7067
|
visibility ? enterClassName : leaveClassName,
|
|
7052
7068
|
active ? visibleClassName : hiddenClassName
|
|
7053
7069
|
);
|
|
@@ -7205,114 +7221,188 @@ var Transition = {
|
|
|
7205
7221
|
TransitionSlide: TransitionSlide_default,
|
|
7206
7222
|
TransitionAccordion: TransitionAccordion_default
|
|
7207
7223
|
};
|
|
7224
|
+
|
|
7225
|
+
// src/components/data-entry/input/input-response/base/InputResponse.styles.ts
|
|
7226
|
+
var inputResponseBaseClassName = "px-2 pt-1.5 text-sm font-medium";
|
|
7227
|
+
var inputResponseVariants = textVariants;
|
|
7208
7228
|
function InputResponse({
|
|
7209
7229
|
name: name2,
|
|
7210
7230
|
visibility = false,
|
|
7211
7231
|
variant = "default",
|
|
7212
|
-
|
|
7232
|
+
className,
|
|
7233
|
+
message
|
|
7213
7234
|
}) {
|
|
7214
|
-
return /* @__PURE__ */ jsx(Transition.
|
|
7235
|
+
return /* @__PURE__ */ jsx(Transition.TransitionFadeIn, { visibility, children: /* @__PURE__ */ jsx(
|
|
7215
7236
|
"div",
|
|
7216
7237
|
{
|
|
7217
|
-
className:
|
|
7218
|
-
|
|
7219
|
-
[
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
})
|
|
7223
|
-
children: /* @__PURE__ */ jsx(ErrorMessage, { name: name2 })
|
|
7238
|
+
className: cn(
|
|
7239
|
+
inputResponseBaseClassName,
|
|
7240
|
+
inputResponseVariants[variant],
|
|
7241
|
+
className
|
|
7242
|
+
),
|
|
7243
|
+
children: message ?? /* @__PURE__ */ jsx(ErrorMessage, { name: name2 })
|
|
7224
7244
|
}
|
|
7225
7245
|
) });
|
|
7226
7246
|
}
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
className: classNames77({
|
|
7233
|
-
"px-0 eui-text-sm text-[13.5px] pointer-events-none select-none": true,
|
|
7234
|
-
"transition-all ease-in-out": true,
|
|
7235
|
-
[`${styles}`]: styles
|
|
7236
|
-
}),
|
|
7237
|
-
children: text10 || children3
|
|
7238
|
-
}
|
|
7239
|
-
);
|
|
7247
|
+
function resolveInputType({
|
|
7248
|
+
passwordVisible,
|
|
7249
|
+
type: type2
|
|
7250
|
+
}) {
|
|
7251
|
+
return type2 === "password" && passwordVisible ? "text" : type2;
|
|
7240
7252
|
}
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7253
|
+
function useResolvedInputConfig({
|
|
7254
|
+
label,
|
|
7255
|
+
placeholder,
|
|
7256
|
+
shape,
|
|
7257
|
+
type: type2 = "text"
|
|
7258
|
+
}) {
|
|
7259
|
+
const eui = useEUIConfig();
|
|
7260
|
+
return {
|
|
7261
|
+
shape: shape ?? eui?.config?.global?.shape ?? "square",
|
|
7262
|
+
type: type2,
|
|
7263
|
+
label: label ?? placeholder
|
|
7252
7264
|
};
|
|
7265
|
+
}
|
|
7266
|
+
function useInputFieldState(props) {
|
|
7267
|
+
const [field, meta, helpers] = useField(props);
|
|
7268
|
+
return {
|
|
7269
|
+
field,
|
|
7270
|
+
meta,
|
|
7271
|
+
helpers
|
|
7272
|
+
};
|
|
7273
|
+
}
|
|
7274
|
+
|
|
7275
|
+
// src/components/data-entry/input/input/base/Input.styles.ts
|
|
7276
|
+
var inputShapes = shapes;
|
|
7277
|
+
var inputRootClassName = "relative w-full";
|
|
7278
|
+
var inputFrameClassName = "relative h-14 w-full overflow-hidden border bg-white/95 px-3 dark:bg-eui-dark-800";
|
|
7279
|
+
var inputFrameIdleClassName = "border-gray-300 hover:border-gray-400 dark:border-eui-dark-300 dark:hover:border-eui-dark-200";
|
|
7280
|
+
var inputFrameActiveClassName = "border-eui-secondary-600";
|
|
7281
|
+
var inputFrameErrorClassName = "border-eui-danger-500";
|
|
7282
|
+
var inputFrameDisabledClassName = "cursor-not-allowed opacity-60";
|
|
7283
|
+
var inputControlClassName = "w-full bg-transparent pt-5 pb-2 text-base font-medium text-gray-950 dark:text-gray-50";
|
|
7284
|
+
|
|
7285
|
+
// src/components/data-entry/input/input/web/Input.web.styles.ts
|
|
7286
|
+
var webInputControlClassName = "placeholder-transparent outline-none transition-all duration-200 ease-out";
|
|
7287
|
+
var webPasswordToggleClassName = "absolute right-3 top-[18px] cursor-pointer text-xl text-eui-dark-200 transition-colors duration-180 hover:text-eui-secondary-700";
|
|
7288
|
+
function PasswordVisibilityToggler({
|
|
7289
|
+
passwordVisible,
|
|
7290
|
+
onToggle
|
|
7291
|
+
}) {
|
|
7253
7292
|
return /* @__PURE__ */ jsx(
|
|
7254
7293
|
"div",
|
|
7255
7294
|
{
|
|
7256
|
-
className:
|
|
7257
|
-
onClick: () =>
|
|
7258
|
-
children:
|
|
7295
|
+
className: webPasswordToggleClassName,
|
|
7296
|
+
onClick: () => onToggle(!passwordVisible),
|
|
7297
|
+
children: passwordVisible ? /* @__PURE__ */ jsx(FaEyeSlash, {}) : /* @__PURE__ */ jsx(FaEye, {})
|
|
7259
7298
|
}
|
|
7260
7299
|
);
|
|
7261
|
-
}
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7300
|
+
}
|
|
7301
|
+
function Input(inputProps) {
|
|
7302
|
+
const {
|
|
7303
|
+
type: type2 = "text",
|
|
7304
|
+
id: id2,
|
|
7305
|
+
label,
|
|
7306
|
+
placeholder,
|
|
7307
|
+
inputClassName,
|
|
7308
|
+
labelClassName,
|
|
7309
|
+
responseClassName,
|
|
7310
|
+
step,
|
|
7311
|
+
shape,
|
|
7312
|
+
disabled = false,
|
|
7313
|
+
className,
|
|
7314
|
+
onBlur,
|
|
7315
|
+
onFocus,
|
|
7316
|
+
...props
|
|
7317
|
+
} = inputProps;
|
|
7318
|
+
const { field, meta } = useInputFieldState(inputProps);
|
|
7319
|
+
const [focused, setFocused] = useState(false);
|
|
7320
|
+
const [passwordVisible, setPasswordVisible] = useState(false);
|
|
7321
|
+
const {
|
|
7322
|
+
shape: resolvedShape,
|
|
7323
|
+
type: resolvedType,
|
|
7324
|
+
label: resolvedLabel
|
|
7325
|
+
} = useResolvedInputConfig({
|
|
7326
|
+
label,
|
|
7327
|
+
placeholder,
|
|
7328
|
+
shape,
|
|
7329
|
+
type: type2
|
|
7330
|
+
});
|
|
7331
|
+
const inputType = resolveInputType({
|
|
7332
|
+
passwordVisible,
|
|
7333
|
+
type: resolvedType
|
|
7334
|
+
});
|
|
7335
|
+
const hasError = Boolean(meta.touched && meta.error);
|
|
7336
|
+
const hasValue = String(field.value ?? "").length > 0;
|
|
7337
|
+
const floating = focused || hasValue;
|
|
7338
|
+
const inputId = id2 ?? field.name;
|
|
7339
|
+
const handleBlur = (event) => {
|
|
7340
|
+
setFocused(false);
|
|
7341
|
+
field.onBlur(event);
|
|
7342
|
+
onBlur?.(event);
|
|
7343
|
+
};
|
|
7344
|
+
const handleFocus = (event) => {
|
|
7345
|
+
setFocused(true);
|
|
7346
|
+
onFocus?.(event);
|
|
7347
|
+
};
|
|
7348
|
+
return /* @__PURE__ */ jsxs("div", { className: inputRootClassName, children: [
|
|
7276
7349
|
/* @__PURE__ */ jsx(
|
|
7277
7350
|
Field,
|
|
7278
7351
|
{
|
|
7279
|
-
type: inputType,
|
|
7280
|
-
step: inputType === "number" && step ? step : void 0,
|
|
7281
|
-
...field,
|
|
7282
7352
|
...props,
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7353
|
+
...field,
|
|
7354
|
+
disabled,
|
|
7355
|
+
id: inputId,
|
|
7356
|
+
onBlur: handleBlur,
|
|
7357
|
+
onFocus: handleFocus,
|
|
7358
|
+
placeholder: "",
|
|
7359
|
+
step: inputType === "number" && step ? step : void 0,
|
|
7360
|
+
type: inputType,
|
|
7361
|
+
className: cn(
|
|
7362
|
+
inputFrameClassName,
|
|
7363
|
+
inputControlClassName,
|
|
7364
|
+
webInputControlClassName,
|
|
7365
|
+
hasError ? inputFrameErrorClassName : focused ? inputFrameActiveClassName : inputFrameIdleClassName,
|
|
7366
|
+
inputShapes[resolvedShape],
|
|
7367
|
+
disabled && inputFrameDisabledClassName,
|
|
7368
|
+
className,
|
|
7369
|
+
inputClassName
|
|
7370
|
+
)
|
|
7292
7371
|
}
|
|
7293
7372
|
),
|
|
7294
7373
|
/* @__PURE__ */ jsx(
|
|
7295
|
-
|
|
7374
|
+
InputLabel,
|
|
7296
7375
|
{
|
|
7297
|
-
|
|
7298
|
-
|
|
7376
|
+
disabled,
|
|
7377
|
+
errored: hasError,
|
|
7378
|
+
floating,
|
|
7379
|
+
htmlFor: inputId,
|
|
7380
|
+
text: resolvedLabel,
|
|
7381
|
+
className: labelClassName
|
|
7299
7382
|
}
|
|
7300
7383
|
),
|
|
7301
|
-
type2 === "password"
|
|
7384
|
+
type2 === "password" ? /* @__PURE__ */ jsx(
|
|
7385
|
+
PasswordVisibilityToggler,
|
|
7386
|
+
{
|
|
7387
|
+
passwordVisible,
|
|
7388
|
+
onToggle: setPasswordVisible
|
|
7389
|
+
}
|
|
7390
|
+
) : null,
|
|
7302
7391
|
/* @__PURE__ */ jsx(
|
|
7303
|
-
|
|
7392
|
+
InputResponse,
|
|
7304
7393
|
{
|
|
7305
7394
|
name: field.name,
|
|
7306
|
-
visibility:
|
|
7307
|
-
variant: "danger"
|
|
7395
|
+
visibility: hasError,
|
|
7396
|
+
variant: "danger",
|
|
7397
|
+
className: responseClassName
|
|
7308
7398
|
}
|
|
7309
7399
|
)
|
|
7310
7400
|
] });
|
|
7311
|
-
}
|
|
7401
|
+
}
|
|
7312
7402
|
var InputFile = ({
|
|
7313
7403
|
placeholder,
|
|
7314
7404
|
accept = "",
|
|
7315
|
-
|
|
7405
|
+
className,
|
|
7316
7406
|
...props
|
|
7317
7407
|
}) => {
|
|
7318
7408
|
const fileInputRef = useRef(null);
|
|
@@ -7326,13 +7416,13 @@ var InputFile = ({
|
|
|
7326
7416
|
/* @__PURE__ */ jsx(
|
|
7327
7417
|
"div",
|
|
7328
7418
|
{
|
|
7329
|
-
className:
|
|
7419
|
+
className: classNames74(
|
|
7330
7420
|
"border rounded-sm bg-eui-primary-300/10 px-3 pt-3 text-md text-eui-dark-100 cursor-pointer h-[50px] flex items-center",
|
|
7331
7421
|
{
|
|
7332
7422
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
7333
7423
|
"border-eui-danger-500": meta.touched && meta.error
|
|
7334
7424
|
},
|
|
7335
|
-
|
|
7425
|
+
className
|
|
7336
7426
|
),
|
|
7337
7427
|
onClick: () => fileInputRef.current?.click(),
|
|
7338
7428
|
children: field.value?.name || ""
|
|
@@ -7349,10 +7439,10 @@ var InputFile = ({
|
|
|
7349
7439
|
}
|
|
7350
7440
|
),
|
|
7351
7441
|
/* @__PURE__ */ jsx(
|
|
7352
|
-
|
|
7442
|
+
InputLabel,
|
|
7353
7443
|
{
|
|
7354
7444
|
text: placeholder,
|
|
7355
|
-
|
|
7445
|
+
className: classNames74({
|
|
7356
7446
|
"absolute left-2 eui-text-sm peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none": true,
|
|
7357
7447
|
"top-[0.7px]": showFloatingLabel,
|
|
7358
7448
|
"top-[13px] text-base": !showFloatingLabel
|
|
@@ -7360,7 +7450,7 @@ var InputFile = ({
|
|
|
7360
7450
|
}
|
|
7361
7451
|
),
|
|
7362
7452
|
/* @__PURE__ */ jsx(
|
|
7363
|
-
|
|
7453
|
+
InputResponse,
|
|
7364
7454
|
{
|
|
7365
7455
|
name: field.name,
|
|
7366
7456
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -7401,11 +7491,11 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7401
7491
|
const fieldErrors = errors[name2];
|
|
7402
7492
|
const hasListError = Boolean(errors[name2]) && Boolean(touched[name2]) && typeof errors[name2] === "string";
|
|
7403
7493
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
7404
|
-
/* @__PURE__ */ jsx(
|
|
7494
|
+
/* @__PURE__ */ jsx(InputLabel, { text: placeholder }),
|
|
7405
7495
|
/* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(FieldArray, { name: name2, children: ({ push: push2, remove: remove2, move }) => /* @__PURE__ */ jsxs(
|
|
7406
7496
|
"div",
|
|
7407
7497
|
{
|
|
7408
|
-
className:
|
|
7498
|
+
className: classNames74(
|
|
7409
7499
|
"flex w-full flex-col space-y-2 bg-eui-primary-300/10",
|
|
7410
7500
|
shapes[resolvedShape]
|
|
7411
7501
|
),
|
|
@@ -7434,7 +7524,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7434
7524
|
ref: provided2.innerRef,
|
|
7435
7525
|
...draggableProps,
|
|
7436
7526
|
style: draggableStyle,
|
|
7437
|
-
className:
|
|
7527
|
+
className: classNames74(
|
|
7438
7528
|
"flex items-center space-x-2 bg-eui-primary-300/10 p-2",
|
|
7439
7529
|
shapes[resolvedShape]
|
|
7440
7530
|
),
|
|
@@ -7445,7 +7535,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7445
7535
|
{
|
|
7446
7536
|
name: `${name2}[${index3}]`,
|
|
7447
7537
|
placeholder: `Item ${index3 + 1}`,
|
|
7448
|
-
className:
|
|
7538
|
+
className: classNames74(
|
|
7449
7539
|
"peer h-[50px] w-full border bg-eui-primary-300/10 px-3 pb-2 pt-5 text-md placeholder-transparent placeholder-shown:p-3 focus:outline-none eui-text-md",
|
|
7450
7540
|
shapes[resolvedShape],
|
|
7451
7541
|
hasItemError ? "border-eui-danger-500" : "border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -7485,12 +7575,12 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7485
7575
|
}
|
|
7486
7576
|
),
|
|
7487
7577
|
/* @__PURE__ */ jsx(
|
|
7488
|
-
|
|
7578
|
+
InputResponse,
|
|
7489
7579
|
{
|
|
7490
7580
|
name: name2,
|
|
7491
7581
|
visibility: hasListError,
|
|
7492
7582
|
variant: "danger",
|
|
7493
|
-
|
|
7583
|
+
className: "pb-2"
|
|
7494
7584
|
}
|
|
7495
7585
|
)
|
|
7496
7586
|
]
|
|
@@ -7533,7 +7623,7 @@ var InputListGroup = ({
|
|
|
7533
7623
|
const groups = values[name2] ?? [];
|
|
7534
7624
|
const hasError = Boolean(errors[name2]) && Boolean(touched[name2]) && typeof errors[name2] === "string";
|
|
7535
7625
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-2", children: [
|
|
7536
|
-
/* @__PURE__ */ jsx(
|
|
7626
|
+
/* @__PURE__ */ jsx(InputLabel, { text: placeholder }),
|
|
7537
7627
|
/* @__PURE__ */ jsx(FieldArray, { name: name2, children: ({ push: push2, remove: remove2 }) => /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
7538
7628
|
groups.map((group, groupIndex) => {
|
|
7539
7629
|
const itemsFieldName = `${name2}[${groupIndex}].items`;
|
|
@@ -7541,7 +7631,7 @@ var InputListGroup = ({
|
|
|
7541
7631
|
return /* @__PURE__ */ jsxs(
|
|
7542
7632
|
"div",
|
|
7543
7633
|
{
|
|
7544
|
-
className:
|
|
7634
|
+
className: classNames74(
|
|
7545
7635
|
"flex flex-col gap-2 bg-eui-primary-300/10 p-3",
|
|
7546
7636
|
shapes[resolvedShape]
|
|
7547
7637
|
),
|
|
@@ -7553,7 +7643,7 @@ var InputListGroup = ({
|
|
|
7553
7643
|
{
|
|
7554
7644
|
name: `${name2}[${groupIndex}].name`,
|
|
7555
7645
|
placeholder: `Group ${groupIndex + 1}`,
|
|
7556
|
-
className:
|
|
7646
|
+
className: classNames74(
|
|
7557
7647
|
"h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
|
|
7558
7648
|
shapes[resolvedShape],
|
|
7559
7649
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -7584,7 +7674,7 @@ var InputListGroup = ({
|
|
|
7584
7674
|
{
|
|
7585
7675
|
ref: provided.innerRef,
|
|
7586
7676
|
...provided.droppableProps,
|
|
7587
|
-
className:
|
|
7677
|
+
className: classNames74(
|
|
7588
7678
|
"space-y-2 bg-eui-primary-300/10 p-2",
|
|
7589
7679
|
shapes[resolvedShape]
|
|
7590
7680
|
),
|
|
@@ -7604,7 +7694,7 @@ var InputListGroup = ({
|
|
|
7604
7694
|
ref: provided2.innerRef,
|
|
7605
7695
|
...draggableProps,
|
|
7606
7696
|
style: draggableStyle,
|
|
7607
|
-
className:
|
|
7697
|
+
className: classNames74(
|
|
7608
7698
|
"flex items-center gap-2 bg-eui-primary-300/10 p-2",
|
|
7609
7699
|
shapes[resolvedShape]
|
|
7610
7700
|
),
|
|
@@ -7615,7 +7705,7 @@ var InputListGroup = ({
|
|
|
7615
7705
|
{
|
|
7616
7706
|
name: `${itemsFieldName}[${itemIndex}]`,
|
|
7617
7707
|
placeholder: `Item ${itemIndex + 1}`,
|
|
7618
|
-
className:
|
|
7708
|
+
className: classNames74(
|
|
7619
7709
|
"h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
|
|
7620
7710
|
shapes[resolvedShape],
|
|
7621
7711
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -7674,12 +7764,12 @@ var InputListGroup = ({
|
|
|
7674
7764
|
}
|
|
7675
7765
|
),
|
|
7676
7766
|
/* @__PURE__ */ jsx(
|
|
7677
|
-
|
|
7767
|
+
InputResponse,
|
|
7678
7768
|
{
|
|
7679
7769
|
name: name2,
|
|
7680
7770
|
visibility: hasError,
|
|
7681
7771
|
variant: "danger",
|
|
7682
|
-
|
|
7772
|
+
className: "pb-2"
|
|
7683
7773
|
}
|
|
7684
7774
|
)
|
|
7685
7775
|
] }) })
|
|
@@ -7688,13 +7778,20 @@ var InputListGroup = ({
|
|
|
7688
7778
|
function isMultiCheckbox(props) {
|
|
7689
7779
|
return Array.isArray(props.options);
|
|
7690
7780
|
}
|
|
7691
|
-
function
|
|
7781
|
+
function useResolvedCheckboxConfig({
|
|
7782
|
+
label,
|
|
7692
7783
|
placeholder,
|
|
7693
|
-
variant
|
|
7694
|
-
shape
|
|
7695
|
-
className,
|
|
7696
|
-
...props
|
|
7784
|
+
variant,
|
|
7785
|
+
shape
|
|
7697
7786
|
}) {
|
|
7787
|
+
const eui = useEUIConfig();
|
|
7788
|
+
return {
|
|
7789
|
+
shape: shape ?? eui?.config?.global?.shape ?? "roundedSquare",
|
|
7790
|
+
variant: variant ?? "secondary",
|
|
7791
|
+
label: label ?? placeholder
|
|
7792
|
+
};
|
|
7793
|
+
}
|
|
7794
|
+
function useCheckboxFieldState(props) {
|
|
7698
7795
|
const isMulti = isMultiCheckbox(props);
|
|
7699
7796
|
const [multiField, multiMeta, multiHelpers] = useField(
|
|
7700
7797
|
props
|
|
@@ -7702,89 +7799,234 @@ function Checkbox({
|
|
|
7702
7799
|
const [singleField, singleMeta, singleHelpers] = useField(
|
|
7703
7800
|
props
|
|
7704
7801
|
);
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
"checked:
|
|
7728
|
-
"
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7802
|
+
return {
|
|
7803
|
+
isMulti,
|
|
7804
|
+
multiField,
|
|
7805
|
+
multiMeta,
|
|
7806
|
+
multiHelpers,
|
|
7807
|
+
singleField,
|
|
7808
|
+
singleMeta,
|
|
7809
|
+
singleHelpers
|
|
7810
|
+
};
|
|
7811
|
+
}
|
|
7812
|
+
|
|
7813
|
+
// src/components/data-entry/checkbox/base/Checkbox.styles.ts
|
|
7814
|
+
var checkboxShapes = shapes;
|
|
7815
|
+
var checkboxGroupClassName = "flex flex-col gap-2";
|
|
7816
|
+
var checkboxOptionRowClassName = "flex flex-row items-start gap-3";
|
|
7817
|
+
var checkboxLabelClassName = "cursor-pointer select-none text-sm leading-relaxed text-gray-800 dark:text-gray-200";
|
|
7818
|
+
var checkboxIndicatorBaseClassName = "relative h-5 w-5 min-h-[1.25rem] min-w-[1.25rem] shrink-0 appearance-none border-2 border-gray-300 bg-white transition-all duration-300 hover:border-gray-400 focus:outline-none focus:ring-2 focus:ring-eui-primary-500/30 dark:border-neutral-600 dark:bg-neutral-900 dark:hover:border-neutral-500";
|
|
7819
|
+
var checkboxIndicatorDisabledClassName = "cursor-not-allowed opacity-50";
|
|
7820
|
+
|
|
7821
|
+
// src/components/data-entry/checkbox/web/Checkbox.web.styles.ts
|
|
7822
|
+
var webCheckboxVariants = {
|
|
7823
|
+
default: {
|
|
7824
|
+
checkedClassName: "checked:bg-eui-secondary-600 checked:border-eui-secondary-600 dark:checked:bg-eui-secondary-500 dark:checked:border-eui-secondary-500",
|
|
7825
|
+
iconClassName: "text-white"
|
|
7826
|
+
},
|
|
7827
|
+
primary: {
|
|
7828
|
+
checkedClassName: "checked:bg-eui-primary-600 checked:border-eui-primary-600 dark:checked:bg-eui-primary-500 dark:checked:border-eui-primary-500",
|
|
7829
|
+
iconClassName: "text-white"
|
|
7830
|
+
},
|
|
7831
|
+
secondary: {
|
|
7832
|
+
checkedClassName: "checked:bg-eui-secondary-600 checked:border-eui-secondary-600 dark:checked:bg-eui-secondary-500 dark:checked:border-eui-secondary-500",
|
|
7833
|
+
iconClassName: "text-white"
|
|
7834
|
+
},
|
|
7835
|
+
success: {
|
|
7836
|
+
checkedClassName: "checked:bg-eui-success-600 checked:border-eui-success-600 dark:checked:bg-eui-success-500 dark:checked:border-eui-success-500",
|
|
7837
|
+
iconClassName: "text-white"
|
|
7838
|
+
},
|
|
7839
|
+
danger: {
|
|
7840
|
+
checkedClassName: "checked:bg-eui-danger-600 checked:border-eui-danger-600 dark:checked:bg-eui-danger-500 dark:checked:border-eui-danger-500",
|
|
7841
|
+
iconClassName: "text-white"
|
|
7842
|
+
},
|
|
7843
|
+
warning: {
|
|
7844
|
+
checkedClassName: "checked:bg-eui-warning-500 checked:border-eui-warning-500 dark:checked:bg-eui-warning-400 dark:checked:border-eui-warning-400",
|
|
7845
|
+
iconClassName: "text-black"
|
|
7846
|
+
},
|
|
7847
|
+
info: {
|
|
7848
|
+
checkedClassName: "checked:bg-eui-info-600 checked:border-eui-info-600 dark:checked:bg-eui-info-500 dark:checked:border-eui-info-500",
|
|
7849
|
+
iconClassName: "text-white"
|
|
7850
|
+
},
|
|
7851
|
+
light: {
|
|
7852
|
+
checkedClassName: "checked:bg-eui-light-400 checked:border-eui-light-400 dark:checked:bg-gray-200 dark:checked:border-gray-200",
|
|
7853
|
+
iconClassName: "text-gray-900"
|
|
7854
|
+
},
|
|
7855
|
+
dark: {
|
|
7856
|
+
checkedClassName: "checked:bg-eui-dark-500 checked:border-eui-dark-500 dark:checked:bg-eui-dark-300 dark:checked:border-eui-dark-300",
|
|
7857
|
+
iconClassName: "text-white"
|
|
7858
|
+
}
|
|
7859
|
+
};
|
|
7860
|
+
function resolveWebCheckboxVariantStyles(variant) {
|
|
7861
|
+
return webCheckboxVariants[variant];
|
|
7862
|
+
}
|
|
7863
|
+
function getIndicatorClassName({
|
|
7864
|
+
checked,
|
|
7865
|
+
className,
|
|
7866
|
+
disabled,
|
|
7867
|
+
indicatorClassName,
|
|
7868
|
+
checkedIndicatorClassName,
|
|
7869
|
+
resolvedShape,
|
|
7870
|
+
variantCheckedClassName
|
|
7871
|
+
}) {
|
|
7872
|
+
return cn(
|
|
7873
|
+
checkboxIndicatorBaseClassName,
|
|
7874
|
+
checkboxShapes[resolvedShape],
|
|
7875
|
+
indicatorClassName,
|
|
7876
|
+
className,
|
|
7877
|
+
variantCheckedClassName,
|
|
7878
|
+
checked && checkedIndicatorClassName,
|
|
7879
|
+
disabled && checkboxIndicatorDisabledClassName
|
|
7734
7880
|
);
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7881
|
+
}
|
|
7882
|
+
function Tick({
|
|
7883
|
+
checked,
|
|
7884
|
+
checkedIconClassName,
|
|
7885
|
+
iconClassName
|
|
7886
|
+
}) {
|
|
7887
|
+
return /* @__PURE__ */ jsx(
|
|
7888
|
+
"span",
|
|
7889
|
+
{
|
|
7890
|
+
"aria-hidden": "true",
|
|
7891
|
+
className: cn(
|
|
7892
|
+
"pointer-events-none absolute inset-0 inline-flex items-center justify-center text-sm font-bold leading-none transition-opacity duration-200",
|
|
7893
|
+
iconClassName,
|
|
7894
|
+
checkedIconClassName,
|
|
7895
|
+
checked ? "opacity-100" : "opacity-0"
|
|
7746
7896
|
),
|
|
7747
|
-
|
|
7897
|
+
children: "\u2713"
|
|
7898
|
+
}
|
|
7899
|
+
);
|
|
7900
|
+
}
|
|
7901
|
+
function Checkbox(checkboxProps) {
|
|
7902
|
+
const {
|
|
7903
|
+
label,
|
|
7904
|
+
placeholder,
|
|
7905
|
+
variant,
|
|
7906
|
+
shape,
|
|
7907
|
+
disabled = false,
|
|
7908
|
+
className,
|
|
7909
|
+
groupClassName,
|
|
7910
|
+
optionClassName,
|
|
7911
|
+
indicatorClassName,
|
|
7912
|
+
checkedIndicatorClassName,
|
|
7913
|
+
checkedIconClassName,
|
|
7914
|
+
labelClassName
|
|
7915
|
+
} = checkboxProps;
|
|
7916
|
+
const { shape: resolvedShape, variant: resolvedVariant, label: resolvedLabel } = useResolvedCheckboxConfig({
|
|
7917
|
+
label,
|
|
7918
|
+
placeholder,
|
|
7919
|
+
variant,
|
|
7920
|
+
shape
|
|
7921
|
+
});
|
|
7922
|
+
const {
|
|
7923
|
+
isMulti,
|
|
7924
|
+
multiField,
|
|
7925
|
+
multiMeta,
|
|
7926
|
+
multiHelpers,
|
|
7927
|
+
singleField,
|
|
7928
|
+
singleMeta,
|
|
7929
|
+
singleHelpers
|
|
7930
|
+
} = useCheckboxFieldState(checkboxProps);
|
|
7931
|
+
const variantStyles = resolveWebCheckboxVariantStyles(resolvedVariant);
|
|
7932
|
+
const activeFieldName = isMulti ? multiField.name : singleField.name;
|
|
7933
|
+
const activeMeta = isMulti ? multiMeta : singleMeta;
|
|
7934
|
+
const multiProps = isMultiCheckbox(checkboxProps) ? checkboxProps : null;
|
|
7935
|
+
const singleChecked = singleField.value;
|
|
7936
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(checkboxGroupClassName, groupClassName), children: [
|
|
7937
|
+
!isMulti && /* @__PURE__ */ jsxs("div", { className: cn(checkboxOptionRowClassName, optionClassName), children: [
|
|
7938
|
+
/* @__PURE__ */ jsxs("span", { className: "relative inline-flex h-5 w-5 shrink-0 items-center justify-center", children: [
|
|
7939
|
+
/* @__PURE__ */ jsx(
|
|
7940
|
+
"input",
|
|
7941
|
+
{
|
|
7942
|
+
id: singleField.name,
|
|
7943
|
+
name: singleField.name,
|
|
7944
|
+
type: "checkbox",
|
|
7945
|
+
checked: singleChecked,
|
|
7946
|
+
disabled,
|
|
7947
|
+
onBlur: singleField.onBlur,
|
|
7948
|
+
onChange: (event) => singleHelpers.setValue(event.target.checked),
|
|
7949
|
+
className: getIndicatorClassName({
|
|
7950
|
+
checked: singleChecked,
|
|
7951
|
+
className,
|
|
7952
|
+
disabled,
|
|
7953
|
+
indicatorClassName,
|
|
7954
|
+
checkedIndicatorClassName,
|
|
7955
|
+
resolvedShape,
|
|
7956
|
+
variantCheckedClassName: variantStyles.checkedClassName
|
|
7957
|
+
})
|
|
7958
|
+
}
|
|
7959
|
+
),
|
|
7960
|
+
/* @__PURE__ */ jsx(
|
|
7961
|
+
Tick,
|
|
7962
|
+
{
|
|
7963
|
+
checked: singleChecked,
|
|
7964
|
+
checkedIconClassName,
|
|
7965
|
+
iconClassName: variantStyles.iconClassName
|
|
7966
|
+
}
|
|
7967
|
+
)
|
|
7968
|
+
] }),
|
|
7969
|
+
resolvedLabel ? /* @__PURE__ */ jsx(
|
|
7748
7970
|
"label",
|
|
7749
7971
|
{
|
|
7750
7972
|
htmlFor: singleField.name,
|
|
7751
|
-
className: cn(
|
|
7752
|
-
|
|
7753
|
-
"text-gray-800 dark:text-gray-200"
|
|
7754
|
-
),
|
|
7755
|
-
children: placeholder
|
|
7973
|
+
className: cn(checkboxLabelClassName, labelClassName),
|
|
7974
|
+
children: resolvedLabel
|
|
7756
7975
|
}
|
|
7757
|
-
)
|
|
7976
|
+
) : null
|
|
7758
7977
|
] }),
|
|
7759
|
-
isMulti &&
|
|
7978
|
+
isMulti && multiProps?.options.map((option) => {
|
|
7760
7979
|
const values = multiField.value ?? [];
|
|
7761
7980
|
const checked = values.includes(option.value);
|
|
7981
|
+
const optionDisabled = disabled || option.disabled === true;
|
|
7762
7982
|
return /* @__PURE__ */ jsxs(
|
|
7763
7983
|
"div",
|
|
7764
7984
|
{
|
|
7765
|
-
className:
|
|
7985
|
+
className: cn(checkboxOptionRowClassName, optionClassName),
|
|
7766
7986
|
children: [
|
|
7767
|
-
/* @__PURE__ */
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7987
|
+
/* @__PURE__ */ jsxs("span", { className: "relative inline-flex h-5 w-5 shrink-0 items-center justify-center", children: [
|
|
7988
|
+
/* @__PURE__ */ jsx(
|
|
7989
|
+
"input",
|
|
7990
|
+
{
|
|
7991
|
+
id: option.value,
|
|
7992
|
+
name: multiField.name,
|
|
7993
|
+
type: "checkbox",
|
|
7994
|
+
checked,
|
|
7995
|
+
disabled: optionDisabled,
|
|
7996
|
+
onBlur: multiField.onBlur,
|
|
7997
|
+
onChange: () => {
|
|
7998
|
+
multiHelpers.setValue(
|
|
7999
|
+
checked ? values.filter((value) => value !== option.value) : [...values, option.value]
|
|
8000
|
+
);
|
|
8001
|
+
},
|
|
8002
|
+
className: getIndicatorClassName({
|
|
8003
|
+
checked,
|
|
8004
|
+
className,
|
|
8005
|
+
disabled: optionDisabled,
|
|
8006
|
+
indicatorClassName,
|
|
8007
|
+
checkedIndicatorClassName,
|
|
8008
|
+
resolvedShape,
|
|
8009
|
+
variantCheckedClassName: variantStyles.checkedClassName
|
|
8010
|
+
})
|
|
8011
|
+
}
|
|
8012
|
+
),
|
|
8013
|
+
/* @__PURE__ */ jsx(
|
|
8014
|
+
Tick,
|
|
8015
|
+
{
|
|
8016
|
+
checked,
|
|
8017
|
+
checkedIconClassName,
|
|
8018
|
+
iconClassName: variantStyles.iconClassName
|
|
8019
|
+
}
|
|
8020
|
+
)
|
|
8021
|
+
] }),
|
|
7781
8022
|
/* @__PURE__ */ jsx(
|
|
7782
8023
|
"label",
|
|
7783
8024
|
{
|
|
7784
8025
|
htmlFor: option.value,
|
|
7785
8026
|
className: cn(
|
|
7786
|
-
|
|
7787
|
-
"
|
|
8027
|
+
checkboxLabelClassName,
|
|
8028
|
+
optionDisabled && "cursor-not-allowed opacity-60",
|
|
8029
|
+
labelClassName
|
|
7788
8030
|
),
|
|
7789
8031
|
children: option.label
|
|
7790
8032
|
}
|
|
@@ -7795,16 +8037,15 @@ function Checkbox({
|
|
|
7795
8037
|
);
|
|
7796
8038
|
}),
|
|
7797
8039
|
/* @__PURE__ */ jsx(
|
|
7798
|
-
|
|
8040
|
+
InputResponse,
|
|
7799
8041
|
{
|
|
7800
|
-
name:
|
|
7801
|
-
visibility: Boolean(
|
|
8042
|
+
name: activeFieldName,
|
|
8043
|
+
visibility: Boolean(activeMeta.touched && activeMeta.error),
|
|
7802
8044
|
variant: "danger"
|
|
7803
8045
|
}
|
|
7804
8046
|
)
|
|
7805
8047
|
] });
|
|
7806
8048
|
}
|
|
7807
|
-
var Checkbox_default = Checkbox;
|
|
7808
8049
|
var DateSelector = ({
|
|
7809
8050
|
placeholder,
|
|
7810
8051
|
styles,
|
|
@@ -7816,10 +8057,10 @@ var DateSelector = ({
|
|
|
7816
8057
|
const [field, meta] = useField(props);
|
|
7817
8058
|
return /* @__PURE__ */ jsxs("div", { className: "relative w-full", children: [
|
|
7818
8059
|
/* @__PURE__ */ jsx(
|
|
7819
|
-
|
|
8060
|
+
InputLabel,
|
|
7820
8061
|
{
|
|
7821
8062
|
text: placeholder,
|
|
7822
|
-
|
|
8063
|
+
className: "absolute left-2 top-[0.7px] peer-placeholder-shown:text-base peer-placeholder-shown:top-3"
|
|
7823
8064
|
}
|
|
7824
8065
|
),
|
|
7825
8066
|
/* @__PURE__ */ jsx(
|
|
@@ -7829,7 +8070,7 @@ var DateSelector = ({
|
|
|
7829
8070
|
...field,
|
|
7830
8071
|
...props,
|
|
7831
8072
|
placeholder,
|
|
7832
|
-
className:
|
|
8073
|
+
className: classNames74({
|
|
7833
8074
|
"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,
|
|
7834
8075
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
7835
8076
|
"transition-all ease-in-out": true,
|
|
@@ -7838,7 +8079,7 @@ var DateSelector = ({
|
|
|
7838
8079
|
})
|
|
7839
8080
|
}
|
|
7840
8081
|
),
|
|
7841
|
-
meta.touched && meta.error && /* @__PURE__ */ jsx(
|
|
8082
|
+
meta.touched && meta.error && /* @__PURE__ */ jsx(InputResponse, { name: field.name, visibility: true, variant: "danger" })
|
|
7842
8083
|
] });
|
|
7843
8084
|
};
|
|
7844
8085
|
var DateSelector_default = DateSelector;
|
|
@@ -7911,7 +8152,7 @@ var Form = ({
|
|
|
7911
8152
|
/* @__PURE__ */ jsx(UnsavedChangesGuard_default, { formik, enabled: warnOnUnsavedChanges }),
|
|
7912
8153
|
/* @__PURE__ */ jsx(DirtyObserver_default, { formik, onDirtyChange }),
|
|
7913
8154
|
/* @__PURE__ */ jsx(FormObserver_default, { formik, onChange }),
|
|
7914
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
8155
|
+
/* @__PURE__ */ jsx("div", { className: classNames74(styles), children: children3 })
|
|
7915
8156
|
] })
|
|
7916
8157
|
}
|
|
7917
8158
|
);
|
|
@@ -7933,7 +8174,7 @@ function FormResponse({
|
|
|
7933
8174
|
return /* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility: text10 ? true : false, children: /* @__PURE__ */ jsx(
|
|
7934
8175
|
"div",
|
|
7935
8176
|
{
|
|
7936
|
-
className:
|
|
8177
|
+
className: classNames74({
|
|
7937
8178
|
"font-poppins font-light text-sm": true,
|
|
7938
8179
|
[`${variantsLite[variant]}`]: variant,
|
|
7939
8180
|
[`${shapes[shape]}`]: shape,
|
|
@@ -8041,7 +8282,7 @@ var ImageInput = forwardRef(
|
|
|
8041
8282
|
/* @__PURE__ */ jsxs(
|
|
8042
8283
|
"label",
|
|
8043
8284
|
{
|
|
8044
|
-
className:
|
|
8285
|
+
className: classNames74({
|
|
8045
8286
|
"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,
|
|
8046
8287
|
"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
|
|
8047
8288
|
"transition-all ease-in-out duration-150": true
|
|
@@ -8088,7 +8329,7 @@ var ImageInput = forwardRef(
|
|
|
8088
8329
|
] })
|
|
8089
8330
|
] }) }),
|
|
8090
8331
|
/* @__PURE__ */ jsx(
|
|
8091
|
-
|
|
8332
|
+
InputResponse,
|
|
8092
8333
|
{
|
|
8093
8334
|
name: field.name,
|
|
8094
8335
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8133,7 +8374,7 @@ function MultiImageInput({
|
|
|
8133
8374
|
) })
|
|
8134
8375
|
] }),
|
|
8135
8376
|
/* @__PURE__ */ jsx(
|
|
8136
|
-
|
|
8377
|
+
InputResponse,
|
|
8137
8378
|
{
|
|
8138
8379
|
name: field.name,
|
|
8139
8380
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8151,14 +8392,14 @@ function Radio({
|
|
|
8151
8392
|
const { name: name2 } = props;
|
|
8152
8393
|
const [field, meta] = useField(props);
|
|
8153
8394
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
8154
|
-
/* @__PURE__ */ jsx(
|
|
8395
|
+
/* @__PURE__ */ jsx(InputLabel, { text: placeholder }),
|
|
8155
8396
|
/* @__PURE__ */ jsx(Field, { name: name2, children: (formik) => {
|
|
8156
8397
|
const { field: field2 } = formik;
|
|
8157
8398
|
return options.map((option) => {
|
|
8158
8399
|
return /* @__PURE__ */ jsxs(
|
|
8159
8400
|
"div",
|
|
8160
8401
|
{
|
|
8161
|
-
className:
|
|
8402
|
+
className: classNames74({
|
|
8162
8403
|
"flex flex-row gap-2 items-center mx-1 my-2": true
|
|
8163
8404
|
}),
|
|
8164
8405
|
children: [
|
|
@@ -8171,7 +8412,7 @@ function Radio({
|
|
|
8171
8412
|
...props,
|
|
8172
8413
|
value: option.value,
|
|
8173
8414
|
checked: field2.value === option.value,
|
|
8174
|
-
className:
|
|
8415
|
+
className: classNames74({
|
|
8175
8416
|
"appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
|
|
8176
8417
|
// base radio button styles
|
|
8177
8418
|
"checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
|
|
@@ -8183,7 +8424,7 @@ function Radio({
|
|
|
8183
8424
|
"label",
|
|
8184
8425
|
{
|
|
8185
8426
|
htmlFor: option.value,
|
|
8186
|
-
className:
|
|
8427
|
+
className: classNames74({
|
|
8187
8428
|
"eui-text-md text-sm": true
|
|
8188
8429
|
}),
|
|
8189
8430
|
children: option.label
|
|
@@ -8196,7 +8437,7 @@ function Radio({
|
|
|
8196
8437
|
});
|
|
8197
8438
|
} }),
|
|
8198
8439
|
/* @__PURE__ */ jsx(
|
|
8199
|
-
|
|
8440
|
+
InputResponse,
|
|
8200
8441
|
{
|
|
8201
8442
|
name: field.name,
|
|
8202
8443
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8226,7 +8467,7 @@ function StarRatingInput({
|
|
|
8226
8467
|
return /* @__PURE__ */ jsxs(
|
|
8227
8468
|
"div",
|
|
8228
8469
|
{
|
|
8229
|
-
className:
|
|
8470
|
+
className: classNames74({
|
|
8230
8471
|
"inline-flex gap-[4px] text-[20px]": true,
|
|
8231
8472
|
[`${styles}`]: styles
|
|
8232
8473
|
}),
|
|
@@ -8239,7 +8480,7 @@ function StarRatingInput({
|
|
|
8239
8480
|
onClick: () => handleOnClick(index3),
|
|
8240
8481
|
onMouseEnter: () => setHover(index3),
|
|
8241
8482
|
onMouseLeave: () => setHover(null),
|
|
8242
|
-
className:
|
|
8483
|
+
className: classNames74({
|
|
8243
8484
|
"text-yellow-600": index3 <= (hover ?? rating - 1),
|
|
8244
8485
|
"text-gray-400": index3 > (hover ?? rating - 1)
|
|
8245
8486
|
}),
|
|
@@ -8248,7 +8489,7 @@ function StarRatingInput({
|
|
|
8248
8489
|
index3
|
|
8249
8490
|
)) }),
|
|
8250
8491
|
/* @__PURE__ */ jsx(
|
|
8251
|
-
|
|
8492
|
+
InputResponse,
|
|
8252
8493
|
{
|
|
8253
8494
|
name: field.name,
|
|
8254
8495
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8272,10 +8513,10 @@ function Select({
|
|
|
8272
8513
|
const [field, meta] = useField(props);
|
|
8273
8514
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
8274
8515
|
/* @__PURE__ */ jsx(
|
|
8275
|
-
|
|
8516
|
+
InputLabel,
|
|
8276
8517
|
{
|
|
8277
8518
|
text: placeholder,
|
|
8278
|
-
|
|
8519
|
+
className: "absolute left-2 top-[0.7px] peer-placeholder-shown:text-base peer-placeholder-shown:top-3"
|
|
8279
8520
|
}
|
|
8280
8521
|
),
|
|
8281
8522
|
/* @__PURE__ */ jsx(
|
|
@@ -8283,7 +8524,7 @@ function Select({
|
|
|
8283
8524
|
{
|
|
8284
8525
|
as: "select",
|
|
8285
8526
|
...props,
|
|
8286
|
-
className:
|
|
8527
|
+
className: classNames74({
|
|
8287
8528
|
"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,
|
|
8288
8529
|
"border-eui-primary-400": !(meta.touched && meta.error),
|
|
8289
8530
|
"border-red-500": meta.touched && meta.error,
|
|
@@ -8297,7 +8538,7 @@ function Select({
|
|
|
8297
8538
|
}
|
|
8298
8539
|
),
|
|
8299
8540
|
/* @__PURE__ */ jsx(
|
|
8300
|
-
|
|
8541
|
+
InputResponse,
|
|
8301
8542
|
{
|
|
8302
8543
|
name: field.name,
|
|
8303
8544
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8318,7 +8559,7 @@ function Switch({
|
|
|
8318
8559
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
8319
8560
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-row justify-between w-full gap-3", children: [
|
|
8320
8561
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
8321
|
-
label && /* @__PURE__ */ jsx(
|
|
8562
|
+
label && /* @__PURE__ */ jsx(InputLabel, { text: label }),
|
|
8322
8563
|
description && /* @__PURE__ */ jsx("label", { className: "eui-text-md text-[12px] max-w-[500px]", children: description })
|
|
8323
8564
|
] }),
|
|
8324
8565
|
/* @__PURE__ */ jsx(Field, { name: name2, children: () => /* @__PURE__ */ jsxs("label", { className: "relative inline-flex cursor-pointer", children: [
|
|
@@ -8335,7 +8576,7 @@ function Switch({
|
|
|
8335
8576
|
"div",
|
|
8336
8577
|
{
|
|
8337
8578
|
onClick: () => helpers.setValue(!field.value),
|
|
8338
|
-
className:
|
|
8579
|
+
className: classNames74(
|
|
8339
8580
|
"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
|
|
8340
8581
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
8341
8582
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
|
|
@@ -8348,7 +8589,7 @@ function Switch({
|
|
|
8348
8589
|
] }) })
|
|
8349
8590
|
] }),
|
|
8350
8591
|
/* @__PURE__ */ jsx(
|
|
8351
|
-
|
|
8592
|
+
InputResponse,
|
|
8352
8593
|
{
|
|
8353
8594
|
name: name2,
|
|
8354
8595
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8392,7 +8633,7 @@ function Tags({
|
|
|
8392
8633
|
/* @__PURE__ */ jsxs(
|
|
8393
8634
|
"div",
|
|
8394
8635
|
{
|
|
8395
|
-
className:
|
|
8636
|
+
className: classNames74(
|
|
8396
8637
|
"border rounded-sm flex flex-wrap items-center gap-2 px-2 pt-2 pb-6 min-h-[3rem]",
|
|
8397
8638
|
{
|
|
8398
8639
|
"bg-eui-primary-300/10 eui-text-md": true,
|
|
@@ -8437,10 +8678,10 @@ function Tags({
|
|
|
8437
8678
|
}
|
|
8438
8679
|
),
|
|
8439
8680
|
/* @__PURE__ */ jsx(
|
|
8440
|
-
|
|
8681
|
+
InputLabel,
|
|
8441
8682
|
{
|
|
8442
8683
|
text: placeholder,
|
|
8443
|
-
|
|
8684
|
+
className: classNames74(
|
|
8444
8685
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
8445
8686
|
input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
8446
8687
|
)
|
|
@@ -8453,7 +8694,7 @@ function Tags({
|
|
|
8453
8694
|
] })
|
|
8454
8695
|
] }),
|
|
8455
8696
|
/* @__PURE__ */ jsx(
|
|
8456
|
-
|
|
8697
|
+
InputResponse,
|
|
8457
8698
|
{
|
|
8458
8699
|
name: field.name,
|
|
8459
8700
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8481,7 +8722,7 @@ function TextArea({
|
|
|
8481
8722
|
as: "textarea",
|
|
8482
8723
|
...field,
|
|
8483
8724
|
...props,
|
|
8484
|
-
className:
|
|
8725
|
+
className: classNames74({
|
|
8485
8726
|
"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,
|
|
8486
8727
|
"transition-all ease-in-out": true,
|
|
8487
8728
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -8492,10 +8733,10 @@ function TextArea({
|
|
|
8492
8733
|
}
|
|
8493
8734
|
),
|
|
8494
8735
|
/* @__PURE__ */ jsx(
|
|
8495
|
-
|
|
8736
|
+
InputLabel,
|
|
8496
8737
|
{
|
|
8497
8738
|
text: placeholder,
|
|
8498
|
-
|
|
8739
|
+
className: classNames74(
|
|
8499
8740
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
8500
8741
|
field.value ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
8501
8742
|
)
|
|
@@ -8508,7 +8749,7 @@ function TextArea({
|
|
|
8508
8749
|
] })
|
|
8509
8750
|
] }),
|
|
8510
8751
|
/* @__PURE__ */ jsx(
|
|
8511
|
-
|
|
8752
|
+
InputResponse,
|
|
8512
8753
|
{
|
|
8513
8754
|
name: field.name,
|
|
8514
8755
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8529,7 +8770,7 @@ function BreadcrumbItem({
|
|
|
8529
8770
|
{
|
|
8530
8771
|
href,
|
|
8531
8772
|
onClick,
|
|
8532
|
-
className:
|
|
8773
|
+
className: classNames74({
|
|
8533
8774
|
"text-lg font-semibold": true,
|
|
8534
8775
|
"text-gray-400 hover:text-gray-600 cursor-pointer": !active,
|
|
8535
8776
|
"text-eui-light-800": active,
|
|
@@ -8606,7 +8847,7 @@ var Breadcrumb = ({
|
|
|
8606
8847
|
index3 < resolvedData.length - 1 && /* @__PURE__ */ jsx(
|
|
8607
8848
|
"span",
|
|
8608
8849
|
{
|
|
8609
|
-
className:
|
|
8850
|
+
className: classNames74({
|
|
8610
8851
|
"text-lg font-semibold text-gray-500": true,
|
|
8611
8852
|
[`px-${gap}`]: gap
|
|
8612
8853
|
}),
|
|
@@ -8620,7 +8861,7 @@ var Breadcrumb = ({
|
|
|
8620
8861
|
return /* @__PURE__ */ jsx(
|
|
8621
8862
|
"div",
|
|
8622
8863
|
{
|
|
8623
|
-
className:
|
|
8864
|
+
className: classNames74({
|
|
8624
8865
|
"inline-flex": true,
|
|
8625
8866
|
[`${styles}`]: styles
|
|
8626
8867
|
}),
|
|
@@ -8664,7 +8905,7 @@ var Drawer = ({
|
|
|
8664
8905
|
isMobile && showBackdrop && /* @__PURE__ */ jsx(TransitionFade_default, { visibility, leaveDuration: 200, children: /* @__PURE__ */ jsx(
|
|
8665
8906
|
"div",
|
|
8666
8907
|
{
|
|
8667
|
-
className:
|
|
8908
|
+
className: classNames74(
|
|
8668
8909
|
"fixed inset-0 bg-black/50 z-40",
|
|
8669
8910
|
backdropStyles
|
|
8670
8911
|
),
|
|
@@ -8675,7 +8916,7 @@ var Drawer = ({
|
|
|
8675
8916
|
"div",
|
|
8676
8917
|
{
|
|
8677
8918
|
style: drawerStyle,
|
|
8678
|
-
className:
|
|
8919
|
+
className: classNames74(
|
|
8679
8920
|
"fixed shadow-lg z-50",
|
|
8680
8921
|
{
|
|
8681
8922
|
"h-full w-[300px] top-0": isHorizontal && !hasOffset,
|
|
@@ -8704,7 +8945,7 @@ function DrawerToggler({
|
|
|
8704
8945
|
return /* @__PURE__ */ jsx(
|
|
8705
8946
|
"div",
|
|
8706
8947
|
{
|
|
8707
|
-
className:
|
|
8948
|
+
className: classNames74({
|
|
8708
8949
|
"text-xl p-3 cursor-pointer": true,
|
|
8709
8950
|
"transition-all ease-in-out": true,
|
|
8710
8951
|
"text-eui-dark-500 dark:text-eui-secondary-600": !styles,
|
|
@@ -8752,7 +8993,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
8752
8993
|
childrenContent = /* @__PURE__ */ jsx(
|
|
8753
8994
|
"div",
|
|
8754
8995
|
{
|
|
8755
|
-
className:
|
|
8996
|
+
className: classNames74({
|
|
8756
8997
|
"grid w-full": true,
|
|
8757
8998
|
"grid-cols-1": isMobile,
|
|
8758
8999
|
"grid-cols-3": !isMobile,
|
|
@@ -8765,7 +9006,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
8765
9006
|
return /* @__PURE__ */ jsx(
|
|
8766
9007
|
"div",
|
|
8767
9008
|
{
|
|
8768
|
-
className:
|
|
9009
|
+
className: classNames74({
|
|
8769
9010
|
[`${styles}`]: styles
|
|
8770
9011
|
}),
|
|
8771
9012
|
children: childrenContent
|
|
@@ -8806,7 +9047,7 @@ var FooterNavGroup = ({
|
|
|
8806
9047
|
/* @__PURE__ */ jsx(
|
|
8807
9048
|
"div",
|
|
8808
9049
|
{
|
|
8809
|
-
className:
|
|
9050
|
+
className: classNames74({
|
|
8810
9051
|
"": true,
|
|
8811
9052
|
"py-2 font-semibold eui-text-lg": !styles,
|
|
8812
9053
|
[`${styles}`]: styles
|
|
@@ -8851,7 +9092,7 @@ var FooterNavItem = ({
|
|
|
8851
9092
|
"div",
|
|
8852
9093
|
{
|
|
8853
9094
|
onClick: handleNavigation,
|
|
8854
|
-
className:
|
|
9095
|
+
className: classNames74({
|
|
8855
9096
|
"flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
|
|
8856
9097
|
"transition-all duration-200 ease-in-out": true,
|
|
8857
9098
|
"text-sm eui-text-sm": !styles,
|
|
@@ -8880,7 +9121,7 @@ var FooterNavItemTitle = ({
|
|
|
8880
9121
|
return /* @__PURE__ */ jsx(
|
|
8881
9122
|
"div",
|
|
8882
9123
|
{
|
|
8883
|
-
className:
|
|
9124
|
+
className: classNames74({
|
|
8884
9125
|
"": true,
|
|
8885
9126
|
"py-2 font-thin eui-text-md": !styles,
|
|
8886
9127
|
[`${styles}`]: styles
|
|
@@ -8933,7 +9174,7 @@ function HeaderNav({ data = [], styles }) {
|
|
|
8933
9174
|
return /* @__PURE__ */ jsx(
|
|
8934
9175
|
"div",
|
|
8935
9176
|
{
|
|
8936
|
-
className:
|
|
9177
|
+
className: classNames74({
|
|
8937
9178
|
[`${styles}`]: styles
|
|
8938
9179
|
}),
|
|
8939
9180
|
children: childrenContent
|
|
@@ -8995,7 +9236,7 @@ var HeaderNavGroup = ({
|
|
|
8995
9236
|
/* @__PURE__ */ jsxs(
|
|
8996
9237
|
"div",
|
|
8997
9238
|
{
|
|
8998
|
-
className:
|
|
9239
|
+
className: classNames74({
|
|
8999
9240
|
"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
|
|
9000
9241
|
"transition-all duration-300 ease-in-out": true,
|
|
9001
9242
|
"eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
|
|
@@ -9023,7 +9264,7 @@ var HeaderNavGroup = ({
|
|
|
9023
9264
|
children3 && /* @__PURE__ */ jsx(
|
|
9024
9265
|
BsChevronDown,
|
|
9025
9266
|
{
|
|
9026
|
-
className:
|
|
9267
|
+
className: classNames74({
|
|
9027
9268
|
"text-md": true,
|
|
9028
9269
|
"transition-all ease-in-out duration-300": true,
|
|
9029
9270
|
"rotate-180": !collapsed
|
|
@@ -9036,7 +9277,7 @@ var HeaderNavGroup = ({
|
|
|
9036
9277
|
!collapsed && children3 && /* @__PURE__ */ jsx(
|
|
9037
9278
|
"div",
|
|
9038
9279
|
{
|
|
9039
|
-
className:
|
|
9280
|
+
className: classNames74({
|
|
9040
9281
|
"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,
|
|
9041
9282
|
"transition-all duration-300 ease-in-out": true
|
|
9042
9283
|
}),
|
|
@@ -9066,7 +9307,7 @@ var HeaderNavItem = ({
|
|
|
9066
9307
|
"div",
|
|
9067
9308
|
{
|
|
9068
9309
|
onClick: handleNavigation,
|
|
9069
|
-
className:
|
|
9310
|
+
className: classNames74({
|
|
9070
9311
|
"flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
|
|
9071
9312
|
"transition-all duration-200 ease-in-out": true,
|
|
9072
9313
|
"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,
|
|
@@ -9095,7 +9336,7 @@ var HeaderNavItemTitle = ({
|
|
|
9095
9336
|
return /* @__PURE__ */ jsx(
|
|
9096
9337
|
"div",
|
|
9097
9338
|
{
|
|
9098
|
-
className:
|
|
9339
|
+
className: classNames74({
|
|
9099
9340
|
"p-3 font-thin": true,
|
|
9100
9341
|
"eui-text-md": !styles,
|
|
9101
9342
|
[`${styles}`]: styles
|
|
@@ -9135,7 +9376,7 @@ var Link = ({
|
|
|
9135
9376
|
href: href || "#",
|
|
9136
9377
|
target: targets[target],
|
|
9137
9378
|
onClick: handleClick,
|
|
9138
|
-
className:
|
|
9379
|
+
className: classNames74({
|
|
9139
9380
|
[`${textVariants[variant]}`]: variant,
|
|
9140
9381
|
[`${decorations[decoration]}`]: decoration,
|
|
9141
9382
|
"font-bold": bold,
|
|
@@ -12327,7 +12568,7 @@ function Accordion({
|
|
|
12327
12568
|
/* @__PURE__ */ jsxs(
|
|
12328
12569
|
"div",
|
|
12329
12570
|
{
|
|
12330
|
-
className:
|
|
12571
|
+
className: classNames74(
|
|
12331
12572
|
"inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs",
|
|
12332
12573
|
{
|
|
12333
12574
|
"hover:cursor-pointer": toggleOnSummaryClick
|
|
@@ -12348,7 +12589,7 @@ function Accordion({
|
|
|
12348
12589
|
children: /* @__PURE__ */ jsx(
|
|
12349
12590
|
FaCircleChevronDown,
|
|
12350
12591
|
{
|
|
12351
|
-
className:
|
|
12592
|
+
className: classNames74("text-xl transition-transform duration-300", {
|
|
12352
12593
|
"rotate-180": collapse
|
|
12353
12594
|
})
|
|
12354
12595
|
}
|
|
@@ -12362,7 +12603,7 @@ function Accordion({
|
|
|
12362
12603
|
/* @__PURE__ */ jsx(TransitionAccordion_default, { visibility: collapse, children: /* @__PURE__ */ jsx(
|
|
12363
12604
|
"div",
|
|
12364
12605
|
{
|
|
12365
|
-
className:
|
|
12606
|
+
className: classNames74(
|
|
12366
12607
|
"border-t border-t-eui-dark-400/40 eui-text-sm",
|
|
12367
12608
|
{
|
|
12368
12609
|
"p-5": enableChildrenPadding
|
|
@@ -12419,7 +12660,7 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
12419
12660
|
return /* @__PURE__ */ jsxs(
|
|
12420
12661
|
"div",
|
|
12421
12662
|
{
|
|
12422
|
-
className:
|
|
12663
|
+
className: classNames74(
|
|
12423
12664
|
"flex items-start gap-4 p-6 border-b border-white/10",
|
|
12424
12665
|
className
|
|
12425
12666
|
),
|
|
@@ -12435,14 +12676,14 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
12435
12676
|
}
|
|
12436
12677
|
var CardHeader_default = CardHeader;
|
|
12437
12678
|
function CardContent({ children: children3, className }) {
|
|
12438
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
12679
|
+
return /* @__PURE__ */ jsx("div", { className: classNames74("p-6 text-gray-300 text-sm", className), children: children3 });
|
|
12439
12680
|
}
|
|
12440
12681
|
var CardContent_default = CardContent;
|
|
12441
12682
|
function CardFooter({ children: children3, className }) {
|
|
12442
12683
|
return /* @__PURE__ */ jsx(
|
|
12443
12684
|
"div",
|
|
12444
12685
|
{
|
|
12445
|
-
className:
|
|
12686
|
+
className: classNames74(
|
|
12446
12687
|
"flex items-center gap-3 p-5 border-t border-white/10 text-sm text-gray-400",
|
|
12447
12688
|
className
|
|
12448
12689
|
),
|
|
@@ -12484,7 +12725,7 @@ function GradientAnimation({
|
|
|
12484
12725
|
return /* @__PURE__ */ jsx(
|
|
12485
12726
|
"div",
|
|
12486
12727
|
{
|
|
12487
|
-
className:
|
|
12728
|
+
className: classNames74("absolute inset-0"),
|
|
12488
12729
|
style: {
|
|
12489
12730
|
background: `linear-gradient(${cfg.angle}deg, ${cfg.colors?.join(",")})`,
|
|
12490
12731
|
backgroundSize: cfg.backgroundSize,
|
|
@@ -12630,7 +12871,7 @@ function MotionSurface({
|
|
|
12630
12871
|
}) {
|
|
12631
12872
|
const AnimationComponent = animationVariant === "custom" ? CustomAnimation : animationRegistry[animationVariant];
|
|
12632
12873
|
const OverlayComponent = overlay === "custom" ? CustomOverlay : overlayRegistry[overlay];
|
|
12633
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
12874
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames74("relative overflow-hidden", className), children: [
|
|
12634
12875
|
AnimationComponent && /* @__PURE__ */ jsx(AnimationComponent, { config: animationConfig, animated }),
|
|
12635
12876
|
OverlayComponent && /* @__PURE__ */ jsx(OverlayComponent, { config: overlayConfig }),
|
|
12636
12877
|
/* @__PURE__ */ jsx("div", { className: "relative z-10", children: children3 })
|
|
@@ -17715,7 +17956,7 @@ var ThemeSwitch = () => {
|
|
|
17715
17956
|
/* @__PURE__ */ jsx(
|
|
17716
17957
|
"div",
|
|
17717
17958
|
{
|
|
17718
|
-
className:
|
|
17959
|
+
className: classNames74(
|
|
17719
17960
|
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
17720
17961
|
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
17721
17962
|
)
|
|
@@ -29484,7 +29725,7 @@ function Modal({
|
|
|
29484
29725
|
"div",
|
|
29485
29726
|
{
|
|
29486
29727
|
ref: modalRef,
|
|
29487
|
-
className:
|
|
29728
|
+
className: classNames74(
|
|
29488
29729
|
"eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit",
|
|
29489
29730
|
shapes[resolvedShape],
|
|
29490
29731
|
styles
|
|
@@ -29496,7 +29737,7 @@ function Modal({
|
|
|
29496
29737
|
"button",
|
|
29497
29738
|
{
|
|
29498
29739
|
type: "button",
|
|
29499
|
-
className:
|
|
29740
|
+
className: classNames74(
|
|
29500
29741
|
"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast",
|
|
29501
29742
|
"hover:cursor-pointer hover:bg-eui-dark-500"
|
|
29502
29743
|
),
|
|
@@ -29888,7 +30129,7 @@ var ContentArea = forwardRef(
|
|
|
29888
30129
|
"div",
|
|
29889
30130
|
{
|
|
29890
30131
|
ref,
|
|
29891
|
-
className:
|
|
30132
|
+
className: classNames74({
|
|
29892
30133
|
"min-h-screen h-full w-full transition-all duration-[200ms]": true,
|
|
29893
30134
|
"py-3 px-5": !enablePadding,
|
|
29894
30135
|
"py-3 px-5 lg:px-[150px]": enablePadding,
|
|
@@ -29905,7 +30146,7 @@ function FlexCol({ children: children3, gap = 3, styles }) {
|
|
|
29905
30146
|
return /* @__PURE__ */ jsx(
|
|
29906
30147
|
"div",
|
|
29907
30148
|
{
|
|
29908
|
-
className:
|
|
30149
|
+
className: classNames74({
|
|
29909
30150
|
[`flex flex-col gap-${gap}`]: true,
|
|
29910
30151
|
[`${styles}`]: styles
|
|
29911
30152
|
}),
|
|
@@ -29918,7 +30159,7 @@ function FlexRow({ children: children3, gap = 3, styles }) {
|
|
|
29918
30159
|
return /* @__PURE__ */ jsx(
|
|
29919
30160
|
"div",
|
|
29920
30161
|
{
|
|
29921
|
-
className:
|
|
30162
|
+
className: classNames74({
|
|
29922
30163
|
[`flex flex-row gap-${gap}`]: true,
|
|
29923
30164
|
[`${styles}`]: styles
|
|
29924
30165
|
}),
|
|
@@ -29937,7 +30178,7 @@ function Grid({ children: children3, styles }) {
|
|
|
29937
30178
|
return /* @__PURE__ */ jsx(
|
|
29938
30179
|
"div",
|
|
29939
30180
|
{
|
|
29940
|
-
className:
|
|
30181
|
+
className: classNames74({
|
|
29941
30182
|
[`grid`]: true,
|
|
29942
30183
|
[`${styles}`]: styles
|
|
29943
30184
|
}),
|
|
@@ -29954,7 +30195,7 @@ var Layout = ({
|
|
|
29954
30195
|
return /* @__PURE__ */ jsx(
|
|
29955
30196
|
"div",
|
|
29956
30197
|
{
|
|
29957
|
-
className:
|
|
30198
|
+
className: classNames74({
|
|
29958
30199
|
// "flex h-full w-screen bg-gray-100 overflow-auto": true,
|
|
29959
30200
|
"flex bg-eui-light-600": true,
|
|
29960
30201
|
"flex-col": flexDirection === "vertical",
|
|
@@ -29976,7 +30217,7 @@ var Header = ({
|
|
|
29976
30217
|
return /* @__PURE__ */ jsx(
|
|
29977
30218
|
"div",
|
|
29978
30219
|
{
|
|
29979
|
-
className:
|
|
30220
|
+
className: classNames74({
|
|
29980
30221
|
static: position4 === "static",
|
|
29981
30222
|
fixed: position4 === "fixed",
|
|
29982
30223
|
sticky: position4 === "sticky",
|
|
@@ -30011,7 +30252,7 @@ var Content = ({
|
|
|
30011
30252
|
return /* @__PURE__ */ jsx(
|
|
30012
30253
|
"div",
|
|
30013
30254
|
{
|
|
30014
|
-
className:
|
|
30255
|
+
className: classNames74({
|
|
30015
30256
|
"w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
|
|
30016
30257
|
"md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
|
|
30017
30258
|
// Shift when sidebar is open (desktop)
|
|
@@ -30027,7 +30268,7 @@ var Footer = ({ children: children3, styles }) => {
|
|
|
30027
30268
|
return /* @__PURE__ */ jsx(
|
|
30028
30269
|
"div",
|
|
30029
30270
|
{
|
|
30030
|
-
className:
|
|
30271
|
+
className: classNames74({
|
|
30031
30272
|
"bottom-0 w-full h-fit": true,
|
|
30032
30273
|
"border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
|
|
30033
30274
|
[`${styles}`]: styles
|
|
@@ -30161,7 +30402,7 @@ var GlowWrapper = ({
|
|
|
30161
30402
|
/* @__PURE__ */ jsx(
|
|
30162
30403
|
"span",
|
|
30163
30404
|
{
|
|
30164
|
-
className: "\n pointer-events-none absolute inset-0 opacity-0 \n group-hover:opacity-100 transition-opacity duration-300\n ",
|
|
30405
|
+
className: "\r\n pointer-events-none absolute inset-0 opacity-0 \r\n group-hover:opacity-100 transition-opacity duration-300\r\n ",
|
|
30165
30406
|
style: { background: "var(--glow-bg)" }
|
|
30166
30407
|
}
|
|
30167
30408
|
),
|
|
@@ -30215,7 +30456,7 @@ function ShowMore({ text: text10, limit }) {
|
|
|
30215
30456
|
/* @__PURE__ */ jsx(
|
|
30216
30457
|
"div",
|
|
30217
30458
|
{
|
|
30218
|
-
className:
|
|
30459
|
+
className: classNames74({
|
|
30219
30460
|
"text-blue-300 px-1 pb-1 mt-1": true,
|
|
30220
30461
|
"bg-slate-900/70": !showMore,
|
|
30221
30462
|
"bg-gradient-to-t from-slate-900/50 to-transparent": showMore
|
|
@@ -31131,7 +31372,7 @@ function DocumentationPanel({
|
|
|
31131
31372
|
return /* @__PURE__ */ jsx(MarkdownProvider_default, { markdown: value, children: /* @__PURE__ */ jsxs(
|
|
31132
31373
|
"section",
|
|
31133
31374
|
{
|
|
31134
|
-
className:
|
|
31375
|
+
className: classNames74(
|
|
31135
31376
|
"eui-documentation-panel",
|
|
31136
31377
|
"min-h-0 overflow-hidden bg-white text-gray-900",
|
|
31137
31378
|
"dark:bg-gray-950 dark:text-gray-100",
|
|
@@ -31145,7 +31386,7 @@ function DocumentationPanel({
|
|
|
31145
31386
|
/* @__PURE__ */ jsx(
|
|
31146
31387
|
"main",
|
|
31147
31388
|
{
|
|
31148
|
-
className:
|
|
31389
|
+
className: classNames74(
|
|
31149
31390
|
"eui-documentation-panel-viewer",
|
|
31150
31391
|
"documentation-panel-scrollbar min-w-0 overflow-y-auto scroll-smooth",
|
|
31151
31392
|
viewerClassName
|
|
@@ -31153,7 +31394,7 @@ function DocumentationPanel({
|
|
|
31153
31394
|
children: /* @__PURE__ */ jsx(
|
|
31154
31395
|
"div",
|
|
31155
31396
|
{
|
|
31156
|
-
className:
|
|
31397
|
+
className: classNames74(
|
|
31157
31398
|
"mx-auto px-5 py-8 sm:px-6 lg:px-8",
|
|
31158
31399
|
contentMaxWidthClassName,
|
|
31159
31400
|
contentClassName
|
|
@@ -31166,7 +31407,7 @@ function DocumentationPanel({
|
|
|
31166
31407
|
toc ? /* @__PURE__ */ jsx(
|
|
31167
31408
|
"aside",
|
|
31168
31409
|
{
|
|
31169
|
-
className:
|
|
31410
|
+
className: classNames74(
|
|
31170
31411
|
"eui-documentation-panel-toc",
|
|
31171
31412
|
"hidden min-w-0 border-l border-gray-200 bg-white lg:block",
|
|
31172
31413
|
"dark:border-gray-800 dark:bg-gray-950",
|
|
@@ -31175,7 +31416,7 @@ function DocumentationPanel({
|
|
|
31175
31416
|
children: /* @__PURE__ */ jsx(
|
|
31176
31417
|
"div",
|
|
31177
31418
|
{
|
|
31178
|
-
className:
|
|
31419
|
+
className: classNames74(
|
|
31179
31420
|
"documentation-panel-scrollbar h-full overflow-y-auto px-5 py-8"
|
|
31180
31421
|
),
|
|
31181
31422
|
children: /* @__PURE__ */ jsx("div", { className: "sticky top-0", children: /* @__PURE__ */ jsx(MarkdownTOC_default, {}) })
|
|
@@ -31451,7 +31692,7 @@ function BoxNavItem({ icon, name: name2, to, selected, onClick }) {
|
|
|
31451
31692
|
type: "button",
|
|
31452
31693
|
onClick: handleClick,
|
|
31453
31694
|
"aria-current": selected ? "page" : void 0,
|
|
31454
|
-
className:
|
|
31695
|
+
className: classNames74(
|
|
31455
31696
|
"w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
|
|
31456
31697
|
"hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
|
|
31457
31698
|
selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
|
|
@@ -54188,7 +54429,7 @@ function MarkdownHeading({
|
|
|
54188
54429
|
id: id2,
|
|
54189
54430
|
level: typographyLevel,
|
|
54190
54431
|
bold: true,
|
|
54191
|
-
className:
|
|
54432
|
+
className: classNames74(
|
|
54192
54433
|
"eui-markdown-heading group relative scroll-mt-24 font-bold leading-tight text-gray-900 dark:text-gray-100",
|
|
54193
54434
|
HEADING_STYLES[level],
|
|
54194
54435
|
className
|
|
@@ -54351,18 +54592,18 @@ function powerSetPermutations(arr) {
|
|
|
54351
54592
|
}
|
|
54352
54593
|
}
|
|
54353
54594
|
var classNameCombinations = {};
|
|
54354
|
-
function getClassNameCombinations(
|
|
54355
|
-
if (
|
|
54356
|
-
var key =
|
|
54595
|
+
function getClassNameCombinations(classNames78) {
|
|
54596
|
+
if (classNames78.length === 0 || classNames78.length === 1) return classNames78;
|
|
54597
|
+
var key = classNames78.join(".");
|
|
54357
54598
|
if (!classNameCombinations[key]) {
|
|
54358
|
-
classNameCombinations[key] = powerSetPermutations(
|
|
54599
|
+
classNameCombinations[key] = powerSetPermutations(classNames78);
|
|
54359
54600
|
}
|
|
54360
54601
|
return classNameCombinations[key];
|
|
54361
54602
|
}
|
|
54362
|
-
function createStyleObject(
|
|
54603
|
+
function createStyleObject(classNames78) {
|
|
54363
54604
|
var elementStyle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
54364
54605
|
var stylesheet = arguments.length > 2 ? arguments[2] : void 0;
|
|
54365
|
-
var nonTokenClassNames =
|
|
54606
|
+
var nonTokenClassNames = classNames78.filter(function(className) {
|
|
54366
54607
|
return className !== "token";
|
|
54367
54608
|
});
|
|
54368
54609
|
var classNamesCombinations = getClassNameCombinations(nonTokenClassNames);
|
|
@@ -54370,8 +54611,8 @@ function createStyleObject(classNames81) {
|
|
|
54370
54611
|
return _objectSpread(_objectSpread({}, styleObject), stylesheet[className]);
|
|
54371
54612
|
}, elementStyle);
|
|
54372
54613
|
}
|
|
54373
|
-
function createClassNameString(
|
|
54374
|
-
return
|
|
54614
|
+
function createClassNameString(classNames78) {
|
|
54615
|
+
return classNames78.join(" ");
|
|
54375
54616
|
}
|
|
54376
54617
|
function createChildren2(stylesheet, useInlineStyles) {
|
|
54377
54618
|
var childrenCount = 0;
|
|
@@ -54544,8 +54785,8 @@ function flattenCodeTree(tree) {
|
|
|
54544
54785
|
}));
|
|
54545
54786
|
} else if (node2.children) {
|
|
54546
54787
|
var _node$properties;
|
|
54547
|
-
var
|
|
54548
|
-
flattenCodeTree(node2.children,
|
|
54788
|
+
var classNames78 = className.concat(((_node$properties = node2.properties) === null || _node$properties === void 0 ? void 0 : _node$properties.className) || []);
|
|
54789
|
+
flattenCodeTree(node2.children, classNames78).forEach(function(i2) {
|
|
54549
54790
|
return newTree.push(i2);
|
|
54550
54791
|
});
|
|
54551
54792
|
}
|
|
@@ -55209,7 +55450,7 @@ function MarkdownCodeBlock({
|
|
|
55209
55450
|
"div",
|
|
55210
55451
|
{
|
|
55211
55452
|
...props,
|
|
55212
|
-
className:
|
|
55453
|
+
className: classNames74(
|
|
55213
55454
|
"eui-markdown-code my-6 overflow-hidden rounded-md border border-slate-700 bg-[#0d1117] text-slate-300",
|
|
55214
55455
|
className
|
|
55215
55456
|
),
|
|
@@ -55280,7 +55521,7 @@ function MarkdownInlineCode({
|
|
|
55280
55521
|
Code,
|
|
55281
55522
|
{
|
|
55282
55523
|
...props,
|
|
55283
|
-
className:
|
|
55524
|
+
className: classNames74(
|
|
55284
55525
|
"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",
|
|
55285
55526
|
className
|
|
55286
55527
|
),
|
|
@@ -55321,7 +55562,7 @@ function MarkdownLink({
|
|
|
55321
55562
|
href: safeHref,
|
|
55322
55563
|
target: resolvedTarget,
|
|
55323
55564
|
rel,
|
|
55324
|
-
className:
|
|
55565
|
+
className: classNames74(
|
|
55325
55566
|
"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",
|
|
55326
55567
|
className
|
|
55327
55568
|
),
|
|
@@ -55356,7 +55597,7 @@ function MarkdownImage({
|
|
|
55356
55597
|
title,
|
|
55357
55598
|
loading: "lazy",
|
|
55358
55599
|
decoding: "async",
|
|
55359
|
-
className:
|
|
55600
|
+
className: classNames74(
|
|
55360
55601
|
"eui-markdown-image my-6 h-auto max-w-full rounded-md border border-gray-200 dark:border-gray-700",
|
|
55361
55602
|
className
|
|
55362
55603
|
)
|
|
@@ -55373,7 +55614,7 @@ function MarkdownTable({
|
|
|
55373
55614
|
TableElement,
|
|
55374
55615
|
{
|
|
55375
55616
|
...props,
|
|
55376
|
-
className:
|
|
55617
|
+
className: classNames74(
|
|
55377
55618
|
"eui-markdown-table w-full border-collapse text-[0.925rem]",
|
|
55378
55619
|
className
|
|
55379
55620
|
),
|
|
@@ -55390,7 +55631,7 @@ function MarkdownTableCell({
|
|
|
55390
55631
|
TableCell,
|
|
55391
55632
|
{
|
|
55392
55633
|
...props,
|
|
55393
|
-
className:
|
|
55634
|
+
className: classNames74(
|
|
55394
55635
|
"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",
|
|
55395
55636
|
className
|
|
55396
55637
|
),
|
|
@@ -55407,7 +55648,7 @@ function MarkdownTableHeaderCell({
|
|
|
55407
55648
|
TableHeaderCell,
|
|
55408
55649
|
{
|
|
55409
55650
|
...props,
|
|
55410
|
-
className:
|
|
55651
|
+
className: classNames74(
|
|
55411
55652
|
"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",
|
|
55412
55653
|
className
|
|
55413
55654
|
),
|
|
@@ -55423,7 +55664,7 @@ function MarkdownTableHead({
|
|
|
55423
55664
|
TableHead,
|
|
55424
55665
|
{
|
|
55425
55666
|
...props,
|
|
55426
|
-
className:
|
|
55667
|
+
className: classNames74(
|
|
55427
55668
|
"eui-markdown-table-head bg-gray-50 dark:bg-gray-900",
|
|
55428
55669
|
className
|
|
55429
55670
|
)
|
|
@@ -55438,7 +55679,7 @@ function MarkdownTableBody({
|
|
|
55438
55679
|
TableBody,
|
|
55439
55680
|
{
|
|
55440
55681
|
...props,
|
|
55441
|
-
className:
|
|
55682
|
+
className: classNames74("eui-markdown-table-body", className)
|
|
55442
55683
|
}
|
|
55443
55684
|
);
|
|
55444
55685
|
}
|
|
@@ -55450,7 +55691,7 @@ function MarkdownTableRow({
|
|
|
55450
55691
|
TableRow,
|
|
55451
55692
|
{
|
|
55452
55693
|
...props,
|
|
55453
|
-
className:
|
|
55694
|
+
className: classNames74(
|
|
55454
55695
|
"eui-markdown-table-row even:bg-gray-50/70 dark:even:bg-gray-900/60",
|
|
55455
55696
|
className
|
|
55456
55697
|
)
|
|
@@ -55468,7 +55709,7 @@ function MarkdownBlockquote({
|
|
|
55468
55709
|
{
|
|
55469
55710
|
...props,
|
|
55470
55711
|
as: "blockquote",
|
|
55471
|
-
className:
|
|
55712
|
+
className: classNames74(
|
|
55472
55713
|
"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",
|
|
55473
55714
|
className
|
|
55474
55715
|
),
|
|
@@ -55487,7 +55728,7 @@ function MarkdownParagraph({
|
|
|
55487
55728
|
{
|
|
55488
55729
|
...props,
|
|
55489
55730
|
level: 1,
|
|
55490
|
-
className:
|
|
55731
|
+
className: classNames74("eui-markdown-paragraph my-4", className),
|
|
55491
55732
|
children: /* @__PURE__ */ jsx(Fragment, { children: children3 })
|
|
55492
55733
|
}
|
|
55493
55734
|
);
|
|
@@ -55498,7 +55739,7 @@ function MarkdownStrong({ className, ...props }) {
|
|
|
55498
55739
|
"strong",
|
|
55499
55740
|
{
|
|
55500
55741
|
...props,
|
|
55501
|
-
className:
|
|
55742
|
+
className: classNames74(
|
|
55502
55743
|
"eui-markdown-strong font-semibold text-gray-950 dark:text-gray-100",
|
|
55503
55744
|
className
|
|
55504
55745
|
)
|
|
@@ -55511,7 +55752,7 @@ function MarkdownEmphasis({ className, ...props }) {
|
|
|
55511
55752
|
"em",
|
|
55512
55753
|
{
|
|
55513
55754
|
...props,
|
|
55514
|
-
className:
|
|
55755
|
+
className: classNames74("eui-markdown-emphasis italic", className)
|
|
55515
55756
|
}
|
|
55516
55757
|
);
|
|
55517
55758
|
}
|
|
@@ -55524,7 +55765,7 @@ function MarkdownStrikethrough({
|
|
|
55524
55765
|
"del",
|
|
55525
55766
|
{
|
|
55526
55767
|
...props,
|
|
55527
|
-
className:
|
|
55768
|
+
className: classNames74(
|
|
55528
55769
|
"eui-markdown-strikethrough text-gray-500 dark:text-gray-400",
|
|
55529
55770
|
className
|
|
55530
55771
|
)
|
|
@@ -55585,7 +55826,7 @@ function MarkdownTaskCheckbox({
|
|
|
55585
55826
|
"input",
|
|
55586
55827
|
{
|
|
55587
55828
|
...props,
|
|
55588
|
-
className:
|
|
55829
|
+
className: classNames74(
|
|
55589
55830
|
"eui-markdown-task-checkbox mr-2 translate-y-px accent-blue-600",
|
|
55590
55831
|
className
|
|
55591
55832
|
)
|
|
@@ -55601,7 +55842,7 @@ function MarkdownThematicBreak({
|
|
|
55601
55842
|
"hr",
|
|
55602
55843
|
{
|
|
55603
55844
|
...props,
|
|
55604
|
-
className:
|
|
55845
|
+
className: classNames74(
|
|
55605
55846
|
"eui-markdown-thematic-break my-8 border-0 border-t border-gray-200 dark:border-gray-800",
|
|
55606
55847
|
className
|
|
55607
55848
|
)
|
|
@@ -55618,7 +55859,7 @@ function MarkdownDetails({ className, ...props }) {
|
|
|
55618
55859
|
"details",
|
|
55619
55860
|
{
|
|
55620
55861
|
...props,
|
|
55621
|
-
className:
|
|
55862
|
+
className: classNames74(
|
|
55622
55863
|
"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",
|
|
55623
55864
|
className
|
|
55624
55865
|
)
|
|
@@ -55630,7 +55871,7 @@ function MarkdownSummary({ className, ...props }) {
|
|
|
55630
55871
|
"summary",
|
|
55631
55872
|
{
|
|
55632
55873
|
...props,
|
|
55633
|
-
className:
|
|
55874
|
+
className: classNames74(
|
|
55634
55875
|
"eui-markdown-summary cursor-pointer font-semibold text-gray-950 dark:text-gray-100",
|
|
55635
55876
|
className
|
|
55636
55877
|
)
|
|
@@ -55642,7 +55883,7 @@ function MarkdownFigure({ className, ...props }) {
|
|
|
55642
55883
|
"figure",
|
|
55643
55884
|
{
|
|
55644
55885
|
...props,
|
|
55645
|
-
className:
|
|
55886
|
+
className: classNames74("eui-markdown-figure my-6", className)
|
|
55646
55887
|
}
|
|
55647
55888
|
);
|
|
55648
55889
|
}
|
|
@@ -55654,7 +55895,7 @@ function MarkdownFigcaption({
|
|
|
55654
55895
|
return /* @__PURE__ */ jsx("figcaption", { ...props, className: "eui-markdown-figcaption mt-2 text-center", children: /* @__PURE__ */ jsx(
|
|
55655
55896
|
Caption,
|
|
55656
55897
|
{
|
|
55657
|
-
className:
|
|
55898
|
+
className: classNames74(
|
|
55658
55899
|
"text-gray-500 opacity-100 dark:text-gray-400",
|
|
55659
55900
|
className
|
|
55660
55901
|
),
|
|
@@ -56053,14 +56294,14 @@ function MarkdownRenderer({
|
|
|
56053
56294
|
return /* @__PURE__ */ jsx(
|
|
56054
56295
|
"div",
|
|
56055
56296
|
{
|
|
56056
|
-
className:
|
|
56297
|
+
className: classNames74(
|
|
56057
56298
|
"eui-markdown markdown-body break-words bg-transparent text-[0.95rem] leading-7 text-gray-800 dark:text-gray-300",
|
|
56058
56299
|
className
|
|
56059
56300
|
),
|
|
56060
56301
|
children: /* @__PURE__ */ jsx(
|
|
56061
56302
|
"div",
|
|
56062
56303
|
{
|
|
56063
|
-
className:
|
|
56304
|
+
className: classNames74(
|
|
56064
56305
|
"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0",
|
|
56065
56306
|
contentClassName
|
|
56066
56307
|
),
|
|
@@ -56138,11 +56379,11 @@ function MarkdownTOCItem({
|
|
|
56138
56379
|
onClick: () => onSelect?.(heading3),
|
|
56139
56380
|
"aria-current": active ? "location" : void 0,
|
|
56140
56381
|
title: label,
|
|
56141
|
-
className:
|
|
56382
|
+
className: classNames74(
|
|
56142
56383
|
"eui-markdown-toc-item",
|
|
56143
56384
|
"block w-full text-left text-sm transition-all ease-in-out duration-150",
|
|
56144
56385
|
"hover:text-primary",
|
|
56145
|
-
active ?
|
|
56386
|
+
active ? classNames74("text-primary font-semibold underline", activeClassName) : classNames74("text-gray-500 dark:text-gray-400", inactiveClassName),
|
|
56146
56387
|
className
|
|
56147
56388
|
),
|
|
56148
56389
|
style: {
|
|
@@ -56208,7 +56449,7 @@ function MarkdownTOC({
|
|
|
56208
56449
|
return emptyState ? /* @__PURE__ */ jsx(
|
|
56209
56450
|
"div",
|
|
56210
56451
|
{
|
|
56211
|
-
className:
|
|
56452
|
+
className: classNames74(
|
|
56212
56453
|
"eui-markdown-toc",
|
|
56213
56454
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
56214
56455
|
className
|
|
@@ -56228,7 +56469,7 @@ function MarkdownTOC({
|
|
|
56228
56469
|
{
|
|
56229
56470
|
type: "button",
|
|
56230
56471
|
onClick: () => setCollapsed((value) => !value),
|
|
56231
|
-
className:
|
|
56472
|
+
className: classNames74(
|
|
56232
56473
|
"eui-markdown-toc-title",
|
|
56233
56474
|
"flex w-full items-center justify-between gap-2 text-left",
|
|
56234
56475
|
"text-sm font-semibold uppercase tracking-wide",
|
|
@@ -56241,7 +56482,7 @@ function MarkdownTOC({
|
|
|
56241
56482
|
/* @__PURE__ */ jsx(
|
|
56242
56483
|
"span",
|
|
56243
56484
|
{
|
|
56244
|
-
className:
|
|
56485
|
+
className: classNames74(
|
|
56245
56486
|
"text-xs opacity-60 transition-transform duration-150",
|
|
56246
56487
|
!collapsed && "rotate-90"
|
|
56247
56488
|
),
|
|
@@ -56254,7 +56495,7 @@ function MarkdownTOC({
|
|
|
56254
56495
|
) : /* @__PURE__ */ jsx(
|
|
56255
56496
|
"h2",
|
|
56256
56497
|
{
|
|
56257
|
-
className:
|
|
56498
|
+
className: classNames74(
|
|
56258
56499
|
"eui-markdown-toc-title",
|
|
56259
56500
|
"text-sm font-semibold uppercase tracking-wide",
|
|
56260
56501
|
"text-gray-900 dark:text-gray-100",
|
|
@@ -56266,7 +56507,7 @@ function MarkdownTOC({
|
|
|
56266
56507
|
!collapsed ? /* @__PURE__ */ jsx(
|
|
56267
56508
|
"nav",
|
|
56268
56509
|
{
|
|
56269
|
-
className:
|
|
56510
|
+
className: classNames74(
|
|
56270
56511
|
"eui-markdown-toc-list",
|
|
56271
56512
|
"space-y-1",
|
|
56272
56513
|
listClassName
|
|
@@ -56290,7 +56531,7 @@ function MarkdownTOC({
|
|
|
56290
56531
|
}
|
|
56291
56532
|
) : null
|
|
56292
56533
|
] });
|
|
56293
|
-
return /* @__PURE__ */ jsx("aside", { className:
|
|
56534
|
+
return /* @__PURE__ */ jsx("aside", { className: classNames74("eui-markdown-toc", "space-y-4", className), children: content3 });
|
|
56294
56535
|
}
|
|
56295
56536
|
var MarkdownTOC_default = MarkdownTOC;
|
|
56296
56537
|
var DEFAULT_MARKDOWN_TOOLBAR_ACTIONS = [
|
|
@@ -56389,7 +56630,7 @@ function MarkdownToolbar({
|
|
|
56389
56630
|
return /* @__PURE__ */ jsxs(
|
|
56390
56631
|
"div",
|
|
56391
56632
|
{
|
|
56392
|
-
className:
|
|
56633
|
+
className: classNames74(
|
|
56393
56634
|
"eui-markdown-toolbar",
|
|
56394
56635
|
"flex flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 p-2",
|
|
56395
56636
|
"dark:border-gray-700 dark:bg-gray-900",
|
|
@@ -56403,7 +56644,7 @@ function MarkdownToolbar({
|
|
|
56403
56644
|
disabled: disabled || actionsDisabled,
|
|
56404
56645
|
title: action.shortcut ? `${action.title || action.label} (${action.shortcut})` : action.title || action.label,
|
|
56405
56646
|
onClick: () => onAction?.(action.id),
|
|
56406
|
-
className:
|
|
56647
|
+
className: classNames74(
|
|
56407
56648
|
"eui-markdown-toolbar-button",
|
|
56408
56649
|
"inline-flex items-center justify-center rounded border border-transparent",
|
|
56409
56650
|
"text-gray-700 transition-colors hover:border-gray-300 hover:bg-white",
|
|
@@ -56423,7 +56664,7 @@ function MarkdownToolbar({
|
|
|
56423
56664
|
disabled,
|
|
56424
56665
|
onClick: onViewModeToggle,
|
|
56425
56666
|
title: isPreviewMode ? "Switch to Markdown syntax" : "Switch to preview",
|
|
56426
|
-
className:
|
|
56667
|
+
className: classNames74(
|
|
56427
56668
|
"eui-markdown-view-toggle",
|
|
56428
56669
|
"inline-flex items-center justify-center rounded border font-medium transition-colors",
|
|
56429
56670
|
"border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -56680,7 +56921,7 @@ function MarkdownSourceEditor({
|
|
|
56680
56921
|
return /* @__PURE__ */ jsxs(
|
|
56681
56922
|
"div",
|
|
56682
56923
|
{
|
|
56683
|
-
className:
|
|
56924
|
+
className: classNames74(
|
|
56684
56925
|
"eui-markdown-editor",
|
|
56685
56926
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
56686
56927
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -56696,7 +56937,7 @@ function MarkdownSourceEditor({
|
|
|
56696
56937
|
actionsDisabled: readOnly,
|
|
56697
56938
|
viewMode: currentViewMode,
|
|
56698
56939
|
showViewModeToggle,
|
|
56699
|
-
className:
|
|
56940
|
+
className: classNames74(toolbarClassName, toolbarProps?.className),
|
|
56700
56941
|
onViewModeToggle: toggleViewMode,
|
|
56701
56942
|
onAction: handleToolbarAction
|
|
56702
56943
|
}
|
|
@@ -56704,7 +56945,7 @@ function MarkdownSourceEditor({
|
|
|
56704
56945
|
currentViewMode === "preview" ? /* @__PURE__ */ jsx(
|
|
56705
56946
|
"div",
|
|
56706
56947
|
{
|
|
56707
|
-
className:
|
|
56948
|
+
className: classNames74(
|
|
56708
56949
|
"eui-markdown-editor-preview",
|
|
56709
56950
|
"min-h-[260px] p-4",
|
|
56710
56951
|
previewClassName
|
|
@@ -56727,7 +56968,7 @@ function MarkdownSourceEditor({
|
|
|
56727
56968
|
onChange: (event) => updateValue(event.target.value),
|
|
56728
56969
|
onBlur,
|
|
56729
56970
|
onKeyDown: handleKeyDown,
|
|
56730
|
-
className:
|
|
56971
|
+
className: classNames74(
|
|
56731
56972
|
"eui-markdown-source-textarea",
|
|
56732
56973
|
"block w-full resize-y border-0 bg-transparent p-4 font-mono text-sm leading-7",
|
|
56733
56974
|
"text-gray-900 outline-none placeholder:text-gray-400",
|
|
@@ -56757,7 +56998,7 @@ function MarkdownPreviewPane({
|
|
|
56757
56998
|
return /* @__PURE__ */ jsx(
|
|
56758
56999
|
"div",
|
|
56759
57000
|
{
|
|
56760
|
-
className:
|
|
57001
|
+
className: classNames74(
|
|
56761
57002
|
"eui-markdown-preview-pane",
|
|
56762
57003
|
"rounded border border-gray-300 bg-white p-4",
|
|
56763
57004
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -56807,7 +57048,7 @@ function MarkdownSplitEditor({
|
|
|
56807
57048
|
return /* @__PURE__ */ jsxs(
|
|
56808
57049
|
"div",
|
|
56809
57050
|
{
|
|
56810
|
-
className:
|
|
57051
|
+
className: classNames74(
|
|
56811
57052
|
"eui-markdown-split-editor",
|
|
56812
57053
|
"grid gap-4",
|
|
56813
57054
|
isHorizontal ? "grid-cols-1 lg:grid-cols-2" : "grid-cols-1",
|
|
@@ -56817,7 +57058,7 @@ function MarkdownSplitEditor({
|
|
|
56817
57058
|
/* @__PURE__ */ jsxs(
|
|
56818
57059
|
"div",
|
|
56819
57060
|
{
|
|
56820
|
-
className:
|
|
57061
|
+
className: classNames74(
|
|
56821
57062
|
"eui-markdown-split-source",
|
|
56822
57063
|
"min-w-0 space-y-2",
|
|
56823
57064
|
sourceWrapperClassName
|
|
@@ -56841,7 +57082,7 @@ function MarkdownSplitEditor({
|
|
|
56841
57082
|
/* @__PURE__ */ jsxs(
|
|
56842
57083
|
"div",
|
|
56843
57084
|
{
|
|
56844
|
-
className:
|
|
57085
|
+
className: classNames74(
|
|
56845
57086
|
"eui-markdown-split-preview",
|
|
56846
57087
|
"min-w-0 space-y-2",
|
|
56847
57088
|
previewWrapperClassName
|
|
@@ -56931,7 +57172,7 @@ function MarkdownField({
|
|
|
56931
57172
|
return /* @__PURE__ */ jsxs(
|
|
56932
57173
|
"div",
|
|
56933
57174
|
{
|
|
56934
|
-
className:
|
|
57175
|
+
className: classNames74(
|
|
56935
57176
|
"eui-markdown-field",
|
|
56936
57177
|
"relative space-y-2",
|
|
56937
57178
|
wrapperClassName
|
|
@@ -56941,7 +57182,7 @@ function MarkdownField({
|
|
|
56941
57182
|
"label",
|
|
56942
57183
|
{
|
|
56943
57184
|
htmlFor: editorProps.id || field.name,
|
|
56944
|
-
className:
|
|
57185
|
+
className: classNames74(
|
|
56945
57186
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
56946
57187
|
labelClassName
|
|
56947
57188
|
),
|
|
@@ -56966,14 +57207,14 @@ function MarkdownField({
|
|
|
56966
57207
|
helperText && !hasError ? /* @__PURE__ */ jsx(
|
|
56967
57208
|
"p",
|
|
56968
57209
|
{
|
|
56969
|
-
className:
|
|
57210
|
+
className: classNames74(
|
|
56970
57211
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
56971
57212
|
helperTextClassName
|
|
56972
57213
|
),
|
|
56973
57214
|
children: helperText
|
|
56974
57215
|
}
|
|
56975
57216
|
) : null,
|
|
56976
|
-
/* @__PURE__ */ jsx(
|
|
57217
|
+
/* @__PURE__ */ jsx(InputResponse, { name: field.name, visibility: hasError, variant: "danger" })
|
|
56977
57218
|
]
|
|
56978
57219
|
}
|
|
56979
57220
|
);
|
|
@@ -57021,7 +57262,7 @@ function CodeMirrorMarkdownEditor({
|
|
|
57021
57262
|
{
|
|
57022
57263
|
id: id2,
|
|
57023
57264
|
"data-name": name2,
|
|
57024
|
-
className:
|
|
57265
|
+
className: classNames74(
|
|
57025
57266
|
"eui-markdown-adapter",
|
|
57026
57267
|
"eui-markdown-codemirror-adapter",
|
|
57027
57268
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
@@ -57055,7 +57296,7 @@ function CodeMirrorMarkdownEditor({
|
|
|
57055
57296
|
closeBrackets: true,
|
|
57056
57297
|
bracketMatching: true
|
|
57057
57298
|
},
|
|
57058
|
-
className:
|
|
57299
|
+
className: classNames74("eui-markdown-codemirror", editorClassName),
|
|
57059
57300
|
onChange: updateValue,
|
|
57060
57301
|
onBlur
|
|
57061
57302
|
}
|
|
@@ -57150,7 +57391,7 @@ function createDefaultPlugins({
|
|
|
57150
57391
|
...showToolbar ? [
|
|
57151
57392
|
toolbarPlugin({
|
|
57152
57393
|
toolbarContents: toolbarContents ?? DefaultToolbar,
|
|
57153
|
-
toolbarClassName:
|
|
57394
|
+
toolbarClassName: classNames74(
|
|
57154
57395
|
"eui-markdown-mdx-toolbar",
|
|
57155
57396
|
toolbarClassName
|
|
57156
57397
|
),
|
|
@@ -57267,7 +57508,7 @@ var MDXMarkdownEditor = forwardRef(
|
|
|
57267
57508
|
"aria-required": required || void 0,
|
|
57268
57509
|
"aria-invalid": invalid || void 0,
|
|
57269
57510
|
onBlurCapture: handleBlur,
|
|
57270
|
-
className:
|
|
57511
|
+
className: classNames74(
|
|
57271
57512
|
"eui-markdown-adapter",
|
|
57272
57513
|
"eui-markdown-mdx-adapter",
|
|
57273
57514
|
dark && ["dark", "dark-theme"],
|
|
@@ -57285,8 +57526,8 @@ var MDXMarkdownEditor = forwardRef(
|
|
|
57285
57526
|
markdown: currentValue ?? "",
|
|
57286
57527
|
readOnly: disabled || readOnly,
|
|
57287
57528
|
plugins: plugins ?? defaultPlugins,
|
|
57288
|
-
className:
|
|
57289
|
-
contentEditableClassName:
|
|
57529
|
+
className: classNames74("eui-markdown-mdx-editor", editorClassName),
|
|
57530
|
+
contentEditableClassName: classNames74(
|
|
57290
57531
|
"eui-markdown-mdx-content",
|
|
57291
57532
|
contentEditableClassName
|
|
57292
57533
|
),
|
|
@@ -57323,7 +57564,7 @@ function MDXMarkdownField({
|
|
|
57323
57564
|
return /* @__PURE__ */ jsxs(
|
|
57324
57565
|
"div",
|
|
57325
57566
|
{
|
|
57326
|
-
className:
|
|
57567
|
+
className: classNames74(
|
|
57327
57568
|
"eui-markdown-mdx-field",
|
|
57328
57569
|
"relative space-y-2",
|
|
57329
57570
|
wrapperClassName
|
|
@@ -57333,7 +57574,7 @@ function MDXMarkdownField({
|
|
|
57333
57574
|
"label",
|
|
57334
57575
|
{
|
|
57335
57576
|
htmlFor: editorId,
|
|
57336
|
-
className:
|
|
57577
|
+
className: classNames74(
|
|
57337
57578
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
57338
57579
|
labelClassName
|
|
57339
57580
|
),
|
|
@@ -57367,7 +57608,7 @@ function MDXMarkdownField({
|
|
|
57367
57608
|
"p",
|
|
57368
57609
|
{
|
|
57369
57610
|
id: helperId,
|
|
57370
|
-
className:
|
|
57611
|
+
className: classNames74(
|
|
57371
57612
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
57372
57613
|
helperTextClassName
|
|
57373
57614
|
),
|
|
@@ -57375,7 +57616,7 @@ function MDXMarkdownField({
|
|
|
57375
57616
|
}
|
|
57376
57617
|
) : null,
|
|
57377
57618
|
/* @__PURE__ */ jsx("div", { id: errorId, role: hasError ? "alert" : void 0, children: /* @__PURE__ */ jsx(
|
|
57378
|
-
|
|
57619
|
+
InputResponse,
|
|
57379
57620
|
{
|
|
57380
57621
|
name: field.name,
|
|
57381
57622
|
visibility: hasError,
|
|
@@ -57427,10 +57668,10 @@ function MarkdownLayout({
|
|
|
57427
57668
|
};
|
|
57428
57669
|
const hasLeftToc = hasToc && tocPosition === "left";
|
|
57429
57670
|
const hasRightToc = hasToc && tocPosition === "right";
|
|
57430
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
57671
|
+
return /* @__PURE__ */ jsx("div", { className: classNames74("eui-markdown-layout", "w-full", className), children: /* @__PURE__ */ jsxs(
|
|
57431
57672
|
"div",
|
|
57432
57673
|
{
|
|
57433
|
-
className:
|
|
57674
|
+
className: classNames74(
|
|
57434
57675
|
"eui-markdown-layout-container",
|
|
57435
57676
|
"mx-auto w-full px-4 sm:px-6 lg:px-8",
|
|
57436
57677
|
containerClassName
|
|
@@ -57442,7 +57683,7 @@ function MarkdownLayout({
|
|
|
57442
57683
|
header ? /* @__PURE__ */ jsx(
|
|
57443
57684
|
"header",
|
|
57444
57685
|
{
|
|
57445
|
-
className:
|
|
57686
|
+
className: classNames74(
|
|
57446
57687
|
"eui-markdown-layout-header",
|
|
57447
57688
|
"mb-8",
|
|
57448
57689
|
headerClassName
|
|
@@ -57453,7 +57694,7 @@ function MarkdownLayout({
|
|
|
57453
57694
|
/* @__PURE__ */ jsxs(
|
|
57454
57695
|
"div",
|
|
57455
57696
|
{
|
|
57456
|
-
className:
|
|
57697
|
+
className: classNames74(
|
|
57457
57698
|
"eui-markdown-layout-grid",
|
|
57458
57699
|
"grid grid-cols-1 gap-8",
|
|
57459
57700
|
hasSidebar && hasToc && "xl:grid-cols-[16rem_minmax(0,1fr)_18rem]",
|
|
@@ -57466,7 +57707,7 @@ function MarkdownLayout({
|
|
|
57466
57707
|
hasSidebar ? /* @__PURE__ */ jsx(
|
|
57467
57708
|
"aside",
|
|
57468
57709
|
{
|
|
57469
|
-
className:
|
|
57710
|
+
className: classNames74(
|
|
57470
57711
|
"eui-markdown-layout-sidebar",
|
|
57471
57712
|
"min-w-0",
|
|
57472
57713
|
stickySidebar && "lg:sticky lg:self-start",
|
|
@@ -57479,7 +57720,7 @@ function MarkdownLayout({
|
|
|
57479
57720
|
hasLeftToc ? /* @__PURE__ */ jsx(
|
|
57480
57721
|
"aside",
|
|
57481
57722
|
{
|
|
57482
|
-
className:
|
|
57723
|
+
className: classNames74(
|
|
57483
57724
|
"eui-markdown-layout-toc",
|
|
57484
57725
|
"min-w-0",
|
|
57485
57726
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -57492,7 +57733,7 @@ function MarkdownLayout({
|
|
|
57492
57733
|
/* @__PURE__ */ jsx(
|
|
57493
57734
|
"main",
|
|
57494
57735
|
{
|
|
57495
|
-
className:
|
|
57736
|
+
className: classNames74(
|
|
57496
57737
|
"eui-markdown-layout-content",
|
|
57497
57738
|
"min-w-0",
|
|
57498
57739
|
contentClassName
|
|
@@ -57503,7 +57744,7 @@ function MarkdownLayout({
|
|
|
57503
57744
|
hasRightToc ? /* @__PURE__ */ jsx(
|
|
57504
57745
|
"aside",
|
|
57505
57746
|
{
|
|
57506
|
-
className:
|
|
57747
|
+
className: classNames74(
|
|
57507
57748
|
"eui-markdown-layout-toc",
|
|
57508
57749
|
"min-w-0",
|
|
57509
57750
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -57516,7 +57757,7 @@ function MarkdownLayout({
|
|
|
57516
57757
|
hasAside ? /* @__PURE__ */ jsx(
|
|
57517
57758
|
"aside",
|
|
57518
57759
|
{
|
|
57519
|
-
className:
|
|
57760
|
+
className: classNames74(
|
|
57520
57761
|
"eui-markdown-layout-aside",
|
|
57521
57762
|
"min-w-0",
|
|
57522
57763
|
stickyAside && "2xl:sticky 2xl:self-start",
|
|
@@ -57532,7 +57773,7 @@ function MarkdownLayout({
|
|
|
57532
57773
|
footer2 ? /* @__PURE__ */ jsx(
|
|
57533
57774
|
"footer",
|
|
57534
57775
|
{
|
|
57535
|
-
className:
|
|
57776
|
+
className: classNames74(
|
|
57536
57777
|
"eui-markdown-layout-footer",
|
|
57537
57778
|
"mt-10",
|
|
57538
57779
|
footerClassName
|
|
@@ -57569,7 +57810,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57569
57810
|
const resolvedHeader = header ?? (title || description || headerActions ? /* @__PURE__ */ jsx(
|
|
57570
57811
|
"div",
|
|
57571
57812
|
{
|
|
57572
|
-
className:
|
|
57813
|
+
className: classNames74(
|
|
57573
57814
|
"eui-markdown-docs-header",
|
|
57574
57815
|
"flex flex-col gap-4 border-b border-gray-200 pb-6",
|
|
57575
57816
|
"dark:border-gray-700",
|
|
@@ -57580,7 +57821,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57580
57821
|
title ? /* @__PURE__ */ jsx(
|
|
57581
57822
|
"h1",
|
|
57582
57823
|
{
|
|
57583
|
-
className:
|
|
57824
|
+
className: classNames74(
|
|
57584
57825
|
"eui-markdown-docs-title",
|
|
57585
57826
|
"text-3xl font-bold tracking-tight text-gray-950",
|
|
57586
57827
|
"dark:text-gray-50",
|
|
@@ -57592,7 +57833,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57592
57833
|
description ? /* @__PURE__ */ jsx(
|
|
57593
57834
|
"div",
|
|
57594
57835
|
{
|
|
57595
|
-
className:
|
|
57836
|
+
className: classNames74(
|
|
57596
57837
|
"eui-markdown-docs-description",
|
|
57597
57838
|
"max-w-3xl text-base leading-7 text-gray-600",
|
|
57598
57839
|
"dark:text-gray-400",
|
|
@@ -57680,7 +57921,7 @@ function GenericLayout({
|
|
|
57680
57921
|
return /* @__PURE__ */ jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsx(
|
|
57681
57922
|
"div",
|
|
57682
57923
|
{
|
|
57683
|
-
className:
|
|
57924
|
+
className: classNames74({
|
|
57684
57925
|
[`${styles}`]: styles
|
|
57685
57926
|
}),
|
|
57686
57927
|
children: children3
|
|
@@ -57729,7 +57970,7 @@ function SidemenuLayout({ data, children: children3 }) {
|
|
|
57729
57970
|
return /* @__PURE__ */ jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxs(
|
|
57730
57971
|
"div",
|
|
57731
57972
|
{
|
|
57732
|
-
className:
|
|
57973
|
+
className: classNames74({
|
|
57733
57974
|
grid: true,
|
|
57734
57975
|
"grid-cols-7 gap-10": !isMobile,
|
|
57735
57976
|
"grid-cols-1 gap-": isMobile
|
|
@@ -57809,6 +58050,6 @@ function ScrollToTop({
|
|
|
57809
58050
|
}
|
|
57810
58051
|
var ScrollToTop_default = ScrollToTop;
|
|
57811
58052
|
|
|
57812
|
-
export { Accordion_default as Accordion, AnalyticsContext, AnalyticsProvider, AreaPlot, AsyncComponentWrapper_default as AsyncComponentWrapper, Avatar, Backdrop_default as Backdrop, Badge, BarPlot, BaseChartDataSource, Block_default as Block, BlockGroup_default as BlockGroup, BoxNav_default as BoxNav, BoxNavItem_default as BoxNavItem, Brand, Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, Button_web_default as Button, CHART_COLOR_PALETTE, CHART_DARK_THEME, CHART_DATA_MODES, CHART_DEFAULT_ACTIVE_DOT_RADIUS, CHART_DEFAULT_ANIMATION_DURATION, CHART_DEFAULT_BAR_RADIUS, CHART_DEFAULT_HEIGHT, CHART_DEFAULT_HORIZONTAL_BAR_RADIUS, CHART_DEFAULT_MARGIN, CHART_DEFAULT_MAX_REALTIME_POINTS, CHART_DEFAULT_POLLING_INTERVAL, CHART_DEFAULT_STROKE_WIDTH, CHART_EMPTY_MESSAGE, CHART_ERROR_MESSAGE, CHART_LIGHT_THEME, CHART_LOADING_MESSAGE, CHART_STATUSES, CHART_STATUS_COLORS, CHART_VALUE_FORMATS, Caption, Card_default as Card, CardContent_default as CardContent, CardFooter_default as CardFooter, CardHeader_default as CardHeader, Chapter, Chart, ChartContainer, ChartContext, ChartEmptyState, ChartErrorState, ChartHeader, ChartLegend, ChartLoadingState, ChartPanel, ChartPlotFrame, ChartProvider, ChartToolbar, ChartTooltip,
|
|
58053
|
+
export { Accordion_default as Accordion, AnalyticsContext, AnalyticsProvider, AreaPlot, AsyncComponentWrapper_default as AsyncComponentWrapper, Avatar, Backdrop_default as Backdrop, Badge, BarPlot, BaseChartDataSource, Block_default as Block, BlockGroup_default as BlockGroup, BoxNav_default as BoxNav, BoxNavItem_default as BoxNavItem, Brand, Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, Button_web_default as Button, CHART_COLOR_PALETTE, CHART_DARK_THEME, CHART_DATA_MODES, CHART_DEFAULT_ACTIVE_DOT_RADIUS, CHART_DEFAULT_ANIMATION_DURATION, CHART_DEFAULT_BAR_RADIUS, CHART_DEFAULT_HEIGHT, CHART_DEFAULT_HORIZONTAL_BAR_RADIUS, CHART_DEFAULT_MARGIN, CHART_DEFAULT_MAX_REALTIME_POINTS, CHART_DEFAULT_POLLING_INTERVAL, CHART_DEFAULT_STROKE_WIDTH, CHART_EMPTY_MESSAGE, CHART_ERROR_MESSAGE, CHART_LIGHT_THEME, CHART_LOADING_MESSAGE, CHART_STATUSES, CHART_STATUS_COLORS, CHART_VALUE_FORMATS, Caption, Card_default as Card, CardContent_default as CardContent, CardFooter_default as CardFooter, CardHeader_default as CardHeader, Chapter, Chart, ChartContainer, ChartContext, ChartEmptyState, ChartErrorState, ChartHeader, ChartLegend, ChartLoadingState, ChartPanel, ChartPlotFrame, ChartProvider, ChartToolbar, ChartTooltip, Checkbox, Chip, CloudinaryImage2 as CloudinaryImage, CloudinaryProvider, CloudinaryVideo, Code, CodeMirrorMarkdownEditor_default as CodeMirrorMarkdownEditor, CommentThread_default as CommentThread, ConfigBootstrap_default as ConfigBootstrap, Configurator, ConfiguratorError, Content, ContentArea_default as ContentArea, CookieBanner, CookiePreferencesModal, DEFAULT_ANALYTICS_CONFIG, DEFAULT_COOKIE_CATEGORIES, DEFAULT_REVIEW_THREAD_CONFIG, DataView2 as DataView, DataViewContent, DataViewFilterGroup, DataViewFooter, DataViewHeader, DataViewPageSize, DataViewPagination, DataViewProvider, DataViewSearch, DataViewSidebar, DataViewSort, DataViewTable_default as DataViewTable, DateSelector_default as DateSelector, DefaultLayout_default as DefaultLayout, Display, DocumentationPanel_default as DocumentationPanel, Drawer, DrawerToggler_default as DrawerToggler, EUIDevLayout_default as EUIDevLayout, EUIProvider, EUI_ANALYTICS_ANONYMOUS_ID_STORAGE_KEY, EUI_ANALYTICS_CONSENT_STORAGE_KEY, EUI_ANALYTICS_QUEUE_STORAGE_KEY, EnvErrorScreen_default as EnvErrorScreen, Flag, Flex, FlexCol_default as FlexCol, FlexRow_default as FlexRow, Footer, FooterNav_default as FooterNav, FooterNavGroup_default as FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse_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, Input, InputFile, InputLabel, InputList, InputListGroup, InputResponse, Label, Layout, Lead, LinePlot, Link, List, ListItem, ListItemElement, ListRoot, MDXMarkdownEditor_default as MDXMarkdownEditor, MDXMarkdownField_default as MDXMarkdownField, MarkdownBlockquote_default as MarkdownBlockquote, MarkdownBreak_default as MarkdownBreak, MarkdownCodeBlock_default as MarkdownCodeBlock, MarkdownContext, MarkdownDetails, MarkdownDocsLayout_default as MarkdownDocsLayout, MarkdownEditor_default as MarkdownEditor, MarkdownEmphasis_default as MarkdownEmphasis, MarkdownField_default as MarkdownField, MarkdownFigcaption, MarkdownFigure, MarkdownHeading_default as MarkdownHeadingComponent, MarkdownImage_default as MarkdownImage, MarkdownInlineCode_default as MarkdownInlineCode, MarkdownLayout_default as MarkdownLayout, MarkdownLink_default as MarkdownLink, MarkdownListItem_default as MarkdownListItem, MarkdownOrderedList, MarkdownParagraph_default as MarkdownParagraph, MarkdownPreviewPane_default as MarkdownPreviewPane, MarkdownProvider_default as MarkdownProvider, MarkdownRenderer_default as MarkdownRenderer, MarkdownSourceEditor_default as MarkdownSourceEditor, MarkdownSplitEditor_default as MarkdownSplitEditor, MarkdownStrikethrough_default as MarkdownStrikethrough, MarkdownStrong_default as MarkdownStrong, MarkdownSummary, MarkdownTOC_default as MarkdownTOC, MarkdownTOCItem_default as MarkdownTOCItem, MarkdownTable_default as MarkdownTable, MarkdownTableBody, MarkdownTableCell, MarkdownTableHead, MarkdownTableHeaderCell, MarkdownTableRow, MarkdownTaskCheckbox_default as MarkdownTaskCheckbox, MarkdownThematicBreak_default as MarkdownThematicBreak, MarkdownToolbar_default as MarkdownToolbar, MarkdownUnorderedList, MarkdownViewer_default as MarkdownViewer, Menu, MenuGroup, MenuItem, MenuItemTitle, Modal_default as Modal, MotionSurface_default as MotionSurface, MultiImageInput_default as MultiImageInput, NumericRating, Overline, Paragraph, PiePlot, PollingChartDataSource, PreviewSwitch, PriceTag, ProgressBar, ProgressBarRating, Quote, Radio_default as Radio, RealtimeChartDataSource, ReviewThread_default as ReviewThread, RouteTab_default as RouteTab, RouteTabs_default as RouteTabs, ScatterPlot, ScrollToTop_default as ScrollToTop, Section, Select_default as Select, ShapeSwitch, ShowMore_default as ShowMore, Sidebar_default as Sidebar, SidebarLayout_default as SidebarLayout, SidemenuLayout_default as SidemenuLayout, Skeleton, Slider_default as Slider, Spinner, StarRating, StarRatingDistribution_default as StarRatingDistribution, StarRatingInput_default as StarRatingInput, StatPlot, StaticChartDataSource, Switch_default as Switch, TNDropdown, TNDropdownItem, TNDropdownTitle, TNGroup, Table, TableBody, TableCell, TableElement, TableFrame, TableHead, TableHeaderCell, TableRow, Tag, Tags_default as Tags, TextArea_default as TextArea, ThemeContext, ThemeProvider, ThemeSelect, ThemeSwitch, TitleBanner, Toast, Tooltip6 as Tooltip, TopNav, Transition, TransitionAccordion_default as TransitionAccordion, TransitionBase_default as TransitionBase, TransitionDropdown_default as TransitionDropdown, TransitionFade_default as TransitionFade, TransitionFadeIn_default as TransitionFadeIn, TransitionScale_default as TransitionScale, TransitionSlide_default as TransitionSlide, Typography, UnderConstructionBanner, ValueBadge, WorldMap, WorldMapCountryTable, YoutubeVideo, YoutubeVideo as YoutubeVideoPlayer, addReplyToCache, addReviewReply, appendReview, applyReactionState, assertAbsoluteURL, buildURL, canDeleteReview, canDeleteReviewReply, canEditReview, canEditReviewReply, canReplyToReview, canReportReview, canReportReviewReply, clearAnalyticsQueueStorage, clearAnonymousIdStorage, clearConsentStorage, cn, createAnalyticsEvent, createAnalyticsId, createConfigurator, createDefaultConsent, createForceLayout, createGridLayout, createHeadingSlug, createTreeLayout, createURLResolver, decrementReplyCount, defaultFormatValue, defaultTiers, ensureAnonymousIdStorage, enumValues, euiToast, extractHeadings, findReview, formatChartLabel, formatChartValue, formatCommentDate, formatConfigError, formatReviewDate, generateHeadingNumbers, getAllowedOrigins, getBrowserHref, getBrowserOrigin, getBrowserRedirectURL, getConsentStatusFromCategories, getCurrencySymbol, getCurrentFullUrl, getCurrentPath, getCurrentReferrer, getCurrentTitle, getDeviceInfo, getDoNotTrackEnabled, getLayout, getNowISOString, getOptimisticDislikeState, getOptimisticLikeState, getSafeRedirect, getViewport, hasReviewReply, incrementReplyCount, isBrowser, isMatch, isRenderFn, limitRealtimePoints, normalize, normalizeChartData, normalizeChartDataPoint, normalizeMarkdown, normalizeReview, normalizeReviewAuthor, normalizeReviewReply, parseJson, parseJsonRecord, parseUrlMap, prependReview, readAnalyticsQueueStorage, readAnonymousIdStorage, readConsentStorage, registerLayout, removeComment, removeCommentTreeFromCache, removeReview, removeReviewReply, replaceRealtimePoints, replaceReview, replaceReviewReply, resolveAppearanceStyles, resolveChartColor, resolveChartColors, resolveWithGlobal, safeReadStorage, safeRemoveStorage, safeWriteStorage, sanitizeHeading, sendToast, slugify, toConfiguratorError, updateComment, updateReplyCacheComment, updateReview, updateReviewReply, upsertReview, useActiveHeading, useAnalytics, useChartContext, useChartData, useChartPolling, useChartRealtime, useChartSeries, useChartTheme, useClickOutside, useCloudinaryConfig, useCookieConsent, useCurrentTheme_default as useCurrentTheme, useDrawer_default as useDrawer, useEUIConfig, useEUIDevPreviewPlatform, useIsMobile_default as useIsMobile, useMarkdown, useMarkdownHeadings, useModal_default as useModal, usePageTracking, useResolvedChartState, useReviewThreadState, useSessionTracking, useTheme_default as useTheme, writeAnalyticsQueueStorage, writeConsentStorage };
|
|
57813
58054
|
//# sourceMappingURL=index.mjs.map
|
|
57814
58055
|
//# sourceMappingURL=index.mjs.map
|