elseware-ui 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/dist/index.css +372 -318
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +14 -69
- package/dist/index.d.ts +14 -69
- package/dist/index.js +726 -434
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +722 -430
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.d.mts +17 -4
- package/dist/index.native.d.ts +17 -4
- package/dist/index.native.js +743 -42
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +740 -45
- package/dist/index.native.mjs.map +1 -1
- package/dist/{resolveGlobalConfigs-CcaOIQCE.d.mts → resolveGlobalConfigs-CL-Puk7Y.d.mts} +94 -8
- package/dist/{resolveGlobalConfigs-CcaOIQCE.d.ts → resolveGlobalConfigs-CL-Puk7Y.d.ts} +94 -8
- package/package.json +7 -5
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 classNames72 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: classNames72({
|
|
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: classNames72(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 = classNames72(
|
|
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: classNames72(
|
|
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: classNames72({
|
|
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: classNames72(
|
|
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: classNames72(
|
|
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: classNames72(
|
|
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: classNames72(
|
|
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: classNames72(
|
|
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: classNames72(
|
|
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: classNames72(
|
|
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: classNames72(
|
|
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,238 @@ 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 {
|
|
7917
|
+
shape: resolvedShape,
|
|
7918
|
+
variant: resolvedVariant,
|
|
7919
|
+
label: resolvedLabel
|
|
7920
|
+
} = useResolvedCheckboxConfig({
|
|
7921
|
+
label,
|
|
7922
|
+
placeholder,
|
|
7923
|
+
variant,
|
|
7924
|
+
shape
|
|
7925
|
+
});
|
|
7926
|
+
const {
|
|
7927
|
+
isMulti,
|
|
7928
|
+
multiField,
|
|
7929
|
+
multiMeta,
|
|
7930
|
+
multiHelpers,
|
|
7931
|
+
singleField,
|
|
7932
|
+
singleMeta,
|
|
7933
|
+
singleHelpers
|
|
7934
|
+
} = useCheckboxFieldState(checkboxProps);
|
|
7935
|
+
const variantStyles = resolveWebCheckboxVariantStyles(resolvedVariant);
|
|
7936
|
+
const activeFieldName = isMulti ? multiField.name : singleField.name;
|
|
7937
|
+
const activeMeta = isMulti ? multiMeta : singleMeta;
|
|
7938
|
+
const multiProps = isMultiCheckbox(checkboxProps) ? checkboxProps : null;
|
|
7939
|
+
const singleChecked = singleField.value;
|
|
7940
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(checkboxGroupClassName, groupClassName), children: [
|
|
7941
|
+
!isMulti && /* @__PURE__ */ jsxs("div", { className: cn(checkboxOptionRowClassName, optionClassName), children: [
|
|
7942
|
+
/* @__PURE__ */ jsxs("span", { className: "relative inline-flex h-5 w-5 shrink-0 items-center justify-center", children: [
|
|
7943
|
+
/* @__PURE__ */ jsx(
|
|
7944
|
+
"input",
|
|
7945
|
+
{
|
|
7946
|
+
id: singleField.name,
|
|
7947
|
+
name: singleField.name,
|
|
7948
|
+
type: "checkbox",
|
|
7949
|
+
checked: singleChecked,
|
|
7950
|
+
disabled,
|
|
7951
|
+
onBlur: singleField.onBlur,
|
|
7952
|
+
onChange: (event) => singleHelpers.setValue(event.target.checked),
|
|
7953
|
+
className: getIndicatorClassName({
|
|
7954
|
+
checked: singleChecked,
|
|
7955
|
+
className,
|
|
7956
|
+
disabled,
|
|
7957
|
+
indicatorClassName,
|
|
7958
|
+
checkedIndicatorClassName,
|
|
7959
|
+
resolvedShape,
|
|
7960
|
+
variantCheckedClassName: variantStyles.checkedClassName
|
|
7961
|
+
})
|
|
7962
|
+
}
|
|
7963
|
+
),
|
|
7964
|
+
/* @__PURE__ */ jsx(
|
|
7965
|
+
Tick,
|
|
7966
|
+
{
|
|
7967
|
+
checked: singleChecked,
|
|
7968
|
+
checkedIconClassName,
|
|
7969
|
+
iconClassName: variantStyles.iconClassName
|
|
7970
|
+
}
|
|
7971
|
+
)
|
|
7972
|
+
] }),
|
|
7973
|
+
resolvedLabel ? /* @__PURE__ */ jsx(
|
|
7748
7974
|
"label",
|
|
7749
7975
|
{
|
|
7750
7976
|
htmlFor: singleField.name,
|
|
7751
|
-
className: cn(
|
|
7752
|
-
|
|
7753
|
-
"text-gray-800 dark:text-gray-200"
|
|
7754
|
-
),
|
|
7755
|
-
children: placeholder
|
|
7977
|
+
className: cn(checkboxLabelClassName, labelClassName),
|
|
7978
|
+
children: resolvedLabel
|
|
7756
7979
|
}
|
|
7757
|
-
)
|
|
7980
|
+
) : null
|
|
7758
7981
|
] }),
|
|
7759
|
-
isMulti &&
|
|
7982
|
+
isMulti && multiProps?.options.map((option) => {
|
|
7760
7983
|
const values = multiField.value ?? [];
|
|
7761
7984
|
const checked = values.includes(option.value);
|
|
7985
|
+
const optionDisabled = disabled || option.disabled === true;
|
|
7762
7986
|
return /* @__PURE__ */ jsxs(
|
|
7763
7987
|
"div",
|
|
7764
7988
|
{
|
|
7765
|
-
className:
|
|
7989
|
+
className: cn(checkboxOptionRowClassName, optionClassName),
|
|
7766
7990
|
children: [
|
|
7767
|
-
/* @__PURE__ */
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7991
|
+
/* @__PURE__ */ jsxs("span", { className: "relative inline-flex h-5 w-5 shrink-0 items-center justify-center", children: [
|
|
7992
|
+
/* @__PURE__ */ jsx(
|
|
7993
|
+
"input",
|
|
7994
|
+
{
|
|
7995
|
+
id: option.value,
|
|
7996
|
+
name: multiField.name,
|
|
7997
|
+
type: "checkbox",
|
|
7998
|
+
checked,
|
|
7999
|
+
disabled: optionDisabled,
|
|
8000
|
+
onBlur: multiField.onBlur,
|
|
8001
|
+
onChange: () => {
|
|
8002
|
+
multiHelpers.setValue(
|
|
8003
|
+
checked ? values.filter((value) => value !== option.value) : [...values, option.value]
|
|
8004
|
+
);
|
|
8005
|
+
},
|
|
8006
|
+
className: getIndicatorClassName({
|
|
8007
|
+
checked,
|
|
8008
|
+
className,
|
|
8009
|
+
disabled: optionDisabled,
|
|
8010
|
+
indicatorClassName,
|
|
8011
|
+
checkedIndicatorClassName,
|
|
8012
|
+
resolvedShape,
|
|
8013
|
+
variantCheckedClassName: variantStyles.checkedClassName
|
|
8014
|
+
})
|
|
8015
|
+
}
|
|
8016
|
+
),
|
|
8017
|
+
/* @__PURE__ */ jsx(
|
|
8018
|
+
Tick,
|
|
8019
|
+
{
|
|
8020
|
+
checked,
|
|
8021
|
+
checkedIconClassName,
|
|
8022
|
+
iconClassName: variantStyles.iconClassName
|
|
8023
|
+
}
|
|
8024
|
+
)
|
|
8025
|
+
] }),
|
|
7781
8026
|
/* @__PURE__ */ jsx(
|
|
7782
8027
|
"label",
|
|
7783
8028
|
{
|
|
7784
8029
|
htmlFor: option.value,
|
|
7785
8030
|
className: cn(
|
|
7786
|
-
|
|
7787
|
-
"
|
|
8031
|
+
checkboxLabelClassName,
|
|
8032
|
+
optionDisabled && "cursor-not-allowed opacity-60",
|
|
8033
|
+
labelClassName
|
|
7788
8034
|
),
|
|
7789
8035
|
children: option.label
|
|
7790
8036
|
}
|
|
@@ -7795,16 +8041,15 @@ function Checkbox({
|
|
|
7795
8041
|
);
|
|
7796
8042
|
}),
|
|
7797
8043
|
/* @__PURE__ */ jsx(
|
|
7798
|
-
|
|
8044
|
+
InputResponse,
|
|
7799
8045
|
{
|
|
7800
|
-
name:
|
|
7801
|
-
visibility: Boolean(
|
|
8046
|
+
name: activeFieldName,
|
|
8047
|
+
visibility: Boolean(activeMeta.touched && activeMeta.error),
|
|
7802
8048
|
variant: "danger"
|
|
7803
8049
|
}
|
|
7804
8050
|
)
|
|
7805
8051
|
] });
|
|
7806
8052
|
}
|
|
7807
|
-
var Checkbox_default = Checkbox;
|
|
7808
8053
|
var DateSelector = ({
|
|
7809
8054
|
placeholder,
|
|
7810
8055
|
styles,
|
|
@@ -7816,10 +8061,10 @@ var DateSelector = ({
|
|
|
7816
8061
|
const [field, meta] = useField(props);
|
|
7817
8062
|
return /* @__PURE__ */ jsxs("div", { className: "relative w-full", children: [
|
|
7818
8063
|
/* @__PURE__ */ jsx(
|
|
7819
|
-
|
|
8064
|
+
InputLabel,
|
|
7820
8065
|
{
|
|
7821
8066
|
text: placeholder,
|
|
7822
|
-
|
|
8067
|
+
className: "absolute left-2 top-[0.7px] peer-placeholder-shown:text-base peer-placeholder-shown:top-3"
|
|
7823
8068
|
}
|
|
7824
8069
|
),
|
|
7825
8070
|
/* @__PURE__ */ jsx(
|
|
@@ -7829,7 +8074,7 @@ var DateSelector = ({
|
|
|
7829
8074
|
...field,
|
|
7830
8075
|
...props,
|
|
7831
8076
|
placeholder,
|
|
7832
|
-
className:
|
|
8077
|
+
className: classNames72({
|
|
7833
8078
|
"border border-eui-primary-400 peer w-full bg-eui-primary-300/10 pt-5 px-3 pb-2 text-md eui-text-md placeholder-transparent placeholder-shown:p-3 focus:border-eui-secondary-500 focus:outline-none h-[50px]": true,
|
|
7834
8079
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
7835
8080
|
"transition-all ease-in-out": true,
|
|
@@ -7838,12 +8083,22 @@ var DateSelector = ({
|
|
|
7838
8083
|
})
|
|
7839
8084
|
}
|
|
7840
8085
|
),
|
|
7841
|
-
meta.touched && meta.error && /* @__PURE__ */ jsx(
|
|
8086
|
+
meta.touched && meta.error && /* @__PURE__ */ jsx(InputResponse, { name: field.name, visibility: true, variant: "danger" })
|
|
7842
8087
|
] });
|
|
7843
8088
|
};
|
|
7844
8089
|
var DateSelector_default = DateSelector;
|
|
7845
|
-
|
|
8090
|
+
function renderFormChildren(children3, formik) {
|
|
8091
|
+
return typeof children3 === "function" ? children3(formik) : children3;
|
|
8092
|
+
}
|
|
8093
|
+
function FormObservers({
|
|
8094
|
+
formik,
|
|
8095
|
+
onChange,
|
|
8096
|
+
onDirtyChange
|
|
8097
|
+
}) {
|
|
7846
8098
|
const prevValuesRef = useRef(formik.values);
|
|
8099
|
+
useEffect(() => {
|
|
8100
|
+
onDirtyChange?.(formik.dirty);
|
|
8101
|
+
}, [formik.dirty, onDirtyChange]);
|
|
7847
8102
|
useEffect(() => {
|
|
7848
8103
|
if (!onChange) return;
|
|
7849
8104
|
const currentValues = formik.values;
|
|
@@ -7860,24 +8115,17 @@ var FormObserver = ({ formik, onChange }) => {
|
|
|
7860
8115
|
prevValuesRef.current = currentValues;
|
|
7861
8116
|
}, [formik.values, onChange]);
|
|
7862
8117
|
return null;
|
|
7863
|
-
}
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
onDirtyChange(formik.dirty);
|
|
7869
|
-
}
|
|
7870
|
-
}, [formik.dirty, onDirtyChange]);
|
|
7871
|
-
return null;
|
|
7872
|
-
};
|
|
7873
|
-
var DirtyObserver_default = DirtyObserver;
|
|
7874
|
-
var UnsavedChangesGuard = ({ formik, enabled }) => {
|
|
8118
|
+
}
|
|
8119
|
+
function UnsavedChangesGuard({
|
|
8120
|
+
formik,
|
|
8121
|
+
enabled
|
|
8122
|
+
}) {
|
|
7875
8123
|
useEffect(() => {
|
|
7876
8124
|
if (!enabled) return;
|
|
7877
|
-
const handleBeforeUnload = (
|
|
8125
|
+
const handleBeforeUnload = (event) => {
|
|
7878
8126
|
if (!formik.dirty) return;
|
|
7879
|
-
|
|
7880
|
-
|
|
8127
|
+
event.preventDefault();
|
|
8128
|
+
event.returnValue = "";
|
|
7881
8129
|
};
|
|
7882
8130
|
window.addEventListener("beforeunload", handleBeforeUnload);
|
|
7883
8131
|
return () => {
|
|
@@ -7885,19 +8133,19 @@ var UnsavedChangesGuard = ({ formik, enabled }) => {
|
|
|
7885
8133
|
};
|
|
7886
8134
|
}, [formik.dirty, enabled]);
|
|
7887
8135
|
return null;
|
|
7888
|
-
}
|
|
7889
|
-
|
|
7890
|
-
var Form = ({
|
|
8136
|
+
}
|
|
8137
|
+
function Form({
|
|
7891
8138
|
initialValues = {},
|
|
7892
8139
|
validationSchema,
|
|
7893
8140
|
enableReinitialize,
|
|
7894
8141
|
children: children3,
|
|
7895
|
-
|
|
8142
|
+
className,
|
|
8143
|
+
contentClassName,
|
|
7896
8144
|
onSubmit,
|
|
7897
8145
|
onChange,
|
|
7898
8146
|
warnOnUnsavedChanges = false,
|
|
7899
8147
|
onDirtyChange
|
|
7900
|
-
})
|
|
8148
|
+
}) {
|
|
7901
8149
|
return /* @__PURE__ */ jsx(
|
|
7902
8150
|
Formik,
|
|
7903
8151
|
{
|
|
@@ -7907,44 +8155,88 @@ var Form = ({
|
|
|
7907
8155
|
onSubmit: async (values, helpers) => {
|
|
7908
8156
|
await onSubmit(values, helpers);
|
|
7909
8157
|
},
|
|
7910
|
-
children: (formik) => /* @__PURE__ */ jsxs(Form$1, { children: [
|
|
7911
|
-
/* @__PURE__ */ jsx(
|
|
7912
|
-
/* @__PURE__ */ jsx(
|
|
7913
|
-
|
|
7914
|
-
|
|
8158
|
+
children: (formik) => /* @__PURE__ */ jsxs(Form$1, { className, children: [
|
|
8159
|
+
/* @__PURE__ */ jsx(UnsavedChangesGuard, { formik, enabled: warnOnUnsavedChanges }),
|
|
8160
|
+
/* @__PURE__ */ jsx(
|
|
8161
|
+
FormObservers,
|
|
8162
|
+
{
|
|
8163
|
+
formik,
|
|
8164
|
+
onChange,
|
|
8165
|
+
onDirtyChange
|
|
8166
|
+
}
|
|
8167
|
+
),
|
|
8168
|
+
/* @__PURE__ */ jsx("div", { className: cn(contentClassName), children: renderFormChildren(children3, formik) })
|
|
7915
8169
|
] })
|
|
7916
8170
|
}
|
|
7917
8171
|
);
|
|
8172
|
+
}
|
|
8173
|
+
|
|
8174
|
+
// src/components/data-entry/form/form-response/base/FormResponse.styles.ts
|
|
8175
|
+
var formResponseSizeStyles = {
|
|
8176
|
+
xs: {
|
|
8177
|
+
root: "px-2 py-1",
|
|
8178
|
+
text: "text-xs"
|
|
8179
|
+
},
|
|
8180
|
+
sm: {
|
|
8181
|
+
root: "px-3 py-2",
|
|
8182
|
+
text: "text-sm"
|
|
8183
|
+
},
|
|
8184
|
+
md: {
|
|
8185
|
+
root: "px-4 py-2",
|
|
8186
|
+
text: "text-base"
|
|
8187
|
+
},
|
|
8188
|
+
lg: {
|
|
8189
|
+
root: "px-5 py-3",
|
|
8190
|
+
text: "text-lg"
|
|
8191
|
+
},
|
|
8192
|
+
xl: {
|
|
8193
|
+
root: "px-6 py-4",
|
|
8194
|
+
text: "text-xl"
|
|
8195
|
+
}
|
|
7918
8196
|
};
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
8197
|
+
function isTextClassName(token) {
|
|
8198
|
+
const styleToken = token.split(":").pop() ?? token;
|
|
8199
|
+
return styleToken.startsWith("text-");
|
|
8200
|
+
}
|
|
8201
|
+
function splitClassName(className) {
|
|
8202
|
+
const tokens = className.split(/\s+/).filter(Boolean);
|
|
8203
|
+
return {
|
|
8204
|
+
root: tokens.filter((token) => !isTextClassName(token)).join(" "),
|
|
8205
|
+
text: tokens.filter(isTextClassName).join(" ")
|
|
8206
|
+
};
|
|
8207
|
+
}
|
|
8208
|
+
function resolveFormResponseStyles({
|
|
8209
|
+
shape,
|
|
8210
|
+
size,
|
|
8211
|
+
variant
|
|
8212
|
+
}) {
|
|
8213
|
+
const variantClassNames = splitClassName(variantsLite[variant]);
|
|
8214
|
+
const sizeClassNames = formResponseSizeStyles[size];
|
|
8215
|
+
return {
|
|
8216
|
+
rootClassName: [
|
|
8217
|
+
"border",
|
|
8218
|
+
variantClassNames.root,
|
|
8219
|
+
shapes[shape],
|
|
8220
|
+
sizeClassNames.root
|
|
8221
|
+
].filter(Boolean).join(" "),
|
|
8222
|
+
textClassName: [
|
|
8223
|
+
"font-poppins font-light",
|
|
8224
|
+
variantClassNames.text,
|
|
8225
|
+
sizeClassNames.text
|
|
8226
|
+
].filter(Boolean).join(" ")
|
|
8227
|
+
};
|
|
8228
|
+
}
|
|
7926
8229
|
function FormResponse({
|
|
7927
8230
|
text: text10,
|
|
7928
8231
|
variant = "default",
|
|
7929
8232
|
shape = "roundedSquare",
|
|
7930
8233
|
size = "md",
|
|
7931
|
-
|
|
8234
|
+
className,
|
|
8235
|
+
textClassName
|
|
7932
8236
|
}) {
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
{
|
|
7936
|
-
className: classNames77({
|
|
7937
|
-
"font-poppins font-light text-sm": true,
|
|
7938
|
-
[`${variantsLite[variant]}`]: variant,
|
|
7939
|
-
[`${shapes[shape]}`]: shape,
|
|
7940
|
-
[`${sizes[size]}`]: size,
|
|
7941
|
-
[`${styles}`]: styles
|
|
7942
|
-
}),
|
|
7943
|
-
children: text10
|
|
7944
|
-
}
|
|
7945
|
-
) });
|
|
8237
|
+
const styles = resolveFormResponseStyles({ shape, size, variant });
|
|
8238
|
+
return /* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility: Boolean(text10), children: /* @__PURE__ */ jsx("div", { className: cn(styles.rootClassName, className), children: /* @__PURE__ */ jsx("span", { className: cn(styles.textClassName, textClassName), children: text10 }) }) });
|
|
7946
8239
|
}
|
|
7947
|
-
var FormResponse_default = FormResponse;
|
|
7948
8240
|
function ImageView({ imageUrl, secure = true, alt = "image" }) {
|
|
7949
8241
|
return /* @__PURE__ */ jsx("div", { className: "h-[200px] w-[300px]", children: /* @__PURE__ */ jsx("div", { className: "w-full h-full overflow-hidden bg-gray-900 flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
7950
8242
|
Image,
|
|
@@ -8041,7 +8333,7 @@ var ImageInput = forwardRef(
|
|
|
8041
8333
|
/* @__PURE__ */ jsxs(
|
|
8042
8334
|
"label",
|
|
8043
8335
|
{
|
|
8044
|
-
className:
|
|
8336
|
+
className: classNames72({
|
|
8045
8337
|
"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
8338
|
"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
|
|
8047
8339
|
"transition-all ease-in-out duration-150": true
|
|
@@ -8088,7 +8380,7 @@ var ImageInput = forwardRef(
|
|
|
8088
8380
|
] })
|
|
8089
8381
|
] }) }),
|
|
8090
8382
|
/* @__PURE__ */ jsx(
|
|
8091
|
-
|
|
8383
|
+
InputResponse,
|
|
8092
8384
|
{
|
|
8093
8385
|
name: field.name,
|
|
8094
8386
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8133,7 +8425,7 @@ function MultiImageInput({
|
|
|
8133
8425
|
) })
|
|
8134
8426
|
] }),
|
|
8135
8427
|
/* @__PURE__ */ jsx(
|
|
8136
|
-
|
|
8428
|
+
InputResponse,
|
|
8137
8429
|
{
|
|
8138
8430
|
name: field.name,
|
|
8139
8431
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8151,14 +8443,14 @@ function Radio({
|
|
|
8151
8443
|
const { name: name2 } = props;
|
|
8152
8444
|
const [field, meta] = useField(props);
|
|
8153
8445
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
8154
|
-
/* @__PURE__ */ jsx(
|
|
8446
|
+
/* @__PURE__ */ jsx(InputLabel, { text: placeholder }),
|
|
8155
8447
|
/* @__PURE__ */ jsx(Field, { name: name2, children: (formik) => {
|
|
8156
8448
|
const { field: field2 } = formik;
|
|
8157
8449
|
return options.map((option) => {
|
|
8158
8450
|
return /* @__PURE__ */ jsxs(
|
|
8159
8451
|
"div",
|
|
8160
8452
|
{
|
|
8161
|
-
className:
|
|
8453
|
+
className: classNames72({
|
|
8162
8454
|
"flex flex-row gap-2 items-center mx-1 my-2": true
|
|
8163
8455
|
}),
|
|
8164
8456
|
children: [
|
|
@@ -8171,7 +8463,7 @@ function Radio({
|
|
|
8171
8463
|
...props,
|
|
8172
8464
|
value: option.value,
|
|
8173
8465
|
checked: field2.value === option.value,
|
|
8174
|
-
className:
|
|
8466
|
+
className: classNames72({
|
|
8175
8467
|
"appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
|
|
8176
8468
|
// base radio button styles
|
|
8177
8469
|
"checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
|
|
@@ -8183,7 +8475,7 @@ function Radio({
|
|
|
8183
8475
|
"label",
|
|
8184
8476
|
{
|
|
8185
8477
|
htmlFor: option.value,
|
|
8186
|
-
className:
|
|
8478
|
+
className: classNames72({
|
|
8187
8479
|
"eui-text-md text-sm": true
|
|
8188
8480
|
}),
|
|
8189
8481
|
children: option.label
|
|
@@ -8196,7 +8488,7 @@ function Radio({
|
|
|
8196
8488
|
});
|
|
8197
8489
|
} }),
|
|
8198
8490
|
/* @__PURE__ */ jsx(
|
|
8199
|
-
|
|
8491
|
+
InputResponse,
|
|
8200
8492
|
{
|
|
8201
8493
|
name: field.name,
|
|
8202
8494
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8226,7 +8518,7 @@ function StarRatingInput({
|
|
|
8226
8518
|
return /* @__PURE__ */ jsxs(
|
|
8227
8519
|
"div",
|
|
8228
8520
|
{
|
|
8229
|
-
className:
|
|
8521
|
+
className: classNames72({
|
|
8230
8522
|
"inline-flex gap-[4px] text-[20px]": true,
|
|
8231
8523
|
[`${styles}`]: styles
|
|
8232
8524
|
}),
|
|
@@ -8239,7 +8531,7 @@ function StarRatingInput({
|
|
|
8239
8531
|
onClick: () => handleOnClick(index3),
|
|
8240
8532
|
onMouseEnter: () => setHover(index3),
|
|
8241
8533
|
onMouseLeave: () => setHover(null),
|
|
8242
|
-
className:
|
|
8534
|
+
className: classNames72({
|
|
8243
8535
|
"text-yellow-600": index3 <= (hover ?? rating - 1),
|
|
8244
8536
|
"text-gray-400": index3 > (hover ?? rating - 1)
|
|
8245
8537
|
}),
|
|
@@ -8248,7 +8540,7 @@ function StarRatingInput({
|
|
|
8248
8540
|
index3
|
|
8249
8541
|
)) }),
|
|
8250
8542
|
/* @__PURE__ */ jsx(
|
|
8251
|
-
|
|
8543
|
+
InputResponse,
|
|
8252
8544
|
{
|
|
8253
8545
|
name: field.name,
|
|
8254
8546
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8272,10 +8564,10 @@ function Select({
|
|
|
8272
8564
|
const [field, meta] = useField(props);
|
|
8273
8565
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
8274
8566
|
/* @__PURE__ */ jsx(
|
|
8275
|
-
|
|
8567
|
+
InputLabel,
|
|
8276
8568
|
{
|
|
8277
8569
|
text: placeholder,
|
|
8278
|
-
|
|
8570
|
+
className: "absolute left-2 top-[0.7px] peer-placeholder-shown:text-base peer-placeholder-shown:top-3"
|
|
8279
8571
|
}
|
|
8280
8572
|
),
|
|
8281
8573
|
/* @__PURE__ */ jsx(
|
|
@@ -8283,7 +8575,7 @@ function Select({
|
|
|
8283
8575
|
{
|
|
8284
8576
|
as: "select",
|
|
8285
8577
|
...props,
|
|
8286
|
-
className:
|
|
8578
|
+
className: classNames72({
|
|
8287
8579
|
"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
8580
|
"border-eui-primary-400": !(meta.touched && meta.error),
|
|
8289
8581
|
"border-red-500": meta.touched && meta.error,
|
|
@@ -8297,7 +8589,7 @@ function Select({
|
|
|
8297
8589
|
}
|
|
8298
8590
|
),
|
|
8299
8591
|
/* @__PURE__ */ jsx(
|
|
8300
|
-
|
|
8592
|
+
InputResponse,
|
|
8301
8593
|
{
|
|
8302
8594
|
name: field.name,
|
|
8303
8595
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8318,7 +8610,7 @@ function Switch({
|
|
|
8318
8610
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
8319
8611
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-row justify-between w-full gap-3", children: [
|
|
8320
8612
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
8321
|
-
label && /* @__PURE__ */ jsx(
|
|
8613
|
+
label && /* @__PURE__ */ jsx(InputLabel, { text: label }),
|
|
8322
8614
|
description && /* @__PURE__ */ jsx("label", { className: "eui-text-md text-[12px] max-w-[500px]", children: description })
|
|
8323
8615
|
] }),
|
|
8324
8616
|
/* @__PURE__ */ jsx(Field, { name: name2, children: () => /* @__PURE__ */ jsxs("label", { className: "relative inline-flex cursor-pointer", children: [
|
|
@@ -8335,7 +8627,7 @@ function Switch({
|
|
|
8335
8627
|
"div",
|
|
8336
8628
|
{
|
|
8337
8629
|
onClick: () => helpers.setValue(!field.value),
|
|
8338
|
-
className:
|
|
8630
|
+
className: classNames72(
|
|
8339
8631
|
"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
|
|
8340
8632
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
8341
8633
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
|
|
@@ -8348,7 +8640,7 @@ function Switch({
|
|
|
8348
8640
|
] }) })
|
|
8349
8641
|
] }),
|
|
8350
8642
|
/* @__PURE__ */ jsx(
|
|
8351
|
-
|
|
8643
|
+
InputResponse,
|
|
8352
8644
|
{
|
|
8353
8645
|
name: name2,
|
|
8354
8646
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8392,7 +8684,7 @@ function Tags({
|
|
|
8392
8684
|
/* @__PURE__ */ jsxs(
|
|
8393
8685
|
"div",
|
|
8394
8686
|
{
|
|
8395
|
-
className:
|
|
8687
|
+
className: classNames72(
|
|
8396
8688
|
"border rounded-sm flex flex-wrap items-center gap-2 px-2 pt-2 pb-6 min-h-[3rem]",
|
|
8397
8689
|
{
|
|
8398
8690
|
"bg-eui-primary-300/10 eui-text-md": true,
|
|
@@ -8437,10 +8729,10 @@ function Tags({
|
|
|
8437
8729
|
}
|
|
8438
8730
|
),
|
|
8439
8731
|
/* @__PURE__ */ jsx(
|
|
8440
|
-
|
|
8732
|
+
InputLabel,
|
|
8441
8733
|
{
|
|
8442
8734
|
text: placeholder,
|
|
8443
|
-
|
|
8735
|
+
className: classNames72(
|
|
8444
8736
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
8445
8737
|
input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
8446
8738
|
)
|
|
@@ -8453,7 +8745,7 @@ function Tags({
|
|
|
8453
8745
|
] })
|
|
8454
8746
|
] }),
|
|
8455
8747
|
/* @__PURE__ */ jsx(
|
|
8456
|
-
|
|
8748
|
+
InputResponse,
|
|
8457
8749
|
{
|
|
8458
8750
|
name: field.name,
|
|
8459
8751
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8481,7 +8773,7 @@ function TextArea({
|
|
|
8481
8773
|
as: "textarea",
|
|
8482
8774
|
...field,
|
|
8483
8775
|
...props,
|
|
8484
|
-
className:
|
|
8776
|
+
className: classNames72({
|
|
8485
8777
|
"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
8778
|
"transition-all ease-in-out": true,
|
|
8487
8779
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -8492,10 +8784,10 @@ function TextArea({
|
|
|
8492
8784
|
}
|
|
8493
8785
|
),
|
|
8494
8786
|
/* @__PURE__ */ jsx(
|
|
8495
|
-
|
|
8787
|
+
InputLabel,
|
|
8496
8788
|
{
|
|
8497
8789
|
text: placeholder,
|
|
8498
|
-
|
|
8790
|
+
className: classNames72(
|
|
8499
8791
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
8500
8792
|
field.value ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
8501
8793
|
)
|
|
@@ -8508,7 +8800,7 @@ function TextArea({
|
|
|
8508
8800
|
] })
|
|
8509
8801
|
] }),
|
|
8510
8802
|
/* @__PURE__ */ jsx(
|
|
8511
|
-
|
|
8803
|
+
InputResponse,
|
|
8512
8804
|
{
|
|
8513
8805
|
name: field.name,
|
|
8514
8806
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8529,7 +8821,7 @@ function BreadcrumbItem({
|
|
|
8529
8821
|
{
|
|
8530
8822
|
href,
|
|
8531
8823
|
onClick,
|
|
8532
|
-
className:
|
|
8824
|
+
className: classNames72({
|
|
8533
8825
|
"text-lg font-semibold": true,
|
|
8534
8826
|
"text-gray-400 hover:text-gray-600 cursor-pointer": !active,
|
|
8535
8827
|
"text-eui-light-800": active,
|
|
@@ -8606,7 +8898,7 @@ var Breadcrumb = ({
|
|
|
8606
8898
|
index3 < resolvedData.length - 1 && /* @__PURE__ */ jsx(
|
|
8607
8899
|
"span",
|
|
8608
8900
|
{
|
|
8609
|
-
className:
|
|
8901
|
+
className: classNames72({
|
|
8610
8902
|
"text-lg font-semibold text-gray-500": true,
|
|
8611
8903
|
[`px-${gap}`]: gap
|
|
8612
8904
|
}),
|
|
@@ -8620,7 +8912,7 @@ var Breadcrumb = ({
|
|
|
8620
8912
|
return /* @__PURE__ */ jsx(
|
|
8621
8913
|
"div",
|
|
8622
8914
|
{
|
|
8623
|
-
className:
|
|
8915
|
+
className: classNames72({
|
|
8624
8916
|
"inline-flex": true,
|
|
8625
8917
|
[`${styles}`]: styles
|
|
8626
8918
|
}),
|
|
@@ -8664,7 +8956,7 @@ var Drawer = ({
|
|
|
8664
8956
|
isMobile && showBackdrop && /* @__PURE__ */ jsx(TransitionFade_default, { visibility, leaveDuration: 200, children: /* @__PURE__ */ jsx(
|
|
8665
8957
|
"div",
|
|
8666
8958
|
{
|
|
8667
|
-
className:
|
|
8959
|
+
className: classNames72(
|
|
8668
8960
|
"fixed inset-0 bg-black/50 z-40",
|
|
8669
8961
|
backdropStyles
|
|
8670
8962
|
),
|
|
@@ -8675,7 +8967,7 @@ var Drawer = ({
|
|
|
8675
8967
|
"div",
|
|
8676
8968
|
{
|
|
8677
8969
|
style: drawerStyle,
|
|
8678
|
-
className:
|
|
8970
|
+
className: classNames72(
|
|
8679
8971
|
"fixed shadow-lg z-50",
|
|
8680
8972
|
{
|
|
8681
8973
|
"h-full w-[300px] top-0": isHorizontal && !hasOffset,
|
|
@@ -8704,7 +8996,7 @@ function DrawerToggler({
|
|
|
8704
8996
|
return /* @__PURE__ */ jsx(
|
|
8705
8997
|
"div",
|
|
8706
8998
|
{
|
|
8707
|
-
className:
|
|
8999
|
+
className: classNames72({
|
|
8708
9000
|
"text-xl p-3 cursor-pointer": true,
|
|
8709
9001
|
"transition-all ease-in-out": true,
|
|
8710
9002
|
"text-eui-dark-500 dark:text-eui-secondary-600": !styles,
|
|
@@ -8752,7 +9044,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
8752
9044
|
childrenContent = /* @__PURE__ */ jsx(
|
|
8753
9045
|
"div",
|
|
8754
9046
|
{
|
|
8755
|
-
className:
|
|
9047
|
+
className: classNames72({
|
|
8756
9048
|
"grid w-full": true,
|
|
8757
9049
|
"grid-cols-1": isMobile,
|
|
8758
9050
|
"grid-cols-3": !isMobile,
|
|
@@ -8765,7 +9057,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
8765
9057
|
return /* @__PURE__ */ jsx(
|
|
8766
9058
|
"div",
|
|
8767
9059
|
{
|
|
8768
|
-
className:
|
|
9060
|
+
className: classNames72({
|
|
8769
9061
|
[`${styles}`]: styles
|
|
8770
9062
|
}),
|
|
8771
9063
|
children: childrenContent
|
|
@@ -8806,7 +9098,7 @@ var FooterNavGroup = ({
|
|
|
8806
9098
|
/* @__PURE__ */ jsx(
|
|
8807
9099
|
"div",
|
|
8808
9100
|
{
|
|
8809
|
-
className:
|
|
9101
|
+
className: classNames72({
|
|
8810
9102
|
"": true,
|
|
8811
9103
|
"py-2 font-semibold eui-text-lg": !styles,
|
|
8812
9104
|
[`${styles}`]: styles
|
|
@@ -8851,7 +9143,7 @@ var FooterNavItem = ({
|
|
|
8851
9143
|
"div",
|
|
8852
9144
|
{
|
|
8853
9145
|
onClick: handleNavigation,
|
|
8854
|
-
className:
|
|
9146
|
+
className: classNames72({
|
|
8855
9147
|
"flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
|
|
8856
9148
|
"transition-all duration-200 ease-in-out": true,
|
|
8857
9149
|
"text-sm eui-text-sm": !styles,
|
|
@@ -8880,7 +9172,7 @@ var FooterNavItemTitle = ({
|
|
|
8880
9172
|
return /* @__PURE__ */ jsx(
|
|
8881
9173
|
"div",
|
|
8882
9174
|
{
|
|
8883
|
-
className:
|
|
9175
|
+
className: classNames72({
|
|
8884
9176
|
"": true,
|
|
8885
9177
|
"py-2 font-thin eui-text-md": !styles,
|
|
8886
9178
|
[`${styles}`]: styles
|
|
@@ -8933,7 +9225,7 @@ function HeaderNav({ data = [], styles }) {
|
|
|
8933
9225
|
return /* @__PURE__ */ jsx(
|
|
8934
9226
|
"div",
|
|
8935
9227
|
{
|
|
8936
|
-
className:
|
|
9228
|
+
className: classNames72({
|
|
8937
9229
|
[`${styles}`]: styles
|
|
8938
9230
|
}),
|
|
8939
9231
|
children: childrenContent
|
|
@@ -8995,7 +9287,7 @@ var HeaderNavGroup = ({
|
|
|
8995
9287
|
/* @__PURE__ */ jsxs(
|
|
8996
9288
|
"div",
|
|
8997
9289
|
{
|
|
8998
|
-
className:
|
|
9290
|
+
className: classNames72({
|
|
8999
9291
|
"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
|
|
9000
9292
|
"transition-all duration-300 ease-in-out": true,
|
|
9001
9293
|
"eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
|
|
@@ -9023,7 +9315,7 @@ var HeaderNavGroup = ({
|
|
|
9023
9315
|
children3 && /* @__PURE__ */ jsx(
|
|
9024
9316
|
BsChevronDown,
|
|
9025
9317
|
{
|
|
9026
|
-
className:
|
|
9318
|
+
className: classNames72({
|
|
9027
9319
|
"text-md": true,
|
|
9028
9320
|
"transition-all ease-in-out duration-300": true,
|
|
9029
9321
|
"rotate-180": !collapsed
|
|
@@ -9036,7 +9328,7 @@ var HeaderNavGroup = ({
|
|
|
9036
9328
|
!collapsed && children3 && /* @__PURE__ */ jsx(
|
|
9037
9329
|
"div",
|
|
9038
9330
|
{
|
|
9039
|
-
className:
|
|
9331
|
+
className: classNames72({
|
|
9040
9332
|
"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
9333
|
"transition-all duration-300 ease-in-out": true
|
|
9042
9334
|
}),
|
|
@@ -9066,7 +9358,7 @@ var HeaderNavItem = ({
|
|
|
9066
9358
|
"div",
|
|
9067
9359
|
{
|
|
9068
9360
|
onClick: handleNavigation,
|
|
9069
|
-
className:
|
|
9361
|
+
className: classNames72({
|
|
9070
9362
|
"flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
|
|
9071
9363
|
"transition-all duration-200 ease-in-out": true,
|
|
9072
9364
|
"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 +9387,7 @@ var HeaderNavItemTitle = ({
|
|
|
9095
9387
|
return /* @__PURE__ */ jsx(
|
|
9096
9388
|
"div",
|
|
9097
9389
|
{
|
|
9098
|
-
className:
|
|
9390
|
+
className: classNames72({
|
|
9099
9391
|
"p-3 font-thin": true,
|
|
9100
9392
|
"eui-text-md": !styles,
|
|
9101
9393
|
[`${styles}`]: styles
|
|
@@ -9135,7 +9427,7 @@ var Link = ({
|
|
|
9135
9427
|
href: href || "#",
|
|
9136
9428
|
target: targets[target],
|
|
9137
9429
|
onClick: handleClick,
|
|
9138
|
-
className:
|
|
9430
|
+
className: classNames72({
|
|
9139
9431
|
[`${textVariants[variant]}`]: variant,
|
|
9140
9432
|
[`${decorations[decoration]}`]: decoration,
|
|
9141
9433
|
"font-bold": bold,
|
|
@@ -12327,7 +12619,7 @@ function Accordion({
|
|
|
12327
12619
|
/* @__PURE__ */ jsxs(
|
|
12328
12620
|
"div",
|
|
12329
12621
|
{
|
|
12330
|
-
className:
|
|
12622
|
+
className: classNames72(
|
|
12331
12623
|
"inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs",
|
|
12332
12624
|
{
|
|
12333
12625
|
"hover:cursor-pointer": toggleOnSummaryClick
|
|
@@ -12348,7 +12640,7 @@ function Accordion({
|
|
|
12348
12640
|
children: /* @__PURE__ */ jsx(
|
|
12349
12641
|
FaCircleChevronDown,
|
|
12350
12642
|
{
|
|
12351
|
-
className:
|
|
12643
|
+
className: classNames72("text-xl transition-transform duration-300", {
|
|
12352
12644
|
"rotate-180": collapse
|
|
12353
12645
|
})
|
|
12354
12646
|
}
|
|
@@ -12362,7 +12654,7 @@ function Accordion({
|
|
|
12362
12654
|
/* @__PURE__ */ jsx(TransitionAccordion_default, { visibility: collapse, children: /* @__PURE__ */ jsx(
|
|
12363
12655
|
"div",
|
|
12364
12656
|
{
|
|
12365
|
-
className:
|
|
12657
|
+
className: classNames72(
|
|
12366
12658
|
"border-t border-t-eui-dark-400/40 eui-text-sm",
|
|
12367
12659
|
{
|
|
12368
12660
|
"p-5": enableChildrenPadding
|
|
@@ -12419,7 +12711,7 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
12419
12711
|
return /* @__PURE__ */ jsxs(
|
|
12420
12712
|
"div",
|
|
12421
12713
|
{
|
|
12422
|
-
className:
|
|
12714
|
+
className: classNames72(
|
|
12423
12715
|
"flex items-start gap-4 p-6 border-b border-white/10",
|
|
12424
12716
|
className
|
|
12425
12717
|
),
|
|
@@ -12435,14 +12727,14 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
12435
12727
|
}
|
|
12436
12728
|
var CardHeader_default = CardHeader;
|
|
12437
12729
|
function CardContent({ children: children3, className }) {
|
|
12438
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
12730
|
+
return /* @__PURE__ */ jsx("div", { className: classNames72("p-6 text-gray-300 text-sm", className), children: children3 });
|
|
12439
12731
|
}
|
|
12440
12732
|
var CardContent_default = CardContent;
|
|
12441
12733
|
function CardFooter({ children: children3, className }) {
|
|
12442
12734
|
return /* @__PURE__ */ jsx(
|
|
12443
12735
|
"div",
|
|
12444
12736
|
{
|
|
12445
|
-
className:
|
|
12737
|
+
className: classNames72(
|
|
12446
12738
|
"flex items-center gap-3 p-5 border-t border-white/10 text-sm text-gray-400",
|
|
12447
12739
|
className
|
|
12448
12740
|
),
|
|
@@ -12484,7 +12776,7 @@ function GradientAnimation({
|
|
|
12484
12776
|
return /* @__PURE__ */ jsx(
|
|
12485
12777
|
"div",
|
|
12486
12778
|
{
|
|
12487
|
-
className:
|
|
12779
|
+
className: classNames72("absolute inset-0"),
|
|
12488
12780
|
style: {
|
|
12489
12781
|
background: `linear-gradient(${cfg.angle}deg, ${cfg.colors?.join(",")})`,
|
|
12490
12782
|
backgroundSize: cfg.backgroundSize,
|
|
@@ -12630,7 +12922,7 @@ function MotionSurface({
|
|
|
12630
12922
|
}) {
|
|
12631
12923
|
const AnimationComponent = animationVariant === "custom" ? CustomAnimation : animationRegistry[animationVariant];
|
|
12632
12924
|
const OverlayComponent = overlay === "custom" ? CustomOverlay : overlayRegistry[overlay];
|
|
12633
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
12925
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames72("relative overflow-hidden", className), children: [
|
|
12634
12926
|
AnimationComponent && /* @__PURE__ */ jsx(AnimationComponent, { config: animationConfig, animated }),
|
|
12635
12927
|
OverlayComponent && /* @__PURE__ */ jsx(OverlayComponent, { config: overlayConfig }),
|
|
12636
12928
|
/* @__PURE__ */ jsx("div", { className: "relative z-10", children: children3 })
|
|
@@ -16876,7 +17168,7 @@ var ProgressBar = ({
|
|
|
16876
17168
|
hasBottomLabel && /* @__PURE__ */ jsx("div", { className: "mt-2", children: labelNode })
|
|
16877
17169
|
] });
|
|
16878
17170
|
};
|
|
16879
|
-
var
|
|
17171
|
+
var sizes = {
|
|
16880
17172
|
["xs" /* xs */]: "text-[10px]",
|
|
16881
17173
|
["sm" /* sm */]: "text-xs",
|
|
16882
17174
|
["md" /* md */]: "text-sm",
|
|
@@ -16906,7 +17198,7 @@ var StarRating = ({
|
|
|
16906
17198
|
className: cn(
|
|
16907
17199
|
"inline-flex items-center gap-[2px]",
|
|
16908
17200
|
"text-yellow-500 dark:text-yellow-400",
|
|
16909
|
-
|
|
17201
|
+
sizes[size],
|
|
16910
17202
|
iconClassName
|
|
16911
17203
|
),
|
|
16912
17204
|
children: [
|
|
@@ -16919,7 +17211,7 @@ var StarRating = ({
|
|
|
16919
17211
|
showValue && valuePosition === "end" && ratingValue
|
|
16920
17212
|
] });
|
|
16921
17213
|
};
|
|
16922
|
-
var
|
|
17214
|
+
var sizes2 = {
|
|
16923
17215
|
["xs" /* xs */]: {
|
|
16924
17216
|
value: "text-2xl",
|
|
16925
17217
|
review: "text-xs"
|
|
@@ -16951,7 +17243,7 @@ var NumericRating = ({
|
|
|
16951
17243
|
className,
|
|
16952
17244
|
...rest
|
|
16953
17245
|
}) => {
|
|
16954
|
-
const sizeStyles =
|
|
17246
|
+
const sizeStyles = sizes2[size];
|
|
16955
17247
|
return /* @__PURE__ */ jsxs(
|
|
16956
17248
|
"div",
|
|
16957
17249
|
{
|
|
@@ -17627,7 +17919,7 @@ var YoutubeVideo = ({
|
|
|
17627
17919
|
}) => {
|
|
17628
17920
|
const videoId = getYoutubeVideoId(videoUrl);
|
|
17629
17921
|
if (!videoId) {
|
|
17630
|
-
return /* @__PURE__ */ jsx(
|
|
17922
|
+
return /* @__PURE__ */ jsx(FormResponse, { text: "Invalid YouTube URL", variant: "danger" });
|
|
17631
17923
|
}
|
|
17632
17924
|
const params = new URLSearchParams({
|
|
17633
17925
|
autoplay: autoPlay ? "1" : "0",
|
|
@@ -17715,7 +18007,7 @@ var ThemeSwitch = () => {
|
|
|
17715
18007
|
/* @__PURE__ */ jsx(
|
|
17716
18008
|
"div",
|
|
17717
18009
|
{
|
|
17718
|
-
className:
|
|
18010
|
+
className: classNames72(
|
|
17719
18011
|
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
17720
18012
|
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
17721
18013
|
)
|
|
@@ -29260,7 +29552,7 @@ function AsyncStateCard({
|
|
|
29260
29552
|
),
|
|
29261
29553
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
29262
29554
|
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-eui-dark-900 dark:text-eui-light-600", children: title }),
|
|
29263
|
-
isError ? /* @__PURE__ */ jsx(
|
|
29555
|
+
isError ? /* @__PURE__ */ jsx(FormResponse, { text: message, variant: "danger" }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-eui-dark-500 dark:text-eui-light-400", children: message })
|
|
29264
29556
|
] }),
|
|
29265
29557
|
onAction && actionText && /* @__PURE__ */ jsx(
|
|
29266
29558
|
Button_web_default,
|
|
@@ -29484,7 +29776,7 @@ function Modal({
|
|
|
29484
29776
|
"div",
|
|
29485
29777
|
{
|
|
29486
29778
|
ref: modalRef,
|
|
29487
|
-
className:
|
|
29779
|
+
className: classNames72(
|
|
29488
29780
|
"eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit",
|
|
29489
29781
|
shapes[resolvedShape],
|
|
29490
29782
|
styles
|
|
@@ -29496,7 +29788,7 @@ function Modal({
|
|
|
29496
29788
|
"button",
|
|
29497
29789
|
{
|
|
29498
29790
|
type: "button",
|
|
29499
|
-
className:
|
|
29791
|
+
className: classNames72(
|
|
29500
29792
|
"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast",
|
|
29501
29793
|
"hover:cursor-pointer hover:bg-eui-dark-500"
|
|
29502
29794
|
),
|
|
@@ -29888,7 +30180,7 @@ var ContentArea = forwardRef(
|
|
|
29888
30180
|
"div",
|
|
29889
30181
|
{
|
|
29890
30182
|
ref,
|
|
29891
|
-
className:
|
|
30183
|
+
className: classNames72({
|
|
29892
30184
|
"min-h-screen h-full w-full transition-all duration-[200ms]": true,
|
|
29893
30185
|
"py-3 px-5": !enablePadding,
|
|
29894
30186
|
"py-3 px-5 lg:px-[150px]": enablePadding,
|
|
@@ -29905,7 +30197,7 @@ function FlexCol({ children: children3, gap = 3, styles }) {
|
|
|
29905
30197
|
return /* @__PURE__ */ jsx(
|
|
29906
30198
|
"div",
|
|
29907
30199
|
{
|
|
29908
|
-
className:
|
|
30200
|
+
className: classNames72({
|
|
29909
30201
|
[`flex flex-col gap-${gap}`]: true,
|
|
29910
30202
|
[`${styles}`]: styles
|
|
29911
30203
|
}),
|
|
@@ -29918,7 +30210,7 @@ function FlexRow({ children: children3, gap = 3, styles }) {
|
|
|
29918
30210
|
return /* @__PURE__ */ jsx(
|
|
29919
30211
|
"div",
|
|
29920
30212
|
{
|
|
29921
|
-
className:
|
|
30213
|
+
className: classNames72({
|
|
29922
30214
|
[`flex flex-row gap-${gap}`]: true,
|
|
29923
30215
|
[`${styles}`]: styles
|
|
29924
30216
|
}),
|
|
@@ -29937,7 +30229,7 @@ function Grid({ children: children3, styles }) {
|
|
|
29937
30229
|
return /* @__PURE__ */ jsx(
|
|
29938
30230
|
"div",
|
|
29939
30231
|
{
|
|
29940
|
-
className:
|
|
30232
|
+
className: classNames72({
|
|
29941
30233
|
[`grid`]: true,
|
|
29942
30234
|
[`${styles}`]: styles
|
|
29943
30235
|
}),
|
|
@@ -29954,7 +30246,7 @@ var Layout = ({
|
|
|
29954
30246
|
return /* @__PURE__ */ jsx(
|
|
29955
30247
|
"div",
|
|
29956
30248
|
{
|
|
29957
|
-
className:
|
|
30249
|
+
className: classNames72({
|
|
29958
30250
|
// "flex h-full w-screen bg-gray-100 overflow-auto": true,
|
|
29959
30251
|
"flex bg-eui-light-600": true,
|
|
29960
30252
|
"flex-col": flexDirection === "vertical",
|
|
@@ -29976,7 +30268,7 @@ var Header = ({
|
|
|
29976
30268
|
return /* @__PURE__ */ jsx(
|
|
29977
30269
|
"div",
|
|
29978
30270
|
{
|
|
29979
|
-
className:
|
|
30271
|
+
className: classNames72({
|
|
29980
30272
|
static: position4 === "static",
|
|
29981
30273
|
fixed: position4 === "fixed",
|
|
29982
30274
|
sticky: position4 === "sticky",
|
|
@@ -30011,7 +30303,7 @@ var Content = ({
|
|
|
30011
30303
|
return /* @__PURE__ */ jsx(
|
|
30012
30304
|
"div",
|
|
30013
30305
|
{
|
|
30014
|
-
className:
|
|
30306
|
+
className: classNames72({
|
|
30015
30307
|
"w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
|
|
30016
30308
|
"md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
|
|
30017
30309
|
// Shift when sidebar is open (desktop)
|
|
@@ -30027,7 +30319,7 @@ var Footer = ({ children: children3, styles }) => {
|
|
|
30027
30319
|
return /* @__PURE__ */ jsx(
|
|
30028
30320
|
"div",
|
|
30029
30321
|
{
|
|
30030
|
-
className:
|
|
30322
|
+
className: classNames72({
|
|
30031
30323
|
"bottom-0 w-full h-fit": true,
|
|
30032
30324
|
"border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
|
|
30033
30325
|
[`${styles}`]: styles
|
|
@@ -30215,7 +30507,7 @@ function ShowMore({ text: text10, limit }) {
|
|
|
30215
30507
|
/* @__PURE__ */ jsx(
|
|
30216
30508
|
"div",
|
|
30217
30509
|
{
|
|
30218
|
-
className:
|
|
30510
|
+
className: classNames72({
|
|
30219
30511
|
"text-blue-300 px-1 pb-1 mt-1": true,
|
|
30220
30512
|
"bg-slate-900/70": !showMore,
|
|
30221
30513
|
"bg-gradient-to-t from-slate-900/50 to-transparent": showMore
|
|
@@ -31131,7 +31423,7 @@ function DocumentationPanel({
|
|
|
31131
31423
|
return /* @__PURE__ */ jsx(MarkdownProvider_default, { markdown: value, children: /* @__PURE__ */ jsxs(
|
|
31132
31424
|
"section",
|
|
31133
31425
|
{
|
|
31134
|
-
className:
|
|
31426
|
+
className: classNames72(
|
|
31135
31427
|
"eui-documentation-panel",
|
|
31136
31428
|
"min-h-0 overflow-hidden bg-white text-gray-900",
|
|
31137
31429
|
"dark:bg-gray-950 dark:text-gray-100",
|
|
@@ -31145,7 +31437,7 @@ function DocumentationPanel({
|
|
|
31145
31437
|
/* @__PURE__ */ jsx(
|
|
31146
31438
|
"main",
|
|
31147
31439
|
{
|
|
31148
|
-
className:
|
|
31440
|
+
className: classNames72(
|
|
31149
31441
|
"eui-documentation-panel-viewer",
|
|
31150
31442
|
"documentation-panel-scrollbar min-w-0 overflow-y-auto scroll-smooth",
|
|
31151
31443
|
viewerClassName
|
|
@@ -31153,7 +31445,7 @@ function DocumentationPanel({
|
|
|
31153
31445
|
children: /* @__PURE__ */ jsx(
|
|
31154
31446
|
"div",
|
|
31155
31447
|
{
|
|
31156
|
-
className:
|
|
31448
|
+
className: classNames72(
|
|
31157
31449
|
"mx-auto px-5 py-8 sm:px-6 lg:px-8",
|
|
31158
31450
|
contentMaxWidthClassName,
|
|
31159
31451
|
contentClassName
|
|
@@ -31166,7 +31458,7 @@ function DocumentationPanel({
|
|
|
31166
31458
|
toc ? /* @__PURE__ */ jsx(
|
|
31167
31459
|
"aside",
|
|
31168
31460
|
{
|
|
31169
|
-
className:
|
|
31461
|
+
className: classNames72(
|
|
31170
31462
|
"eui-documentation-panel-toc",
|
|
31171
31463
|
"hidden min-w-0 border-l border-gray-200 bg-white lg:block",
|
|
31172
31464
|
"dark:border-gray-800 dark:bg-gray-950",
|
|
@@ -31175,7 +31467,7 @@ function DocumentationPanel({
|
|
|
31175
31467
|
children: /* @__PURE__ */ jsx(
|
|
31176
31468
|
"div",
|
|
31177
31469
|
{
|
|
31178
|
-
className:
|
|
31470
|
+
className: classNames72(
|
|
31179
31471
|
"documentation-panel-scrollbar h-full overflow-y-auto px-5 py-8"
|
|
31180
31472
|
),
|
|
31181
31473
|
children: /* @__PURE__ */ jsx("div", { className: "sticky top-0", children: /* @__PURE__ */ jsx(MarkdownTOC_default, {}) })
|
|
@@ -31451,7 +31743,7 @@ function BoxNavItem({ icon, name: name2, to, selected, onClick }) {
|
|
|
31451
31743
|
type: "button",
|
|
31452
31744
|
onClick: handleClick,
|
|
31453
31745
|
"aria-current": selected ? "page" : void 0,
|
|
31454
|
-
className:
|
|
31746
|
+
className: classNames72(
|
|
31455
31747
|
"w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
|
|
31456
31748
|
"hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
|
|
31457
31749
|
selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
|
|
@@ -42547,7 +42839,7 @@ function markdownTable(table2, options) {
|
|
|
42547
42839
|
let rowIndex = -1;
|
|
42548
42840
|
while (++rowIndex < table2.length) {
|
|
42549
42841
|
const row2 = [];
|
|
42550
|
-
const
|
|
42842
|
+
const sizes4 = [];
|
|
42551
42843
|
let columnIndex2 = -1;
|
|
42552
42844
|
if (table2[rowIndex].length > mostCellsPerRow) {
|
|
42553
42845
|
mostCellsPerRow = table2[rowIndex].length;
|
|
@@ -42556,7 +42848,7 @@ function markdownTable(table2, options) {
|
|
|
42556
42848
|
const cell = serialize2(table2[rowIndex][columnIndex2]);
|
|
42557
42849
|
if (settings.alignDelimiters !== false) {
|
|
42558
42850
|
const size = stringLength(cell);
|
|
42559
|
-
|
|
42851
|
+
sizes4[columnIndex2] = size;
|
|
42560
42852
|
if (longestCellByColumn[columnIndex2] === void 0 || size > longestCellByColumn[columnIndex2]) {
|
|
42561
42853
|
longestCellByColumn[columnIndex2] = size;
|
|
42562
42854
|
}
|
|
@@ -42564,7 +42856,7 @@ function markdownTable(table2, options) {
|
|
|
42564
42856
|
row2.push(cell);
|
|
42565
42857
|
}
|
|
42566
42858
|
cellMatrix[rowIndex] = row2;
|
|
42567
|
-
sizeMatrix[rowIndex] =
|
|
42859
|
+
sizeMatrix[rowIndex] = sizes4;
|
|
42568
42860
|
}
|
|
42569
42861
|
let columnIndex = -1;
|
|
42570
42862
|
if (typeof align === "object" && "length" in align) {
|
|
@@ -42579,7 +42871,7 @@ function markdownTable(table2, options) {
|
|
|
42579
42871
|
}
|
|
42580
42872
|
columnIndex = -1;
|
|
42581
42873
|
const row = [];
|
|
42582
|
-
const
|
|
42874
|
+
const sizes3 = [];
|
|
42583
42875
|
while (++columnIndex < mostCellsPerRow) {
|
|
42584
42876
|
const code4 = alignments[columnIndex];
|
|
42585
42877
|
let before = "";
|
|
@@ -42602,17 +42894,17 @@ function markdownTable(table2, options) {
|
|
|
42602
42894
|
if (size > longestCellByColumn[columnIndex]) {
|
|
42603
42895
|
longestCellByColumn[columnIndex] = size;
|
|
42604
42896
|
}
|
|
42605
|
-
|
|
42897
|
+
sizes3[columnIndex] = size;
|
|
42606
42898
|
}
|
|
42607
42899
|
row[columnIndex] = cell;
|
|
42608
42900
|
}
|
|
42609
42901
|
cellMatrix.splice(1, 0, row);
|
|
42610
|
-
sizeMatrix.splice(1, 0,
|
|
42902
|
+
sizeMatrix.splice(1, 0, sizes3);
|
|
42611
42903
|
rowIndex = -1;
|
|
42612
42904
|
const lines = [];
|
|
42613
42905
|
while (++rowIndex < cellMatrix.length) {
|
|
42614
42906
|
const row2 = cellMatrix[rowIndex];
|
|
42615
|
-
const
|
|
42907
|
+
const sizes4 = sizeMatrix[rowIndex];
|
|
42616
42908
|
columnIndex = -1;
|
|
42617
42909
|
const line = [];
|
|
42618
42910
|
while (++columnIndex < mostCellsPerRow) {
|
|
@@ -42620,7 +42912,7 @@ function markdownTable(table2, options) {
|
|
|
42620
42912
|
let before = "";
|
|
42621
42913
|
let after = "";
|
|
42622
42914
|
if (settings.alignDelimiters !== false) {
|
|
42623
|
-
const size = longestCellByColumn[columnIndex] - (
|
|
42915
|
+
const size = longestCellByColumn[columnIndex] - (sizes4[columnIndex] || 0);
|
|
42624
42916
|
const code4 = alignments[columnIndex];
|
|
42625
42917
|
if (code4 === 114) {
|
|
42626
42918
|
before = " ".repeat(size);
|
|
@@ -54188,7 +54480,7 @@ function MarkdownHeading({
|
|
|
54188
54480
|
id: id2,
|
|
54189
54481
|
level: typographyLevel,
|
|
54190
54482
|
bold: true,
|
|
54191
|
-
className:
|
|
54483
|
+
className: classNames72(
|
|
54192
54484
|
"eui-markdown-heading group relative scroll-mt-24 font-bold leading-tight text-gray-900 dark:text-gray-100",
|
|
54193
54485
|
HEADING_STYLES[level],
|
|
54194
54486
|
className
|
|
@@ -54351,18 +54643,18 @@ function powerSetPermutations(arr) {
|
|
|
54351
54643
|
}
|
|
54352
54644
|
}
|
|
54353
54645
|
var classNameCombinations = {};
|
|
54354
|
-
function getClassNameCombinations(
|
|
54355
|
-
if (
|
|
54356
|
-
var key =
|
|
54646
|
+
function getClassNameCombinations(classNames76) {
|
|
54647
|
+
if (classNames76.length === 0 || classNames76.length === 1) return classNames76;
|
|
54648
|
+
var key = classNames76.join(".");
|
|
54357
54649
|
if (!classNameCombinations[key]) {
|
|
54358
|
-
classNameCombinations[key] = powerSetPermutations(
|
|
54650
|
+
classNameCombinations[key] = powerSetPermutations(classNames76);
|
|
54359
54651
|
}
|
|
54360
54652
|
return classNameCombinations[key];
|
|
54361
54653
|
}
|
|
54362
|
-
function createStyleObject(
|
|
54654
|
+
function createStyleObject(classNames76) {
|
|
54363
54655
|
var elementStyle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
54364
54656
|
var stylesheet = arguments.length > 2 ? arguments[2] : void 0;
|
|
54365
|
-
var nonTokenClassNames =
|
|
54657
|
+
var nonTokenClassNames = classNames76.filter(function(className) {
|
|
54366
54658
|
return className !== "token";
|
|
54367
54659
|
});
|
|
54368
54660
|
var classNamesCombinations = getClassNameCombinations(nonTokenClassNames);
|
|
@@ -54370,8 +54662,8 @@ function createStyleObject(classNames81) {
|
|
|
54370
54662
|
return _objectSpread(_objectSpread({}, styleObject), stylesheet[className]);
|
|
54371
54663
|
}, elementStyle);
|
|
54372
54664
|
}
|
|
54373
|
-
function createClassNameString(
|
|
54374
|
-
return
|
|
54665
|
+
function createClassNameString(classNames76) {
|
|
54666
|
+
return classNames76.join(" ");
|
|
54375
54667
|
}
|
|
54376
54668
|
function createChildren2(stylesheet, useInlineStyles) {
|
|
54377
54669
|
var childrenCount = 0;
|
|
@@ -54544,8 +54836,8 @@ function flattenCodeTree(tree) {
|
|
|
54544
54836
|
}));
|
|
54545
54837
|
} else if (node2.children) {
|
|
54546
54838
|
var _node$properties;
|
|
54547
|
-
var
|
|
54548
|
-
flattenCodeTree(node2.children,
|
|
54839
|
+
var classNames76 = className.concat(((_node$properties = node2.properties) === null || _node$properties === void 0 ? void 0 : _node$properties.className) || []);
|
|
54840
|
+
flattenCodeTree(node2.children, classNames76).forEach(function(i2) {
|
|
54549
54841
|
return newTree.push(i2);
|
|
54550
54842
|
});
|
|
54551
54843
|
}
|
|
@@ -55209,7 +55501,7 @@ function MarkdownCodeBlock({
|
|
|
55209
55501
|
"div",
|
|
55210
55502
|
{
|
|
55211
55503
|
...props,
|
|
55212
|
-
className:
|
|
55504
|
+
className: classNames72(
|
|
55213
55505
|
"eui-markdown-code my-6 overflow-hidden rounded-md border border-slate-700 bg-[#0d1117] text-slate-300",
|
|
55214
55506
|
className
|
|
55215
55507
|
),
|
|
@@ -55280,7 +55572,7 @@ function MarkdownInlineCode({
|
|
|
55280
55572
|
Code,
|
|
55281
55573
|
{
|
|
55282
55574
|
...props,
|
|
55283
|
-
className:
|
|
55575
|
+
className: classNames72(
|
|
55284
55576
|
"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
55577
|
className
|
|
55286
55578
|
),
|
|
@@ -55321,7 +55613,7 @@ function MarkdownLink({
|
|
|
55321
55613
|
href: safeHref,
|
|
55322
55614
|
target: resolvedTarget,
|
|
55323
55615
|
rel,
|
|
55324
|
-
className:
|
|
55616
|
+
className: classNames72(
|
|
55325
55617
|
"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
55618
|
className
|
|
55327
55619
|
),
|
|
@@ -55356,7 +55648,7 @@ function MarkdownImage({
|
|
|
55356
55648
|
title,
|
|
55357
55649
|
loading: "lazy",
|
|
55358
55650
|
decoding: "async",
|
|
55359
|
-
className:
|
|
55651
|
+
className: classNames72(
|
|
55360
55652
|
"eui-markdown-image my-6 h-auto max-w-full rounded-md border border-gray-200 dark:border-gray-700",
|
|
55361
55653
|
className
|
|
55362
55654
|
)
|
|
@@ -55373,7 +55665,7 @@ function MarkdownTable({
|
|
|
55373
55665
|
TableElement,
|
|
55374
55666
|
{
|
|
55375
55667
|
...props,
|
|
55376
|
-
className:
|
|
55668
|
+
className: classNames72(
|
|
55377
55669
|
"eui-markdown-table w-full border-collapse text-[0.925rem]",
|
|
55378
55670
|
className
|
|
55379
55671
|
),
|
|
@@ -55390,7 +55682,7 @@ function MarkdownTableCell({
|
|
|
55390
55682
|
TableCell,
|
|
55391
55683
|
{
|
|
55392
55684
|
...props,
|
|
55393
|
-
className:
|
|
55685
|
+
className: classNames72(
|
|
55394
55686
|
"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
55687
|
className
|
|
55396
55688
|
),
|
|
@@ -55407,7 +55699,7 @@ function MarkdownTableHeaderCell({
|
|
|
55407
55699
|
TableHeaderCell,
|
|
55408
55700
|
{
|
|
55409
55701
|
...props,
|
|
55410
|
-
className:
|
|
55702
|
+
className: classNames72(
|
|
55411
55703
|
"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
55704
|
className
|
|
55413
55705
|
),
|
|
@@ -55423,7 +55715,7 @@ function MarkdownTableHead({
|
|
|
55423
55715
|
TableHead,
|
|
55424
55716
|
{
|
|
55425
55717
|
...props,
|
|
55426
|
-
className:
|
|
55718
|
+
className: classNames72(
|
|
55427
55719
|
"eui-markdown-table-head bg-gray-50 dark:bg-gray-900",
|
|
55428
55720
|
className
|
|
55429
55721
|
)
|
|
@@ -55438,7 +55730,7 @@ function MarkdownTableBody({
|
|
|
55438
55730
|
TableBody,
|
|
55439
55731
|
{
|
|
55440
55732
|
...props,
|
|
55441
|
-
className:
|
|
55733
|
+
className: classNames72("eui-markdown-table-body", className)
|
|
55442
55734
|
}
|
|
55443
55735
|
);
|
|
55444
55736
|
}
|
|
@@ -55450,7 +55742,7 @@ function MarkdownTableRow({
|
|
|
55450
55742
|
TableRow,
|
|
55451
55743
|
{
|
|
55452
55744
|
...props,
|
|
55453
|
-
className:
|
|
55745
|
+
className: classNames72(
|
|
55454
55746
|
"eui-markdown-table-row even:bg-gray-50/70 dark:even:bg-gray-900/60",
|
|
55455
55747
|
className
|
|
55456
55748
|
)
|
|
@@ -55468,7 +55760,7 @@ function MarkdownBlockquote({
|
|
|
55468
55760
|
{
|
|
55469
55761
|
...props,
|
|
55470
55762
|
as: "blockquote",
|
|
55471
|
-
className:
|
|
55763
|
+
className: classNames72(
|
|
55472
55764
|
"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
55765
|
className
|
|
55474
55766
|
),
|
|
@@ -55487,7 +55779,7 @@ function MarkdownParagraph({
|
|
|
55487
55779
|
{
|
|
55488
55780
|
...props,
|
|
55489
55781
|
level: 1,
|
|
55490
|
-
className:
|
|
55782
|
+
className: classNames72("eui-markdown-paragraph my-4", className),
|
|
55491
55783
|
children: /* @__PURE__ */ jsx(Fragment, { children: children3 })
|
|
55492
55784
|
}
|
|
55493
55785
|
);
|
|
@@ -55498,7 +55790,7 @@ function MarkdownStrong({ className, ...props }) {
|
|
|
55498
55790
|
"strong",
|
|
55499
55791
|
{
|
|
55500
55792
|
...props,
|
|
55501
|
-
className:
|
|
55793
|
+
className: classNames72(
|
|
55502
55794
|
"eui-markdown-strong font-semibold text-gray-950 dark:text-gray-100",
|
|
55503
55795
|
className
|
|
55504
55796
|
)
|
|
@@ -55511,7 +55803,7 @@ function MarkdownEmphasis({ className, ...props }) {
|
|
|
55511
55803
|
"em",
|
|
55512
55804
|
{
|
|
55513
55805
|
...props,
|
|
55514
|
-
className:
|
|
55806
|
+
className: classNames72("eui-markdown-emphasis italic", className)
|
|
55515
55807
|
}
|
|
55516
55808
|
);
|
|
55517
55809
|
}
|
|
@@ -55524,7 +55816,7 @@ function MarkdownStrikethrough({
|
|
|
55524
55816
|
"del",
|
|
55525
55817
|
{
|
|
55526
55818
|
...props,
|
|
55527
|
-
className:
|
|
55819
|
+
className: classNames72(
|
|
55528
55820
|
"eui-markdown-strikethrough text-gray-500 dark:text-gray-400",
|
|
55529
55821
|
className
|
|
55530
55822
|
)
|
|
@@ -55585,7 +55877,7 @@ function MarkdownTaskCheckbox({
|
|
|
55585
55877
|
"input",
|
|
55586
55878
|
{
|
|
55587
55879
|
...props,
|
|
55588
|
-
className:
|
|
55880
|
+
className: classNames72(
|
|
55589
55881
|
"eui-markdown-task-checkbox mr-2 translate-y-px accent-blue-600",
|
|
55590
55882
|
className
|
|
55591
55883
|
)
|
|
@@ -55601,7 +55893,7 @@ function MarkdownThematicBreak({
|
|
|
55601
55893
|
"hr",
|
|
55602
55894
|
{
|
|
55603
55895
|
...props,
|
|
55604
|
-
className:
|
|
55896
|
+
className: classNames72(
|
|
55605
55897
|
"eui-markdown-thematic-break my-8 border-0 border-t border-gray-200 dark:border-gray-800",
|
|
55606
55898
|
className
|
|
55607
55899
|
)
|
|
@@ -55618,7 +55910,7 @@ function MarkdownDetails({ className, ...props }) {
|
|
|
55618
55910
|
"details",
|
|
55619
55911
|
{
|
|
55620
55912
|
...props,
|
|
55621
|
-
className:
|
|
55913
|
+
className: classNames72(
|
|
55622
55914
|
"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
55915
|
className
|
|
55624
55916
|
)
|
|
@@ -55630,7 +55922,7 @@ function MarkdownSummary({ className, ...props }) {
|
|
|
55630
55922
|
"summary",
|
|
55631
55923
|
{
|
|
55632
55924
|
...props,
|
|
55633
|
-
className:
|
|
55925
|
+
className: classNames72(
|
|
55634
55926
|
"eui-markdown-summary cursor-pointer font-semibold text-gray-950 dark:text-gray-100",
|
|
55635
55927
|
className
|
|
55636
55928
|
)
|
|
@@ -55642,7 +55934,7 @@ function MarkdownFigure({ className, ...props }) {
|
|
|
55642
55934
|
"figure",
|
|
55643
55935
|
{
|
|
55644
55936
|
...props,
|
|
55645
|
-
className:
|
|
55937
|
+
className: classNames72("eui-markdown-figure my-6", className)
|
|
55646
55938
|
}
|
|
55647
55939
|
);
|
|
55648
55940
|
}
|
|
@@ -55654,7 +55946,7 @@ function MarkdownFigcaption({
|
|
|
55654
55946
|
return /* @__PURE__ */ jsx("figcaption", { ...props, className: "eui-markdown-figcaption mt-2 text-center", children: /* @__PURE__ */ jsx(
|
|
55655
55947
|
Caption,
|
|
55656
55948
|
{
|
|
55657
|
-
className:
|
|
55949
|
+
className: classNames72(
|
|
55658
55950
|
"text-gray-500 opacity-100 dark:text-gray-400",
|
|
55659
55951
|
className
|
|
55660
55952
|
),
|
|
@@ -56053,14 +56345,14 @@ function MarkdownRenderer({
|
|
|
56053
56345
|
return /* @__PURE__ */ jsx(
|
|
56054
56346
|
"div",
|
|
56055
56347
|
{
|
|
56056
|
-
className:
|
|
56348
|
+
className: classNames72(
|
|
56057
56349
|
"eui-markdown markdown-body break-words bg-transparent text-[0.95rem] leading-7 text-gray-800 dark:text-gray-300",
|
|
56058
56350
|
className
|
|
56059
56351
|
),
|
|
56060
56352
|
children: /* @__PURE__ */ jsx(
|
|
56061
56353
|
"div",
|
|
56062
56354
|
{
|
|
56063
|
-
className:
|
|
56355
|
+
className: classNames72(
|
|
56064
56356
|
"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0",
|
|
56065
56357
|
contentClassName
|
|
56066
56358
|
),
|
|
@@ -56138,11 +56430,11 @@ function MarkdownTOCItem({
|
|
|
56138
56430
|
onClick: () => onSelect?.(heading3),
|
|
56139
56431
|
"aria-current": active ? "location" : void 0,
|
|
56140
56432
|
title: label,
|
|
56141
|
-
className:
|
|
56433
|
+
className: classNames72(
|
|
56142
56434
|
"eui-markdown-toc-item",
|
|
56143
56435
|
"block w-full text-left text-sm transition-all ease-in-out duration-150",
|
|
56144
56436
|
"hover:text-primary",
|
|
56145
|
-
active ?
|
|
56437
|
+
active ? classNames72("text-primary font-semibold underline", activeClassName) : classNames72("text-gray-500 dark:text-gray-400", inactiveClassName),
|
|
56146
56438
|
className
|
|
56147
56439
|
),
|
|
56148
56440
|
style: {
|
|
@@ -56208,7 +56500,7 @@ function MarkdownTOC({
|
|
|
56208
56500
|
return emptyState ? /* @__PURE__ */ jsx(
|
|
56209
56501
|
"div",
|
|
56210
56502
|
{
|
|
56211
|
-
className:
|
|
56503
|
+
className: classNames72(
|
|
56212
56504
|
"eui-markdown-toc",
|
|
56213
56505
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
56214
56506
|
className
|
|
@@ -56228,7 +56520,7 @@ function MarkdownTOC({
|
|
|
56228
56520
|
{
|
|
56229
56521
|
type: "button",
|
|
56230
56522
|
onClick: () => setCollapsed((value) => !value),
|
|
56231
|
-
className:
|
|
56523
|
+
className: classNames72(
|
|
56232
56524
|
"eui-markdown-toc-title",
|
|
56233
56525
|
"flex w-full items-center justify-between gap-2 text-left",
|
|
56234
56526
|
"text-sm font-semibold uppercase tracking-wide",
|
|
@@ -56241,7 +56533,7 @@ function MarkdownTOC({
|
|
|
56241
56533
|
/* @__PURE__ */ jsx(
|
|
56242
56534
|
"span",
|
|
56243
56535
|
{
|
|
56244
|
-
className:
|
|
56536
|
+
className: classNames72(
|
|
56245
56537
|
"text-xs opacity-60 transition-transform duration-150",
|
|
56246
56538
|
!collapsed && "rotate-90"
|
|
56247
56539
|
),
|
|
@@ -56254,7 +56546,7 @@ function MarkdownTOC({
|
|
|
56254
56546
|
) : /* @__PURE__ */ jsx(
|
|
56255
56547
|
"h2",
|
|
56256
56548
|
{
|
|
56257
|
-
className:
|
|
56549
|
+
className: classNames72(
|
|
56258
56550
|
"eui-markdown-toc-title",
|
|
56259
56551
|
"text-sm font-semibold uppercase tracking-wide",
|
|
56260
56552
|
"text-gray-900 dark:text-gray-100",
|
|
@@ -56266,7 +56558,7 @@ function MarkdownTOC({
|
|
|
56266
56558
|
!collapsed ? /* @__PURE__ */ jsx(
|
|
56267
56559
|
"nav",
|
|
56268
56560
|
{
|
|
56269
|
-
className:
|
|
56561
|
+
className: classNames72(
|
|
56270
56562
|
"eui-markdown-toc-list",
|
|
56271
56563
|
"space-y-1",
|
|
56272
56564
|
listClassName
|
|
@@ -56290,7 +56582,7 @@ function MarkdownTOC({
|
|
|
56290
56582
|
}
|
|
56291
56583
|
) : null
|
|
56292
56584
|
] });
|
|
56293
|
-
return /* @__PURE__ */ jsx("aside", { className:
|
|
56585
|
+
return /* @__PURE__ */ jsx("aside", { className: classNames72("eui-markdown-toc", "space-y-4", className), children: content3 });
|
|
56294
56586
|
}
|
|
56295
56587
|
var MarkdownTOC_default = MarkdownTOC;
|
|
56296
56588
|
var DEFAULT_MARKDOWN_TOOLBAR_ACTIONS = [
|
|
@@ -56389,7 +56681,7 @@ function MarkdownToolbar({
|
|
|
56389
56681
|
return /* @__PURE__ */ jsxs(
|
|
56390
56682
|
"div",
|
|
56391
56683
|
{
|
|
56392
|
-
className:
|
|
56684
|
+
className: classNames72(
|
|
56393
56685
|
"eui-markdown-toolbar",
|
|
56394
56686
|
"flex flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 p-2",
|
|
56395
56687
|
"dark:border-gray-700 dark:bg-gray-900",
|
|
@@ -56403,7 +56695,7 @@ function MarkdownToolbar({
|
|
|
56403
56695
|
disabled: disabled || actionsDisabled,
|
|
56404
56696
|
title: action.shortcut ? `${action.title || action.label} (${action.shortcut})` : action.title || action.label,
|
|
56405
56697
|
onClick: () => onAction?.(action.id),
|
|
56406
|
-
className:
|
|
56698
|
+
className: classNames72(
|
|
56407
56699
|
"eui-markdown-toolbar-button",
|
|
56408
56700
|
"inline-flex items-center justify-center rounded border border-transparent",
|
|
56409
56701
|
"text-gray-700 transition-colors hover:border-gray-300 hover:bg-white",
|
|
@@ -56423,7 +56715,7 @@ function MarkdownToolbar({
|
|
|
56423
56715
|
disabled,
|
|
56424
56716
|
onClick: onViewModeToggle,
|
|
56425
56717
|
title: isPreviewMode ? "Switch to Markdown syntax" : "Switch to preview",
|
|
56426
|
-
className:
|
|
56718
|
+
className: classNames72(
|
|
56427
56719
|
"eui-markdown-view-toggle",
|
|
56428
56720
|
"inline-flex items-center justify-center rounded border font-medium transition-colors",
|
|
56429
56721
|
"border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -56680,7 +56972,7 @@ function MarkdownSourceEditor({
|
|
|
56680
56972
|
return /* @__PURE__ */ jsxs(
|
|
56681
56973
|
"div",
|
|
56682
56974
|
{
|
|
56683
|
-
className:
|
|
56975
|
+
className: classNames72(
|
|
56684
56976
|
"eui-markdown-editor",
|
|
56685
56977
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
56686
56978
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -56696,7 +56988,7 @@ function MarkdownSourceEditor({
|
|
|
56696
56988
|
actionsDisabled: readOnly,
|
|
56697
56989
|
viewMode: currentViewMode,
|
|
56698
56990
|
showViewModeToggle,
|
|
56699
|
-
className:
|
|
56991
|
+
className: classNames72(toolbarClassName, toolbarProps?.className),
|
|
56700
56992
|
onViewModeToggle: toggleViewMode,
|
|
56701
56993
|
onAction: handleToolbarAction
|
|
56702
56994
|
}
|
|
@@ -56704,7 +56996,7 @@ function MarkdownSourceEditor({
|
|
|
56704
56996
|
currentViewMode === "preview" ? /* @__PURE__ */ jsx(
|
|
56705
56997
|
"div",
|
|
56706
56998
|
{
|
|
56707
|
-
className:
|
|
56999
|
+
className: classNames72(
|
|
56708
57000
|
"eui-markdown-editor-preview",
|
|
56709
57001
|
"min-h-[260px] p-4",
|
|
56710
57002
|
previewClassName
|
|
@@ -56727,7 +57019,7 @@ function MarkdownSourceEditor({
|
|
|
56727
57019
|
onChange: (event) => updateValue(event.target.value),
|
|
56728
57020
|
onBlur,
|
|
56729
57021
|
onKeyDown: handleKeyDown,
|
|
56730
|
-
className:
|
|
57022
|
+
className: classNames72(
|
|
56731
57023
|
"eui-markdown-source-textarea",
|
|
56732
57024
|
"block w-full resize-y border-0 bg-transparent p-4 font-mono text-sm leading-7",
|
|
56733
57025
|
"text-gray-900 outline-none placeholder:text-gray-400",
|
|
@@ -56757,7 +57049,7 @@ function MarkdownPreviewPane({
|
|
|
56757
57049
|
return /* @__PURE__ */ jsx(
|
|
56758
57050
|
"div",
|
|
56759
57051
|
{
|
|
56760
|
-
className:
|
|
57052
|
+
className: classNames72(
|
|
56761
57053
|
"eui-markdown-preview-pane",
|
|
56762
57054
|
"rounded border border-gray-300 bg-white p-4",
|
|
56763
57055
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -56807,7 +57099,7 @@ function MarkdownSplitEditor({
|
|
|
56807
57099
|
return /* @__PURE__ */ jsxs(
|
|
56808
57100
|
"div",
|
|
56809
57101
|
{
|
|
56810
|
-
className:
|
|
57102
|
+
className: classNames72(
|
|
56811
57103
|
"eui-markdown-split-editor",
|
|
56812
57104
|
"grid gap-4",
|
|
56813
57105
|
isHorizontal ? "grid-cols-1 lg:grid-cols-2" : "grid-cols-1",
|
|
@@ -56817,7 +57109,7 @@ function MarkdownSplitEditor({
|
|
|
56817
57109
|
/* @__PURE__ */ jsxs(
|
|
56818
57110
|
"div",
|
|
56819
57111
|
{
|
|
56820
|
-
className:
|
|
57112
|
+
className: classNames72(
|
|
56821
57113
|
"eui-markdown-split-source",
|
|
56822
57114
|
"min-w-0 space-y-2",
|
|
56823
57115
|
sourceWrapperClassName
|
|
@@ -56841,7 +57133,7 @@ function MarkdownSplitEditor({
|
|
|
56841
57133
|
/* @__PURE__ */ jsxs(
|
|
56842
57134
|
"div",
|
|
56843
57135
|
{
|
|
56844
|
-
className:
|
|
57136
|
+
className: classNames72(
|
|
56845
57137
|
"eui-markdown-split-preview",
|
|
56846
57138
|
"min-w-0 space-y-2",
|
|
56847
57139
|
previewWrapperClassName
|
|
@@ -56931,7 +57223,7 @@ function MarkdownField({
|
|
|
56931
57223
|
return /* @__PURE__ */ jsxs(
|
|
56932
57224
|
"div",
|
|
56933
57225
|
{
|
|
56934
|
-
className:
|
|
57226
|
+
className: classNames72(
|
|
56935
57227
|
"eui-markdown-field",
|
|
56936
57228
|
"relative space-y-2",
|
|
56937
57229
|
wrapperClassName
|
|
@@ -56941,7 +57233,7 @@ function MarkdownField({
|
|
|
56941
57233
|
"label",
|
|
56942
57234
|
{
|
|
56943
57235
|
htmlFor: editorProps.id || field.name,
|
|
56944
|
-
className:
|
|
57236
|
+
className: classNames72(
|
|
56945
57237
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
56946
57238
|
labelClassName
|
|
56947
57239
|
),
|
|
@@ -56966,14 +57258,14 @@ function MarkdownField({
|
|
|
56966
57258
|
helperText && !hasError ? /* @__PURE__ */ jsx(
|
|
56967
57259
|
"p",
|
|
56968
57260
|
{
|
|
56969
|
-
className:
|
|
57261
|
+
className: classNames72(
|
|
56970
57262
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
56971
57263
|
helperTextClassName
|
|
56972
57264
|
),
|
|
56973
57265
|
children: helperText
|
|
56974
57266
|
}
|
|
56975
57267
|
) : null,
|
|
56976
|
-
/* @__PURE__ */ jsx(
|
|
57268
|
+
/* @__PURE__ */ jsx(InputResponse, { name: field.name, visibility: hasError, variant: "danger" })
|
|
56977
57269
|
]
|
|
56978
57270
|
}
|
|
56979
57271
|
);
|
|
@@ -57021,7 +57313,7 @@ function CodeMirrorMarkdownEditor({
|
|
|
57021
57313
|
{
|
|
57022
57314
|
id: id2,
|
|
57023
57315
|
"data-name": name2,
|
|
57024
|
-
className:
|
|
57316
|
+
className: classNames72(
|
|
57025
57317
|
"eui-markdown-adapter",
|
|
57026
57318
|
"eui-markdown-codemirror-adapter",
|
|
57027
57319
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
@@ -57055,7 +57347,7 @@ function CodeMirrorMarkdownEditor({
|
|
|
57055
57347
|
closeBrackets: true,
|
|
57056
57348
|
bracketMatching: true
|
|
57057
57349
|
},
|
|
57058
|
-
className:
|
|
57350
|
+
className: classNames72("eui-markdown-codemirror", editorClassName),
|
|
57059
57351
|
onChange: updateValue,
|
|
57060
57352
|
onBlur
|
|
57061
57353
|
}
|
|
@@ -57150,7 +57442,7 @@ function createDefaultPlugins({
|
|
|
57150
57442
|
...showToolbar ? [
|
|
57151
57443
|
toolbarPlugin({
|
|
57152
57444
|
toolbarContents: toolbarContents ?? DefaultToolbar,
|
|
57153
|
-
toolbarClassName:
|
|
57445
|
+
toolbarClassName: classNames72(
|
|
57154
57446
|
"eui-markdown-mdx-toolbar",
|
|
57155
57447
|
toolbarClassName
|
|
57156
57448
|
),
|
|
@@ -57267,7 +57559,7 @@ var MDXMarkdownEditor = forwardRef(
|
|
|
57267
57559
|
"aria-required": required || void 0,
|
|
57268
57560
|
"aria-invalid": invalid || void 0,
|
|
57269
57561
|
onBlurCapture: handleBlur,
|
|
57270
|
-
className:
|
|
57562
|
+
className: classNames72(
|
|
57271
57563
|
"eui-markdown-adapter",
|
|
57272
57564
|
"eui-markdown-mdx-adapter",
|
|
57273
57565
|
dark && ["dark", "dark-theme"],
|
|
@@ -57285,8 +57577,8 @@ var MDXMarkdownEditor = forwardRef(
|
|
|
57285
57577
|
markdown: currentValue ?? "",
|
|
57286
57578
|
readOnly: disabled || readOnly,
|
|
57287
57579
|
plugins: plugins ?? defaultPlugins,
|
|
57288
|
-
className:
|
|
57289
|
-
contentEditableClassName:
|
|
57580
|
+
className: classNames72("eui-markdown-mdx-editor", editorClassName),
|
|
57581
|
+
contentEditableClassName: classNames72(
|
|
57290
57582
|
"eui-markdown-mdx-content",
|
|
57291
57583
|
contentEditableClassName
|
|
57292
57584
|
),
|
|
@@ -57323,7 +57615,7 @@ function MDXMarkdownField({
|
|
|
57323
57615
|
return /* @__PURE__ */ jsxs(
|
|
57324
57616
|
"div",
|
|
57325
57617
|
{
|
|
57326
|
-
className:
|
|
57618
|
+
className: classNames72(
|
|
57327
57619
|
"eui-markdown-mdx-field",
|
|
57328
57620
|
"relative space-y-2",
|
|
57329
57621
|
wrapperClassName
|
|
@@ -57333,7 +57625,7 @@ function MDXMarkdownField({
|
|
|
57333
57625
|
"label",
|
|
57334
57626
|
{
|
|
57335
57627
|
htmlFor: editorId,
|
|
57336
|
-
className:
|
|
57628
|
+
className: classNames72(
|
|
57337
57629
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
57338
57630
|
labelClassName
|
|
57339
57631
|
),
|
|
@@ -57367,7 +57659,7 @@ function MDXMarkdownField({
|
|
|
57367
57659
|
"p",
|
|
57368
57660
|
{
|
|
57369
57661
|
id: helperId,
|
|
57370
|
-
className:
|
|
57662
|
+
className: classNames72(
|
|
57371
57663
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
57372
57664
|
helperTextClassName
|
|
57373
57665
|
),
|
|
@@ -57375,7 +57667,7 @@ function MDXMarkdownField({
|
|
|
57375
57667
|
}
|
|
57376
57668
|
) : null,
|
|
57377
57669
|
/* @__PURE__ */ jsx("div", { id: errorId, role: hasError ? "alert" : void 0, children: /* @__PURE__ */ jsx(
|
|
57378
|
-
|
|
57670
|
+
InputResponse,
|
|
57379
57671
|
{
|
|
57380
57672
|
name: field.name,
|
|
57381
57673
|
visibility: hasError,
|
|
@@ -57427,10 +57719,10 @@ function MarkdownLayout({
|
|
|
57427
57719
|
};
|
|
57428
57720
|
const hasLeftToc = hasToc && tocPosition === "left";
|
|
57429
57721
|
const hasRightToc = hasToc && tocPosition === "right";
|
|
57430
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
57722
|
+
return /* @__PURE__ */ jsx("div", { className: classNames72("eui-markdown-layout", "w-full", className), children: /* @__PURE__ */ jsxs(
|
|
57431
57723
|
"div",
|
|
57432
57724
|
{
|
|
57433
|
-
className:
|
|
57725
|
+
className: classNames72(
|
|
57434
57726
|
"eui-markdown-layout-container",
|
|
57435
57727
|
"mx-auto w-full px-4 sm:px-6 lg:px-8",
|
|
57436
57728
|
containerClassName
|
|
@@ -57442,7 +57734,7 @@ function MarkdownLayout({
|
|
|
57442
57734
|
header ? /* @__PURE__ */ jsx(
|
|
57443
57735
|
"header",
|
|
57444
57736
|
{
|
|
57445
|
-
className:
|
|
57737
|
+
className: classNames72(
|
|
57446
57738
|
"eui-markdown-layout-header",
|
|
57447
57739
|
"mb-8",
|
|
57448
57740
|
headerClassName
|
|
@@ -57453,7 +57745,7 @@ function MarkdownLayout({
|
|
|
57453
57745
|
/* @__PURE__ */ jsxs(
|
|
57454
57746
|
"div",
|
|
57455
57747
|
{
|
|
57456
|
-
className:
|
|
57748
|
+
className: classNames72(
|
|
57457
57749
|
"eui-markdown-layout-grid",
|
|
57458
57750
|
"grid grid-cols-1 gap-8",
|
|
57459
57751
|
hasSidebar && hasToc && "xl:grid-cols-[16rem_minmax(0,1fr)_18rem]",
|
|
@@ -57466,7 +57758,7 @@ function MarkdownLayout({
|
|
|
57466
57758
|
hasSidebar ? /* @__PURE__ */ jsx(
|
|
57467
57759
|
"aside",
|
|
57468
57760
|
{
|
|
57469
|
-
className:
|
|
57761
|
+
className: classNames72(
|
|
57470
57762
|
"eui-markdown-layout-sidebar",
|
|
57471
57763
|
"min-w-0",
|
|
57472
57764
|
stickySidebar && "lg:sticky lg:self-start",
|
|
@@ -57479,7 +57771,7 @@ function MarkdownLayout({
|
|
|
57479
57771
|
hasLeftToc ? /* @__PURE__ */ jsx(
|
|
57480
57772
|
"aside",
|
|
57481
57773
|
{
|
|
57482
|
-
className:
|
|
57774
|
+
className: classNames72(
|
|
57483
57775
|
"eui-markdown-layout-toc",
|
|
57484
57776
|
"min-w-0",
|
|
57485
57777
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -57492,7 +57784,7 @@ function MarkdownLayout({
|
|
|
57492
57784
|
/* @__PURE__ */ jsx(
|
|
57493
57785
|
"main",
|
|
57494
57786
|
{
|
|
57495
|
-
className:
|
|
57787
|
+
className: classNames72(
|
|
57496
57788
|
"eui-markdown-layout-content",
|
|
57497
57789
|
"min-w-0",
|
|
57498
57790
|
contentClassName
|
|
@@ -57503,7 +57795,7 @@ function MarkdownLayout({
|
|
|
57503
57795
|
hasRightToc ? /* @__PURE__ */ jsx(
|
|
57504
57796
|
"aside",
|
|
57505
57797
|
{
|
|
57506
|
-
className:
|
|
57798
|
+
className: classNames72(
|
|
57507
57799
|
"eui-markdown-layout-toc",
|
|
57508
57800
|
"min-w-0",
|
|
57509
57801
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -57516,7 +57808,7 @@ function MarkdownLayout({
|
|
|
57516
57808
|
hasAside ? /* @__PURE__ */ jsx(
|
|
57517
57809
|
"aside",
|
|
57518
57810
|
{
|
|
57519
|
-
className:
|
|
57811
|
+
className: classNames72(
|
|
57520
57812
|
"eui-markdown-layout-aside",
|
|
57521
57813
|
"min-w-0",
|
|
57522
57814
|
stickyAside && "2xl:sticky 2xl:self-start",
|
|
@@ -57532,7 +57824,7 @@ function MarkdownLayout({
|
|
|
57532
57824
|
footer2 ? /* @__PURE__ */ jsx(
|
|
57533
57825
|
"footer",
|
|
57534
57826
|
{
|
|
57535
|
-
className:
|
|
57827
|
+
className: classNames72(
|
|
57536
57828
|
"eui-markdown-layout-footer",
|
|
57537
57829
|
"mt-10",
|
|
57538
57830
|
footerClassName
|
|
@@ -57569,7 +57861,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57569
57861
|
const resolvedHeader = header ?? (title || description || headerActions ? /* @__PURE__ */ jsx(
|
|
57570
57862
|
"div",
|
|
57571
57863
|
{
|
|
57572
|
-
className:
|
|
57864
|
+
className: classNames72(
|
|
57573
57865
|
"eui-markdown-docs-header",
|
|
57574
57866
|
"flex flex-col gap-4 border-b border-gray-200 pb-6",
|
|
57575
57867
|
"dark:border-gray-700",
|
|
@@ -57580,7 +57872,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57580
57872
|
title ? /* @__PURE__ */ jsx(
|
|
57581
57873
|
"h1",
|
|
57582
57874
|
{
|
|
57583
|
-
className:
|
|
57875
|
+
className: classNames72(
|
|
57584
57876
|
"eui-markdown-docs-title",
|
|
57585
57877
|
"text-3xl font-bold tracking-tight text-gray-950",
|
|
57586
57878
|
"dark:text-gray-50",
|
|
@@ -57592,7 +57884,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57592
57884
|
description ? /* @__PURE__ */ jsx(
|
|
57593
57885
|
"div",
|
|
57594
57886
|
{
|
|
57595
|
-
className:
|
|
57887
|
+
className: classNames72(
|
|
57596
57888
|
"eui-markdown-docs-description",
|
|
57597
57889
|
"max-w-3xl text-base leading-7 text-gray-600",
|
|
57598
57890
|
"dark:text-gray-400",
|
|
@@ -57680,7 +57972,7 @@ function GenericLayout({
|
|
|
57680
57972
|
return /* @__PURE__ */ jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsx(
|
|
57681
57973
|
"div",
|
|
57682
57974
|
{
|
|
57683
|
-
className:
|
|
57975
|
+
className: classNames72({
|
|
57684
57976
|
[`${styles}`]: styles
|
|
57685
57977
|
}),
|
|
57686
57978
|
children: children3
|
|
@@ -57729,7 +58021,7 @@ function SidemenuLayout({ data, children: children3 }) {
|
|
|
57729
58021
|
return /* @__PURE__ */ jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxs(
|
|
57730
58022
|
"div",
|
|
57731
58023
|
{
|
|
57732
|
-
className:
|
|
58024
|
+
className: classNames72({
|
|
57733
58025
|
grid: true,
|
|
57734
58026
|
"grid-cols-7 gap-10": !isMobile,
|
|
57735
58027
|
"grid-cols-1 gap-": isMobile
|
|
@@ -57809,6 +58101,6 @@ function ScrollToTop({
|
|
|
57809
58101
|
}
|
|
57810
58102
|
var ScrollToTop_default = ScrollToTop;
|
|
57811
58103
|
|
|
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,
|
|
58104
|
+
export { Accordion_default as Accordion, AnalyticsContext, AnalyticsProvider, AreaPlot, AsyncComponentWrapper_default as AsyncComponentWrapper, Avatar, Backdrop_default as Backdrop, Badge, BarPlot, BaseChartDataSource, Block_default as Block, BlockGroup_default as BlockGroup, BoxNav_default as BoxNav, BoxNavItem_default as BoxNavItem, Brand, Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, Button_web_default as Button, CHART_COLOR_PALETTE, CHART_DARK_THEME, CHART_DATA_MODES, CHART_DEFAULT_ACTIVE_DOT_RADIUS, CHART_DEFAULT_ANIMATION_DURATION, CHART_DEFAULT_BAR_RADIUS, CHART_DEFAULT_HEIGHT, CHART_DEFAULT_HORIZONTAL_BAR_RADIUS, CHART_DEFAULT_MARGIN, CHART_DEFAULT_MAX_REALTIME_POINTS, CHART_DEFAULT_POLLING_INTERVAL, CHART_DEFAULT_STROKE_WIDTH, CHART_EMPTY_MESSAGE, CHART_ERROR_MESSAGE, CHART_LIGHT_THEME, CHART_LOADING_MESSAGE, CHART_STATUSES, CHART_STATUS_COLORS, CHART_VALUE_FORMATS, Caption, Card_default as Card, CardContent_default as CardContent, CardFooter_default as CardFooter, CardHeader_default as CardHeader, Chapter, Chart, ChartContainer, ChartContext, ChartEmptyState, ChartErrorState, ChartHeader, ChartLegend, ChartLoadingState, ChartPanel, ChartPlotFrame, ChartProvider, ChartToolbar, ChartTooltip, Checkbox, Chip, CloudinaryImage2 as CloudinaryImage, CloudinaryProvider, CloudinaryVideo, Code, CodeMirrorMarkdownEditor_default as CodeMirrorMarkdownEditor, CommentThread_default as CommentThread, ConfigBootstrap_default as ConfigBootstrap, Configurator, ConfiguratorError, Content, ContentArea_default as ContentArea, CookieBanner, CookiePreferencesModal, DEFAULT_ANALYTICS_CONFIG, DEFAULT_COOKIE_CATEGORIES, DEFAULT_REVIEW_THREAD_CONFIG, DataView2 as DataView, DataViewContent, DataViewFilterGroup, DataViewFooter, DataViewHeader, DataViewPageSize, DataViewPagination, DataViewProvider, DataViewSearch, DataViewSidebar, DataViewSort, DataViewTable_default as DataViewTable, DateSelector_default as DateSelector, DefaultLayout_default as DefaultLayout, Display, DocumentationPanel_default as DocumentationPanel, Drawer, DrawerToggler_default as DrawerToggler, EUIDevLayout_default as EUIDevLayout, EUIProvider, EUI_ANALYTICS_ANONYMOUS_ID_STORAGE_KEY, EUI_ANALYTICS_CONSENT_STORAGE_KEY, EUI_ANALYTICS_QUEUE_STORAGE_KEY, EnvErrorScreen_default as EnvErrorScreen, Flag, Flex, FlexCol_default as FlexCol, FlexRow_default as FlexRow, Footer, FooterNav_default as FooterNav, FooterNavGroup_default as FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse, GaugePlot, GenericLayout_default as GenericLayout, GlowWrapper_default as GlowWrapper, Graph, GraphEdge, GraphNode, GraphRenderer, Grid_default as Grid, Header, HeaderNav_default as HeaderNav, HeaderNavGroup_default as HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout_default as HomeLayout, Image2 as Image, 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
58105
|
//# sourceMappingURL=index.mjs.map
|
|
57814
58106
|
//# sourceMappingURL=index.mjs.map
|