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.js
CHANGED
|
@@ -5,8 +5,8 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var tailwindMerge = require('tailwind-merge');
|
|
6
6
|
var index_js$1 = require('react-icons/ai/index.js');
|
|
7
7
|
var formik = require('formik');
|
|
8
|
-
var classNames77 = require('classnames');
|
|
9
8
|
var index_js$2 = require('react-icons/fa/index.js');
|
|
9
|
+
var classNames72 = require('classnames');
|
|
10
10
|
var reactBeautifulDnd = require('react-beautiful-dnd');
|
|
11
11
|
var cloudinaryReact = require('cloudinary-react');
|
|
12
12
|
var index_js = require('react-icons/md/index.js');
|
|
@@ -27,7 +27,7 @@ require('@mdxeditor/editor/style.css');
|
|
|
27
27
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
28
28
|
|
|
29
29
|
var React26__default = /*#__PURE__*/_interopDefault(React26);
|
|
30
|
-
var
|
|
30
|
+
var classNames72__default = /*#__PURE__*/_interopDefault(classNames72);
|
|
31
31
|
var ReactWorldFlags__default = /*#__PURE__*/_interopDefault(ReactWorldFlags);
|
|
32
32
|
var emojiFlags__default = /*#__PURE__*/_interopDefault(emojiFlags);
|
|
33
33
|
var CodeMirror__default = /*#__PURE__*/_interopDefault(CodeMirror);
|
|
@@ -6095,14 +6095,14 @@ var Shape = /* @__PURE__ */ ((Shape2) => {
|
|
|
6095
6095
|
// src/data/styles.tsx
|
|
6096
6096
|
var variantsSolid = {
|
|
6097
6097
|
["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",
|
|
6098
|
-
["primary" /* primary */]: "bg-
|
|
6099
|
-
["secondary" /* secondary */]: "bg-
|
|
6100
|
-
["success" /* success */]: "bg-
|
|
6101
|
-
["danger" /* danger */]: "bg-
|
|
6102
|
-
["warning" /* warning */]: "bg-
|
|
6103
|
-
["info" /* info */]: "bg-
|
|
6104
|
-
["light" /* light */]: "bg-
|
|
6105
|
-
["dark" /* dark */]: "bg-
|
|
6098
|
+
["primary" /* primary */]: "bg-eui-primary-500 text-white hover:bg-eui-primary-600",
|
|
6099
|
+
["secondary" /* secondary */]: "bg-eui-secondary-500 text-white hover:bg-eui-secondary-600",
|
|
6100
|
+
["success" /* success */]: "bg-eui-success-500 text-white hover:bg-eui-success-600",
|
|
6101
|
+
["danger" /* danger */]: "bg-eui-danger-500 text-white hover:bg-eui-danger-600",
|
|
6102
|
+
["warning" /* warning */]: "bg-eui-warning-500 text-black hover:bg-eui-warning-400",
|
|
6103
|
+
["info" /* info */]: "bg-eui-info-500 text-white hover:bg-eui-info-600",
|
|
6104
|
+
["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",
|
|
6105
|
+
["dark" /* dark */]: "bg-eui-dark-500 text-white hover:bg-eui-dark-400 dark:bg-eui-dark-400 dark:hover:bg-eui-dark-300"
|
|
6106
6106
|
};
|
|
6107
6107
|
var variantsLite = {
|
|
6108
6108
|
["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",
|
|
@@ -6188,17 +6188,6 @@ var cardBgVariants = {
|
|
|
6188
6188
|
["light" /* light */]: "bg-eui-light-500/10",
|
|
6189
6189
|
["dark" /* dark */]: "bg-eui-dark-500/20"
|
|
6190
6190
|
};
|
|
6191
|
-
var checkboxVariants = {
|
|
6192
|
-
["default" /* default */]: "checked:bg-gray-600 checked:border-gray-600 dark:checked:bg-gray-500 dark:checked:border-gray-500",
|
|
6193
|
-
["primary" /* primary */]: "checked:bg-eui-primary-600 checked:border-eui-primary-600 dark:checked:bg-eui-primary-500 dark:checked:border-eui-primary-500",
|
|
6194
|
-
["secondary" /* secondary */]: "checked:bg-eui-secondary-600 checked:border-eui-secondary-600 dark:checked:bg-eui-secondary-500 dark:checked:border-eui-secondary-500",
|
|
6195
|
-
["success" /* success */]: "checked:bg-eui-success-600 checked:border-eui-success-600 dark:checked:bg-eui-success-500 dark:checked:border-eui-success-500",
|
|
6196
|
-
["danger" /* danger */]: "checked:bg-eui-danger-600 checked:border-eui-danger-600 dark:checked:bg-eui-danger-500 dark:checked:border-eui-danger-500",
|
|
6197
|
-
["warning" /* warning */]: "checked:bg-eui-warning-500 checked:border-eui-warning-500 dark:checked:bg-eui-warning-400 dark:checked:border-eui-warning-400",
|
|
6198
|
-
["info" /* info */]: "checked:bg-eui-info-600 checked:border-eui-info-600 dark:checked:bg-eui-info-500 dark:checked:border-eui-info-500",
|
|
6199
|
-
["light" /* light */]: "checked:bg-eui-light-400 checked:border-eui-light-400 dark:checked:bg-gray-200 dark:checked:border-gray-200",
|
|
6200
|
-
["dark" /* dark */]: "checked:bg-eui-dark-500 checked:border-eui-dark-500 dark:checked:bg-eui-dark-300 dark:checked:border-eui-dark-300"
|
|
6201
|
-
};
|
|
6202
6191
|
var toastPositionStyles = {
|
|
6203
6192
|
["top-left" /* topLeft */]: "top-4 left-4 items-start",
|
|
6204
6193
|
["top-center" /* topCenter */]: "top-4 left-1/2 -translate-x-1/2 items-center",
|
|
@@ -6298,18 +6287,14 @@ function Button({
|
|
|
6298
6287
|
disabled = false,
|
|
6299
6288
|
block = false,
|
|
6300
6289
|
compact = false,
|
|
6290
|
+
glow = true,
|
|
6301
6291
|
mode,
|
|
6302
|
-
buttonColor,
|
|
6303
|
-
textColor,
|
|
6304
6292
|
contentClassName,
|
|
6305
6293
|
labelClassName,
|
|
6306
6294
|
variant,
|
|
6307
6295
|
appearance,
|
|
6308
6296
|
shape,
|
|
6309
6297
|
size,
|
|
6310
|
-
style: style2,
|
|
6311
|
-
contentStyle,
|
|
6312
|
-
labelStyle,
|
|
6313
6298
|
accessibilityLabel,
|
|
6314
6299
|
accessibilityRole,
|
|
6315
6300
|
accessibilityState,
|
|
@@ -6342,12 +6327,15 @@ function Button({
|
|
|
6342
6327
|
const iconSize = buttonIconSizes[resolvedSize];
|
|
6343
6328
|
const labelContent = text10 || children3;
|
|
6344
6329
|
const resolvedIcon = typeof icon === "function" ? icon({
|
|
6345
|
-
color:
|
|
6330
|
+
color: "currentColor",
|
|
6346
6331
|
size: iconSize
|
|
6347
6332
|
}) : icon;
|
|
6348
6333
|
const handleMouseMove = (e) => {
|
|
6349
6334
|
const btn = btnRef.current;
|
|
6350
|
-
if (!btn)
|
|
6335
|
+
if (!btn || !glow) {
|
|
6336
|
+
onMouseMove?.(e);
|
|
6337
|
+
return;
|
|
6338
|
+
}
|
|
6351
6339
|
const rect = btn.getBoundingClientRect();
|
|
6352
6340
|
const x3 = e.clientX - rect.left;
|
|
6353
6341
|
const y3 = e.clientY - rect.top;
|
|
@@ -6375,11 +6363,6 @@ function Button({
|
|
|
6375
6363
|
"aria-pressed": accessibility?.selected === void 0 ? void 0 : Boolean(accessibility.selected),
|
|
6376
6364
|
"data-testid": testID,
|
|
6377
6365
|
role: accessibilityRole,
|
|
6378
|
-
style: {
|
|
6379
|
-
background: buttonColor,
|
|
6380
|
-
color: textColor,
|
|
6381
|
-
...style2
|
|
6382
|
-
},
|
|
6383
6366
|
className: cn(
|
|
6384
6367
|
"relative overflow-hidden group inline-flex items-center justify-center gap-2 transition-all duration-300",
|
|
6385
6368
|
variantStyles,
|
|
@@ -6392,18 +6375,18 @@ function Button({
|
|
|
6392
6375
|
className
|
|
6393
6376
|
),
|
|
6394
6377
|
children: [
|
|
6395
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6378
|
+
glow && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6396
6379
|
"span",
|
|
6397
6380
|
{
|
|
6398
6381
|
className: "pointer-events-none absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-300",
|
|
6399
6382
|
style: {
|
|
6400
6383
|
background: `
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6384
|
+
radial-gradient(
|
|
6385
|
+
200px circle at var(--glow-x) var(--glow-y),
|
|
6386
|
+
rgba(255,255,255,0.18),
|
|
6387
|
+
transparent 50%
|
|
6388
|
+
)
|
|
6389
|
+
`
|
|
6407
6390
|
}
|
|
6408
6391
|
}
|
|
6409
6392
|
),
|
|
@@ -6418,8 +6401,7 @@ function Button({
|
|
|
6418
6401
|
style: {
|
|
6419
6402
|
height: iconSize,
|
|
6420
6403
|
lineHeight: 0,
|
|
6421
|
-
width: iconSize
|
|
6422
|
-
...contentStyle
|
|
6404
|
+
width: iconSize
|
|
6423
6405
|
},
|
|
6424
6406
|
children: resolvedIcon
|
|
6425
6407
|
}
|
|
@@ -6432,8 +6414,7 @@ function Button({
|
|
|
6432
6414
|
labelClassName
|
|
6433
6415
|
),
|
|
6434
6416
|
style: {
|
|
6435
|
-
minHeight: iconSize
|
|
6436
|
-
...labelStyle
|
|
6417
|
+
minHeight: iconSize
|
|
6437
6418
|
},
|
|
6438
6419
|
children: labelContent
|
|
6439
6420
|
}
|
|
@@ -6443,11 +6424,46 @@ function Button({
|
|
|
6443
6424
|
);
|
|
6444
6425
|
}
|
|
6445
6426
|
var Button_web_default = Button;
|
|
6427
|
+
|
|
6428
|
+
// src/components/data-entry/input/input-label/base/InputLabel.styles.ts
|
|
6429
|
+
var inputLabelStaticClassName = "pointer-events-none select-none px-0 text-[13.5px] leading-none text-[#6B7280]";
|
|
6430
|
+
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";
|
|
6431
|
+
var inputLabelTransitionClassName = "transition-all duration-200 ease-out";
|
|
6432
|
+
var inputLabelRestingClassName = "top-[18px] translate-y-0 text-base leading-none text-[#6B7280]";
|
|
6433
|
+
var inputLabelFloatingClassName = "top-1.5 translate-y-0 text-xs leading-none text-[#6B7280]";
|
|
6434
|
+
var inputLabelErrorClassName = "text-[#6B7280]";
|
|
6435
|
+
var inputLabelDisabledClassName = "opacity-60";
|
|
6436
|
+
function InputLabel({
|
|
6437
|
+
text: text10,
|
|
6438
|
+
children: children3,
|
|
6439
|
+
className,
|
|
6440
|
+
floating,
|
|
6441
|
+
errored = false,
|
|
6442
|
+
disabled = false,
|
|
6443
|
+
htmlFor
|
|
6444
|
+
}) {
|
|
6445
|
+
const isFloatingLabel = typeof floating === "boolean";
|
|
6446
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6447
|
+
"label",
|
|
6448
|
+
{
|
|
6449
|
+
htmlFor,
|
|
6450
|
+
className: cn(
|
|
6451
|
+
isFloatingLabel ? inputLabelBaseClassName : inputLabelStaticClassName,
|
|
6452
|
+
isFloatingLabel && inputLabelTransitionClassName,
|
|
6453
|
+
isFloatingLabel && (floating === true ? inputLabelFloatingClassName : inputLabelRestingClassName),
|
|
6454
|
+
errored && inputLabelErrorClassName,
|
|
6455
|
+
disabled && inputLabelDisabledClassName,
|
|
6456
|
+
className
|
|
6457
|
+
),
|
|
6458
|
+
children: text10 || children3
|
|
6459
|
+
}
|
|
6460
|
+
);
|
|
6461
|
+
}
|
|
6446
6462
|
var Backdrop = ({ children: children3, styles }) => {
|
|
6447
6463
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6448
6464
|
"div",
|
|
6449
6465
|
{
|
|
6450
|
-
className:
|
|
6466
|
+
className: classNames72__default.default({
|
|
6451
6467
|
"bg-black/75 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden": true,
|
|
6452
6468
|
[`${styles}`]: styles
|
|
6453
6469
|
}),
|
|
@@ -7037,7 +7053,7 @@ function renderTransitionChild(children3, className) {
|
|
|
7037
7053
|
}
|
|
7038
7054
|
const element7 = child;
|
|
7039
7055
|
return React26__default.default.cloneElement(element7, {
|
|
7040
|
-
className:
|
|
7056
|
+
className: classNames72__default.default(element7.props.className, className)
|
|
7041
7057
|
});
|
|
7042
7058
|
}
|
|
7043
7059
|
function TransitionBase({
|
|
@@ -7057,7 +7073,7 @@ function TransitionBase({
|
|
|
7057
7073
|
if (!mounted && unmountOnExit) {
|
|
7058
7074
|
return null;
|
|
7059
7075
|
}
|
|
7060
|
-
const transitionClassName =
|
|
7076
|
+
const transitionClassName = classNames72__default.default(
|
|
7061
7077
|
visibility ? enterClassName : leaveClassName,
|
|
7062
7078
|
active ? visibleClassName : hiddenClassName
|
|
7063
7079
|
);
|
|
@@ -7215,114 +7231,188 @@ var Transition = {
|
|
|
7215
7231
|
TransitionSlide: TransitionSlide_default,
|
|
7216
7232
|
TransitionAccordion: TransitionAccordion_default
|
|
7217
7233
|
};
|
|
7234
|
+
|
|
7235
|
+
// src/components/data-entry/input/input-response/base/InputResponse.styles.ts
|
|
7236
|
+
var inputResponseBaseClassName = "px-2 pt-1.5 text-sm font-medium";
|
|
7237
|
+
var inputResponseVariants = textVariants;
|
|
7218
7238
|
function InputResponse({
|
|
7219
7239
|
name: name2,
|
|
7220
7240
|
visibility = false,
|
|
7221
7241
|
variant = "default",
|
|
7222
|
-
|
|
7242
|
+
className,
|
|
7243
|
+
message
|
|
7223
7244
|
}) {
|
|
7224
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Transition.
|
|
7245
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Transition.TransitionFadeIn, { visibility, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7225
7246
|
"div",
|
|
7226
7247
|
{
|
|
7227
|
-
className:
|
|
7228
|
-
|
|
7229
|
-
[
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
})
|
|
7233
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(formik.ErrorMessage, { name: name2 })
|
|
7248
|
+
className: cn(
|
|
7249
|
+
inputResponseBaseClassName,
|
|
7250
|
+
inputResponseVariants[variant],
|
|
7251
|
+
className
|
|
7252
|
+
),
|
|
7253
|
+
children: message ?? /* @__PURE__ */ jsxRuntime.jsx(formik.ErrorMessage, { name: name2 })
|
|
7234
7254
|
}
|
|
7235
7255
|
) });
|
|
7236
7256
|
}
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
className: classNames77__default.default({
|
|
7243
|
-
"px-0 eui-text-sm text-[13.5px] pointer-events-none select-none": true,
|
|
7244
|
-
"transition-all ease-in-out": true,
|
|
7245
|
-
[`${styles}`]: styles
|
|
7246
|
-
}),
|
|
7247
|
-
children: text10 || children3
|
|
7248
|
-
}
|
|
7249
|
-
);
|
|
7257
|
+
function resolveInputType({
|
|
7258
|
+
passwordVisible,
|
|
7259
|
+
type: type2
|
|
7260
|
+
}) {
|
|
7261
|
+
return type2 === "password" && passwordVisible ? "text" : type2;
|
|
7250
7262
|
}
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7263
|
+
function useResolvedInputConfig({
|
|
7264
|
+
label,
|
|
7265
|
+
placeholder,
|
|
7266
|
+
shape,
|
|
7267
|
+
type: type2 = "text"
|
|
7268
|
+
}) {
|
|
7269
|
+
const eui = useEUIConfig();
|
|
7270
|
+
return {
|
|
7271
|
+
shape: shape ?? eui?.config?.global?.shape ?? "square",
|
|
7272
|
+
type: type2,
|
|
7273
|
+
label: label ?? placeholder
|
|
7262
7274
|
};
|
|
7275
|
+
}
|
|
7276
|
+
function useInputFieldState(props) {
|
|
7277
|
+
const [field, meta, helpers] = formik.useField(props);
|
|
7278
|
+
return {
|
|
7279
|
+
field,
|
|
7280
|
+
meta,
|
|
7281
|
+
helpers
|
|
7282
|
+
};
|
|
7283
|
+
}
|
|
7284
|
+
|
|
7285
|
+
// src/components/data-entry/input/input/base/Input.styles.ts
|
|
7286
|
+
var inputShapes = shapes;
|
|
7287
|
+
var inputRootClassName = "relative w-full";
|
|
7288
|
+
var inputFrameClassName = "relative h-14 w-full overflow-hidden border bg-white/95 px-3 dark:bg-eui-dark-800";
|
|
7289
|
+
var inputFrameIdleClassName = "border-gray-300 hover:border-gray-400 dark:border-eui-dark-300 dark:hover:border-eui-dark-200";
|
|
7290
|
+
var inputFrameActiveClassName = "border-eui-secondary-600";
|
|
7291
|
+
var inputFrameErrorClassName = "border-eui-danger-500";
|
|
7292
|
+
var inputFrameDisabledClassName = "cursor-not-allowed opacity-60";
|
|
7293
|
+
var inputControlClassName = "w-full bg-transparent pt-5 pb-2 text-base font-medium text-gray-950 dark:text-gray-50";
|
|
7294
|
+
|
|
7295
|
+
// src/components/data-entry/input/input/web/Input.web.styles.ts
|
|
7296
|
+
var webInputControlClassName = "placeholder-transparent outline-none transition-all duration-200 ease-out";
|
|
7297
|
+
var webPasswordToggleClassName = "absolute right-3 top-[18px] cursor-pointer text-xl text-eui-dark-200 transition-colors duration-180 hover:text-eui-secondary-700";
|
|
7298
|
+
function PasswordVisibilityToggler({
|
|
7299
|
+
passwordVisible,
|
|
7300
|
+
onToggle
|
|
7301
|
+
}) {
|
|
7263
7302
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7264
7303
|
"div",
|
|
7265
7304
|
{
|
|
7266
|
-
className:
|
|
7267
|
-
onClick: () =>
|
|
7268
|
-
children:
|
|
7305
|
+
className: webPasswordToggleClassName,
|
|
7306
|
+
onClick: () => onToggle(!passwordVisible),
|
|
7307
|
+
children: passwordVisible ? /* @__PURE__ */ jsxRuntime.jsx(index_js$2.FaEyeSlash, {}) : /* @__PURE__ */ jsxRuntime.jsx(index_js$2.FaEye, {})
|
|
7269
7308
|
}
|
|
7270
7309
|
);
|
|
7271
|
-
}
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7310
|
+
}
|
|
7311
|
+
function Input(inputProps) {
|
|
7312
|
+
const {
|
|
7313
|
+
type: type2 = "text",
|
|
7314
|
+
id: id2,
|
|
7315
|
+
label,
|
|
7316
|
+
placeholder,
|
|
7317
|
+
inputClassName,
|
|
7318
|
+
labelClassName,
|
|
7319
|
+
responseClassName,
|
|
7320
|
+
step,
|
|
7321
|
+
shape,
|
|
7322
|
+
disabled = false,
|
|
7323
|
+
className,
|
|
7324
|
+
onBlur,
|
|
7325
|
+
onFocus,
|
|
7326
|
+
...props
|
|
7327
|
+
} = inputProps;
|
|
7328
|
+
const { field, meta } = useInputFieldState(inputProps);
|
|
7329
|
+
const [focused, setFocused] = React26.useState(false);
|
|
7330
|
+
const [passwordVisible, setPasswordVisible] = React26.useState(false);
|
|
7331
|
+
const {
|
|
7332
|
+
shape: resolvedShape,
|
|
7333
|
+
type: resolvedType,
|
|
7334
|
+
label: resolvedLabel
|
|
7335
|
+
} = useResolvedInputConfig({
|
|
7336
|
+
label,
|
|
7337
|
+
placeholder,
|
|
7338
|
+
shape,
|
|
7339
|
+
type: type2
|
|
7340
|
+
});
|
|
7341
|
+
const inputType = resolveInputType({
|
|
7342
|
+
passwordVisible,
|
|
7343
|
+
type: resolvedType
|
|
7344
|
+
});
|
|
7345
|
+
const hasError = Boolean(meta.touched && meta.error);
|
|
7346
|
+
const hasValue = String(field.value ?? "").length > 0;
|
|
7347
|
+
const floating = focused || hasValue;
|
|
7348
|
+
const inputId = id2 ?? field.name;
|
|
7349
|
+
const handleBlur = (event) => {
|
|
7350
|
+
setFocused(false);
|
|
7351
|
+
field.onBlur(event);
|
|
7352
|
+
onBlur?.(event);
|
|
7353
|
+
};
|
|
7354
|
+
const handleFocus = (event) => {
|
|
7355
|
+
setFocused(true);
|
|
7356
|
+
onFocus?.(event);
|
|
7357
|
+
};
|
|
7358
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: inputRootClassName, children: [
|
|
7286
7359
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7287
7360
|
formik.Field,
|
|
7288
7361
|
{
|
|
7289
|
-
type: inputType,
|
|
7290
|
-
step: inputType === "number" && step ? step : void 0,
|
|
7291
|
-
...field,
|
|
7292
7362
|
...props,
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7363
|
+
...field,
|
|
7364
|
+
disabled,
|
|
7365
|
+
id: inputId,
|
|
7366
|
+
onBlur: handleBlur,
|
|
7367
|
+
onFocus: handleFocus,
|
|
7368
|
+
placeholder: "",
|
|
7369
|
+
step: inputType === "number" && step ? step : void 0,
|
|
7370
|
+
type: inputType,
|
|
7371
|
+
className: cn(
|
|
7372
|
+
inputFrameClassName,
|
|
7373
|
+
inputControlClassName,
|
|
7374
|
+
webInputControlClassName,
|
|
7375
|
+
hasError ? inputFrameErrorClassName : focused ? inputFrameActiveClassName : inputFrameIdleClassName,
|
|
7376
|
+
inputShapes[resolvedShape],
|
|
7377
|
+
disabled && inputFrameDisabledClassName,
|
|
7378
|
+
className,
|
|
7379
|
+
inputClassName
|
|
7380
|
+
)
|
|
7302
7381
|
}
|
|
7303
7382
|
),
|
|
7304
7383
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7305
|
-
|
|
7384
|
+
InputLabel,
|
|
7306
7385
|
{
|
|
7307
|
-
|
|
7308
|
-
|
|
7386
|
+
disabled,
|
|
7387
|
+
errored: hasError,
|
|
7388
|
+
floating,
|
|
7389
|
+
htmlFor: inputId,
|
|
7390
|
+
text: resolvedLabel,
|
|
7391
|
+
className: labelClassName
|
|
7309
7392
|
}
|
|
7310
7393
|
),
|
|
7311
|
-
type2 === "password"
|
|
7394
|
+
type2 === "password" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7395
|
+
PasswordVisibilityToggler,
|
|
7396
|
+
{
|
|
7397
|
+
passwordVisible,
|
|
7398
|
+
onToggle: setPasswordVisible
|
|
7399
|
+
}
|
|
7400
|
+
) : null,
|
|
7312
7401
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7313
|
-
|
|
7402
|
+
InputResponse,
|
|
7314
7403
|
{
|
|
7315
7404
|
name: field.name,
|
|
7316
|
-
visibility:
|
|
7317
|
-
variant: "danger"
|
|
7405
|
+
visibility: hasError,
|
|
7406
|
+
variant: "danger",
|
|
7407
|
+
className: responseClassName
|
|
7318
7408
|
}
|
|
7319
7409
|
)
|
|
7320
7410
|
] });
|
|
7321
|
-
}
|
|
7411
|
+
}
|
|
7322
7412
|
var InputFile = ({
|
|
7323
7413
|
placeholder,
|
|
7324
7414
|
accept = "",
|
|
7325
|
-
|
|
7415
|
+
className,
|
|
7326
7416
|
...props
|
|
7327
7417
|
}) => {
|
|
7328
7418
|
const fileInputRef = React26.useRef(null);
|
|
@@ -7336,13 +7426,13 @@ var InputFile = ({
|
|
|
7336
7426
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7337
7427
|
"div",
|
|
7338
7428
|
{
|
|
7339
|
-
className:
|
|
7429
|
+
className: classNames72__default.default(
|
|
7340
7430
|
"border rounded-sm bg-eui-primary-300/10 px-3 pt-3 text-md text-eui-dark-100 cursor-pointer h-[50px] flex items-center",
|
|
7341
7431
|
{
|
|
7342
7432
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
7343
7433
|
"border-eui-danger-500": meta.touched && meta.error
|
|
7344
7434
|
},
|
|
7345
|
-
|
|
7435
|
+
className
|
|
7346
7436
|
),
|
|
7347
7437
|
onClick: () => fileInputRef.current?.click(),
|
|
7348
7438
|
children: field.value?.name || ""
|
|
@@ -7359,10 +7449,10 @@ var InputFile = ({
|
|
|
7359
7449
|
}
|
|
7360
7450
|
),
|
|
7361
7451
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7362
|
-
|
|
7452
|
+
InputLabel,
|
|
7363
7453
|
{
|
|
7364
7454
|
text: placeholder,
|
|
7365
|
-
|
|
7455
|
+
className: classNames72__default.default({
|
|
7366
7456
|
"absolute left-2 eui-text-sm peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none": true,
|
|
7367
7457
|
"top-[0.7px]": showFloatingLabel,
|
|
7368
7458
|
"top-[13px] text-base": !showFloatingLabel
|
|
@@ -7370,7 +7460,7 @@ var InputFile = ({
|
|
|
7370
7460
|
}
|
|
7371
7461
|
),
|
|
7372
7462
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7373
|
-
|
|
7463
|
+
InputResponse,
|
|
7374
7464
|
{
|
|
7375
7465
|
name: field.name,
|
|
7376
7466
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -7411,11 +7501,11 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7411
7501
|
const fieldErrors = errors[name2];
|
|
7412
7502
|
const hasListError = Boolean(errors[name2]) && Boolean(touched[name2]) && typeof errors[name2] === "string";
|
|
7413
7503
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
7414
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7504
|
+
/* @__PURE__ */ jsxRuntime.jsx(InputLabel, { text: placeholder }),
|
|
7415
7505
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsxRuntime.jsx(formik.FieldArray, { name: name2, children: ({ push: push2, remove: remove2, move }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7416
7506
|
"div",
|
|
7417
7507
|
{
|
|
7418
|
-
className:
|
|
7508
|
+
className: classNames72__default.default(
|
|
7419
7509
|
"flex w-full flex-col space-y-2 bg-eui-primary-300/10",
|
|
7420
7510
|
shapes[resolvedShape]
|
|
7421
7511
|
),
|
|
@@ -7444,7 +7534,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7444
7534
|
ref: provided2.innerRef,
|
|
7445
7535
|
...draggableProps,
|
|
7446
7536
|
style: draggableStyle,
|
|
7447
|
-
className:
|
|
7537
|
+
className: classNames72__default.default(
|
|
7448
7538
|
"flex items-center space-x-2 bg-eui-primary-300/10 p-2",
|
|
7449
7539
|
shapes[resolvedShape]
|
|
7450
7540
|
),
|
|
@@ -7455,7 +7545,7 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7455
7545
|
{
|
|
7456
7546
|
name: `${name2}[${index3}]`,
|
|
7457
7547
|
placeholder: `Item ${index3 + 1}`,
|
|
7458
|
-
className:
|
|
7548
|
+
className: classNames72__default.default(
|
|
7459
7549
|
"peer h-[50px] w-full border bg-eui-primary-300/10 px-3 pb-2 pt-5 text-md placeholder-transparent placeholder-shown:p-3 focus:outline-none eui-text-md",
|
|
7460
7550
|
shapes[resolvedShape],
|
|
7461
7551
|
hasItemError ? "border-eui-danger-500" : "border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -7495,12 +7585,12 @@ var InputList = ({ name: name2, placeholder, shape }) => {
|
|
|
7495
7585
|
}
|
|
7496
7586
|
),
|
|
7497
7587
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7498
|
-
|
|
7588
|
+
InputResponse,
|
|
7499
7589
|
{
|
|
7500
7590
|
name: name2,
|
|
7501
7591
|
visibility: hasListError,
|
|
7502
7592
|
variant: "danger",
|
|
7503
|
-
|
|
7593
|
+
className: "pb-2"
|
|
7504
7594
|
}
|
|
7505
7595
|
)
|
|
7506
7596
|
]
|
|
@@ -7543,7 +7633,7 @@ var InputListGroup = ({
|
|
|
7543
7633
|
const groups = values[name2] ?? [];
|
|
7544
7634
|
const hasError = Boolean(errors[name2]) && Boolean(touched[name2]) && typeof errors[name2] === "string";
|
|
7545
7635
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-2", children: [
|
|
7546
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7636
|
+
/* @__PURE__ */ jsxRuntime.jsx(InputLabel, { text: placeholder }),
|
|
7547
7637
|
/* @__PURE__ */ jsxRuntime.jsx(formik.FieldArray, { name: name2, children: ({ push: push2, remove: remove2 }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
7548
7638
|
groups.map((group, groupIndex) => {
|
|
7549
7639
|
const itemsFieldName = `${name2}[${groupIndex}].items`;
|
|
@@ -7551,7 +7641,7 @@ var InputListGroup = ({
|
|
|
7551
7641
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7552
7642
|
"div",
|
|
7553
7643
|
{
|
|
7554
|
-
className:
|
|
7644
|
+
className: classNames72__default.default(
|
|
7555
7645
|
"flex flex-col gap-2 bg-eui-primary-300/10 p-3",
|
|
7556
7646
|
shapes[resolvedShape]
|
|
7557
7647
|
),
|
|
@@ -7563,7 +7653,7 @@ var InputListGroup = ({
|
|
|
7563
7653
|
{
|
|
7564
7654
|
name: `${name2}[${groupIndex}].name`,
|
|
7565
7655
|
placeholder: `Group ${groupIndex + 1}`,
|
|
7566
|
-
className:
|
|
7656
|
+
className: classNames72__default.default(
|
|
7567
7657
|
"h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
|
|
7568
7658
|
shapes[resolvedShape],
|
|
7569
7659
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -7594,7 +7684,7 @@ var InputListGroup = ({
|
|
|
7594
7684
|
{
|
|
7595
7685
|
ref: provided.innerRef,
|
|
7596
7686
|
...provided.droppableProps,
|
|
7597
|
-
className:
|
|
7687
|
+
className: classNames72__default.default(
|
|
7598
7688
|
"space-y-2 bg-eui-primary-300/10 p-2",
|
|
7599
7689
|
shapes[resolvedShape]
|
|
7600
7690
|
),
|
|
@@ -7614,7 +7704,7 @@ var InputListGroup = ({
|
|
|
7614
7704
|
ref: provided2.innerRef,
|
|
7615
7705
|
...draggableProps,
|
|
7616
7706
|
style: draggableStyle,
|
|
7617
|
-
className:
|
|
7707
|
+
className: classNames72__default.default(
|
|
7618
7708
|
"flex items-center gap-2 bg-eui-primary-300/10 p-2",
|
|
7619
7709
|
shapes[resolvedShape]
|
|
7620
7710
|
),
|
|
@@ -7625,7 +7715,7 @@ var InputListGroup = ({
|
|
|
7625
7715
|
{
|
|
7626
7716
|
name: `${itemsFieldName}[${itemIndex}]`,
|
|
7627
7717
|
placeholder: `Item ${itemIndex + 1}`,
|
|
7628
|
-
className:
|
|
7718
|
+
className: classNames72__default.default(
|
|
7629
7719
|
"h-[40px] w-full border bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none",
|
|
7630
7720
|
shapes[resolvedShape],
|
|
7631
7721
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -7684,12 +7774,12 @@ var InputListGroup = ({
|
|
|
7684
7774
|
}
|
|
7685
7775
|
),
|
|
7686
7776
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7687
|
-
|
|
7777
|
+
InputResponse,
|
|
7688
7778
|
{
|
|
7689
7779
|
name: name2,
|
|
7690
7780
|
visibility: hasError,
|
|
7691
7781
|
variant: "danger",
|
|
7692
|
-
|
|
7782
|
+
className: "pb-2"
|
|
7693
7783
|
}
|
|
7694
7784
|
)
|
|
7695
7785
|
] }) })
|
|
@@ -7698,13 +7788,20 @@ var InputListGroup = ({
|
|
|
7698
7788
|
function isMultiCheckbox(props) {
|
|
7699
7789
|
return Array.isArray(props.options);
|
|
7700
7790
|
}
|
|
7701
|
-
function
|
|
7791
|
+
function useResolvedCheckboxConfig({
|
|
7792
|
+
label,
|
|
7702
7793
|
placeholder,
|
|
7703
|
-
variant
|
|
7704
|
-
shape
|
|
7705
|
-
className,
|
|
7706
|
-
...props
|
|
7794
|
+
variant,
|
|
7795
|
+
shape
|
|
7707
7796
|
}) {
|
|
7797
|
+
const eui = useEUIConfig();
|
|
7798
|
+
return {
|
|
7799
|
+
shape: shape ?? eui?.config?.global?.shape ?? "roundedSquare",
|
|
7800
|
+
variant: variant ?? "secondary",
|
|
7801
|
+
label: label ?? placeholder
|
|
7802
|
+
};
|
|
7803
|
+
}
|
|
7804
|
+
function useCheckboxFieldState(props) {
|
|
7708
7805
|
const isMulti = isMultiCheckbox(props);
|
|
7709
7806
|
const [multiField, multiMeta, multiHelpers] = formik.useField(
|
|
7710
7807
|
props
|
|
@@ -7712,89 +7809,238 @@ function Checkbox({
|
|
|
7712
7809
|
const [singleField, singleMeta, singleHelpers] = formik.useField(
|
|
7713
7810
|
props
|
|
7714
7811
|
);
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
"checked:
|
|
7738
|
-
"
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7812
|
+
return {
|
|
7813
|
+
isMulti,
|
|
7814
|
+
multiField,
|
|
7815
|
+
multiMeta,
|
|
7816
|
+
multiHelpers,
|
|
7817
|
+
singleField,
|
|
7818
|
+
singleMeta,
|
|
7819
|
+
singleHelpers
|
|
7820
|
+
};
|
|
7821
|
+
}
|
|
7822
|
+
|
|
7823
|
+
// src/components/data-entry/checkbox/base/Checkbox.styles.ts
|
|
7824
|
+
var checkboxShapes = shapes;
|
|
7825
|
+
var checkboxGroupClassName = "flex flex-col gap-2";
|
|
7826
|
+
var checkboxOptionRowClassName = "flex flex-row items-start gap-3";
|
|
7827
|
+
var checkboxLabelClassName = "cursor-pointer select-none text-sm leading-relaxed text-gray-800 dark:text-gray-200";
|
|
7828
|
+
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";
|
|
7829
|
+
var checkboxIndicatorDisabledClassName = "cursor-not-allowed opacity-50";
|
|
7830
|
+
|
|
7831
|
+
// src/components/data-entry/checkbox/web/Checkbox.web.styles.ts
|
|
7832
|
+
var webCheckboxVariants = {
|
|
7833
|
+
default: {
|
|
7834
|
+
checkedClassName: "checked:bg-eui-secondary-600 checked:border-eui-secondary-600 dark:checked:bg-eui-secondary-500 dark:checked:border-eui-secondary-500",
|
|
7835
|
+
iconClassName: "text-white"
|
|
7836
|
+
},
|
|
7837
|
+
primary: {
|
|
7838
|
+
checkedClassName: "checked:bg-eui-primary-600 checked:border-eui-primary-600 dark:checked:bg-eui-primary-500 dark:checked:border-eui-primary-500",
|
|
7839
|
+
iconClassName: "text-white"
|
|
7840
|
+
},
|
|
7841
|
+
secondary: {
|
|
7842
|
+
checkedClassName: "checked:bg-eui-secondary-600 checked:border-eui-secondary-600 dark:checked:bg-eui-secondary-500 dark:checked:border-eui-secondary-500",
|
|
7843
|
+
iconClassName: "text-white"
|
|
7844
|
+
},
|
|
7845
|
+
success: {
|
|
7846
|
+
checkedClassName: "checked:bg-eui-success-600 checked:border-eui-success-600 dark:checked:bg-eui-success-500 dark:checked:border-eui-success-500",
|
|
7847
|
+
iconClassName: "text-white"
|
|
7848
|
+
},
|
|
7849
|
+
danger: {
|
|
7850
|
+
checkedClassName: "checked:bg-eui-danger-600 checked:border-eui-danger-600 dark:checked:bg-eui-danger-500 dark:checked:border-eui-danger-500",
|
|
7851
|
+
iconClassName: "text-white"
|
|
7852
|
+
},
|
|
7853
|
+
warning: {
|
|
7854
|
+
checkedClassName: "checked:bg-eui-warning-500 checked:border-eui-warning-500 dark:checked:bg-eui-warning-400 dark:checked:border-eui-warning-400",
|
|
7855
|
+
iconClassName: "text-black"
|
|
7856
|
+
},
|
|
7857
|
+
info: {
|
|
7858
|
+
checkedClassName: "checked:bg-eui-info-600 checked:border-eui-info-600 dark:checked:bg-eui-info-500 dark:checked:border-eui-info-500",
|
|
7859
|
+
iconClassName: "text-white"
|
|
7860
|
+
},
|
|
7861
|
+
light: {
|
|
7862
|
+
checkedClassName: "checked:bg-eui-light-400 checked:border-eui-light-400 dark:checked:bg-gray-200 dark:checked:border-gray-200",
|
|
7863
|
+
iconClassName: "text-gray-900"
|
|
7864
|
+
},
|
|
7865
|
+
dark: {
|
|
7866
|
+
checkedClassName: "checked:bg-eui-dark-500 checked:border-eui-dark-500 dark:checked:bg-eui-dark-300 dark:checked:border-eui-dark-300",
|
|
7867
|
+
iconClassName: "text-white"
|
|
7868
|
+
}
|
|
7869
|
+
};
|
|
7870
|
+
function resolveWebCheckboxVariantStyles(variant) {
|
|
7871
|
+
return webCheckboxVariants[variant];
|
|
7872
|
+
}
|
|
7873
|
+
function getIndicatorClassName({
|
|
7874
|
+
checked,
|
|
7875
|
+
className,
|
|
7876
|
+
disabled,
|
|
7877
|
+
indicatorClassName,
|
|
7878
|
+
checkedIndicatorClassName,
|
|
7879
|
+
resolvedShape,
|
|
7880
|
+
variantCheckedClassName
|
|
7881
|
+
}) {
|
|
7882
|
+
return cn(
|
|
7883
|
+
checkboxIndicatorBaseClassName,
|
|
7884
|
+
checkboxShapes[resolvedShape],
|
|
7885
|
+
indicatorClassName,
|
|
7886
|
+
className,
|
|
7887
|
+
variantCheckedClassName,
|
|
7888
|
+
checked && checkedIndicatorClassName,
|
|
7889
|
+
disabled && checkboxIndicatorDisabledClassName
|
|
7744
7890
|
);
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7891
|
+
}
|
|
7892
|
+
function Tick({
|
|
7893
|
+
checked,
|
|
7894
|
+
checkedIconClassName,
|
|
7895
|
+
iconClassName
|
|
7896
|
+
}) {
|
|
7897
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7898
|
+
"span",
|
|
7899
|
+
{
|
|
7900
|
+
"aria-hidden": "true",
|
|
7901
|
+
className: cn(
|
|
7902
|
+
"pointer-events-none absolute inset-0 inline-flex items-center justify-center text-sm font-bold leading-none transition-opacity duration-200",
|
|
7903
|
+
iconClassName,
|
|
7904
|
+
checkedIconClassName,
|
|
7905
|
+
checked ? "opacity-100" : "opacity-0"
|
|
7756
7906
|
),
|
|
7757
|
-
|
|
7907
|
+
children: "\u2713"
|
|
7908
|
+
}
|
|
7909
|
+
);
|
|
7910
|
+
}
|
|
7911
|
+
function Checkbox(checkboxProps) {
|
|
7912
|
+
const {
|
|
7913
|
+
label,
|
|
7914
|
+
placeholder,
|
|
7915
|
+
variant,
|
|
7916
|
+
shape,
|
|
7917
|
+
disabled = false,
|
|
7918
|
+
className,
|
|
7919
|
+
groupClassName,
|
|
7920
|
+
optionClassName,
|
|
7921
|
+
indicatorClassName,
|
|
7922
|
+
checkedIndicatorClassName,
|
|
7923
|
+
checkedIconClassName,
|
|
7924
|
+
labelClassName
|
|
7925
|
+
} = checkboxProps;
|
|
7926
|
+
const {
|
|
7927
|
+
shape: resolvedShape,
|
|
7928
|
+
variant: resolvedVariant,
|
|
7929
|
+
label: resolvedLabel
|
|
7930
|
+
} = useResolvedCheckboxConfig({
|
|
7931
|
+
label,
|
|
7932
|
+
placeholder,
|
|
7933
|
+
variant,
|
|
7934
|
+
shape
|
|
7935
|
+
});
|
|
7936
|
+
const {
|
|
7937
|
+
isMulti,
|
|
7938
|
+
multiField,
|
|
7939
|
+
multiMeta,
|
|
7940
|
+
multiHelpers,
|
|
7941
|
+
singleField,
|
|
7942
|
+
singleMeta,
|
|
7943
|
+
singleHelpers
|
|
7944
|
+
} = useCheckboxFieldState(checkboxProps);
|
|
7945
|
+
const variantStyles = resolveWebCheckboxVariantStyles(resolvedVariant);
|
|
7946
|
+
const activeFieldName = isMulti ? multiField.name : singleField.name;
|
|
7947
|
+
const activeMeta = isMulti ? multiMeta : singleMeta;
|
|
7948
|
+
const multiProps = isMultiCheckbox(checkboxProps) ? checkboxProps : null;
|
|
7949
|
+
const singleChecked = singleField.value;
|
|
7950
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(checkboxGroupClassName, groupClassName), children: [
|
|
7951
|
+
!isMulti && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(checkboxOptionRowClassName, optionClassName), children: [
|
|
7952
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative inline-flex h-5 w-5 shrink-0 items-center justify-center", children: [
|
|
7953
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7954
|
+
"input",
|
|
7955
|
+
{
|
|
7956
|
+
id: singleField.name,
|
|
7957
|
+
name: singleField.name,
|
|
7958
|
+
type: "checkbox",
|
|
7959
|
+
checked: singleChecked,
|
|
7960
|
+
disabled,
|
|
7961
|
+
onBlur: singleField.onBlur,
|
|
7962
|
+
onChange: (event) => singleHelpers.setValue(event.target.checked),
|
|
7963
|
+
className: getIndicatorClassName({
|
|
7964
|
+
checked: singleChecked,
|
|
7965
|
+
className,
|
|
7966
|
+
disabled,
|
|
7967
|
+
indicatorClassName,
|
|
7968
|
+
checkedIndicatorClassName,
|
|
7969
|
+
resolvedShape,
|
|
7970
|
+
variantCheckedClassName: variantStyles.checkedClassName
|
|
7971
|
+
})
|
|
7972
|
+
}
|
|
7973
|
+
),
|
|
7974
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7975
|
+
Tick,
|
|
7976
|
+
{
|
|
7977
|
+
checked: singleChecked,
|
|
7978
|
+
checkedIconClassName,
|
|
7979
|
+
iconClassName: variantStyles.iconClassName
|
|
7980
|
+
}
|
|
7981
|
+
)
|
|
7982
|
+
] }),
|
|
7983
|
+
resolvedLabel ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7758
7984
|
"label",
|
|
7759
7985
|
{
|
|
7760
7986
|
htmlFor: singleField.name,
|
|
7761
|
-
className: cn(
|
|
7762
|
-
|
|
7763
|
-
"text-gray-800 dark:text-gray-200"
|
|
7764
|
-
),
|
|
7765
|
-
children: placeholder
|
|
7987
|
+
className: cn(checkboxLabelClassName, labelClassName),
|
|
7988
|
+
children: resolvedLabel
|
|
7766
7989
|
}
|
|
7767
|
-
)
|
|
7990
|
+
) : null
|
|
7768
7991
|
] }),
|
|
7769
|
-
isMulti &&
|
|
7992
|
+
isMulti && multiProps?.options.map((option) => {
|
|
7770
7993
|
const values = multiField.value ?? [];
|
|
7771
7994
|
const checked = values.includes(option.value);
|
|
7995
|
+
const optionDisabled = disabled || option.disabled === true;
|
|
7772
7996
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7773
7997
|
"div",
|
|
7774
7998
|
{
|
|
7775
|
-
className:
|
|
7999
|
+
className: cn(checkboxOptionRowClassName, optionClassName),
|
|
7776
8000
|
children: [
|
|
7777
|
-
/* @__PURE__ */ jsxRuntime.
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
8001
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative inline-flex h-5 w-5 shrink-0 items-center justify-center", children: [
|
|
8002
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8003
|
+
"input",
|
|
8004
|
+
{
|
|
8005
|
+
id: option.value,
|
|
8006
|
+
name: multiField.name,
|
|
8007
|
+
type: "checkbox",
|
|
8008
|
+
checked,
|
|
8009
|
+
disabled: optionDisabled,
|
|
8010
|
+
onBlur: multiField.onBlur,
|
|
8011
|
+
onChange: () => {
|
|
8012
|
+
multiHelpers.setValue(
|
|
8013
|
+
checked ? values.filter((value) => value !== option.value) : [...values, option.value]
|
|
8014
|
+
);
|
|
8015
|
+
},
|
|
8016
|
+
className: getIndicatorClassName({
|
|
8017
|
+
checked,
|
|
8018
|
+
className,
|
|
8019
|
+
disabled: optionDisabled,
|
|
8020
|
+
indicatorClassName,
|
|
8021
|
+
checkedIndicatorClassName,
|
|
8022
|
+
resolvedShape,
|
|
8023
|
+
variantCheckedClassName: variantStyles.checkedClassName
|
|
8024
|
+
})
|
|
8025
|
+
}
|
|
8026
|
+
),
|
|
8027
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8028
|
+
Tick,
|
|
8029
|
+
{
|
|
8030
|
+
checked,
|
|
8031
|
+
checkedIconClassName,
|
|
8032
|
+
iconClassName: variantStyles.iconClassName
|
|
8033
|
+
}
|
|
8034
|
+
)
|
|
8035
|
+
] }),
|
|
7791
8036
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7792
8037
|
"label",
|
|
7793
8038
|
{
|
|
7794
8039
|
htmlFor: option.value,
|
|
7795
8040
|
className: cn(
|
|
7796
|
-
|
|
7797
|
-
"
|
|
8041
|
+
checkboxLabelClassName,
|
|
8042
|
+
optionDisabled && "cursor-not-allowed opacity-60",
|
|
8043
|
+
labelClassName
|
|
7798
8044
|
),
|
|
7799
8045
|
children: option.label
|
|
7800
8046
|
}
|
|
@@ -7805,16 +8051,15 @@ function Checkbox({
|
|
|
7805
8051
|
);
|
|
7806
8052
|
}),
|
|
7807
8053
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7808
|
-
|
|
8054
|
+
InputResponse,
|
|
7809
8055
|
{
|
|
7810
|
-
name:
|
|
7811
|
-
visibility: Boolean(
|
|
8056
|
+
name: activeFieldName,
|
|
8057
|
+
visibility: Boolean(activeMeta.touched && activeMeta.error),
|
|
7812
8058
|
variant: "danger"
|
|
7813
8059
|
}
|
|
7814
8060
|
)
|
|
7815
8061
|
] });
|
|
7816
8062
|
}
|
|
7817
|
-
var Checkbox_default = Checkbox;
|
|
7818
8063
|
var DateSelector = ({
|
|
7819
8064
|
placeholder,
|
|
7820
8065
|
styles,
|
|
@@ -7826,10 +8071,10 @@ var DateSelector = ({
|
|
|
7826
8071
|
const [field, meta] = formik.useField(props);
|
|
7827
8072
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative w-full", children: [
|
|
7828
8073
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7829
|
-
|
|
8074
|
+
InputLabel,
|
|
7830
8075
|
{
|
|
7831
8076
|
text: placeholder,
|
|
7832
|
-
|
|
8077
|
+
className: "absolute left-2 top-[0.7px] peer-placeholder-shown:text-base peer-placeholder-shown:top-3"
|
|
7833
8078
|
}
|
|
7834
8079
|
),
|
|
7835
8080
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7839,7 +8084,7 @@ var DateSelector = ({
|
|
|
7839
8084
|
...field,
|
|
7840
8085
|
...props,
|
|
7841
8086
|
placeholder,
|
|
7842
|
-
className:
|
|
8087
|
+
className: classNames72__default.default({
|
|
7843
8088
|
"border border-eui-primary-400 peer w-full bg-eui-primary-300/10 pt-5 px-3 pb-2 text-md eui-text-md placeholder-transparent placeholder-shown:p-3 focus:border-eui-secondary-500 focus:outline-none h-[50px]": true,
|
|
7844
8089
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
7845
8090
|
"transition-all ease-in-out": true,
|
|
@@ -7848,12 +8093,22 @@ var DateSelector = ({
|
|
|
7848
8093
|
})
|
|
7849
8094
|
}
|
|
7850
8095
|
),
|
|
7851
|
-
meta.touched && meta.error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8096
|
+
meta.touched && meta.error && /* @__PURE__ */ jsxRuntime.jsx(InputResponse, { name: field.name, visibility: true, variant: "danger" })
|
|
7852
8097
|
] });
|
|
7853
8098
|
};
|
|
7854
8099
|
var DateSelector_default = DateSelector;
|
|
7855
|
-
|
|
8100
|
+
function renderFormChildren(children3, formik) {
|
|
8101
|
+
return typeof children3 === "function" ? children3(formik) : children3;
|
|
8102
|
+
}
|
|
8103
|
+
function FormObservers({
|
|
8104
|
+
formik,
|
|
8105
|
+
onChange,
|
|
8106
|
+
onDirtyChange
|
|
8107
|
+
}) {
|
|
7856
8108
|
const prevValuesRef = React26.useRef(formik.values);
|
|
8109
|
+
React26.useEffect(() => {
|
|
8110
|
+
onDirtyChange?.(formik.dirty);
|
|
8111
|
+
}, [formik.dirty, onDirtyChange]);
|
|
7857
8112
|
React26.useEffect(() => {
|
|
7858
8113
|
if (!onChange) return;
|
|
7859
8114
|
const currentValues = formik.values;
|
|
@@ -7870,24 +8125,17 @@ var FormObserver = ({ formik, onChange }) => {
|
|
|
7870
8125
|
prevValuesRef.current = currentValues;
|
|
7871
8126
|
}, [formik.values, onChange]);
|
|
7872
8127
|
return null;
|
|
7873
|
-
}
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
onDirtyChange(formik.dirty);
|
|
7879
|
-
}
|
|
7880
|
-
}, [formik.dirty, onDirtyChange]);
|
|
7881
|
-
return null;
|
|
7882
|
-
};
|
|
7883
|
-
var DirtyObserver_default = DirtyObserver;
|
|
7884
|
-
var UnsavedChangesGuard = ({ formik, enabled }) => {
|
|
8128
|
+
}
|
|
8129
|
+
function UnsavedChangesGuard({
|
|
8130
|
+
formik,
|
|
8131
|
+
enabled
|
|
8132
|
+
}) {
|
|
7885
8133
|
React26.useEffect(() => {
|
|
7886
8134
|
if (!enabled) return;
|
|
7887
|
-
const handleBeforeUnload = (
|
|
8135
|
+
const handleBeforeUnload = (event) => {
|
|
7888
8136
|
if (!formik.dirty) return;
|
|
7889
|
-
|
|
7890
|
-
|
|
8137
|
+
event.preventDefault();
|
|
8138
|
+
event.returnValue = "";
|
|
7891
8139
|
};
|
|
7892
8140
|
window.addEventListener("beforeunload", handleBeforeUnload);
|
|
7893
8141
|
return () => {
|
|
@@ -7895,19 +8143,19 @@ var UnsavedChangesGuard = ({ formik, enabled }) => {
|
|
|
7895
8143
|
};
|
|
7896
8144
|
}, [formik.dirty, enabled]);
|
|
7897
8145
|
return null;
|
|
7898
|
-
}
|
|
7899
|
-
|
|
7900
|
-
var Form = ({
|
|
8146
|
+
}
|
|
8147
|
+
function Form({
|
|
7901
8148
|
initialValues = {},
|
|
7902
8149
|
validationSchema,
|
|
7903
8150
|
enableReinitialize,
|
|
7904
8151
|
children: children3,
|
|
7905
|
-
|
|
8152
|
+
className,
|
|
8153
|
+
contentClassName,
|
|
7906
8154
|
onSubmit,
|
|
7907
8155
|
onChange,
|
|
7908
8156
|
warnOnUnsavedChanges = false,
|
|
7909
8157
|
onDirtyChange
|
|
7910
|
-
})
|
|
8158
|
+
}) {
|
|
7911
8159
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7912
8160
|
formik.Formik,
|
|
7913
8161
|
{
|
|
@@ -7917,44 +8165,88 @@ var Form = ({
|
|
|
7917
8165
|
onSubmit: async (values, helpers) => {
|
|
7918
8166
|
await onSubmit(values, helpers);
|
|
7919
8167
|
},
|
|
7920
|
-
children: (formik$1) => /* @__PURE__ */ jsxRuntime.jsxs(formik.Form, { children: [
|
|
7921
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7922
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7923
|
-
|
|
7924
|
-
|
|
8168
|
+
children: (formik$1) => /* @__PURE__ */ jsxRuntime.jsxs(formik.Form, { className, children: [
|
|
8169
|
+
/* @__PURE__ */ jsxRuntime.jsx(UnsavedChangesGuard, { formik: formik$1, enabled: warnOnUnsavedChanges }),
|
|
8170
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8171
|
+
FormObservers,
|
|
8172
|
+
{
|
|
8173
|
+
formik: formik$1,
|
|
8174
|
+
onChange,
|
|
8175
|
+
onDirtyChange
|
|
8176
|
+
}
|
|
8177
|
+
),
|
|
8178
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(contentClassName), children: renderFormChildren(children3, formik$1) })
|
|
7925
8179
|
] })
|
|
7926
8180
|
}
|
|
7927
8181
|
);
|
|
8182
|
+
}
|
|
8183
|
+
|
|
8184
|
+
// src/components/data-entry/form/form-response/base/FormResponse.styles.ts
|
|
8185
|
+
var formResponseSizeStyles = {
|
|
8186
|
+
xs: {
|
|
8187
|
+
root: "px-2 py-1",
|
|
8188
|
+
text: "text-xs"
|
|
8189
|
+
},
|
|
8190
|
+
sm: {
|
|
8191
|
+
root: "px-3 py-2",
|
|
8192
|
+
text: "text-sm"
|
|
8193
|
+
},
|
|
8194
|
+
md: {
|
|
8195
|
+
root: "px-4 py-2",
|
|
8196
|
+
text: "text-base"
|
|
8197
|
+
},
|
|
8198
|
+
lg: {
|
|
8199
|
+
root: "px-5 py-3",
|
|
8200
|
+
text: "text-lg"
|
|
8201
|
+
},
|
|
8202
|
+
xl: {
|
|
8203
|
+
root: "px-6 py-4",
|
|
8204
|
+
text: "text-xl"
|
|
8205
|
+
}
|
|
7928
8206
|
};
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
8207
|
+
function isTextClassName(token) {
|
|
8208
|
+
const styleToken = token.split(":").pop() ?? token;
|
|
8209
|
+
return styleToken.startsWith("text-");
|
|
8210
|
+
}
|
|
8211
|
+
function splitClassName(className) {
|
|
8212
|
+
const tokens = className.split(/\s+/).filter(Boolean);
|
|
8213
|
+
return {
|
|
8214
|
+
root: tokens.filter((token) => !isTextClassName(token)).join(" "),
|
|
8215
|
+
text: tokens.filter(isTextClassName).join(" ")
|
|
8216
|
+
};
|
|
8217
|
+
}
|
|
8218
|
+
function resolveFormResponseStyles({
|
|
8219
|
+
shape,
|
|
8220
|
+
size,
|
|
8221
|
+
variant
|
|
8222
|
+
}) {
|
|
8223
|
+
const variantClassNames = splitClassName(variantsLite[variant]);
|
|
8224
|
+
const sizeClassNames = formResponseSizeStyles[size];
|
|
8225
|
+
return {
|
|
8226
|
+
rootClassName: [
|
|
8227
|
+
"border",
|
|
8228
|
+
variantClassNames.root,
|
|
8229
|
+
shapes[shape],
|
|
8230
|
+
sizeClassNames.root
|
|
8231
|
+
].filter(Boolean).join(" "),
|
|
8232
|
+
textClassName: [
|
|
8233
|
+
"font-poppins font-light",
|
|
8234
|
+
variantClassNames.text,
|
|
8235
|
+
sizeClassNames.text
|
|
8236
|
+
].filter(Boolean).join(" ")
|
|
8237
|
+
};
|
|
8238
|
+
}
|
|
7936
8239
|
function FormResponse({
|
|
7937
8240
|
text: text10,
|
|
7938
8241
|
variant = "default",
|
|
7939
8242
|
shape = "roundedSquare",
|
|
7940
8243
|
size = "md",
|
|
7941
|
-
|
|
8244
|
+
className,
|
|
8245
|
+
textClassName
|
|
7942
8246
|
}) {
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
{
|
|
7946
|
-
className: classNames77__default.default({
|
|
7947
|
-
"font-poppins font-light text-sm": true,
|
|
7948
|
-
[`${variantsLite[variant]}`]: variant,
|
|
7949
|
-
[`${shapes[shape]}`]: shape,
|
|
7950
|
-
[`${sizes[size]}`]: size,
|
|
7951
|
-
[`${styles}`]: styles
|
|
7952
|
-
}),
|
|
7953
|
-
children: text10
|
|
7954
|
-
}
|
|
7955
|
-
) });
|
|
8247
|
+
const styles = resolveFormResponseStyles({ shape, size, variant });
|
|
8248
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Transition.TransitionDropdown, { visibility: Boolean(text10), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles.rootClassName, className), children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(styles.textClassName, textClassName), children: text10 }) }) });
|
|
7956
8249
|
}
|
|
7957
|
-
var FormResponse_default = FormResponse;
|
|
7958
8250
|
function ImageView({ imageUrl, secure = true, alt = "image" }) {
|
|
7959
8251
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-[200px] w-[300px]", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full h-full overflow-hidden bg-gray-900 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7960
8252
|
cloudinaryReact.Image,
|
|
@@ -8051,7 +8343,7 @@ var ImageInput = React26.forwardRef(
|
|
|
8051
8343
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8052
8344
|
"label",
|
|
8053
8345
|
{
|
|
8054
|
-
className:
|
|
8346
|
+
className: classNames72__default.default({
|
|
8055
8347
|
"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,
|
|
8056
8348
|
"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
|
|
8057
8349
|
"transition-all ease-in-out duration-150": true
|
|
@@ -8098,7 +8390,7 @@ var ImageInput = React26.forwardRef(
|
|
|
8098
8390
|
] })
|
|
8099
8391
|
] }) }),
|
|
8100
8392
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8101
|
-
|
|
8393
|
+
InputResponse,
|
|
8102
8394
|
{
|
|
8103
8395
|
name: field.name,
|
|
8104
8396
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8143,7 +8435,7 @@ function MultiImageInput({
|
|
|
8143
8435
|
) })
|
|
8144
8436
|
] }),
|
|
8145
8437
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8146
|
-
|
|
8438
|
+
InputResponse,
|
|
8147
8439
|
{
|
|
8148
8440
|
name: field.name,
|
|
8149
8441
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8161,14 +8453,14 @@ function Radio({
|
|
|
8161
8453
|
const { name: name2 } = props;
|
|
8162
8454
|
const [field, meta] = formik.useField(props);
|
|
8163
8455
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
8164
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8456
|
+
/* @__PURE__ */ jsxRuntime.jsx(InputLabel, { text: placeholder }),
|
|
8165
8457
|
/* @__PURE__ */ jsxRuntime.jsx(formik.Field, { name: name2, children: (formik) => {
|
|
8166
8458
|
const { field: field2 } = formik;
|
|
8167
8459
|
return options.map((option) => {
|
|
8168
8460
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8169
8461
|
"div",
|
|
8170
8462
|
{
|
|
8171
|
-
className:
|
|
8463
|
+
className: classNames72__default.default({
|
|
8172
8464
|
"flex flex-row gap-2 items-center mx-1 my-2": true
|
|
8173
8465
|
}),
|
|
8174
8466
|
children: [
|
|
@@ -8181,7 +8473,7 @@ function Radio({
|
|
|
8181
8473
|
...props,
|
|
8182
8474
|
value: option.value,
|
|
8183
8475
|
checked: field2.value === option.value,
|
|
8184
|
-
className:
|
|
8476
|
+
className: classNames72__default.default({
|
|
8185
8477
|
"appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
|
|
8186
8478
|
// base radio button styles
|
|
8187
8479
|
"checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
|
|
@@ -8193,7 +8485,7 @@ function Radio({
|
|
|
8193
8485
|
"label",
|
|
8194
8486
|
{
|
|
8195
8487
|
htmlFor: option.value,
|
|
8196
|
-
className:
|
|
8488
|
+
className: classNames72__default.default({
|
|
8197
8489
|
"eui-text-md text-sm": true
|
|
8198
8490
|
}),
|
|
8199
8491
|
children: option.label
|
|
@@ -8206,7 +8498,7 @@ function Radio({
|
|
|
8206
8498
|
});
|
|
8207
8499
|
} }),
|
|
8208
8500
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8209
|
-
|
|
8501
|
+
InputResponse,
|
|
8210
8502
|
{
|
|
8211
8503
|
name: field.name,
|
|
8212
8504
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8236,7 +8528,7 @@ function StarRatingInput({
|
|
|
8236
8528
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8237
8529
|
"div",
|
|
8238
8530
|
{
|
|
8239
|
-
className:
|
|
8531
|
+
className: classNames72__default.default({
|
|
8240
8532
|
"inline-flex gap-[4px] text-[20px]": true,
|
|
8241
8533
|
[`${styles}`]: styles
|
|
8242
8534
|
}),
|
|
@@ -8249,7 +8541,7 @@ function StarRatingInput({
|
|
|
8249
8541
|
onClick: () => handleOnClick(index3),
|
|
8250
8542
|
onMouseEnter: () => setHover(index3),
|
|
8251
8543
|
onMouseLeave: () => setHover(null),
|
|
8252
|
-
className:
|
|
8544
|
+
className: classNames72__default.default({
|
|
8253
8545
|
"text-yellow-600": index3 <= (hover ?? rating - 1),
|
|
8254
8546
|
"text-gray-400": index3 > (hover ?? rating - 1)
|
|
8255
8547
|
}),
|
|
@@ -8258,7 +8550,7 @@ function StarRatingInput({
|
|
|
8258
8550
|
index3
|
|
8259
8551
|
)) }),
|
|
8260
8552
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8261
|
-
|
|
8553
|
+
InputResponse,
|
|
8262
8554
|
{
|
|
8263
8555
|
name: field.name,
|
|
8264
8556
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8282,10 +8574,10 @@ function Select({
|
|
|
8282
8574
|
const [field, meta] = formik.useField(props);
|
|
8283
8575
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
8284
8576
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8285
|
-
|
|
8577
|
+
InputLabel,
|
|
8286
8578
|
{
|
|
8287
8579
|
text: placeholder,
|
|
8288
|
-
|
|
8580
|
+
className: "absolute left-2 top-[0.7px] peer-placeholder-shown:text-base peer-placeholder-shown:top-3"
|
|
8289
8581
|
}
|
|
8290
8582
|
),
|
|
8291
8583
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -8293,7 +8585,7 @@ function Select({
|
|
|
8293
8585
|
{
|
|
8294
8586
|
as: "select",
|
|
8295
8587
|
...props,
|
|
8296
|
-
className:
|
|
8588
|
+
className: classNames72__default.default({
|
|
8297
8589
|
"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,
|
|
8298
8590
|
"border-eui-primary-400": !(meta.touched && meta.error),
|
|
8299
8591
|
"border-red-500": meta.touched && meta.error,
|
|
@@ -8307,7 +8599,7 @@ function Select({
|
|
|
8307
8599
|
}
|
|
8308
8600
|
),
|
|
8309
8601
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8310
|
-
|
|
8602
|
+
InputResponse,
|
|
8311
8603
|
{
|
|
8312
8604
|
name: field.name,
|
|
8313
8605
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8328,7 +8620,7 @@ function Switch({
|
|
|
8328
8620
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
8329
8621
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row justify-between w-full gap-3", children: [
|
|
8330
8622
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
8331
|
-
label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8623
|
+
label && /* @__PURE__ */ jsxRuntime.jsx(InputLabel, { text: label }),
|
|
8332
8624
|
description && /* @__PURE__ */ jsxRuntime.jsx("label", { className: "eui-text-md text-[12px] max-w-[500px]", children: description })
|
|
8333
8625
|
] }),
|
|
8334
8626
|
/* @__PURE__ */ jsxRuntime.jsx(formik.Field, { name: name2, children: () => /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "relative inline-flex cursor-pointer", children: [
|
|
@@ -8345,7 +8637,7 @@ function Switch({
|
|
|
8345
8637
|
"div",
|
|
8346
8638
|
{
|
|
8347
8639
|
onClick: () => helpers.setValue(!field.value),
|
|
8348
|
-
className:
|
|
8640
|
+
className: classNames72__default.default(
|
|
8349
8641
|
"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
|
|
8350
8642
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
8351
8643
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
|
|
@@ -8358,7 +8650,7 @@ function Switch({
|
|
|
8358
8650
|
] }) })
|
|
8359
8651
|
] }),
|
|
8360
8652
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8361
|
-
|
|
8653
|
+
InputResponse,
|
|
8362
8654
|
{
|
|
8363
8655
|
name: name2,
|
|
8364
8656
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8402,7 +8694,7 @@ function Tags({
|
|
|
8402
8694
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8403
8695
|
"div",
|
|
8404
8696
|
{
|
|
8405
|
-
className:
|
|
8697
|
+
className: classNames72__default.default(
|
|
8406
8698
|
"border rounded-sm flex flex-wrap items-center gap-2 px-2 pt-2 pb-6 min-h-[3rem]",
|
|
8407
8699
|
{
|
|
8408
8700
|
"bg-eui-primary-300/10 eui-text-md": true,
|
|
@@ -8447,10 +8739,10 @@ function Tags({
|
|
|
8447
8739
|
}
|
|
8448
8740
|
),
|
|
8449
8741
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8450
|
-
|
|
8742
|
+
InputLabel,
|
|
8451
8743
|
{
|
|
8452
8744
|
text: placeholder,
|
|
8453
|
-
|
|
8745
|
+
className: classNames72__default.default(
|
|
8454
8746
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
8455
8747
|
input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
8456
8748
|
)
|
|
@@ -8463,7 +8755,7 @@ function Tags({
|
|
|
8463
8755
|
] })
|
|
8464
8756
|
] }),
|
|
8465
8757
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8466
|
-
|
|
8758
|
+
InputResponse,
|
|
8467
8759
|
{
|
|
8468
8760
|
name: field.name,
|
|
8469
8761
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8491,7 +8783,7 @@ function TextArea({
|
|
|
8491
8783
|
as: "textarea",
|
|
8492
8784
|
...field,
|
|
8493
8785
|
...props,
|
|
8494
|
-
className:
|
|
8786
|
+
className: classNames72__default.default({
|
|
8495
8787
|
"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,
|
|
8496
8788
|
"transition-all ease-in-out": true,
|
|
8497
8789
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -8502,10 +8794,10 @@ function TextArea({
|
|
|
8502
8794
|
}
|
|
8503
8795
|
),
|
|
8504
8796
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8505
|
-
|
|
8797
|
+
InputLabel,
|
|
8506
8798
|
{
|
|
8507
8799
|
text: placeholder,
|
|
8508
|
-
|
|
8800
|
+
className: classNames72__default.default(
|
|
8509
8801
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
8510
8802
|
field.value ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
8511
8803
|
)
|
|
@@ -8518,7 +8810,7 @@ function TextArea({
|
|
|
8518
8810
|
] })
|
|
8519
8811
|
] }),
|
|
8520
8812
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8521
|
-
|
|
8813
|
+
InputResponse,
|
|
8522
8814
|
{
|
|
8523
8815
|
name: field.name,
|
|
8524
8816
|
visibility: meta.touched && meta.error ? true : false,
|
|
@@ -8539,7 +8831,7 @@ function BreadcrumbItem({
|
|
|
8539
8831
|
{
|
|
8540
8832
|
href,
|
|
8541
8833
|
onClick,
|
|
8542
|
-
className:
|
|
8834
|
+
className: classNames72__default.default({
|
|
8543
8835
|
"text-lg font-semibold": true,
|
|
8544
8836
|
"text-gray-400 hover:text-gray-600 cursor-pointer": !active,
|
|
8545
8837
|
"text-eui-light-800": active,
|
|
@@ -8616,7 +8908,7 @@ var Breadcrumb = ({
|
|
|
8616
8908
|
index3 < resolvedData.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8617
8909
|
"span",
|
|
8618
8910
|
{
|
|
8619
|
-
className:
|
|
8911
|
+
className: classNames72__default.default({
|
|
8620
8912
|
"text-lg font-semibold text-gray-500": true,
|
|
8621
8913
|
[`px-${gap}`]: gap
|
|
8622
8914
|
}),
|
|
@@ -8630,7 +8922,7 @@ var Breadcrumb = ({
|
|
|
8630
8922
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8631
8923
|
"div",
|
|
8632
8924
|
{
|
|
8633
|
-
className:
|
|
8925
|
+
className: classNames72__default.default({
|
|
8634
8926
|
"inline-flex": true,
|
|
8635
8927
|
[`${styles}`]: styles
|
|
8636
8928
|
}),
|
|
@@ -8674,7 +8966,7 @@ var Drawer = ({
|
|
|
8674
8966
|
isMobile && showBackdrop && /* @__PURE__ */ jsxRuntime.jsx(TransitionFade_default, { visibility, leaveDuration: 200, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8675
8967
|
"div",
|
|
8676
8968
|
{
|
|
8677
|
-
className:
|
|
8969
|
+
className: classNames72__default.default(
|
|
8678
8970
|
"fixed inset-0 bg-black/50 z-40",
|
|
8679
8971
|
backdropStyles
|
|
8680
8972
|
),
|
|
@@ -8685,7 +8977,7 @@ var Drawer = ({
|
|
|
8685
8977
|
"div",
|
|
8686
8978
|
{
|
|
8687
8979
|
style: drawerStyle,
|
|
8688
|
-
className:
|
|
8980
|
+
className: classNames72__default.default(
|
|
8689
8981
|
"fixed shadow-lg z-50",
|
|
8690
8982
|
{
|
|
8691
8983
|
"h-full w-[300px] top-0": isHorizontal && !hasOffset,
|
|
@@ -8714,7 +9006,7 @@ function DrawerToggler({
|
|
|
8714
9006
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8715
9007
|
"div",
|
|
8716
9008
|
{
|
|
8717
|
-
className:
|
|
9009
|
+
className: classNames72__default.default({
|
|
8718
9010
|
"text-xl p-3 cursor-pointer": true,
|
|
8719
9011
|
"transition-all ease-in-out": true,
|
|
8720
9012
|
"text-eui-dark-500 dark:text-eui-secondary-600": !styles,
|
|
@@ -8762,7 +9054,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
8762
9054
|
childrenContent = /* @__PURE__ */ jsxRuntime.jsx(
|
|
8763
9055
|
"div",
|
|
8764
9056
|
{
|
|
8765
|
-
className:
|
|
9057
|
+
className: classNames72__default.default({
|
|
8766
9058
|
"grid w-full": true,
|
|
8767
9059
|
"grid-cols-1": isMobile,
|
|
8768
9060
|
"grid-cols-3": !isMobile,
|
|
@@ -8775,7 +9067,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
8775
9067
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8776
9068
|
"div",
|
|
8777
9069
|
{
|
|
8778
|
-
className:
|
|
9070
|
+
className: classNames72__default.default({
|
|
8779
9071
|
[`${styles}`]: styles
|
|
8780
9072
|
}),
|
|
8781
9073
|
children: childrenContent
|
|
@@ -8816,7 +9108,7 @@ var FooterNavGroup = ({
|
|
|
8816
9108
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8817
9109
|
"div",
|
|
8818
9110
|
{
|
|
8819
|
-
className:
|
|
9111
|
+
className: classNames72__default.default({
|
|
8820
9112
|
"": true,
|
|
8821
9113
|
"py-2 font-semibold eui-text-lg": !styles,
|
|
8822
9114
|
[`${styles}`]: styles
|
|
@@ -8861,7 +9153,7 @@ var FooterNavItem = ({
|
|
|
8861
9153
|
"div",
|
|
8862
9154
|
{
|
|
8863
9155
|
onClick: handleNavigation,
|
|
8864
|
-
className:
|
|
9156
|
+
className: classNames72__default.default({
|
|
8865
9157
|
"flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
|
|
8866
9158
|
"transition-all duration-200 ease-in-out": true,
|
|
8867
9159
|
"text-sm eui-text-sm": !styles,
|
|
@@ -8890,7 +9182,7 @@ var FooterNavItemTitle = ({
|
|
|
8890
9182
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8891
9183
|
"div",
|
|
8892
9184
|
{
|
|
8893
|
-
className:
|
|
9185
|
+
className: classNames72__default.default({
|
|
8894
9186
|
"": true,
|
|
8895
9187
|
"py-2 font-thin eui-text-md": !styles,
|
|
8896
9188
|
[`${styles}`]: styles
|
|
@@ -8943,7 +9235,7 @@ function HeaderNav({ data = [], styles }) {
|
|
|
8943
9235
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8944
9236
|
"div",
|
|
8945
9237
|
{
|
|
8946
|
-
className:
|
|
9238
|
+
className: classNames72__default.default({
|
|
8947
9239
|
[`${styles}`]: styles
|
|
8948
9240
|
}),
|
|
8949
9241
|
children: childrenContent
|
|
@@ -9005,7 +9297,7 @@ var HeaderNavGroup = ({
|
|
|
9005
9297
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9006
9298
|
"div",
|
|
9007
9299
|
{
|
|
9008
|
-
className:
|
|
9300
|
+
className: classNames72__default.default({
|
|
9009
9301
|
"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
|
|
9010
9302
|
"transition-all duration-300 ease-in-out": true,
|
|
9011
9303
|
"eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
|
|
@@ -9033,7 +9325,7 @@ var HeaderNavGroup = ({
|
|
|
9033
9325
|
children3 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9034
9326
|
index_js$3.BsChevronDown,
|
|
9035
9327
|
{
|
|
9036
|
-
className:
|
|
9328
|
+
className: classNames72__default.default({
|
|
9037
9329
|
"text-md": true,
|
|
9038
9330
|
"transition-all ease-in-out duration-300": true,
|
|
9039
9331
|
"rotate-180": !collapsed
|
|
@@ -9046,7 +9338,7 @@ var HeaderNavGroup = ({
|
|
|
9046
9338
|
!collapsed && children3 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9047
9339
|
"div",
|
|
9048
9340
|
{
|
|
9049
|
-
className:
|
|
9341
|
+
className: classNames72__default.default({
|
|
9050
9342
|
"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,
|
|
9051
9343
|
"transition-all duration-300 ease-in-out": true
|
|
9052
9344
|
}),
|
|
@@ -9076,7 +9368,7 @@ var HeaderNavItem = ({
|
|
|
9076
9368
|
"div",
|
|
9077
9369
|
{
|
|
9078
9370
|
onClick: handleNavigation,
|
|
9079
|
-
className:
|
|
9371
|
+
className: classNames72__default.default({
|
|
9080
9372
|
"flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
|
|
9081
9373
|
"transition-all duration-200 ease-in-out": true,
|
|
9082
9374
|
"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,
|
|
@@ -9105,7 +9397,7 @@ var HeaderNavItemTitle = ({
|
|
|
9105
9397
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9106
9398
|
"div",
|
|
9107
9399
|
{
|
|
9108
|
-
className:
|
|
9400
|
+
className: classNames72__default.default({
|
|
9109
9401
|
"p-3 font-thin": true,
|
|
9110
9402
|
"eui-text-md": !styles,
|
|
9111
9403
|
[`${styles}`]: styles
|
|
@@ -9145,7 +9437,7 @@ var Link = ({
|
|
|
9145
9437
|
href: href || "#",
|
|
9146
9438
|
target: targets[target],
|
|
9147
9439
|
onClick: handleClick,
|
|
9148
|
-
className:
|
|
9440
|
+
className: classNames72__default.default({
|
|
9149
9441
|
[`${textVariants[variant]}`]: variant,
|
|
9150
9442
|
[`${decorations[decoration]}`]: decoration,
|
|
9151
9443
|
"font-bold": bold,
|
|
@@ -12337,7 +12629,7 @@ function Accordion({
|
|
|
12337
12629
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12338
12630
|
"div",
|
|
12339
12631
|
{
|
|
12340
|
-
className:
|
|
12632
|
+
className: classNames72__default.default(
|
|
12341
12633
|
"inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs",
|
|
12342
12634
|
{
|
|
12343
12635
|
"hover:cursor-pointer": toggleOnSummaryClick
|
|
@@ -12358,7 +12650,7 @@ function Accordion({
|
|
|
12358
12650
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12359
12651
|
index_js$4.FaCircleChevronDown,
|
|
12360
12652
|
{
|
|
12361
|
-
className:
|
|
12653
|
+
className: classNames72__default.default("text-xl transition-transform duration-300", {
|
|
12362
12654
|
"rotate-180": collapse
|
|
12363
12655
|
})
|
|
12364
12656
|
}
|
|
@@ -12372,7 +12664,7 @@ function Accordion({
|
|
|
12372
12664
|
/* @__PURE__ */ jsxRuntime.jsx(TransitionAccordion_default, { visibility: collapse, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12373
12665
|
"div",
|
|
12374
12666
|
{
|
|
12375
|
-
className:
|
|
12667
|
+
className: classNames72__default.default(
|
|
12376
12668
|
"border-t border-t-eui-dark-400/40 eui-text-sm",
|
|
12377
12669
|
{
|
|
12378
12670
|
"p-5": enableChildrenPadding
|
|
@@ -12429,7 +12721,7 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
12429
12721
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12430
12722
|
"div",
|
|
12431
12723
|
{
|
|
12432
|
-
className:
|
|
12724
|
+
className: classNames72__default.default(
|
|
12433
12725
|
"flex items-start gap-4 p-6 border-b border-white/10",
|
|
12434
12726
|
className
|
|
12435
12727
|
),
|
|
@@ -12445,14 +12737,14 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
12445
12737
|
}
|
|
12446
12738
|
var CardHeader_default = CardHeader;
|
|
12447
12739
|
function CardContent({ children: children3, className }) {
|
|
12448
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
12740
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames72__default.default("p-6 text-gray-300 text-sm", className), children: children3 });
|
|
12449
12741
|
}
|
|
12450
12742
|
var CardContent_default = CardContent;
|
|
12451
12743
|
function CardFooter({ children: children3, className }) {
|
|
12452
12744
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12453
12745
|
"div",
|
|
12454
12746
|
{
|
|
12455
|
-
className:
|
|
12747
|
+
className: classNames72__default.default(
|
|
12456
12748
|
"flex items-center gap-3 p-5 border-t border-white/10 text-sm text-gray-400",
|
|
12457
12749
|
className
|
|
12458
12750
|
),
|
|
@@ -12494,7 +12786,7 @@ function GradientAnimation({
|
|
|
12494
12786
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12495
12787
|
"div",
|
|
12496
12788
|
{
|
|
12497
|
-
className:
|
|
12789
|
+
className: classNames72__default.default("absolute inset-0"),
|
|
12498
12790
|
style: {
|
|
12499
12791
|
background: `linear-gradient(${cfg.angle}deg, ${cfg.colors?.join(",")})`,
|
|
12500
12792
|
backgroundSize: cfg.backgroundSize,
|
|
@@ -12640,7 +12932,7 @@ function MotionSurface({
|
|
|
12640
12932
|
}) {
|
|
12641
12933
|
const AnimationComponent = animationVariant === "custom" ? CustomAnimation : animationRegistry[animationVariant];
|
|
12642
12934
|
const OverlayComponent = overlay === "custom" ? CustomOverlay : overlayRegistry[overlay];
|
|
12643
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
12935
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classNames72__default.default("relative overflow-hidden", className), children: [
|
|
12644
12936
|
AnimationComponent && /* @__PURE__ */ jsxRuntime.jsx(AnimationComponent, { config: animationConfig, animated }),
|
|
12645
12937
|
OverlayComponent && /* @__PURE__ */ jsxRuntime.jsx(OverlayComponent, { config: overlayConfig }),
|
|
12646
12938
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative z-10", children: children3 })
|
|
@@ -16886,7 +17178,7 @@ var ProgressBar = ({
|
|
|
16886
17178
|
hasBottomLabel && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2", children: labelNode })
|
|
16887
17179
|
] });
|
|
16888
17180
|
};
|
|
16889
|
-
var
|
|
17181
|
+
var sizes = {
|
|
16890
17182
|
["xs" /* xs */]: "text-[10px]",
|
|
16891
17183
|
["sm" /* sm */]: "text-xs",
|
|
16892
17184
|
["md" /* md */]: "text-sm",
|
|
@@ -16916,7 +17208,7 @@ var StarRating = ({
|
|
|
16916
17208
|
className: cn(
|
|
16917
17209
|
"inline-flex items-center gap-[2px]",
|
|
16918
17210
|
"text-yellow-500 dark:text-yellow-400",
|
|
16919
|
-
|
|
17211
|
+
sizes[size],
|
|
16920
17212
|
iconClassName
|
|
16921
17213
|
),
|
|
16922
17214
|
children: [
|
|
@@ -16929,7 +17221,7 @@ var StarRating = ({
|
|
|
16929
17221
|
showValue && valuePosition === "end" && ratingValue
|
|
16930
17222
|
] });
|
|
16931
17223
|
};
|
|
16932
|
-
var
|
|
17224
|
+
var sizes2 = {
|
|
16933
17225
|
["xs" /* xs */]: {
|
|
16934
17226
|
value: "text-2xl",
|
|
16935
17227
|
review: "text-xs"
|
|
@@ -16961,7 +17253,7 @@ var NumericRating = ({
|
|
|
16961
17253
|
className,
|
|
16962
17254
|
...rest
|
|
16963
17255
|
}) => {
|
|
16964
|
-
const sizeStyles =
|
|
17256
|
+
const sizeStyles = sizes2[size];
|
|
16965
17257
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16966
17258
|
"div",
|
|
16967
17259
|
{
|
|
@@ -17637,7 +17929,7 @@ var YoutubeVideo = ({
|
|
|
17637
17929
|
}) => {
|
|
17638
17930
|
const videoId = getYoutubeVideoId(videoUrl);
|
|
17639
17931
|
if (!videoId) {
|
|
17640
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17932
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormResponse, { text: "Invalid YouTube URL", variant: "danger" });
|
|
17641
17933
|
}
|
|
17642
17934
|
const params = new URLSearchParams({
|
|
17643
17935
|
autoplay: autoPlay ? "1" : "0",
|
|
@@ -17725,7 +18017,7 @@ var ThemeSwitch = () => {
|
|
|
17725
18017
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17726
18018
|
"div",
|
|
17727
18019
|
{
|
|
17728
|
-
className:
|
|
18020
|
+
className: classNames72__default.default(
|
|
17729
18021
|
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
17730
18022
|
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
17731
18023
|
)
|
|
@@ -29270,7 +29562,7 @@ function AsyncStateCard({
|
|
|
29270
29562
|
),
|
|
29271
29563
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
29272
29564
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-eui-dark-900 dark:text-eui-light-600", children: title }),
|
|
29273
|
-
isError ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
29565
|
+
isError ? /* @__PURE__ */ jsxRuntime.jsx(FormResponse, { text: message, variant: "danger" }) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-eui-dark-500 dark:text-eui-light-400", children: message })
|
|
29274
29566
|
] }),
|
|
29275
29567
|
onAction && actionText && /* @__PURE__ */ jsxRuntime.jsx(
|
|
29276
29568
|
Button_web_default,
|
|
@@ -29494,7 +29786,7 @@ function Modal({
|
|
|
29494
29786
|
"div",
|
|
29495
29787
|
{
|
|
29496
29788
|
ref: modalRef,
|
|
29497
|
-
className:
|
|
29789
|
+
className: classNames72__default.default(
|
|
29498
29790
|
"eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit",
|
|
29499
29791
|
shapes[resolvedShape],
|
|
29500
29792
|
styles
|
|
@@ -29506,7 +29798,7 @@ function Modal({
|
|
|
29506
29798
|
"button",
|
|
29507
29799
|
{
|
|
29508
29800
|
type: "button",
|
|
29509
|
-
className:
|
|
29801
|
+
className: classNames72__default.default(
|
|
29510
29802
|
"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast",
|
|
29511
29803
|
"hover:cursor-pointer hover:bg-eui-dark-500"
|
|
29512
29804
|
),
|
|
@@ -29898,7 +30190,7 @@ var ContentArea = React26.forwardRef(
|
|
|
29898
30190
|
"div",
|
|
29899
30191
|
{
|
|
29900
30192
|
ref,
|
|
29901
|
-
className:
|
|
30193
|
+
className: classNames72__default.default({
|
|
29902
30194
|
"min-h-screen h-full w-full transition-all duration-[200ms]": true,
|
|
29903
30195
|
"py-3 px-5": !enablePadding,
|
|
29904
30196
|
"py-3 px-5 lg:px-[150px]": enablePadding,
|
|
@@ -29915,7 +30207,7 @@ function FlexCol({ children: children3, gap = 3, styles }) {
|
|
|
29915
30207
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
29916
30208
|
"div",
|
|
29917
30209
|
{
|
|
29918
|
-
className:
|
|
30210
|
+
className: classNames72__default.default({
|
|
29919
30211
|
[`flex flex-col gap-${gap}`]: true,
|
|
29920
30212
|
[`${styles}`]: styles
|
|
29921
30213
|
}),
|
|
@@ -29928,7 +30220,7 @@ function FlexRow({ children: children3, gap = 3, styles }) {
|
|
|
29928
30220
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
29929
30221
|
"div",
|
|
29930
30222
|
{
|
|
29931
|
-
className:
|
|
30223
|
+
className: classNames72__default.default({
|
|
29932
30224
|
[`flex flex-row gap-${gap}`]: true,
|
|
29933
30225
|
[`${styles}`]: styles
|
|
29934
30226
|
}),
|
|
@@ -29947,7 +30239,7 @@ function Grid({ children: children3, styles }) {
|
|
|
29947
30239
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
29948
30240
|
"div",
|
|
29949
30241
|
{
|
|
29950
|
-
className:
|
|
30242
|
+
className: classNames72__default.default({
|
|
29951
30243
|
[`grid`]: true,
|
|
29952
30244
|
[`${styles}`]: styles
|
|
29953
30245
|
}),
|
|
@@ -29964,7 +30256,7 @@ var Layout = ({
|
|
|
29964
30256
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
29965
30257
|
"div",
|
|
29966
30258
|
{
|
|
29967
|
-
className:
|
|
30259
|
+
className: classNames72__default.default({
|
|
29968
30260
|
// "flex h-full w-screen bg-gray-100 overflow-auto": true,
|
|
29969
30261
|
"flex bg-eui-light-600": true,
|
|
29970
30262
|
"flex-col": flexDirection === "vertical",
|
|
@@ -29986,7 +30278,7 @@ var Header = ({
|
|
|
29986
30278
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
29987
30279
|
"div",
|
|
29988
30280
|
{
|
|
29989
|
-
className:
|
|
30281
|
+
className: classNames72__default.default({
|
|
29990
30282
|
static: position4 === "static",
|
|
29991
30283
|
fixed: position4 === "fixed",
|
|
29992
30284
|
sticky: position4 === "sticky",
|
|
@@ -30021,7 +30313,7 @@ var Content = ({
|
|
|
30021
30313
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30022
30314
|
"div",
|
|
30023
30315
|
{
|
|
30024
|
-
className:
|
|
30316
|
+
className: classNames72__default.default({
|
|
30025
30317
|
"w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
|
|
30026
30318
|
"md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
|
|
30027
30319
|
// Shift when sidebar is open (desktop)
|
|
@@ -30037,7 +30329,7 @@ var Footer = ({ children: children3, styles }) => {
|
|
|
30037
30329
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30038
30330
|
"div",
|
|
30039
30331
|
{
|
|
30040
|
-
className:
|
|
30332
|
+
className: classNames72__default.default({
|
|
30041
30333
|
"bottom-0 w-full h-fit": true,
|
|
30042
30334
|
"border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
|
|
30043
30335
|
[`${styles}`]: styles
|
|
@@ -30225,7 +30517,7 @@ function ShowMore({ text: text10, limit }) {
|
|
|
30225
30517
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30226
30518
|
"div",
|
|
30227
30519
|
{
|
|
30228
|
-
className:
|
|
30520
|
+
className: classNames72__default.default({
|
|
30229
30521
|
"text-blue-300 px-1 pb-1 mt-1": true,
|
|
30230
30522
|
"bg-slate-900/70": !showMore,
|
|
30231
30523
|
"bg-gradient-to-t from-slate-900/50 to-transparent": showMore
|
|
@@ -31141,7 +31433,7 @@ function DocumentationPanel({
|
|
|
31141
31433
|
return /* @__PURE__ */ jsxRuntime.jsx(MarkdownProvider_default, { markdown: value, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31142
31434
|
"section",
|
|
31143
31435
|
{
|
|
31144
|
-
className:
|
|
31436
|
+
className: classNames72__default.default(
|
|
31145
31437
|
"eui-documentation-panel",
|
|
31146
31438
|
"min-h-0 overflow-hidden bg-white text-gray-900",
|
|
31147
31439
|
"dark:bg-gray-950 dark:text-gray-100",
|
|
@@ -31155,7 +31447,7 @@ function DocumentationPanel({
|
|
|
31155
31447
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31156
31448
|
"main",
|
|
31157
31449
|
{
|
|
31158
|
-
className:
|
|
31450
|
+
className: classNames72__default.default(
|
|
31159
31451
|
"eui-documentation-panel-viewer",
|
|
31160
31452
|
"documentation-panel-scrollbar min-w-0 overflow-y-auto scroll-smooth",
|
|
31161
31453
|
viewerClassName
|
|
@@ -31163,7 +31455,7 @@ function DocumentationPanel({
|
|
|
31163
31455
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31164
31456
|
"div",
|
|
31165
31457
|
{
|
|
31166
|
-
className:
|
|
31458
|
+
className: classNames72__default.default(
|
|
31167
31459
|
"mx-auto px-5 py-8 sm:px-6 lg:px-8",
|
|
31168
31460
|
contentMaxWidthClassName,
|
|
31169
31461
|
contentClassName
|
|
@@ -31176,7 +31468,7 @@ function DocumentationPanel({
|
|
|
31176
31468
|
toc ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
31177
31469
|
"aside",
|
|
31178
31470
|
{
|
|
31179
|
-
className:
|
|
31471
|
+
className: classNames72__default.default(
|
|
31180
31472
|
"eui-documentation-panel-toc",
|
|
31181
31473
|
"hidden min-w-0 border-l border-gray-200 bg-white lg:block",
|
|
31182
31474
|
"dark:border-gray-800 dark:bg-gray-950",
|
|
@@ -31185,7 +31477,7 @@ function DocumentationPanel({
|
|
|
31185
31477
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31186
31478
|
"div",
|
|
31187
31479
|
{
|
|
31188
|
-
className:
|
|
31480
|
+
className: classNames72__default.default(
|
|
31189
31481
|
"documentation-panel-scrollbar h-full overflow-y-auto px-5 py-8"
|
|
31190
31482
|
),
|
|
31191
31483
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sticky top-0", children: /* @__PURE__ */ jsxRuntime.jsx(MarkdownTOC_default, {}) })
|
|
@@ -31461,7 +31753,7 @@ function BoxNavItem({ icon, name: name2, to, selected, onClick }) {
|
|
|
31461
31753
|
type: "button",
|
|
31462
31754
|
onClick: handleClick,
|
|
31463
31755
|
"aria-current": selected ? "page" : void 0,
|
|
31464
|
-
className:
|
|
31756
|
+
className: classNames72__default.default(
|
|
31465
31757
|
"w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
|
|
31466
31758
|
"hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
|
|
31467
31759
|
selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
|
|
@@ -42557,7 +42849,7 @@ function markdownTable(table2, options) {
|
|
|
42557
42849
|
let rowIndex = -1;
|
|
42558
42850
|
while (++rowIndex < table2.length) {
|
|
42559
42851
|
const row2 = [];
|
|
42560
|
-
const
|
|
42852
|
+
const sizes4 = [];
|
|
42561
42853
|
let columnIndex2 = -1;
|
|
42562
42854
|
if (table2[rowIndex].length > mostCellsPerRow) {
|
|
42563
42855
|
mostCellsPerRow = table2[rowIndex].length;
|
|
@@ -42566,7 +42858,7 @@ function markdownTable(table2, options) {
|
|
|
42566
42858
|
const cell = serialize2(table2[rowIndex][columnIndex2]);
|
|
42567
42859
|
if (settings.alignDelimiters !== false) {
|
|
42568
42860
|
const size = stringLength(cell);
|
|
42569
|
-
|
|
42861
|
+
sizes4[columnIndex2] = size;
|
|
42570
42862
|
if (longestCellByColumn[columnIndex2] === void 0 || size > longestCellByColumn[columnIndex2]) {
|
|
42571
42863
|
longestCellByColumn[columnIndex2] = size;
|
|
42572
42864
|
}
|
|
@@ -42574,7 +42866,7 @@ function markdownTable(table2, options) {
|
|
|
42574
42866
|
row2.push(cell);
|
|
42575
42867
|
}
|
|
42576
42868
|
cellMatrix[rowIndex] = row2;
|
|
42577
|
-
sizeMatrix[rowIndex] =
|
|
42869
|
+
sizeMatrix[rowIndex] = sizes4;
|
|
42578
42870
|
}
|
|
42579
42871
|
let columnIndex = -1;
|
|
42580
42872
|
if (typeof align === "object" && "length" in align) {
|
|
@@ -42589,7 +42881,7 @@ function markdownTable(table2, options) {
|
|
|
42589
42881
|
}
|
|
42590
42882
|
columnIndex = -1;
|
|
42591
42883
|
const row = [];
|
|
42592
|
-
const
|
|
42884
|
+
const sizes3 = [];
|
|
42593
42885
|
while (++columnIndex < mostCellsPerRow) {
|
|
42594
42886
|
const code4 = alignments[columnIndex];
|
|
42595
42887
|
let before = "";
|
|
@@ -42612,17 +42904,17 @@ function markdownTable(table2, options) {
|
|
|
42612
42904
|
if (size > longestCellByColumn[columnIndex]) {
|
|
42613
42905
|
longestCellByColumn[columnIndex] = size;
|
|
42614
42906
|
}
|
|
42615
|
-
|
|
42907
|
+
sizes3[columnIndex] = size;
|
|
42616
42908
|
}
|
|
42617
42909
|
row[columnIndex] = cell;
|
|
42618
42910
|
}
|
|
42619
42911
|
cellMatrix.splice(1, 0, row);
|
|
42620
|
-
sizeMatrix.splice(1, 0,
|
|
42912
|
+
sizeMatrix.splice(1, 0, sizes3);
|
|
42621
42913
|
rowIndex = -1;
|
|
42622
42914
|
const lines = [];
|
|
42623
42915
|
while (++rowIndex < cellMatrix.length) {
|
|
42624
42916
|
const row2 = cellMatrix[rowIndex];
|
|
42625
|
-
const
|
|
42917
|
+
const sizes4 = sizeMatrix[rowIndex];
|
|
42626
42918
|
columnIndex = -1;
|
|
42627
42919
|
const line = [];
|
|
42628
42920
|
while (++columnIndex < mostCellsPerRow) {
|
|
@@ -42630,7 +42922,7 @@ function markdownTable(table2, options) {
|
|
|
42630
42922
|
let before = "";
|
|
42631
42923
|
let after = "";
|
|
42632
42924
|
if (settings.alignDelimiters !== false) {
|
|
42633
|
-
const size = longestCellByColumn[columnIndex] - (
|
|
42925
|
+
const size = longestCellByColumn[columnIndex] - (sizes4[columnIndex] || 0);
|
|
42634
42926
|
const code4 = alignments[columnIndex];
|
|
42635
42927
|
if (code4 === 114) {
|
|
42636
42928
|
before = " ".repeat(size);
|
|
@@ -54198,7 +54490,7 @@ function MarkdownHeading({
|
|
|
54198
54490
|
id: id2,
|
|
54199
54491
|
level: typographyLevel,
|
|
54200
54492
|
bold: true,
|
|
54201
|
-
className:
|
|
54493
|
+
className: classNames72__default.default(
|
|
54202
54494
|
"eui-markdown-heading group relative scroll-mt-24 font-bold leading-tight text-gray-900 dark:text-gray-100",
|
|
54203
54495
|
HEADING_STYLES[level],
|
|
54204
54496
|
className
|
|
@@ -54361,18 +54653,18 @@ function powerSetPermutations(arr) {
|
|
|
54361
54653
|
}
|
|
54362
54654
|
}
|
|
54363
54655
|
var classNameCombinations = {};
|
|
54364
|
-
function getClassNameCombinations(
|
|
54365
|
-
if (
|
|
54366
|
-
var key =
|
|
54656
|
+
function getClassNameCombinations(classNames76) {
|
|
54657
|
+
if (classNames76.length === 0 || classNames76.length === 1) return classNames76;
|
|
54658
|
+
var key = classNames76.join(".");
|
|
54367
54659
|
if (!classNameCombinations[key]) {
|
|
54368
|
-
classNameCombinations[key] = powerSetPermutations(
|
|
54660
|
+
classNameCombinations[key] = powerSetPermutations(classNames76);
|
|
54369
54661
|
}
|
|
54370
54662
|
return classNameCombinations[key];
|
|
54371
54663
|
}
|
|
54372
|
-
function createStyleObject(
|
|
54664
|
+
function createStyleObject(classNames76) {
|
|
54373
54665
|
var elementStyle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
54374
54666
|
var stylesheet = arguments.length > 2 ? arguments[2] : void 0;
|
|
54375
|
-
var nonTokenClassNames =
|
|
54667
|
+
var nonTokenClassNames = classNames76.filter(function(className) {
|
|
54376
54668
|
return className !== "token";
|
|
54377
54669
|
});
|
|
54378
54670
|
var classNamesCombinations = getClassNameCombinations(nonTokenClassNames);
|
|
@@ -54380,8 +54672,8 @@ function createStyleObject(classNames81) {
|
|
|
54380
54672
|
return _objectSpread(_objectSpread({}, styleObject), stylesheet[className]);
|
|
54381
54673
|
}, elementStyle);
|
|
54382
54674
|
}
|
|
54383
|
-
function createClassNameString(
|
|
54384
|
-
return
|
|
54675
|
+
function createClassNameString(classNames76) {
|
|
54676
|
+
return classNames76.join(" ");
|
|
54385
54677
|
}
|
|
54386
54678
|
function createChildren2(stylesheet, useInlineStyles) {
|
|
54387
54679
|
var childrenCount = 0;
|
|
@@ -54554,8 +54846,8 @@ function flattenCodeTree(tree) {
|
|
|
54554
54846
|
}));
|
|
54555
54847
|
} else if (node2.children) {
|
|
54556
54848
|
var _node$properties;
|
|
54557
|
-
var
|
|
54558
|
-
flattenCodeTree(node2.children,
|
|
54849
|
+
var classNames76 = className.concat(((_node$properties = node2.properties) === null || _node$properties === void 0 ? void 0 : _node$properties.className) || []);
|
|
54850
|
+
flattenCodeTree(node2.children, classNames76).forEach(function(i2) {
|
|
54559
54851
|
return newTree.push(i2);
|
|
54560
54852
|
});
|
|
54561
54853
|
}
|
|
@@ -55219,7 +55511,7 @@ function MarkdownCodeBlock({
|
|
|
55219
55511
|
"div",
|
|
55220
55512
|
{
|
|
55221
55513
|
...props,
|
|
55222
|
-
className:
|
|
55514
|
+
className: classNames72__default.default(
|
|
55223
55515
|
"eui-markdown-code my-6 overflow-hidden rounded-md border border-slate-700 bg-[#0d1117] text-slate-300",
|
|
55224
55516
|
className
|
|
55225
55517
|
),
|
|
@@ -55290,7 +55582,7 @@ function MarkdownInlineCode({
|
|
|
55290
55582
|
Code,
|
|
55291
55583
|
{
|
|
55292
55584
|
...props,
|
|
55293
|
-
className:
|
|
55585
|
+
className: classNames72__default.default(
|
|
55294
55586
|
"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",
|
|
55295
55587
|
className
|
|
55296
55588
|
),
|
|
@@ -55331,7 +55623,7 @@ function MarkdownLink({
|
|
|
55331
55623
|
href: safeHref,
|
|
55332
55624
|
target: resolvedTarget,
|
|
55333
55625
|
rel,
|
|
55334
|
-
className:
|
|
55626
|
+
className: classNames72__default.default(
|
|
55335
55627
|
"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",
|
|
55336
55628
|
className
|
|
55337
55629
|
),
|
|
@@ -55366,7 +55658,7 @@ function MarkdownImage({
|
|
|
55366
55658
|
title,
|
|
55367
55659
|
loading: "lazy",
|
|
55368
55660
|
decoding: "async",
|
|
55369
|
-
className:
|
|
55661
|
+
className: classNames72__default.default(
|
|
55370
55662
|
"eui-markdown-image my-6 h-auto max-w-full rounded-md border border-gray-200 dark:border-gray-700",
|
|
55371
55663
|
className
|
|
55372
55664
|
)
|
|
@@ -55383,7 +55675,7 @@ function MarkdownTable({
|
|
|
55383
55675
|
TableElement,
|
|
55384
55676
|
{
|
|
55385
55677
|
...props,
|
|
55386
|
-
className:
|
|
55678
|
+
className: classNames72__default.default(
|
|
55387
55679
|
"eui-markdown-table w-full border-collapse text-[0.925rem]",
|
|
55388
55680
|
className
|
|
55389
55681
|
),
|
|
@@ -55400,7 +55692,7 @@ function MarkdownTableCell({
|
|
|
55400
55692
|
TableCell,
|
|
55401
55693
|
{
|
|
55402
55694
|
...props,
|
|
55403
|
-
className:
|
|
55695
|
+
className: classNames72__default.default(
|
|
55404
55696
|
"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",
|
|
55405
55697
|
className
|
|
55406
55698
|
),
|
|
@@ -55417,7 +55709,7 @@ function MarkdownTableHeaderCell({
|
|
|
55417
55709
|
TableHeaderCell,
|
|
55418
55710
|
{
|
|
55419
55711
|
...props,
|
|
55420
|
-
className:
|
|
55712
|
+
className: classNames72__default.default(
|
|
55421
55713
|
"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",
|
|
55422
55714
|
className
|
|
55423
55715
|
),
|
|
@@ -55433,7 +55725,7 @@ function MarkdownTableHead({
|
|
|
55433
55725
|
TableHead,
|
|
55434
55726
|
{
|
|
55435
55727
|
...props,
|
|
55436
|
-
className:
|
|
55728
|
+
className: classNames72__default.default(
|
|
55437
55729
|
"eui-markdown-table-head bg-gray-50 dark:bg-gray-900",
|
|
55438
55730
|
className
|
|
55439
55731
|
)
|
|
@@ -55448,7 +55740,7 @@ function MarkdownTableBody({
|
|
|
55448
55740
|
TableBody,
|
|
55449
55741
|
{
|
|
55450
55742
|
...props,
|
|
55451
|
-
className:
|
|
55743
|
+
className: classNames72__default.default("eui-markdown-table-body", className)
|
|
55452
55744
|
}
|
|
55453
55745
|
);
|
|
55454
55746
|
}
|
|
@@ -55460,7 +55752,7 @@ function MarkdownTableRow({
|
|
|
55460
55752
|
TableRow,
|
|
55461
55753
|
{
|
|
55462
55754
|
...props,
|
|
55463
|
-
className:
|
|
55755
|
+
className: classNames72__default.default(
|
|
55464
55756
|
"eui-markdown-table-row even:bg-gray-50/70 dark:even:bg-gray-900/60",
|
|
55465
55757
|
className
|
|
55466
55758
|
)
|
|
@@ -55478,7 +55770,7 @@ function MarkdownBlockquote({
|
|
|
55478
55770
|
{
|
|
55479
55771
|
...props,
|
|
55480
55772
|
as: "blockquote",
|
|
55481
|
-
className:
|
|
55773
|
+
className: classNames72__default.default(
|
|
55482
55774
|
"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",
|
|
55483
55775
|
className
|
|
55484
55776
|
),
|
|
@@ -55497,7 +55789,7 @@ function MarkdownParagraph({
|
|
|
55497
55789
|
{
|
|
55498
55790
|
...props,
|
|
55499
55791
|
level: 1,
|
|
55500
|
-
className:
|
|
55792
|
+
className: classNames72__default.default("eui-markdown-paragraph my-4", className),
|
|
55501
55793
|
children: /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: children3 })
|
|
55502
55794
|
}
|
|
55503
55795
|
);
|
|
@@ -55508,7 +55800,7 @@ function MarkdownStrong({ className, ...props }) {
|
|
|
55508
55800
|
"strong",
|
|
55509
55801
|
{
|
|
55510
55802
|
...props,
|
|
55511
|
-
className:
|
|
55803
|
+
className: classNames72__default.default(
|
|
55512
55804
|
"eui-markdown-strong font-semibold text-gray-950 dark:text-gray-100",
|
|
55513
55805
|
className
|
|
55514
55806
|
)
|
|
@@ -55521,7 +55813,7 @@ function MarkdownEmphasis({ className, ...props }) {
|
|
|
55521
55813
|
"em",
|
|
55522
55814
|
{
|
|
55523
55815
|
...props,
|
|
55524
|
-
className:
|
|
55816
|
+
className: classNames72__default.default("eui-markdown-emphasis italic", className)
|
|
55525
55817
|
}
|
|
55526
55818
|
);
|
|
55527
55819
|
}
|
|
@@ -55534,7 +55826,7 @@ function MarkdownStrikethrough({
|
|
|
55534
55826
|
"del",
|
|
55535
55827
|
{
|
|
55536
55828
|
...props,
|
|
55537
|
-
className:
|
|
55829
|
+
className: classNames72__default.default(
|
|
55538
55830
|
"eui-markdown-strikethrough text-gray-500 dark:text-gray-400",
|
|
55539
55831
|
className
|
|
55540
55832
|
)
|
|
@@ -55595,7 +55887,7 @@ function MarkdownTaskCheckbox({
|
|
|
55595
55887
|
"input",
|
|
55596
55888
|
{
|
|
55597
55889
|
...props,
|
|
55598
|
-
className:
|
|
55890
|
+
className: classNames72__default.default(
|
|
55599
55891
|
"eui-markdown-task-checkbox mr-2 translate-y-px accent-blue-600",
|
|
55600
55892
|
className
|
|
55601
55893
|
)
|
|
@@ -55611,7 +55903,7 @@ function MarkdownThematicBreak({
|
|
|
55611
55903
|
"hr",
|
|
55612
55904
|
{
|
|
55613
55905
|
...props,
|
|
55614
|
-
className:
|
|
55906
|
+
className: classNames72__default.default(
|
|
55615
55907
|
"eui-markdown-thematic-break my-8 border-0 border-t border-gray-200 dark:border-gray-800",
|
|
55616
55908
|
className
|
|
55617
55909
|
)
|
|
@@ -55628,7 +55920,7 @@ function MarkdownDetails({ className, ...props }) {
|
|
|
55628
55920
|
"details",
|
|
55629
55921
|
{
|
|
55630
55922
|
...props,
|
|
55631
|
-
className:
|
|
55923
|
+
className: classNames72__default.default(
|
|
55632
55924
|
"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",
|
|
55633
55925
|
className
|
|
55634
55926
|
)
|
|
@@ -55640,7 +55932,7 @@ function MarkdownSummary({ className, ...props }) {
|
|
|
55640
55932
|
"summary",
|
|
55641
55933
|
{
|
|
55642
55934
|
...props,
|
|
55643
|
-
className:
|
|
55935
|
+
className: classNames72__default.default(
|
|
55644
55936
|
"eui-markdown-summary cursor-pointer font-semibold text-gray-950 dark:text-gray-100",
|
|
55645
55937
|
className
|
|
55646
55938
|
)
|
|
@@ -55652,7 +55944,7 @@ function MarkdownFigure({ className, ...props }) {
|
|
|
55652
55944
|
"figure",
|
|
55653
55945
|
{
|
|
55654
55946
|
...props,
|
|
55655
|
-
className:
|
|
55947
|
+
className: classNames72__default.default("eui-markdown-figure my-6", className)
|
|
55656
55948
|
}
|
|
55657
55949
|
);
|
|
55658
55950
|
}
|
|
@@ -55664,7 +55956,7 @@ function MarkdownFigcaption({
|
|
|
55664
55956
|
return /* @__PURE__ */ jsxRuntime.jsx("figcaption", { ...props, className: "eui-markdown-figcaption mt-2 text-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
55665
55957
|
Caption,
|
|
55666
55958
|
{
|
|
55667
|
-
className:
|
|
55959
|
+
className: classNames72__default.default(
|
|
55668
55960
|
"text-gray-500 opacity-100 dark:text-gray-400",
|
|
55669
55961
|
className
|
|
55670
55962
|
),
|
|
@@ -56063,14 +56355,14 @@ function MarkdownRenderer({
|
|
|
56063
56355
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56064
56356
|
"div",
|
|
56065
56357
|
{
|
|
56066
|
-
className:
|
|
56358
|
+
className: classNames72__default.default(
|
|
56067
56359
|
"eui-markdown markdown-body break-words bg-transparent text-[0.95rem] leading-7 text-gray-800 dark:text-gray-300",
|
|
56068
56360
|
className
|
|
56069
56361
|
),
|
|
56070
56362
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
56071
56363
|
"div",
|
|
56072
56364
|
{
|
|
56073
|
-
className:
|
|
56365
|
+
className: classNames72__default.default(
|
|
56074
56366
|
"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0",
|
|
56075
56367
|
contentClassName
|
|
56076
56368
|
),
|
|
@@ -56148,11 +56440,11 @@ function MarkdownTOCItem({
|
|
|
56148
56440
|
onClick: () => onSelect?.(heading3),
|
|
56149
56441
|
"aria-current": active ? "location" : void 0,
|
|
56150
56442
|
title: label,
|
|
56151
|
-
className:
|
|
56443
|
+
className: classNames72__default.default(
|
|
56152
56444
|
"eui-markdown-toc-item",
|
|
56153
56445
|
"block w-full text-left text-sm transition-all ease-in-out duration-150",
|
|
56154
56446
|
"hover:text-primary",
|
|
56155
|
-
active ?
|
|
56447
|
+
active ? classNames72__default.default("text-primary font-semibold underline", activeClassName) : classNames72__default.default("text-gray-500 dark:text-gray-400", inactiveClassName),
|
|
56156
56448
|
className
|
|
56157
56449
|
),
|
|
56158
56450
|
style: {
|
|
@@ -56218,7 +56510,7 @@ function MarkdownTOC({
|
|
|
56218
56510
|
return emptyState ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
56219
56511
|
"div",
|
|
56220
56512
|
{
|
|
56221
|
-
className:
|
|
56513
|
+
className: classNames72__default.default(
|
|
56222
56514
|
"eui-markdown-toc",
|
|
56223
56515
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
56224
56516
|
className
|
|
@@ -56238,7 +56530,7 @@ function MarkdownTOC({
|
|
|
56238
56530
|
{
|
|
56239
56531
|
type: "button",
|
|
56240
56532
|
onClick: () => setCollapsed((value) => !value),
|
|
56241
|
-
className:
|
|
56533
|
+
className: classNames72__default.default(
|
|
56242
56534
|
"eui-markdown-toc-title",
|
|
56243
56535
|
"flex w-full items-center justify-between gap-2 text-left",
|
|
56244
56536
|
"text-sm font-semibold uppercase tracking-wide",
|
|
@@ -56251,7 +56543,7 @@ function MarkdownTOC({
|
|
|
56251
56543
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
56252
56544
|
"span",
|
|
56253
56545
|
{
|
|
56254
|
-
className:
|
|
56546
|
+
className: classNames72__default.default(
|
|
56255
56547
|
"text-xs opacity-60 transition-transform duration-150",
|
|
56256
56548
|
!collapsed && "rotate-90"
|
|
56257
56549
|
),
|
|
@@ -56264,7 +56556,7 @@ function MarkdownTOC({
|
|
|
56264
56556
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
56265
56557
|
"h2",
|
|
56266
56558
|
{
|
|
56267
|
-
className:
|
|
56559
|
+
className: classNames72__default.default(
|
|
56268
56560
|
"eui-markdown-toc-title",
|
|
56269
56561
|
"text-sm font-semibold uppercase tracking-wide",
|
|
56270
56562
|
"text-gray-900 dark:text-gray-100",
|
|
@@ -56276,7 +56568,7 @@ function MarkdownTOC({
|
|
|
56276
56568
|
!collapsed ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
56277
56569
|
"nav",
|
|
56278
56570
|
{
|
|
56279
|
-
className:
|
|
56571
|
+
className: classNames72__default.default(
|
|
56280
56572
|
"eui-markdown-toc-list",
|
|
56281
56573
|
"space-y-1",
|
|
56282
56574
|
listClassName
|
|
@@ -56300,7 +56592,7 @@ function MarkdownTOC({
|
|
|
56300
56592
|
}
|
|
56301
56593
|
) : null
|
|
56302
56594
|
] });
|
|
56303
|
-
return /* @__PURE__ */ jsxRuntime.jsx("aside", { className:
|
|
56595
|
+
return /* @__PURE__ */ jsxRuntime.jsx("aside", { className: classNames72__default.default("eui-markdown-toc", "space-y-4", className), children: content3 });
|
|
56304
56596
|
}
|
|
56305
56597
|
var MarkdownTOC_default = MarkdownTOC;
|
|
56306
56598
|
var DEFAULT_MARKDOWN_TOOLBAR_ACTIONS = [
|
|
@@ -56399,7 +56691,7 @@ function MarkdownToolbar({
|
|
|
56399
56691
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
56400
56692
|
"div",
|
|
56401
56693
|
{
|
|
56402
|
-
className:
|
|
56694
|
+
className: classNames72__default.default(
|
|
56403
56695
|
"eui-markdown-toolbar",
|
|
56404
56696
|
"flex flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 p-2",
|
|
56405
56697
|
"dark:border-gray-700 dark:bg-gray-900",
|
|
@@ -56413,7 +56705,7 @@ function MarkdownToolbar({
|
|
|
56413
56705
|
disabled: disabled || actionsDisabled,
|
|
56414
56706
|
title: action.shortcut ? `${action.title || action.label} (${action.shortcut})` : action.title || action.label,
|
|
56415
56707
|
onClick: () => onAction?.(action.id),
|
|
56416
|
-
className:
|
|
56708
|
+
className: classNames72__default.default(
|
|
56417
56709
|
"eui-markdown-toolbar-button",
|
|
56418
56710
|
"inline-flex items-center justify-center rounded border border-transparent",
|
|
56419
56711
|
"text-gray-700 transition-colors hover:border-gray-300 hover:bg-white",
|
|
@@ -56433,7 +56725,7 @@ function MarkdownToolbar({
|
|
|
56433
56725
|
disabled,
|
|
56434
56726
|
onClick: onViewModeToggle,
|
|
56435
56727
|
title: isPreviewMode ? "Switch to Markdown syntax" : "Switch to preview",
|
|
56436
|
-
className:
|
|
56728
|
+
className: classNames72__default.default(
|
|
56437
56729
|
"eui-markdown-view-toggle",
|
|
56438
56730
|
"inline-flex items-center justify-center rounded border font-medium transition-colors",
|
|
56439
56731
|
"border-gray-300 bg-white text-gray-700 hover:bg-gray-100",
|
|
@@ -56690,7 +56982,7 @@ function MarkdownSourceEditor({
|
|
|
56690
56982
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
56691
56983
|
"div",
|
|
56692
56984
|
{
|
|
56693
|
-
className:
|
|
56985
|
+
className: classNames72__default.default(
|
|
56694
56986
|
"eui-markdown-editor",
|
|
56695
56987
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
56696
56988
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -56706,7 +56998,7 @@ function MarkdownSourceEditor({
|
|
|
56706
56998
|
actionsDisabled: readOnly,
|
|
56707
56999
|
viewMode: currentViewMode,
|
|
56708
57000
|
showViewModeToggle,
|
|
56709
|
-
className:
|
|
57001
|
+
className: classNames72__default.default(toolbarClassName, toolbarProps?.className),
|
|
56710
57002
|
onViewModeToggle: toggleViewMode,
|
|
56711
57003
|
onAction: handleToolbarAction
|
|
56712
57004
|
}
|
|
@@ -56714,7 +57006,7 @@ function MarkdownSourceEditor({
|
|
|
56714
57006
|
currentViewMode === "preview" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
56715
57007
|
"div",
|
|
56716
57008
|
{
|
|
56717
|
-
className:
|
|
57009
|
+
className: classNames72__default.default(
|
|
56718
57010
|
"eui-markdown-editor-preview",
|
|
56719
57011
|
"min-h-[260px] p-4",
|
|
56720
57012
|
previewClassName
|
|
@@ -56737,7 +57029,7 @@ function MarkdownSourceEditor({
|
|
|
56737
57029
|
onChange: (event) => updateValue(event.target.value),
|
|
56738
57030
|
onBlur,
|
|
56739
57031
|
onKeyDown: handleKeyDown,
|
|
56740
|
-
className:
|
|
57032
|
+
className: classNames72__default.default(
|
|
56741
57033
|
"eui-markdown-source-textarea",
|
|
56742
57034
|
"block w-full resize-y border-0 bg-transparent p-4 font-mono text-sm leading-7",
|
|
56743
57035
|
"text-gray-900 outline-none placeholder:text-gray-400",
|
|
@@ -56767,7 +57059,7 @@ function MarkdownPreviewPane({
|
|
|
56767
57059
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56768
57060
|
"div",
|
|
56769
57061
|
{
|
|
56770
|
-
className:
|
|
57062
|
+
className: classNames72__default.default(
|
|
56771
57063
|
"eui-markdown-preview-pane",
|
|
56772
57064
|
"rounded border border-gray-300 bg-white p-4",
|
|
56773
57065
|
"dark:border-gray-700 dark:bg-gray-950",
|
|
@@ -56817,7 +57109,7 @@ function MarkdownSplitEditor({
|
|
|
56817
57109
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
56818
57110
|
"div",
|
|
56819
57111
|
{
|
|
56820
|
-
className:
|
|
57112
|
+
className: classNames72__default.default(
|
|
56821
57113
|
"eui-markdown-split-editor",
|
|
56822
57114
|
"grid gap-4",
|
|
56823
57115
|
isHorizontal ? "grid-cols-1 lg:grid-cols-2" : "grid-cols-1",
|
|
@@ -56827,7 +57119,7 @@ function MarkdownSplitEditor({
|
|
|
56827
57119
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
56828
57120
|
"div",
|
|
56829
57121
|
{
|
|
56830
|
-
className:
|
|
57122
|
+
className: classNames72__default.default(
|
|
56831
57123
|
"eui-markdown-split-source",
|
|
56832
57124
|
"min-w-0 space-y-2",
|
|
56833
57125
|
sourceWrapperClassName
|
|
@@ -56851,7 +57143,7 @@ function MarkdownSplitEditor({
|
|
|
56851
57143
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
56852
57144
|
"div",
|
|
56853
57145
|
{
|
|
56854
|
-
className:
|
|
57146
|
+
className: classNames72__default.default(
|
|
56855
57147
|
"eui-markdown-split-preview",
|
|
56856
57148
|
"min-w-0 space-y-2",
|
|
56857
57149
|
previewWrapperClassName
|
|
@@ -56941,7 +57233,7 @@ function MarkdownField({
|
|
|
56941
57233
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
56942
57234
|
"div",
|
|
56943
57235
|
{
|
|
56944
|
-
className:
|
|
57236
|
+
className: classNames72__default.default(
|
|
56945
57237
|
"eui-markdown-field",
|
|
56946
57238
|
"relative space-y-2",
|
|
56947
57239
|
wrapperClassName
|
|
@@ -56951,7 +57243,7 @@ function MarkdownField({
|
|
|
56951
57243
|
"label",
|
|
56952
57244
|
{
|
|
56953
57245
|
htmlFor: editorProps.id || field.name,
|
|
56954
|
-
className:
|
|
57246
|
+
className: classNames72__default.default(
|
|
56955
57247
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
56956
57248
|
labelClassName
|
|
56957
57249
|
),
|
|
@@ -56976,14 +57268,14 @@ function MarkdownField({
|
|
|
56976
57268
|
helperText && !hasError ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
56977
57269
|
"p",
|
|
56978
57270
|
{
|
|
56979
|
-
className:
|
|
57271
|
+
className: classNames72__default.default(
|
|
56980
57272
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
56981
57273
|
helperTextClassName
|
|
56982
57274
|
),
|
|
56983
57275
|
children: helperText
|
|
56984
57276
|
}
|
|
56985
57277
|
) : null,
|
|
56986
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57278
|
+
/* @__PURE__ */ jsxRuntime.jsx(InputResponse, { name: field.name, visibility: hasError, variant: "danger" })
|
|
56987
57279
|
]
|
|
56988
57280
|
}
|
|
56989
57281
|
);
|
|
@@ -57031,7 +57323,7 @@ function CodeMirrorMarkdownEditor({
|
|
|
57031
57323
|
{
|
|
57032
57324
|
id: id2,
|
|
57033
57325
|
"data-name": name2,
|
|
57034
|
-
className:
|
|
57326
|
+
className: classNames72__default.default(
|
|
57035
57327
|
"eui-markdown-adapter",
|
|
57036
57328
|
"eui-markdown-codemirror-adapter",
|
|
57037
57329
|
"overflow-hidden rounded border border-gray-300 bg-white",
|
|
@@ -57065,7 +57357,7 @@ function CodeMirrorMarkdownEditor({
|
|
|
57065
57357
|
closeBrackets: true,
|
|
57066
57358
|
bracketMatching: true
|
|
57067
57359
|
},
|
|
57068
|
-
className:
|
|
57360
|
+
className: classNames72__default.default("eui-markdown-codemirror", editorClassName),
|
|
57069
57361
|
onChange: updateValue,
|
|
57070
57362
|
onBlur
|
|
57071
57363
|
}
|
|
@@ -57160,7 +57452,7 @@ function createDefaultPlugins({
|
|
|
57160
57452
|
...showToolbar ? [
|
|
57161
57453
|
editor.toolbarPlugin({
|
|
57162
57454
|
toolbarContents: toolbarContents ?? DefaultToolbar,
|
|
57163
|
-
toolbarClassName:
|
|
57455
|
+
toolbarClassName: classNames72__default.default(
|
|
57164
57456
|
"eui-markdown-mdx-toolbar",
|
|
57165
57457
|
toolbarClassName
|
|
57166
57458
|
),
|
|
@@ -57277,7 +57569,7 @@ var MDXMarkdownEditor = React26.forwardRef(
|
|
|
57277
57569
|
"aria-required": required || void 0,
|
|
57278
57570
|
"aria-invalid": invalid || void 0,
|
|
57279
57571
|
onBlurCapture: handleBlur,
|
|
57280
|
-
className:
|
|
57572
|
+
className: classNames72__default.default(
|
|
57281
57573
|
"eui-markdown-adapter",
|
|
57282
57574
|
"eui-markdown-mdx-adapter",
|
|
57283
57575
|
dark && ["dark", "dark-theme"],
|
|
@@ -57295,8 +57587,8 @@ var MDXMarkdownEditor = React26.forwardRef(
|
|
|
57295
57587
|
markdown: currentValue ?? "",
|
|
57296
57588
|
readOnly: disabled || readOnly,
|
|
57297
57589
|
plugins: plugins ?? defaultPlugins,
|
|
57298
|
-
className:
|
|
57299
|
-
contentEditableClassName:
|
|
57590
|
+
className: classNames72__default.default("eui-markdown-mdx-editor", editorClassName),
|
|
57591
|
+
contentEditableClassName: classNames72__default.default(
|
|
57300
57592
|
"eui-markdown-mdx-content",
|
|
57301
57593
|
contentEditableClassName
|
|
57302
57594
|
),
|
|
@@ -57333,7 +57625,7 @@ function MDXMarkdownField({
|
|
|
57333
57625
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57334
57626
|
"div",
|
|
57335
57627
|
{
|
|
57336
|
-
className:
|
|
57628
|
+
className: classNames72__default.default(
|
|
57337
57629
|
"eui-markdown-mdx-field",
|
|
57338
57630
|
"relative space-y-2",
|
|
57339
57631
|
wrapperClassName
|
|
@@ -57343,7 +57635,7 @@ function MDXMarkdownField({
|
|
|
57343
57635
|
"label",
|
|
57344
57636
|
{
|
|
57345
57637
|
htmlFor: editorId,
|
|
57346
|
-
className:
|
|
57638
|
+
className: classNames72__default.default(
|
|
57347
57639
|
"block text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
57348
57640
|
labelClassName
|
|
57349
57641
|
),
|
|
@@ -57377,7 +57669,7 @@ function MDXMarkdownField({
|
|
|
57377
57669
|
"p",
|
|
57378
57670
|
{
|
|
57379
57671
|
id: helperId,
|
|
57380
|
-
className:
|
|
57672
|
+
className: classNames72__default.default(
|
|
57381
57673
|
"text-sm text-gray-500 dark:text-gray-400",
|
|
57382
57674
|
helperTextClassName
|
|
57383
57675
|
),
|
|
@@ -57385,7 +57677,7 @@ function MDXMarkdownField({
|
|
|
57385
57677
|
}
|
|
57386
57678
|
) : null,
|
|
57387
57679
|
/* @__PURE__ */ jsxRuntime.jsx("div", { id: errorId, role: hasError ? "alert" : void 0, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57388
|
-
|
|
57680
|
+
InputResponse,
|
|
57389
57681
|
{
|
|
57390
57682
|
name: field.name,
|
|
57391
57683
|
visibility: hasError,
|
|
@@ -57437,10 +57729,10 @@ function MarkdownLayout({
|
|
|
57437
57729
|
};
|
|
57438
57730
|
const hasLeftToc = hasToc && tocPosition === "left";
|
|
57439
57731
|
const hasRightToc = hasToc && tocPosition === "right";
|
|
57440
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
57732
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames72__default.default("eui-markdown-layout", "w-full", className), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57441
57733
|
"div",
|
|
57442
57734
|
{
|
|
57443
|
-
className:
|
|
57735
|
+
className: classNames72__default.default(
|
|
57444
57736
|
"eui-markdown-layout-container",
|
|
57445
57737
|
"mx-auto w-full px-4 sm:px-6 lg:px-8",
|
|
57446
57738
|
containerClassName
|
|
@@ -57452,7 +57744,7 @@ function MarkdownLayout({
|
|
|
57452
57744
|
header ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57453
57745
|
"header",
|
|
57454
57746
|
{
|
|
57455
|
-
className:
|
|
57747
|
+
className: classNames72__default.default(
|
|
57456
57748
|
"eui-markdown-layout-header",
|
|
57457
57749
|
"mb-8",
|
|
57458
57750
|
headerClassName
|
|
@@ -57463,7 +57755,7 @@ function MarkdownLayout({
|
|
|
57463
57755
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
57464
57756
|
"div",
|
|
57465
57757
|
{
|
|
57466
|
-
className:
|
|
57758
|
+
className: classNames72__default.default(
|
|
57467
57759
|
"eui-markdown-layout-grid",
|
|
57468
57760
|
"grid grid-cols-1 gap-8",
|
|
57469
57761
|
hasSidebar && hasToc && "xl:grid-cols-[16rem_minmax(0,1fr)_18rem]",
|
|
@@ -57476,7 +57768,7 @@ function MarkdownLayout({
|
|
|
57476
57768
|
hasSidebar ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57477
57769
|
"aside",
|
|
57478
57770
|
{
|
|
57479
|
-
className:
|
|
57771
|
+
className: classNames72__default.default(
|
|
57480
57772
|
"eui-markdown-layout-sidebar",
|
|
57481
57773
|
"min-w-0",
|
|
57482
57774
|
stickySidebar && "lg:sticky lg:self-start",
|
|
@@ -57489,7 +57781,7 @@ function MarkdownLayout({
|
|
|
57489
57781
|
hasLeftToc ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57490
57782
|
"aside",
|
|
57491
57783
|
{
|
|
57492
|
-
className:
|
|
57784
|
+
className: classNames72__default.default(
|
|
57493
57785
|
"eui-markdown-layout-toc",
|
|
57494
57786
|
"min-w-0",
|
|
57495
57787
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -57502,7 +57794,7 @@ function MarkdownLayout({
|
|
|
57502
57794
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57503
57795
|
"main",
|
|
57504
57796
|
{
|
|
57505
|
-
className:
|
|
57797
|
+
className: classNames72__default.default(
|
|
57506
57798
|
"eui-markdown-layout-content",
|
|
57507
57799
|
"min-w-0",
|
|
57508
57800
|
contentClassName
|
|
@@ -57513,7 +57805,7 @@ function MarkdownLayout({
|
|
|
57513
57805
|
hasRightToc ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57514
57806
|
"aside",
|
|
57515
57807
|
{
|
|
57516
|
-
className:
|
|
57808
|
+
className: classNames72__default.default(
|
|
57517
57809
|
"eui-markdown-layout-toc",
|
|
57518
57810
|
"min-w-0",
|
|
57519
57811
|
stickyToc && "lg:sticky lg:self-start",
|
|
@@ -57526,7 +57818,7 @@ function MarkdownLayout({
|
|
|
57526
57818
|
hasAside ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57527
57819
|
"aside",
|
|
57528
57820
|
{
|
|
57529
|
-
className:
|
|
57821
|
+
className: classNames72__default.default(
|
|
57530
57822
|
"eui-markdown-layout-aside",
|
|
57531
57823
|
"min-w-0",
|
|
57532
57824
|
stickyAside && "2xl:sticky 2xl:self-start",
|
|
@@ -57542,7 +57834,7 @@ function MarkdownLayout({
|
|
|
57542
57834
|
footer2 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57543
57835
|
"footer",
|
|
57544
57836
|
{
|
|
57545
|
-
className:
|
|
57837
|
+
className: classNames72__default.default(
|
|
57546
57838
|
"eui-markdown-layout-footer",
|
|
57547
57839
|
"mt-10",
|
|
57548
57840
|
footerClassName
|
|
@@ -57579,7 +57871,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57579
57871
|
const resolvedHeader = header ?? (title || description || headerActions ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57580
57872
|
"div",
|
|
57581
57873
|
{
|
|
57582
|
-
className:
|
|
57874
|
+
className: classNames72__default.default(
|
|
57583
57875
|
"eui-markdown-docs-header",
|
|
57584
57876
|
"flex flex-col gap-4 border-b border-gray-200 pb-6",
|
|
57585
57877
|
"dark:border-gray-700",
|
|
@@ -57590,7 +57882,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57590
57882
|
title ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57591
57883
|
"h1",
|
|
57592
57884
|
{
|
|
57593
|
-
className:
|
|
57885
|
+
className: classNames72__default.default(
|
|
57594
57886
|
"eui-markdown-docs-title",
|
|
57595
57887
|
"text-3xl font-bold tracking-tight text-gray-950",
|
|
57596
57888
|
"dark:text-gray-50",
|
|
@@ -57602,7 +57894,7 @@ function MarkdownDocsLayoutContent({
|
|
|
57602
57894
|
description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57603
57895
|
"div",
|
|
57604
57896
|
{
|
|
57605
|
-
className:
|
|
57897
|
+
className: classNames72__default.default(
|
|
57606
57898
|
"eui-markdown-docs-description",
|
|
57607
57899
|
"max-w-3xl text-base leading-7 text-gray-600",
|
|
57608
57900
|
"dark:text-gray-400",
|
|
@@ -57690,7 +57982,7 @@ function GenericLayout({
|
|
|
57690
57982
|
return /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57691
57983
|
"div",
|
|
57692
57984
|
{
|
|
57693
|
-
className:
|
|
57985
|
+
className: classNames72__default.default({
|
|
57694
57986
|
[`${styles}`]: styles
|
|
57695
57987
|
}),
|
|
57696
57988
|
children: children3
|
|
@@ -57739,7 +58031,7 @@ function SidemenuLayout({ data, children: children3 }) {
|
|
|
57739
58031
|
return /* @__PURE__ */ jsxRuntime.jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57740
58032
|
"div",
|
|
57741
58033
|
{
|
|
57742
|
-
className:
|
|
58034
|
+
className: classNames72__default.default({
|
|
57743
58035
|
grid: true,
|
|
57744
58036
|
"grid-cols-7 gap-10": !isMobile,
|
|
57745
58037
|
"grid-cols-1 gap-": isMobile
|
|
@@ -57875,7 +58167,7 @@ exports.ChartPlotFrame = ChartPlotFrame;
|
|
|
57875
58167
|
exports.ChartProvider = ChartProvider;
|
|
57876
58168
|
exports.ChartToolbar = ChartToolbar;
|
|
57877
58169
|
exports.ChartTooltip = ChartTooltip;
|
|
57878
|
-
exports.Checkbox =
|
|
58170
|
+
exports.Checkbox = Checkbox;
|
|
57879
58171
|
exports.Chip = Chip;
|
|
57880
58172
|
exports.CloudinaryImage = CloudinaryImage2;
|
|
57881
58173
|
exports.CloudinaryProvider = CloudinaryProvider;
|
|
@@ -57928,7 +58220,7 @@ exports.FooterNavItem = FooterNavItem;
|
|
|
57928
58220
|
exports.FooterNavItemContext = FooterNavItemContext;
|
|
57929
58221
|
exports.FooterNavItemTitle = FooterNavItemTitle;
|
|
57930
58222
|
exports.Form = Form;
|
|
57931
|
-
exports.FormResponse =
|
|
58223
|
+
exports.FormResponse = FormResponse;
|
|
57932
58224
|
exports.GaugePlot = GaugePlot;
|
|
57933
58225
|
exports.GenericLayout = GenericLayout_default;
|
|
57934
58226
|
exports.GlowWrapper = GlowWrapper_default;
|
|
@@ -57950,10 +58242,10 @@ exports.InfiniteScrollTrigger = InfiniteScrollTrigger_default;
|
|
|
57950
58242
|
exports.Info = Info;
|
|
57951
58243
|
exports.Input = Input;
|
|
57952
58244
|
exports.InputFile = InputFile;
|
|
57953
|
-
exports.InputLabel =
|
|
58245
|
+
exports.InputLabel = InputLabel;
|
|
57954
58246
|
exports.InputList = InputList;
|
|
57955
58247
|
exports.InputListGroup = InputListGroup;
|
|
57956
|
-
exports.InputResponse =
|
|
58248
|
+
exports.InputResponse = InputResponse;
|
|
57957
58249
|
exports.Label = Label;
|
|
57958
58250
|
exports.Layout = Layout;
|
|
57959
58251
|
exports.Lead = Lead;
|