elseware-ui 2.30.1 → 2.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +109 -109
- package/dist/index.css +1791 -541
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1327 -1225
- package/dist/index.d.ts +1327 -1225
- package/dist/index.js +1171 -381
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1167 -381
- package/dist/index.mjs.map +1 -1
- package/package.json +110 -110
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { twMerge } from 'tailwind-merge';
|
|
2
|
-
import {
|
|
3
|
-
import { FaSun, FaMoon, FaGripVertical, FaTrash, FaPlus, FaTimes, FaBars, FaCircle, FaEyeSlash, FaEye } from 'react-icons/fa';
|
|
2
|
+
import React4, { createContext, forwardRef, useState, useImperativeHandle, useEffect, useMemo, useContext, Fragment as Fragment$1, useRef, useCallback } from 'react';
|
|
4
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
|
+
import { BsStarFill, BsStarHalf, BsStar, BsChevronDown, BsFillDiamondFill } from 'react-icons/bs';
|
|
5
|
+
import { FaSun, FaMoon, FaGripVertical, FaTrash, FaPlus, FaTimes, FaBars, FaCircle, FaEyeSlash, FaEye } from 'react-icons/fa';
|
|
5
6
|
import { Bar, Line, Pie } from 'react-chartjs-2';
|
|
6
7
|
import { Chart, CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend, LineElement, PointElement, ArcElement } from 'chart.js';
|
|
7
|
-
import React4, { createContext, forwardRef, useState, useImperativeHandle, useEffect, useMemo, useContext, Fragment as Fragment$1, useRef, useCallback } from 'react';
|
|
8
8
|
import { Transition } from '@headlessui/react';
|
|
9
|
-
import
|
|
9
|
+
import classNames16 from 'classnames';
|
|
10
10
|
import { FaCircleChevronDown } from 'react-icons/fa6';
|
|
11
11
|
import ReactWorldFlags from 'react-world-flags';
|
|
12
12
|
import emojiFlags from 'emoji-flags';
|
|
@@ -22,6 +22,7 @@ import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
|
22
22
|
import { MdUpload, MdOutlineDone, MdOutlineRemoveCircleOutline } from 'react-icons/md';
|
|
23
23
|
import '@mdxeditor/editor/style.css';
|
|
24
24
|
import { MDXEditor, headingsPlugin, linkPlugin, listsPlugin, imagePlugin, tablePlugin, linkDialogPlugin, thematicBreakPlugin, quotePlugin, toolbarPlugin, UndoRedo, Separator, BlockTypeSelect, BoldItalicUnderlineToggles, StrikeThroughSupSubToggles, ListsToggle, CreateLink, InsertImage, InsertTable, InsertThematicBreak, markdownShortcutPlugin, frontmatterPlugin, codeBlockPlugin, codeMirrorPlugin } from '@mdxeditor/editor';
|
|
25
|
+
import { BiDotsVerticalRounded, BiEdit, BiTrash, BiFlag, BiLike, BiDislike, BiChevronDown, BiChevronUp } from 'react-icons/bi';
|
|
25
26
|
|
|
26
27
|
// node_modules/clsx/dist/clsx.mjs
|
|
27
28
|
function r(e) {
|
|
@@ -160,27 +161,80 @@ var isMatch = (itemPath, currentPath) => {
|
|
|
160
161
|
if (item !== "/" && current.startsWith(item + "/")) return true;
|
|
161
162
|
return false;
|
|
162
163
|
};
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
164
|
+
|
|
165
|
+
// src/utils/styles.ts
|
|
166
|
+
function resolveAppearanceStyles({
|
|
167
|
+
appearance = "solid",
|
|
168
|
+
variant = "default",
|
|
169
|
+
solid,
|
|
170
|
+
lite,
|
|
171
|
+
ghost
|
|
172
|
+
}) {
|
|
173
|
+
switch (appearance) {
|
|
174
|
+
case "ghost":
|
|
175
|
+
return ghost[variant];
|
|
176
|
+
case "lite":
|
|
177
|
+
return lite[variant];
|
|
178
|
+
default:
|
|
179
|
+
return solid[variant];
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
var EUIContext = createContext(null);
|
|
183
|
+
var EUIProvider = ({
|
|
184
|
+
config,
|
|
185
|
+
children
|
|
186
|
+
}) => {
|
|
187
|
+
const [state, setState] = useState(config);
|
|
188
|
+
return /* @__PURE__ */ jsx(EUIContext.Provider, { value: { config: state, setConfig: setState }, children });
|
|
189
|
+
};
|
|
190
|
+
var useEUIConfig = () => {
|
|
191
|
+
const ctx = useContext(EUIContext);
|
|
192
|
+
if (!ctx) {
|
|
193
|
+
throw new Error("useEUIConfig must be used inside EUIProvider");
|
|
194
|
+
}
|
|
195
|
+
return ctx;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
// src/components/eui/resolveGlobalConfigs.tsx
|
|
199
|
+
function resolveWithGlobal(config, props, defaults) {
|
|
200
|
+
return {
|
|
201
|
+
...defaults,
|
|
202
|
+
...config?.global ?? {},
|
|
203
|
+
...props
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
var variantsSolid = {
|
|
207
|
+
default: "bg-gray-300 text-gray-900 hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-100 dark:hover:bg-gray-600",
|
|
208
|
+
primary: "bg-gradient-to-r from-eui-primary-500 to-eui-primary-600 text-white hover:brightness-110",
|
|
209
|
+
secondary: "bg-gradient-to-r from-eui-secondary-600 to-eui-secondary-500 text-white hover:brightness-110",
|
|
210
|
+
success: "bg-gradient-to-r from-eui-success-600 to-eui-success-500 text-white hover:brightness-110",
|
|
211
|
+
danger: "bg-gradient-to-r from-eui-danger-600 to-eui-danger-500 text-white hover:brightness-110",
|
|
212
|
+
warning: "bg-gradient-to-r from-eui-warning-500 to-eui-warning-400 text-black hover:brightness-105",
|
|
213
|
+
info: "bg-gradient-to-r from-eui-info-600 to-eui-info-500 text-white hover:brightness-110",
|
|
214
|
+
light: "bg-gradient-to-r from-eui-light-400 to-eui-light-300 text-gray-900 hover:brightness-105 dark:from-gray-200 dark:to-gray-100 dark:text-gray-900",
|
|
215
|
+
dark: "bg-gradient-to-r from-eui-dark-400 to-eui-dark-500 text-white hover:brightness-110 dark:from-eui-dark-300 dark:to-eui-dark-400"
|
|
173
216
|
};
|
|
174
217
|
var variantsLite = {
|
|
175
|
-
default: "bg-gray-
|
|
176
|
-
primary: "bg-eui-primary-
|
|
177
|
-
secondary: "bg-eui-secondary-
|
|
178
|
-
success: "bg-eui-success-
|
|
179
|
-
danger: "bg-
|
|
180
|
-
warning: "bg-
|
|
181
|
-
info: "bg-eui-info-
|
|
182
|
-
light: "bg-
|
|
183
|
-
dark: "bg-eui-dark-
|
|
218
|
+
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",
|
|
219
|
+
primary: "bg-eui-primary-500/10 border border-eui-primary-500/30 text-eui-primary-400 dark:text-eui-primary-300",
|
|
220
|
+
secondary: "bg-eui-secondary-500/10 border border-eui-secondary-500/30 text-eui-secondary-500 dark:text-eui-secondary-400",
|
|
221
|
+
success: "bg-eui-success-500/10 border border-eui-success-500/30 text-eui-success-500 dark:text-eui-success-400",
|
|
222
|
+
danger: "bg-eui-danger-500/10 border border-eui-danger-500/30 text-eui-danger-500 dark:text-eui-danger-400",
|
|
223
|
+
warning: "bg-eui-warning-500/10 border border-eui-warning-500/30 text-eui-warning-600 dark:text-eui-warning-400",
|
|
224
|
+
info: "bg-eui-info-500/10 border border-eui-info-500/30 text-eui-info-500 dark:text-eui-info-400",
|
|
225
|
+
light: "bg-white/40 border border-white/30 text-gray-800 dark:bg-white/10 dark:border-white/10 dark:text-gray-100",
|
|
226
|
+
dark: "bg-eui-dark-500/10 border border-eui-dark-500/30 text-eui-dark-500 dark:text-eui-dark-300"
|
|
227
|
+
};
|
|
228
|
+
var variantsGhost = {
|
|
229
|
+
default: "bg-transparent border border-gray-300 text-gray-700 hover:bg-gray-100 dark:border-gray-700 dark:text-gray-200 dark:hover:bg-gray-800",
|
|
230
|
+
primary: "bg-transparent border border-eui-primary-500 text-eui-primary-500 hover:bg-eui-primary-500/10 dark:text-eui-primary-300 dark:border-eui-primary-400",
|
|
231
|
+
secondary: "bg-transparent border border-eui-secondary-500 text-eui-secondary-500 hover:bg-eui-secondary-500/10 dark:text-eui-secondary-400 dark:border-eui-secondary-400",
|
|
232
|
+
success: "bg-transparent border border-eui-success-500 text-eui-success-500 hover:bg-eui-success-500/10 dark:text-eui-success-400 dark:border-eui-success-400",
|
|
233
|
+
danger: "bg-transparent border border-eui-danger-500 text-eui-danger-500 hover:bg-eui-danger-500/10 dark:text-eui-danger-400 dark:border-eui-danger-400",
|
|
234
|
+
warning: "bg-transparent border border-eui-warning-500 text-eui-warning-600 hover:bg-eui-warning-500/10 dark:text-eui-warning-400 dark:border-eui-warning-400",
|
|
235
|
+
info: "bg-transparent border border-eui-info-500 text-eui-info-500 hover:bg-eui-info-500/10 dark:text-eui-info-400 dark:border-eui-info-400",
|
|
236
|
+
light: "bg-transparent border border-gray-300 text-gray-700 hover:bg-white/10 dark:border-gray-500 dark:text-gray-100 dark:hover:bg-white/5",
|
|
237
|
+
dark: "bg-transparent border border-eui-dark-500 text-eui-dark-500 hover:bg-eui-dark-500/10 dark:text-eui-dark-300 dark:border-eui-dark-300"
|
|
184
238
|
};
|
|
185
239
|
var textVariants = {
|
|
186
240
|
default: "eui-text-md",
|
|
@@ -193,28 +247,6 @@ var textVariants = {
|
|
|
193
247
|
light: "text-gray-300",
|
|
194
248
|
dark: "text-gray-900"
|
|
195
249
|
};
|
|
196
|
-
var variantsGhost = {
|
|
197
|
-
default: "bg-transparent border border-gray-300 text-gray-800 hover:bg-gray-100",
|
|
198
|
-
primary: "bg-transparent border border-eui-primary-500 text-eui-primary-500",
|
|
199
|
-
secondary: "bg-transparent border border-eui-secondary-500 text-eui-secondary-500",
|
|
200
|
-
success: "bg-transparent border border-eui-success-500 text-eui-success-500",
|
|
201
|
-
danger: "bg-transparent border border-eui-danger-500 text-eui-danger-500",
|
|
202
|
-
warning: "bg-transparent border border-eui-warning-500 text-eui-warning-500",
|
|
203
|
-
info: "bg-transparent border border-eui-info-500 text-eui-info-500",
|
|
204
|
-
light: "bg-transparent border border-eui-light-500 text-eui-light-500",
|
|
205
|
-
dark: "bg-transparent border border-eui-dark-500 text-eui-dark-500"
|
|
206
|
-
};
|
|
207
|
-
var borderVariants = {
|
|
208
|
-
default: "border-gray-300",
|
|
209
|
-
primary: "border-eui-primary-500",
|
|
210
|
-
secondary: "border-eui-secondary-500",
|
|
211
|
-
success: "border-eui-success-500",
|
|
212
|
-
danger: "border-eui-danger-500",
|
|
213
|
-
warning: "border-eui-warning-500",
|
|
214
|
-
info: "border-eui-info-500",
|
|
215
|
-
light: "border-eui-light-500",
|
|
216
|
-
dark: "border-eui-dark-500"
|
|
217
|
-
};
|
|
218
250
|
var decorations = {
|
|
219
251
|
underline: "underline",
|
|
220
252
|
overline: "overline",
|
|
@@ -338,18 +370,38 @@ var bulletTypes = {
|
|
|
338
370
|
number: null,
|
|
339
371
|
none: null
|
|
340
372
|
};
|
|
373
|
+
var checkboxVariants = {
|
|
374
|
+
default: "checked:bg-gray-600 checked:border-gray-600 dark:checked:bg-gray-500 dark:checked:border-gray-500",
|
|
375
|
+
primary: "checked:bg-eui-primary-600 checked:border-eui-primary-600 dark:checked:bg-eui-primary-500 dark:checked:border-eui-primary-500",
|
|
376
|
+
secondary: "checked:bg-eui-secondary-600 checked:border-eui-secondary-600 dark:checked:bg-eui-secondary-500 dark:checked:border-eui-secondary-500",
|
|
377
|
+
success: "checked:bg-eui-success-600 checked:border-eui-success-600 dark:checked:bg-eui-success-500 dark:checked:border-eui-success-500",
|
|
378
|
+
danger: "checked:bg-eui-danger-600 checked:border-eui-danger-600 dark:checked:bg-eui-danger-500 dark:checked:border-eui-danger-500",
|
|
379
|
+
warning: "checked:bg-eui-warning-500 checked:border-eui-warning-500 dark:checked:bg-eui-warning-400 dark:checked:border-eui-warning-400",
|
|
380
|
+
info: "checked:bg-eui-info-600 checked:border-eui-info-600 dark:checked:bg-eui-info-500 dark:checked:border-eui-info-500",
|
|
381
|
+
light: "checked:bg-eui-light-400 checked:border-eui-light-400 dark:checked:bg-gray-200 dark:checked:border-gray-200",
|
|
382
|
+
dark: "checked:bg-eui-dark-500 checked:border-eui-dark-500 dark:checked:bg-eui-dark-300 dark:checked:border-eui-dark-300"
|
|
383
|
+
};
|
|
341
384
|
var Avatar = ({
|
|
342
385
|
alt,
|
|
343
386
|
icon,
|
|
344
387
|
children = "B",
|
|
345
388
|
variant = "success",
|
|
346
|
-
|
|
389
|
+
appearance = "solid",
|
|
390
|
+
shape,
|
|
347
391
|
size = "md",
|
|
348
392
|
src,
|
|
349
|
-
borderVariant = false,
|
|
350
393
|
className,
|
|
351
394
|
...rest
|
|
352
395
|
}) => {
|
|
396
|
+
const eui = useEUIConfig();
|
|
397
|
+
const resolvedShape = shape ?? eui?.config?.global?.shape ?? "circle";
|
|
398
|
+
const variantStyles = resolveAppearanceStyles({
|
|
399
|
+
appearance,
|
|
400
|
+
variant,
|
|
401
|
+
solid: variantsSolid,
|
|
402
|
+
lite: variantsLite,
|
|
403
|
+
ghost: variantsGhost
|
|
404
|
+
});
|
|
353
405
|
const content = src ? /* @__PURE__ */ jsx(
|
|
354
406
|
"img",
|
|
355
407
|
{
|
|
@@ -363,10 +415,10 @@ var Avatar = ({
|
|
|
363
415
|
{
|
|
364
416
|
...rest,
|
|
365
417
|
className: cn(
|
|
366
|
-
"inline-flex items-center justify-center text-center overflow-hidden",
|
|
367
|
-
|
|
418
|
+
"inline-flex items-center justify-center text-center overflow-hidden transition-all duration-300 select-none",
|
|
419
|
+
variantStyles,
|
|
420
|
+
shapes[resolvedShape],
|
|
368
421
|
avatarSizes[size],
|
|
369
|
-
borderVariant ? ["border-2", borderVariants[variant]] : variants[variant],
|
|
370
422
|
className
|
|
371
423
|
),
|
|
372
424
|
children: content
|
|
@@ -379,6 +431,7 @@ var Badge = ({
|
|
|
379
431
|
dot,
|
|
380
432
|
count,
|
|
381
433
|
variant = "success",
|
|
434
|
+
appearance = "solid",
|
|
382
435
|
shape = "circle",
|
|
383
436
|
size = "md",
|
|
384
437
|
showZero = true,
|
|
@@ -395,14 +448,21 @@ var Badge = ({
|
|
|
395
448
|
if (position.includes("right")) offsetStyles.right = x;
|
|
396
449
|
}
|
|
397
450
|
const isVisible = dot || count !== void 0 && (count > 0 || showZero);
|
|
451
|
+
const variantStyles = resolveAppearanceStyles({
|
|
452
|
+
appearance,
|
|
453
|
+
variant,
|
|
454
|
+
solid: variantsSolid,
|
|
455
|
+
lite: variantsLite,
|
|
456
|
+
ghost: variantsGhost
|
|
457
|
+
});
|
|
398
458
|
return /* @__PURE__ */ jsxs("div", { ...rest, className: "relative w-fit h-fit", children: [
|
|
399
459
|
/* @__PURE__ */ jsx(
|
|
400
460
|
"div",
|
|
401
461
|
{
|
|
402
462
|
className: cn(
|
|
403
|
-
"absolute inline-flex items-center justify-center text-center
|
|
463
|
+
"absolute inline-flex items-center justify-center text-center z-10 border border-white dark:border-neutral-900 transition-all duration-300",
|
|
404
464
|
badgePositions[position],
|
|
405
|
-
|
|
465
|
+
variantStyles,
|
|
406
466
|
shapes[shape],
|
|
407
467
|
badgeSizes[size],
|
|
408
468
|
!isVisible && "hidden",
|
|
@@ -526,21 +586,30 @@ var PieChart_default = PieChart;
|
|
|
526
586
|
var Chip = ({
|
|
527
587
|
label,
|
|
528
588
|
variant = "success",
|
|
529
|
-
|
|
530
|
-
|
|
589
|
+
appearance = "ghost",
|
|
590
|
+
shape,
|
|
531
591
|
size = "md",
|
|
532
592
|
className,
|
|
533
593
|
...rest
|
|
534
594
|
}) => {
|
|
595
|
+
const eui = useEUIConfig();
|
|
596
|
+
const resolvedShape = shape ?? eui?.config?.global?.shape ?? "circle";
|
|
597
|
+
const variantStyles = resolveAppearanceStyles({
|
|
598
|
+
appearance,
|
|
599
|
+
variant,
|
|
600
|
+
solid: variantsSolid,
|
|
601
|
+
lite: variantsLite,
|
|
602
|
+
ghost: variantsGhost
|
|
603
|
+
});
|
|
535
604
|
return /* @__PURE__ */ jsx("div", { className: "w-fit h-fit", children: /* @__PURE__ */ jsx(
|
|
536
605
|
"div",
|
|
537
606
|
{
|
|
538
607
|
...rest,
|
|
539
608
|
className: cn(
|
|
540
|
-
"inline-flex items-center justify-center text-center text-xs font-semibold
|
|
541
|
-
shapes[
|
|
609
|
+
"inline-flex items-center justify-center text-center text-xs font-semibold transition-all duration-300",
|
|
610
|
+
shapes[resolvedShape],
|
|
542
611
|
chipSizes[size],
|
|
543
|
-
|
|
612
|
+
variantStyles,
|
|
544
613
|
className
|
|
545
614
|
),
|
|
546
615
|
children: label
|
|
@@ -659,30 +728,6 @@ function DataViewFooter({ children }) {
|
|
|
659
728
|
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between mt-6 pt-4 border-t border-gray-700/60", children });
|
|
660
729
|
}
|
|
661
730
|
var DataViewFooter_default = DataViewFooter;
|
|
662
|
-
var EUIContext = createContext(null);
|
|
663
|
-
var EUIProvider = ({
|
|
664
|
-
config,
|
|
665
|
-
children
|
|
666
|
-
}) => {
|
|
667
|
-
const [state, setState] = useState(config);
|
|
668
|
-
return /* @__PURE__ */ jsx(EUIContext.Provider, { value: { config: state, setConfig: setState }, children });
|
|
669
|
-
};
|
|
670
|
-
var useEUIConfig = () => {
|
|
671
|
-
const ctx = useContext(EUIContext);
|
|
672
|
-
if (!ctx) {
|
|
673
|
-
throw new Error("useEUIConfig must be used inside EUIProvider");
|
|
674
|
-
}
|
|
675
|
-
return ctx;
|
|
676
|
-
};
|
|
677
|
-
|
|
678
|
-
// src/components/eui/resolveGlobalConfigs.tsx
|
|
679
|
-
function resolveWithGlobal(config, props, defaults) {
|
|
680
|
-
return {
|
|
681
|
-
...defaults,
|
|
682
|
-
...config?.global ?? {},
|
|
683
|
-
...props
|
|
684
|
-
};
|
|
685
|
-
}
|
|
686
731
|
function DataViewSearch({
|
|
687
732
|
placeholder = "Search...",
|
|
688
733
|
shape
|
|
@@ -739,7 +784,7 @@ function Accordion({
|
|
|
739
784
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
740
785
|
"div",
|
|
741
786
|
{
|
|
742
|
-
className:
|
|
787
|
+
className: classNames16({
|
|
743
788
|
"inline-flex gap-3 items-center px-3 py-2 w-full eui-gradient-to-r-general-xs": true,
|
|
744
789
|
"hover:cursor-pointer": toggleOnSummaryClick
|
|
745
790
|
}),
|
|
@@ -757,7 +802,7 @@ function Accordion({
|
|
|
757
802
|
children: /* @__PURE__ */ jsx(
|
|
758
803
|
FaCircleChevronDown,
|
|
759
804
|
{
|
|
760
|
-
className:
|
|
805
|
+
className: classNames16(
|
|
761
806
|
"text-xl transition-transform duration-300",
|
|
762
807
|
{ "rotate-180": collapse }
|
|
763
808
|
)
|
|
@@ -783,7 +828,7 @@ function Accordion({
|
|
|
783
828
|
children: /* @__PURE__ */ jsx(
|
|
784
829
|
"div",
|
|
785
830
|
{
|
|
786
|
-
className:
|
|
831
|
+
className: classNames16({
|
|
787
832
|
"border-t border-t-eui-dark-400/40 eui-text-sm": true,
|
|
788
833
|
"p-5": enableChildrenPadding
|
|
789
834
|
}),
|
|
@@ -863,7 +908,7 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
863
908
|
return /* @__PURE__ */ jsxs(
|
|
864
909
|
"div",
|
|
865
910
|
{
|
|
866
|
-
className:
|
|
911
|
+
className: classNames16(
|
|
867
912
|
"flex items-start gap-4 p-6 border-b border-white/10",
|
|
868
913
|
className
|
|
869
914
|
),
|
|
@@ -879,14 +924,14 @@ function CardHeader({ icon, title, description, className }) {
|
|
|
879
924
|
}
|
|
880
925
|
var CardHeader_default = CardHeader;
|
|
881
926
|
function CardContent({ children, className }) {
|
|
882
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
927
|
+
return /* @__PURE__ */ jsx("div", { className: classNames16("p-6 text-gray-300 text-sm", className), children });
|
|
883
928
|
}
|
|
884
929
|
var CardContent_default = CardContent;
|
|
885
930
|
function CardFooter({ children, className }) {
|
|
886
931
|
return /* @__PURE__ */ jsx(
|
|
887
932
|
"div",
|
|
888
933
|
{
|
|
889
|
-
className:
|
|
934
|
+
className: classNames16(
|
|
890
935
|
"flex items-center gap-3 p-5 border-t border-white/10 text-sm text-gray-400",
|
|
891
936
|
className
|
|
892
937
|
),
|
|
@@ -928,7 +973,7 @@ function GradientAnimation({
|
|
|
928
973
|
return /* @__PURE__ */ jsx(
|
|
929
974
|
"div",
|
|
930
975
|
{
|
|
931
|
-
className:
|
|
976
|
+
className: classNames16("absolute inset-0"),
|
|
932
977
|
style: {
|
|
933
978
|
background: `linear-gradient(${cfg.angle}deg, ${cfg.colors?.join(",")})`,
|
|
934
979
|
backgroundSize: cfg.backgroundSize,
|
|
@@ -1074,7 +1119,7 @@ function MotionSurface({
|
|
|
1074
1119
|
}) {
|
|
1075
1120
|
const AnimationComponent = animationVariant === "custom" ? CustomAnimation : animationRegistry[animationVariant];
|
|
1076
1121
|
const OverlayComponent = overlay === "custom" ? CustomOverlay : overlayRegistry[overlay];
|
|
1077
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
1122
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames16("relative overflow-hidden", className), children: [
|
|
1078
1123
|
AnimationComponent && /* @__PURE__ */ jsx(AnimationComponent, { config: animationConfig, animated }),
|
|
1079
1124
|
OverlayComponent && /* @__PURE__ */ jsx(OverlayComponent, { config: overlayConfig }),
|
|
1080
1125
|
/* @__PURE__ */ jsx("div", { className: "relative z-10", children })
|
|
@@ -1598,19 +1643,27 @@ function Info({
|
|
|
1598
1643
|
children,
|
|
1599
1644
|
variant = "default",
|
|
1600
1645
|
appearance = "lite",
|
|
1601
|
-
shape
|
|
1646
|
+
shape,
|
|
1602
1647
|
className,
|
|
1603
1648
|
...rest
|
|
1604
1649
|
}) {
|
|
1605
|
-
const
|
|
1650
|
+
const eui = useEUIConfig();
|
|
1651
|
+
const resolvedShape = shape ?? eui?.config?.global?.shape ?? "roundedSquare";
|
|
1652
|
+
const variantStyles = resolveAppearanceStyles({
|
|
1653
|
+
appearance,
|
|
1654
|
+
variant,
|
|
1655
|
+
solid: infoVariantsSolid,
|
|
1656
|
+
lite: infoVariantsLite,
|
|
1657
|
+
ghost: infoVariantsGhost
|
|
1658
|
+
});
|
|
1606
1659
|
return /* @__PURE__ */ jsx(
|
|
1607
1660
|
"div",
|
|
1608
1661
|
{
|
|
1609
1662
|
...rest,
|
|
1610
1663
|
className: cn(
|
|
1611
|
-
"w-full p-5 text-sm transition-
|
|
1664
|
+
"w-full p-5 text-sm transition-all duration-300",
|
|
1612
1665
|
variantStyles,
|
|
1613
|
-
shapes[
|
|
1666
|
+
shapes[resolvedShape],
|
|
1614
1667
|
className
|
|
1615
1668
|
),
|
|
1616
1669
|
children
|
|
@@ -1956,7 +2009,7 @@ var ListItem = ({
|
|
|
1956
2009
|
align = "start",
|
|
1957
2010
|
className
|
|
1958
2011
|
}) => {
|
|
1959
|
-
const bullet = renderBullet?.(index) ?? (bulletType === "number" ? /* @__PURE__ */ jsxs("span", { className: "text-
|
|
2012
|
+
const bullet = renderBullet?.(index) ?? (bulletType === "number" ? /* @__PURE__ */ jsxs("span", { className: "text-sm font-medium opacity-70", children: [
|
|
1960
2013
|
index + 1,
|
|
1961
2014
|
"."
|
|
1962
2015
|
] }) : bulletTypes[bulletType]);
|
|
@@ -1965,7 +2018,7 @@ var ListItem = ({
|
|
|
1965
2018
|
{
|
|
1966
2019
|
className: cn(
|
|
1967
2020
|
"flex gap-3",
|
|
1968
|
-
align === "center"
|
|
2021
|
+
align === "center" ? "items-center" : "items-baseline",
|
|
1969
2022
|
className
|
|
1970
2023
|
),
|
|
1971
2024
|
children: [
|
|
@@ -1973,18 +2026,23 @@ var ListItem = ({
|
|
|
1973
2026
|
"div",
|
|
1974
2027
|
{
|
|
1975
2028
|
className: cn(
|
|
1976
|
-
"
|
|
1977
|
-
|
|
1978
|
-
bulletType
|
|
2029
|
+
"shrink-0 text-gray-400 dark:text-gray-500",
|
|
2030
|
+
"w-[14px] flex justify-center",
|
|
2031
|
+
bulletType !== "number" && "mt-[0.35em]"
|
|
1979
2032
|
),
|
|
1980
2033
|
children: bullet
|
|
1981
2034
|
}
|
|
1982
2035
|
),
|
|
1983
|
-
TypographyComponent ? React4.cloneElement(
|
|
2036
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 min-w-0", children: TypographyComponent ? React4.cloneElement(
|
|
1984
2037
|
TypographyComponent,
|
|
1985
|
-
{
|
|
2038
|
+
{
|
|
2039
|
+
className: cn(
|
|
2040
|
+
"leading-relaxed",
|
|
2041
|
+
TypographyComponent?.props?.className
|
|
2042
|
+
)
|
|
2043
|
+
},
|
|
1986
2044
|
content
|
|
1987
|
-
) : content
|
|
2045
|
+
) : content })
|
|
1988
2046
|
]
|
|
1989
2047
|
}
|
|
1990
2048
|
);
|
|
@@ -2004,10 +2062,16 @@ var gridCols = {
|
|
|
2004
2062
|
};
|
|
2005
2063
|
function normalizeItem(item, defaultBulletType) {
|
|
2006
2064
|
if (typeof item === "string") {
|
|
2007
|
-
return {
|
|
2065
|
+
return {
|
|
2066
|
+
content: item,
|
|
2067
|
+
bulletType: defaultBulletType
|
|
2068
|
+
};
|
|
2008
2069
|
}
|
|
2009
2070
|
if (React4.isValidElement(item)) {
|
|
2010
|
-
return {
|
|
2071
|
+
return {
|
|
2072
|
+
content: item,
|
|
2073
|
+
bulletType: defaultBulletType
|
|
2074
|
+
};
|
|
2011
2075
|
}
|
|
2012
2076
|
return {
|
|
2013
2077
|
bulletType: defaultBulletType,
|
|
@@ -2028,8 +2092,8 @@ function List({
|
|
|
2028
2092
|
}) {
|
|
2029
2093
|
const isGrid = !!columns;
|
|
2030
2094
|
const isOrdered = bulletType === "number";
|
|
2031
|
-
return /* @__PURE__ */ jsxs("div", { ...rest, className: cn("py-
|
|
2032
|
-
title && /* @__PURE__ */ jsx("div", { className: "text-
|
|
2095
|
+
return /* @__PURE__ */ jsxs("div", { ...rest, className: cn("py-2", className), children: [
|
|
2096
|
+
title && /* @__PURE__ */ jsx("div", { className: "text-sm font-semibold mb-3", children: title }),
|
|
2033
2097
|
/* @__PURE__ */ jsx(
|
|
2034
2098
|
"div",
|
|
2035
2099
|
{
|
|
@@ -2050,7 +2114,8 @@ function List({
|
|
|
2050
2114
|
bulletType: normalized.bulletType,
|
|
2051
2115
|
renderBullet: normalized.renderBullet,
|
|
2052
2116
|
TypographyComponent: normalized.TypographyComponent,
|
|
2053
|
-
className: normalized.className
|
|
2117
|
+
className: normalized.className,
|
|
2118
|
+
align
|
|
2054
2119
|
},
|
|
2055
2120
|
i
|
|
2056
2121
|
);
|
|
@@ -2060,230 +2125,404 @@ function List({
|
|
|
2060
2125
|
] });
|
|
2061
2126
|
}
|
|
2062
2127
|
var List_default = List;
|
|
2063
|
-
var
|
|
2064
|
-
|
|
2128
|
+
var calculateDiscountedPrice = (price, discount) => {
|
|
2129
|
+
if (!discount) return price;
|
|
2130
|
+
return price - price * discount / 100;
|
|
2065
2131
|
};
|
|
2132
|
+
var formatPrice = (value, decimals) => value.toFixed(decimals);
|
|
2066
2133
|
function PriceTag({
|
|
2067
|
-
discount,
|
|
2068
2134
|
price,
|
|
2135
|
+
discount,
|
|
2069
2136
|
code = "USD",
|
|
2137
|
+
variant = "success",
|
|
2138
|
+
appearance = "solid",
|
|
2139
|
+
shape,
|
|
2140
|
+
size = "md",
|
|
2141
|
+
decimals = 2,
|
|
2142
|
+
showCurrencyCode = true,
|
|
2143
|
+
currencyAsSubscript = true,
|
|
2144
|
+
showFreeLabel = true,
|
|
2070
2145
|
className,
|
|
2071
2146
|
...rest
|
|
2072
2147
|
}) {
|
|
2073
|
-
|
|
2074
|
-
|
|
2148
|
+
const eui = useEUIConfig();
|
|
2149
|
+
const resolvedShape = shape ?? eui?.config?.global?.shape ?? "roundedSquare";
|
|
2150
|
+
const variantStyles = resolveAppearanceStyles({
|
|
2151
|
+
appearance,
|
|
2152
|
+
variant,
|
|
2153
|
+
solid: variantsSolid,
|
|
2154
|
+
lite: variantsLite,
|
|
2155
|
+
ghost: variantsGhost
|
|
2156
|
+
});
|
|
2157
|
+
const discountedPrice = calculateDiscountedPrice(price, discount);
|
|
2158
|
+
const currency = getCurrencySymbol(code);
|
|
2159
|
+
if (price <= 0 && showFreeLabel) {
|
|
2160
|
+
return /* @__PURE__ */ jsx("div", { ...rest, className: cn("inline-flex items-center", className), children: /* @__PURE__ */ jsx(
|
|
2075
2161
|
"div",
|
|
2076
2162
|
{
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2163
|
+
className: cn(
|
|
2164
|
+
"font-semibold",
|
|
2165
|
+
"px-3 py-1",
|
|
2166
|
+
"inline-flex items-center justify-center",
|
|
2167
|
+
variantStyles,
|
|
2168
|
+
shapes[resolvedShape],
|
|
2169
|
+
badgeSizes[size]
|
|
2170
|
+
),
|
|
2171
|
+
children: "FREE"
|
|
2080
2172
|
}
|
|
2081
|
-
);
|
|
2173
|
+
) });
|
|
2082
2174
|
}
|
|
2083
|
-
|
|
2084
|
-
|
|
2175
|
+
return /* @__PURE__ */ jsxs("div", { ...rest, className: cn("inline-flex items-center gap-3", className), children: [
|
|
2176
|
+
!!discount && discount > 0 && /* @__PURE__ */ jsxs(
|
|
2085
2177
|
"div",
|
|
2086
2178
|
{
|
|
2087
|
-
|
|
2088
|
-
|
|
2179
|
+
className: cn(
|
|
2180
|
+
"inline-flex items-center justify-center",
|
|
2181
|
+
"font-semibold leading-none",
|
|
2182
|
+
"px-3 py-1",
|
|
2183
|
+
variantStyles,
|
|
2184
|
+
shapes[resolvedShape],
|
|
2185
|
+
badgeSizes[size]
|
|
2186
|
+
),
|
|
2089
2187
|
children: [
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
"%"
|
|
2094
|
-
] }),
|
|
2095
|
-
/* @__PURE__ */ jsxs("div", { className: "inline-flex gap-1 items-center", children: [
|
|
2096
|
-
discount ? /* @__PURE__ */ jsxs("div", { className: "inline-flex gap-[3px] font-semibold", children: [
|
|
2097
|
-
/* @__PURE__ */ jsxs("div", { className: "eui-text-sm line-through", children: [
|
|
2098
|
-
getCurrencySymbol(code),
|
|
2099
|
-
price
|
|
2100
|
-
] }),
|
|
2101
|
-
/* @__PURE__ */ jsxs("div", { className: "eui-text-md", children: [
|
|
2102
|
-
getCurrencySymbol(code),
|
|
2103
|
-
applyDiscount(discount, price)
|
|
2104
|
-
] })
|
|
2105
|
-
] }) : /* @__PURE__ */ jsxs("div", { className: "text-gray-50 font-semibold", children: [
|
|
2106
|
-
getCurrencySymbol(code),
|
|
2107
|
-
price
|
|
2108
|
-
] }),
|
|
2109
|
-
/* @__PURE__ */ jsx("div", { className: "text-yellow-500 font-thin", children: code })
|
|
2110
|
-
] })
|
|
2188
|
+
"-",
|
|
2189
|
+
discount,
|
|
2190
|
+
"%"
|
|
2111
2191
|
]
|
|
2112
2192
|
}
|
|
2113
|
-
)
|
|
2114
|
-
|
|
2193
|
+
),
|
|
2194
|
+
/* @__PURE__ */ jsxs("div", { className: "inline-flex items-baseline gap-3", children: [
|
|
2195
|
+
!!discount && discount > 0 && /* @__PURE__ */ jsxs(
|
|
2196
|
+
"span",
|
|
2197
|
+
{
|
|
2198
|
+
className: cn(
|
|
2199
|
+
"font-semibold leading-none",
|
|
2200
|
+
"opacity-50 line-through",
|
|
2201
|
+
"text-lg"
|
|
2202
|
+
),
|
|
2203
|
+
children: [
|
|
2204
|
+
currency,
|
|
2205
|
+
formatPrice(price, decimals)
|
|
2206
|
+
]
|
|
2207
|
+
}
|
|
2208
|
+
),
|
|
2209
|
+
/* @__PURE__ */ jsxs("span", { className: cn("font-semibold leading-none", "text-lg"), children: [
|
|
2210
|
+
currency,
|
|
2211
|
+
formatPrice(discountedPrice, decimals)
|
|
2212
|
+
] }),
|
|
2213
|
+
showCurrencyCode && /* @__PURE__ */ jsx(
|
|
2214
|
+
"span",
|
|
2215
|
+
{
|
|
2216
|
+
className: cn(
|
|
2217
|
+
"uppercase tracking-wide opacity-60",
|
|
2218
|
+
currencyAsSubscript ? "text-[10px] relative top-[0.35em]" : "text-xs"
|
|
2219
|
+
),
|
|
2220
|
+
children: code
|
|
2221
|
+
}
|
|
2222
|
+
)
|
|
2223
|
+
] })
|
|
2224
|
+
] });
|
|
2115
2225
|
}
|
|
2116
|
-
var
|
|
2117
|
-
xs:
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2226
|
+
var progressSizes = {
|
|
2227
|
+
xs: {
|
|
2228
|
+
track: "h-1",
|
|
2229
|
+
text: "text-[10px]"
|
|
2230
|
+
},
|
|
2231
|
+
sm: {
|
|
2232
|
+
track: "h-2",
|
|
2233
|
+
text: "text-xs"
|
|
2234
|
+
},
|
|
2235
|
+
md: {
|
|
2236
|
+
track: "h-3",
|
|
2237
|
+
text: "text-sm"
|
|
2238
|
+
},
|
|
2239
|
+
lg: {
|
|
2240
|
+
track: "h-4",
|
|
2241
|
+
text: "text-sm"
|
|
2242
|
+
},
|
|
2243
|
+
xl: {
|
|
2244
|
+
track: "h-5",
|
|
2245
|
+
text: "text-base"
|
|
2246
|
+
}
|
|
2122
2247
|
};
|
|
2123
|
-
|
|
2248
|
+
function ProgressBar({
|
|
2124
2249
|
value,
|
|
2250
|
+
min = 0,
|
|
2251
|
+
max = 100,
|
|
2125
2252
|
variant = "success",
|
|
2126
|
-
|
|
2253
|
+
appearance = "solid",
|
|
2254
|
+
size = "md",
|
|
2255
|
+
shape,
|
|
2256
|
+
striped = false,
|
|
2257
|
+
animated = true,
|
|
2127
2258
|
showLabel = true,
|
|
2128
|
-
label,
|
|
2259
|
+
label = "Progress",
|
|
2129
2260
|
labelPlacement = "top",
|
|
2261
|
+
showPercentage = true,
|
|
2262
|
+
startContent,
|
|
2263
|
+
endContent,
|
|
2264
|
+
trackClassName,
|
|
2265
|
+
barClassName,
|
|
2130
2266
|
className,
|
|
2131
2267
|
...rest
|
|
2132
|
-
})
|
|
2133
|
-
const
|
|
2268
|
+
}) {
|
|
2269
|
+
const eui = useEUIConfig();
|
|
2270
|
+
const resolvedShape = shape ?? eui?.config?.global?.shape ?? "roundedSquare";
|
|
2271
|
+
const clampedValue = Math.min(max, Math.max(min, value));
|
|
2272
|
+
const percentage = (clampedValue - min) / (max - min) * 100;
|
|
2273
|
+
const variantStyles = resolveAppearanceStyles({
|
|
2274
|
+
appearance,
|
|
2275
|
+
variant,
|
|
2276
|
+
solid: variantsSolid,
|
|
2277
|
+
lite: variantsLite,
|
|
2278
|
+
ghost: variantsGhost
|
|
2279
|
+
});
|
|
2280
|
+
const sizeStyles = progressSizes[size];
|
|
2281
|
+
const hasTopLabel = showLabel && labelPlacement === "top";
|
|
2282
|
+
const hasBottomLabel = showLabel && labelPlacement === "bottom";
|
|
2283
|
+
const labelNode = /* @__PURE__ */ jsxs(
|
|
2284
|
+
"div",
|
|
2285
|
+
{
|
|
2286
|
+
className: cn(
|
|
2287
|
+
"flex items-center justify-between gap-3",
|
|
2288
|
+
sizeStyles.text,
|
|
2289
|
+
"text-gray-600 dark:text-gray-300"
|
|
2290
|
+
),
|
|
2291
|
+
children: [
|
|
2292
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2293
|
+
startContent,
|
|
2294
|
+
showLabel && /* @__PURE__ */ jsx("span", { className: "font-medium", children: label })
|
|
2295
|
+
] }),
|
|
2296
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2297
|
+
endContent,
|
|
2298
|
+
showPercentage && /* @__PURE__ */ jsxs("span", { className: "tabular-nums opacity-80", children: [
|
|
2299
|
+
Math.round(percentage),
|
|
2300
|
+
"%"
|
|
2301
|
+
] })
|
|
2302
|
+
] })
|
|
2303
|
+
]
|
|
2304
|
+
}
|
|
2305
|
+
);
|
|
2134
2306
|
return /* @__PURE__ */ jsxs("div", { ...rest, className: cn("w-full", className), children: [
|
|
2135
|
-
|
|
2136
|
-
/* @__PURE__ */ jsx("span", { children: label ?? "Progress" }),
|
|
2137
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
2138
|
-
clampedValue,
|
|
2139
|
-
"%"
|
|
2140
|
-
] })
|
|
2141
|
-
] }),
|
|
2307
|
+
hasTopLabel && /* @__PURE__ */ jsx("div", { className: "mb-2", children: labelNode }),
|
|
2142
2308
|
/* @__PURE__ */ jsxs(
|
|
2143
2309
|
"div",
|
|
2144
2310
|
{
|
|
2145
2311
|
className: cn(
|
|
2146
|
-
"relative
|
|
2147
|
-
|
|
2312
|
+
"relative overflow-hidden",
|
|
2313
|
+
"bg-gray-200 dark:bg-neutral-800",
|
|
2314
|
+
"border border-gray-300 dark:border-neutral-700",
|
|
2315
|
+
"shadow-inner",
|
|
2316
|
+
sizeStyles.track,
|
|
2317
|
+
shapes[resolvedShape],
|
|
2318
|
+
trackClassName
|
|
2148
2319
|
),
|
|
2320
|
+
role: "progressbar",
|
|
2321
|
+
"aria-valuemin": min,
|
|
2322
|
+
"aria-valuemax": max,
|
|
2323
|
+
"aria-valuenow": clampedValue,
|
|
2149
2324
|
children: [
|
|
2150
2325
|
/* @__PURE__ */ jsx(
|
|
2151
2326
|
"div",
|
|
2152
2327
|
{
|
|
2153
2328
|
className: cn(
|
|
2154
|
-
"h-full
|
|
2155
|
-
|
|
2329
|
+
"relative h-full",
|
|
2330
|
+
animated && "transition-all duration-500 ease-out",
|
|
2331
|
+
"before:absolute before:inset-0",
|
|
2332
|
+
"before:bg-white/10 dark:before:bg-white/5",
|
|
2333
|
+
"border-r border-white/10 dark:border-white/5",
|
|
2334
|
+
striped && [
|
|
2335
|
+
"bg-[length:40px_40px]",
|
|
2336
|
+
"bg-[linear-gradient(135deg,rgba(255,255,255,0.15)_25%,transparent_25%,transparent_50%,rgba(255,255,255,0.15)_50%,rgba(255,255,255,0.15)_75%,transparent_75%,transparent)]",
|
|
2337
|
+
animated && "animate-eui-progress-stripes"
|
|
2338
|
+
],
|
|
2339
|
+
variantStyles,
|
|
2340
|
+
barClassName
|
|
2156
2341
|
),
|
|
2157
|
-
style: {
|
|
2342
|
+
style: {
|
|
2343
|
+
width: `${percentage}%`
|
|
2344
|
+
}
|
|
2158
2345
|
}
|
|
2159
2346
|
),
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2347
|
+
labelPlacement === "overlay" && /* @__PURE__ */ jsx(
|
|
2348
|
+
"div",
|
|
2349
|
+
{
|
|
2350
|
+
className: cn(
|
|
2351
|
+
"absolute inset-0",
|
|
2352
|
+
"flex items-center justify-center",
|
|
2353
|
+
"font-medium",
|
|
2354
|
+
"text-white",
|
|
2355
|
+
sizeStyles.text,
|
|
2356
|
+
"pointer-events-none"
|
|
2357
|
+
),
|
|
2358
|
+
children: /* @__PURE__ */ jsxs("div", { className: "inline-flex items-center gap-2", children: [
|
|
2359
|
+
showLabel && /* @__PURE__ */ jsx("span", { children: label }),
|
|
2360
|
+
showPercentage && /* @__PURE__ */ jsxs("span", { children: [
|
|
2361
|
+
Math.round(percentage),
|
|
2362
|
+
"%"
|
|
2363
|
+
] })
|
|
2364
|
+
] })
|
|
2365
|
+
}
|
|
2366
|
+
)
|
|
2166
2367
|
]
|
|
2167
2368
|
}
|
|
2168
|
-
)
|
|
2369
|
+
),
|
|
2370
|
+
hasBottomLabel && /* @__PURE__ */ jsx("div", { className: "mt-2", children: labelNode })
|
|
2169
2371
|
] });
|
|
2372
|
+
}
|
|
2373
|
+
var sizes = {
|
|
2374
|
+
xs: "text-[10px]",
|
|
2375
|
+
sm: "text-xs",
|
|
2376
|
+
md: "text-sm",
|
|
2377
|
+
lg: "text-base",
|
|
2378
|
+
xl: "text-lg"
|
|
2170
2379
|
};
|
|
2171
2380
|
function StarRating({
|
|
2172
2381
|
rating,
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2382
|
+
max = 5,
|
|
2383
|
+
size = "md",
|
|
2384
|
+
showValue = false,
|
|
2385
|
+
valuePosition = "start",
|
|
2386
|
+
iconClassName,
|
|
2176
2387
|
className,
|
|
2177
2388
|
...rest
|
|
2178
2389
|
}) {
|
|
2179
|
-
const
|
|
2180
|
-
const
|
|
2181
|
-
const
|
|
2182
|
-
const
|
|
2183
|
-
const
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
isNumericRatingEnabled && /* @__PURE__ */ jsx("div", { className: "text-yellow-700 font-semibold text-[14px]", children: rating.toFixed(1) }),
|
|
2390
|
+
const normalizedRating = Math.max(0, Math.min(max, rating));
|
|
2391
|
+
const fullStars = Math.floor(normalizedRating);
|
|
2392
|
+
const hasHalfStar = normalizedRating % 1 >= 0.5;
|
|
2393
|
+
const emptyStars = max - fullStars - (hasHalfStar ? 1 : 0);
|
|
2394
|
+
const ratingValue = /* @__PURE__ */ jsx("span", { className: "font-semibold text-yellow-600 dark:text-yellow-400", children: normalizedRating.toFixed(1) });
|
|
2395
|
+
return /* @__PURE__ */ jsxs("div", { ...rest, className: cn("inline-flex items-center gap-2", className), children: [
|
|
2396
|
+
showValue && valuePosition === "start" && ratingValue,
|
|
2187
2397
|
/* @__PURE__ */ jsxs(
|
|
2188
2398
|
"div",
|
|
2189
2399
|
{
|
|
2190
2400
|
className: cn(
|
|
2191
|
-
"flex
|
|
2192
|
-
|
|
2401
|
+
"inline-flex items-center gap-[2px]",
|
|
2402
|
+
"text-yellow-500 dark:text-yellow-400",
|
|
2403
|
+
sizes[size],
|
|
2404
|
+
iconClassName
|
|
2193
2405
|
),
|
|
2194
2406
|
children: [
|
|
2195
|
-
[...Array(fullStars)].map((_, index) => /* @__PURE__ */ jsx(
|
|
2196
|
-
|
|
2197
|
-
[...Array(emptyStars)].map((_, index) => /* @__PURE__ */ jsx(
|
|
2407
|
+
[...Array(fullStars)].map((_, index) => /* @__PURE__ */ jsx(BsStarFill, {}, index)),
|
|
2408
|
+
hasHalfStar && /* @__PURE__ */ jsx(BsStarHalf, {}),
|
|
2409
|
+
[...Array(emptyStars)].map((_, index) => /* @__PURE__ */ jsx(BsStar, { className: "opacity-40" }, index + fullStars))
|
|
2198
2410
|
]
|
|
2199
2411
|
}
|
|
2200
2412
|
),
|
|
2201
|
-
|
|
2202
|
-
"(",
|
|
2203
|
-
reviewAmount,
|
|
2204
|
-
")"
|
|
2205
|
-
] })
|
|
2413
|
+
showValue && valuePosition === "end" && ratingValue
|
|
2206
2414
|
] });
|
|
2207
2415
|
}
|
|
2208
2416
|
var StarRating_default = StarRating;
|
|
2209
|
-
var
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2417
|
+
var sizes2 = {
|
|
2418
|
+
xs: {
|
|
2419
|
+
value: "text-2xl",
|
|
2420
|
+
review: "text-xs"
|
|
2421
|
+
},
|
|
2422
|
+
sm: {
|
|
2423
|
+
value: "text-3xl",
|
|
2424
|
+
review: "text-xs"
|
|
2425
|
+
},
|
|
2426
|
+
md: {
|
|
2427
|
+
value: "text-5xl",
|
|
2428
|
+
review: "text-sm"
|
|
2429
|
+
},
|
|
2430
|
+
lg: {
|
|
2431
|
+
value: "text-6xl",
|
|
2432
|
+
review: "text-base"
|
|
2433
|
+
},
|
|
2434
|
+
xl: {
|
|
2435
|
+
value: "text-7xl",
|
|
2436
|
+
review: "text-lg"
|
|
2437
|
+
}
|
|
2218
2438
|
};
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2439
|
+
function NumericRating({
|
|
2440
|
+
rating,
|
|
2441
|
+
totalReviews,
|
|
2442
|
+
size = "md",
|
|
2443
|
+
showStars = true,
|
|
2444
|
+
showReviewCount = true,
|
|
2445
|
+
reviewLabel = "reviews",
|
|
2446
|
+
className,
|
|
2447
|
+
...rest
|
|
2448
|
+
}) {
|
|
2449
|
+
const sizeStyles = sizes2[size];
|
|
2450
|
+
return /* @__PURE__ */ jsxs(
|
|
2451
|
+
"div",
|
|
2452
|
+
{
|
|
2453
|
+
...rest,
|
|
2454
|
+
className: cn(
|
|
2455
|
+
"flex flex-col items-center justify-center",
|
|
2456
|
+
"min-w-[120px]",
|
|
2457
|
+
className
|
|
2458
|
+
),
|
|
2459
|
+
children: [
|
|
2460
|
+
/* @__PURE__ */ jsx(
|
|
2461
|
+
"div",
|
|
2462
|
+
{
|
|
2463
|
+
className: cn(
|
|
2464
|
+
"font-bold leading-none",
|
|
2465
|
+
"text-gray-900 dark:text-gray-100",
|
|
2466
|
+
sizeStyles.value
|
|
2467
|
+
),
|
|
2468
|
+
children: rating.toFixed(1)
|
|
2469
|
+
}
|
|
2470
|
+
),
|
|
2471
|
+
showStars && /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(StarRating_default, { rating, size }) }),
|
|
2472
|
+
showReviewCount && totalReviews !== void 0 && /* @__PURE__ */ jsxs(
|
|
2473
|
+
"div",
|
|
2474
|
+
{
|
|
2475
|
+
className: cn(
|
|
2476
|
+
"mt-1 text-gray-500 dark:text-gray-400",
|
|
2477
|
+
sizeStyles.review
|
|
2478
|
+
),
|
|
2479
|
+
children: [
|
|
2480
|
+
totalReviews,
|
|
2481
|
+
" ",
|
|
2482
|
+
reviewLabel
|
|
2483
|
+
]
|
|
2484
|
+
}
|
|
2485
|
+
)
|
|
2486
|
+
]
|
|
2487
|
+
}
|
|
2488
|
+
);
|
|
2489
|
+
}
|
|
2490
|
+
var NumericRating_default = NumericRating;
|
|
2491
|
+
function ProgressBarRating({
|
|
2492
|
+
star,
|
|
2493
|
+
percentage,
|
|
2494
|
+
variant = "warning",
|
|
2495
|
+
appearance = "solid",
|
|
2496
|
+
shape = "roundedSquare",
|
|
2497
|
+
size = "sm",
|
|
2498
|
+
animated = true,
|
|
2499
|
+
striped = false,
|
|
2500
|
+
className,
|
|
2501
|
+
...rest
|
|
2502
|
+
}) {
|
|
2503
|
+
return /* @__PURE__ */ jsxs("div", { ...rest, className: cn("flex items-center gap-3 w-full", className), children: [
|
|
2504
|
+
/* @__PURE__ */ jsx("div", { className: "w-5 text-sm font-medium text-gray-700 dark:text-gray-300", children: star }),
|
|
2505
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsx(
|
|
2506
|
+
ProgressBar,
|
|
2224
2507
|
{
|
|
2225
|
-
|
|
2226
|
-
|
|
2508
|
+
value: percentage,
|
|
2509
|
+
variant,
|
|
2510
|
+
appearance,
|
|
2511
|
+
shape,
|
|
2512
|
+
size,
|
|
2513
|
+
animated,
|
|
2514
|
+
striped,
|
|
2515
|
+
showLabel: false,
|
|
2516
|
+
showPercentage: false
|
|
2227
2517
|
}
|
|
2228
2518
|
) }),
|
|
2229
|
-
/* @__PURE__ */ jsxs("div", { className: "text-xs text-gray-500
|
|
2519
|
+
/* @__PURE__ */ jsxs("div", { className: "w-[52px] text-right text-xs tabular-nums text-gray-500 dark:text-gray-400", children: [
|
|
2230
2520
|
percentage.toFixed(1),
|
|
2231
2521
|
"%"
|
|
2232
2522
|
] })
|
|
2233
2523
|
] });
|
|
2234
|
-
};
|
|
2235
|
-
var ProgressBarsRating = ({
|
|
2236
|
-
ratingDistribution
|
|
2237
|
-
}) => {
|
|
2238
|
-
return /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2 w-full max-w-md", children: ratingDistribution.map((item) => /* @__PURE__ */ jsx(
|
|
2239
|
-
ProgressBarRating,
|
|
2240
|
-
{
|
|
2241
|
-
star: item.star,
|
|
2242
|
-
percentage: item.percentage
|
|
2243
|
-
},
|
|
2244
|
-
item.star
|
|
2245
|
-
)) });
|
|
2246
|
-
};
|
|
2247
|
-
function StarRatingDistribution({
|
|
2248
|
-
numericRating = true,
|
|
2249
|
-
progressBarsRating = true,
|
|
2250
|
-
ratingDistribution = [
|
|
2251
|
-
{ star: 5, count: 0 },
|
|
2252
|
-
{ star: 4, count: 0 },
|
|
2253
|
-
{ star: 3, count: 0 },
|
|
2254
|
-
{ star: 2, count: 0 },
|
|
2255
|
-
{ star: 1, count: 0 }
|
|
2256
|
-
]
|
|
2257
|
-
}) {
|
|
2258
|
-
const totalReviews = ratingDistribution.reduce(
|
|
2259
|
-
(acc, item) => acc + item.count,
|
|
2260
|
-
0
|
|
2261
|
-
);
|
|
2262
|
-
const averageRating = totalReviews > 0 ? ratingDistribution.reduce(
|
|
2263
|
-
(acc, item) => acc + item.star * item.count,
|
|
2264
|
-
0
|
|
2265
|
-
) / totalReviews : 0;
|
|
2266
|
-
const ratingDistributionWithPercentage = ratingDistribution.map((item) => ({
|
|
2267
|
-
star: item.star,
|
|
2268
|
-
percentage: totalReviews > 0 ? item.count / totalReviews * 100 : 0
|
|
2269
|
-
}));
|
|
2270
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center justify-center gap-10 p-5 bg-gray-800 bg-opacity-50 border border-gray-800 rounded-md shadow-sm", children: [
|
|
2271
|
-
numericRating && /* @__PURE__ */ jsx(
|
|
2272
|
-
NumericRating,
|
|
2273
|
-
{
|
|
2274
|
-
averageRating,
|
|
2275
|
-
totalReviews
|
|
2276
|
-
}
|
|
2277
|
-
),
|
|
2278
|
-
progressBarsRating && /* @__PURE__ */ jsx(
|
|
2279
|
-
ProgressBarsRating,
|
|
2280
|
-
{
|
|
2281
|
-
ratingDistribution: ratingDistributionWithPercentage
|
|
2282
|
-
}
|
|
2283
|
-
)
|
|
2284
|
-
] });
|
|
2285
2524
|
}
|
|
2286
|
-
var
|
|
2525
|
+
var ProgressBarRating_default = ProgressBarRating;
|
|
2287
2526
|
function Table({
|
|
2288
2527
|
title,
|
|
2289
2528
|
columns,
|
|
@@ -2591,7 +2830,7 @@ var Form = ({
|
|
|
2591
2830
|
/* @__PURE__ */ jsx(UnsavedChangesGuard_default, { formik, enabled: warnOnUnsavedChanges }),
|
|
2592
2831
|
/* @__PURE__ */ jsx(DirtyObserver_default, { formik, onDirtyChange }),
|
|
2593
2832
|
/* @__PURE__ */ jsx(FormObserver_default, { formik, onChange }),
|
|
2594
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
2833
|
+
/* @__PURE__ */ jsx("div", { className: classNames16(styles), children })
|
|
2595
2834
|
] })
|
|
2596
2835
|
}
|
|
2597
2836
|
);
|
|
@@ -2600,7 +2839,7 @@ var Backdrop = ({ children, styles }) => {
|
|
|
2600
2839
|
return /* @__PURE__ */ jsx(
|
|
2601
2840
|
"div",
|
|
2602
2841
|
{
|
|
2603
|
-
className:
|
|
2842
|
+
className: classNames16({
|
|
2604
2843
|
"bg-black/75 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden": true,
|
|
2605
2844
|
[`${styles}`]: styles
|
|
2606
2845
|
}),
|
|
@@ -2694,7 +2933,7 @@ var Transition4 = {
|
|
|
2694
2933
|
TransitionDropdown: TransitionDropdown_default,
|
|
2695
2934
|
TransitionFadeIn: TransitionFadeIn_default
|
|
2696
2935
|
};
|
|
2697
|
-
var
|
|
2936
|
+
var sizes3 = {
|
|
2698
2937
|
xs: "px-2 py-1 text-xs",
|
|
2699
2938
|
sm: "px-3 py-2 text-sm",
|
|
2700
2939
|
md: "px-4 py-2 text-base",
|
|
@@ -2711,11 +2950,11 @@ function FormResponse({
|
|
|
2711
2950
|
return /* @__PURE__ */ jsx(Transition4.TransitionDropdown, { visibility: text ? true : false, children: /* @__PURE__ */ jsx(
|
|
2712
2951
|
"div",
|
|
2713
2952
|
{
|
|
2714
|
-
className:
|
|
2953
|
+
className: classNames16({
|
|
2715
2954
|
"font-poppins font-light text-sm": true,
|
|
2716
2955
|
[`${variantsLite[variant]}`]: variant,
|
|
2717
2956
|
[`${shapes[shape]}`]: shape,
|
|
2718
|
-
[`${
|
|
2957
|
+
[`${sizes3[size]}`]: size,
|
|
2719
2958
|
[`${styles}`]: styles
|
|
2720
2959
|
}),
|
|
2721
2960
|
children: text
|
|
@@ -2828,7 +3067,7 @@ var ThemeSwitch = () => {
|
|
|
2828
3067
|
/* @__PURE__ */ jsx(
|
|
2829
3068
|
"div",
|
|
2830
3069
|
{
|
|
2831
|
-
className:
|
|
3070
|
+
className: classNames16(
|
|
2832
3071
|
"w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300",
|
|
2833
3072
|
theme === "dark" ? "translate-x-8" : "translate-x-0"
|
|
2834
3073
|
)
|
|
@@ -2865,7 +3104,7 @@ var ShapeSwitch = () => {
|
|
|
2865
3104
|
{
|
|
2866
3105
|
value: currentShape,
|
|
2867
3106
|
onChange: handleChange,
|
|
2868
|
-
className: "\n px-3 py-2 rounded-md border border-gray-300\n bg-white dark:bg-gray-800\n text-sm shadow-sm\n focus:outline-none\n ",
|
|
3107
|
+
className: "\r\n px-3 py-2 rounded-md border border-gray-300\r\n bg-white dark:bg-gray-800\r\n text-sm shadow-sm\r\n focus:outline-none\r\n ",
|
|
2869
3108
|
children: Object.keys(Shape).map((shape) => /* @__PURE__ */ jsx("option", { value: shape, children: shape }, shape))
|
|
2870
3109
|
}
|
|
2871
3110
|
) });
|
|
@@ -14290,31 +14529,39 @@ function WorldMap({
|
|
|
14290
14529
|
/* @__PURE__ */ jsx(Tooltip4, { show: showTooltip, children: tooltipContent })
|
|
14291
14530
|
] });
|
|
14292
14531
|
}
|
|
14293
|
-
var
|
|
14532
|
+
var sizes4 = {
|
|
14294
14533
|
xs: "px-2 py-1 text-xs",
|
|
14295
14534
|
sm: "px-3 py-1.5 text-sm",
|
|
14296
14535
|
md: "px-4 py-2 text-base",
|
|
14297
14536
|
lg: "px-5 py-3 text-lg",
|
|
14298
14537
|
xl: "px-6 py-4 text-xl"
|
|
14299
14538
|
};
|
|
14300
|
-
|
|
14539
|
+
function Button({
|
|
14301
14540
|
type = "button",
|
|
14302
14541
|
icon,
|
|
14303
14542
|
text,
|
|
14304
14543
|
children,
|
|
14305
|
-
loading,
|
|
14306
|
-
disabled,
|
|
14307
|
-
|
|
14308
|
-
block,
|
|
14544
|
+
loading = false,
|
|
14545
|
+
disabled = false,
|
|
14546
|
+
block = false,
|
|
14309
14547
|
variant = "success",
|
|
14548
|
+
appearance = "solid",
|
|
14310
14549
|
shape,
|
|
14311
14550
|
size = "md",
|
|
14312
|
-
|
|
14313
|
-
|
|
14314
|
-
|
|
14551
|
+
className,
|
|
14552
|
+
onMouseMove,
|
|
14553
|
+
...rest
|
|
14554
|
+
}) {
|
|
14315
14555
|
const eui = useEUIConfig();
|
|
14316
14556
|
const resolvedShape = shape ?? eui?.config?.global?.shape ?? "square";
|
|
14317
14557
|
const btnRef = useRef(null);
|
|
14558
|
+
const variantStyles = resolveAppearanceStyles({
|
|
14559
|
+
appearance,
|
|
14560
|
+
variant,
|
|
14561
|
+
solid: variantsSolid,
|
|
14562
|
+
lite: variantsLite,
|
|
14563
|
+
ghost: variantsGhost
|
|
14564
|
+
});
|
|
14318
14565
|
const handleMouseMove = (e) => {
|
|
14319
14566
|
const btn = btnRef.current;
|
|
14320
14567
|
if (!btn) return;
|
|
@@ -14323,38 +14570,36 @@ var Button = ({
|
|
|
14323
14570
|
const y = e.clientY - rect.top;
|
|
14324
14571
|
btn.style.setProperty("--glow-x", `${x}px`);
|
|
14325
14572
|
btn.style.setProperty("--glow-y", `${y}px`);
|
|
14573
|
+
onMouseMove?.(e);
|
|
14326
14574
|
};
|
|
14327
14575
|
return /* @__PURE__ */ jsxs(
|
|
14328
14576
|
"button",
|
|
14329
14577
|
{
|
|
14578
|
+
...rest,
|
|
14330
14579
|
ref: btnRef,
|
|
14331
14580
|
type,
|
|
14332
|
-
onClick,
|
|
14333
|
-
onMouseMove: handleMouseMove,
|
|
14334
14581
|
disabled: disabled || loading,
|
|
14335
|
-
|
|
14336
|
-
|
|
14337
|
-
"
|
|
14338
|
-
|
|
14339
|
-
[
|
|
14340
|
-
[
|
|
14341
|
-
|
|
14342
|
-
"
|
|
14343
|
-
|
|
14344
|
-
|
|
14345
|
-
|
|
14346
|
-
[`${styles}`]: styles
|
|
14347
|
-
}),
|
|
14582
|
+
onMouseMove: handleMouseMove,
|
|
14583
|
+
className: cn(
|
|
14584
|
+
"relative overflow-hidden group inline-flex items-center justify-center gap-2 transition-all duration-300",
|
|
14585
|
+
variantStyles,
|
|
14586
|
+
shapes[resolvedShape],
|
|
14587
|
+
sizes4[size],
|
|
14588
|
+
block && "w-full",
|
|
14589
|
+
(loading || disabled) && "brightness-75 grayscale cursor-not-allowed",
|
|
14590
|
+
!loading && !disabled && "hover:cursor-pointer",
|
|
14591
|
+
className
|
|
14592
|
+
),
|
|
14348
14593
|
children: [
|
|
14349
14594
|
/* @__PURE__ */ jsx(
|
|
14350
14595
|
"span",
|
|
14351
14596
|
{
|
|
14352
|
-
className: "
|
|
14597
|
+
className: "pointer-events-none absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-300",
|
|
14353
14598
|
style: {
|
|
14354
14599
|
background: `
|
|
14355
14600
|
radial-gradient(
|
|
14356
14601
|
200px circle at var(--glow-x) var(--glow-y),
|
|
14357
|
-
rgba(
|
|
14602
|
+
rgba(255,255,255,0.18),
|
|
14358
14603
|
transparent 50%
|
|
14359
14604
|
)
|
|
14360
14605
|
`
|
|
@@ -14362,13 +14607,14 @@ var Button = ({
|
|
|
14362
14607
|
}
|
|
14363
14608
|
),
|
|
14364
14609
|
loading && /* @__PURE__ */ jsx(AiOutlineLoading, { className: "animate-spin z-10" }),
|
|
14365
|
-
icon && /* @__PURE__ */ jsx("
|
|
14366
|
-
text && /* @__PURE__ */ jsx("
|
|
14367
|
-
children && /* @__PURE__ */ jsx("
|
|
14610
|
+
icon && /* @__PURE__ */ jsx("span", { className: "z-10", children: icon }),
|
|
14611
|
+
text && /* @__PURE__ */ jsx("span", { className: "z-10", children: text }),
|
|
14612
|
+
children && /* @__PURE__ */ jsx("span", { className: "z-10", children })
|
|
14368
14613
|
]
|
|
14369
14614
|
}
|
|
14370
14615
|
);
|
|
14371
|
-
}
|
|
14616
|
+
}
|
|
14617
|
+
var Button_default = Button;
|
|
14372
14618
|
function InputResponse({
|
|
14373
14619
|
name,
|
|
14374
14620
|
visibility,
|
|
@@ -14378,7 +14624,7 @@ function InputResponse({
|
|
|
14378
14624
|
return /* @__PURE__ */ jsx(Transition4.TransitionDropdown, { visibility, children: /* @__PURE__ */ jsx(
|
|
14379
14625
|
"div",
|
|
14380
14626
|
{
|
|
14381
|
-
className:
|
|
14627
|
+
className: classNames16({
|
|
14382
14628
|
"font-medium text-sm py-1 px-2": true,
|
|
14383
14629
|
[`${textVariants[variant]}`]: variant,
|
|
14384
14630
|
"transition-all ease-in-out": true,
|
|
@@ -14393,7 +14639,7 @@ function InputLabel({ text, children, styles }) {
|
|
|
14393
14639
|
return /* @__PURE__ */ jsx(
|
|
14394
14640
|
"label",
|
|
14395
14641
|
{
|
|
14396
|
-
className:
|
|
14642
|
+
className: classNames16({
|
|
14397
14643
|
"px-0 eui-text-sm text-[13.5px] pointer-events-none select-none": true,
|
|
14398
14644
|
"transition-all ease-in-out": true,
|
|
14399
14645
|
[`${styles}`]: styles
|
|
@@ -14445,7 +14691,7 @@ var Input = ({
|
|
|
14445
14691
|
...field,
|
|
14446
14692
|
...props,
|
|
14447
14693
|
placeholder,
|
|
14448
|
-
className:
|
|
14694
|
+
className: classNames16({
|
|
14449
14695
|
"border peer w-full bg-eui-primary-300/10 pt-5 px-3 pb-2 text-md eui-text-md placeholder-transparent placeholder-shown:p-3 focus:outline-none h-[50px]": true,
|
|
14450
14696
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
14451
14697
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
@@ -14490,7 +14736,7 @@ var InputFile = ({
|
|
|
14490
14736
|
/* @__PURE__ */ jsx(
|
|
14491
14737
|
"div",
|
|
14492
14738
|
{
|
|
14493
|
-
className:
|
|
14739
|
+
className: classNames16(
|
|
14494
14740
|
"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",
|
|
14495
14741
|
{
|
|
14496
14742
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -14516,7 +14762,7 @@ var InputFile = ({
|
|
|
14516
14762
|
InputLabel_default,
|
|
14517
14763
|
{
|
|
14518
14764
|
text: placeholder,
|
|
14519
|
-
styles:
|
|
14765
|
+
styles: classNames16({
|
|
14520
14766
|
"absolute left-2 eui-text-sm peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none": true,
|
|
14521
14767
|
"top-[0.7px]": showFloatingLabel,
|
|
14522
14768
|
"top-[13px] text-base": !showFloatingLabel
|
|
@@ -14542,7 +14788,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
14542
14788
|
/* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(FieldArray, { name, children: ({ push, remove, move }) => /* @__PURE__ */ jsxs(
|
|
14543
14789
|
"div",
|
|
14544
14790
|
{
|
|
14545
|
-
className:
|
|
14791
|
+
className: classNames16({
|
|
14546
14792
|
"flex flex-col space-y-2 w-full bg-eui-primary-300/10": true,
|
|
14547
14793
|
[`${shapes[resolvedShape]}`]: true
|
|
14548
14794
|
}),
|
|
@@ -14573,7 +14819,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
14573
14819
|
{
|
|
14574
14820
|
name: `${name}[${index}]`,
|
|
14575
14821
|
placeholder: `Item ${index + 1}`,
|
|
14576
|
-
className:
|
|
14822
|
+
className: classNames16(
|
|
14577
14823
|
"border peer w-full bg-eui-primary-300/10 pt-5 px-3 pb-2 text-md eui-text-md placeholder-transparent placeholder-shown:p-3 focus:outline-none h-[50px]",
|
|
14578
14824
|
[`${shapes[resolvedShape]}`],
|
|
14579
14825
|
errors[name]?.[index] ? "border-eui-danger-500" : "border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -14641,7 +14887,7 @@ var InputListGroup = ({
|
|
|
14641
14887
|
values[name]?.map((group, groupIndex) => /* @__PURE__ */ jsxs(
|
|
14642
14888
|
"div",
|
|
14643
14889
|
{
|
|
14644
|
-
className:
|
|
14890
|
+
className: classNames16({
|
|
14645
14891
|
"flex flex-col gap-2 bg-eui-primary-300/10 p-3": true,
|
|
14646
14892
|
[`${shapes[resolvedShape]}`]: true
|
|
14647
14893
|
}),
|
|
@@ -14653,7 +14899,7 @@ var InputListGroup = ({
|
|
|
14653
14899
|
{
|
|
14654
14900
|
name: `${name}[${groupIndex}].name`,
|
|
14655
14901
|
placeholder: `Group ${groupIndex + 1}`,
|
|
14656
|
-
className:
|
|
14902
|
+
className: classNames16(
|
|
14657
14903
|
"border w-full bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none h-[40px]",
|
|
14658
14904
|
[`${shapes[resolvedShape]}`],
|
|
14659
14905
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -14695,7 +14941,7 @@ var InputListGroup = ({
|
|
|
14695
14941
|
{
|
|
14696
14942
|
ref: provided.innerRef,
|
|
14697
14943
|
...provided.droppableProps,
|
|
14698
|
-
className:
|
|
14944
|
+
className: classNames16({
|
|
14699
14945
|
"space-y-2 bg-eui-primary-300/10 p-2": true,
|
|
14700
14946
|
[`${shapes[resolvedShape]}`]: true
|
|
14701
14947
|
}),
|
|
@@ -14710,7 +14956,7 @@ var InputListGroup = ({
|
|
|
14710
14956
|
{
|
|
14711
14957
|
ref: provided2.innerRef,
|
|
14712
14958
|
...provided2.draggableProps,
|
|
14713
|
-
className:
|
|
14959
|
+
className: classNames16({
|
|
14714
14960
|
"flex items-center gap-2 bg-eui-primary-300/10 p-2": true,
|
|
14715
14961
|
[`${shapes[resolvedShape]}`]: true
|
|
14716
14962
|
}),
|
|
@@ -14721,7 +14967,7 @@ var InputListGroup = ({
|
|
|
14721
14967
|
{
|
|
14722
14968
|
name: `${name}[${groupIndex}].items[${itemIndex}]`,
|
|
14723
14969
|
placeholder: `Item ${itemIndex + 1}`,
|
|
14724
|
-
className:
|
|
14970
|
+
className: classNames16(
|
|
14725
14971
|
"border w-full bg-eui-primary-300/10 px-3 py-2 text-md focus:outline-none h-[40px]",
|
|
14726
14972
|
[`${shapes[resolvedShape]}`],
|
|
14727
14973
|
"border-eui-primary-400 focus:border-eui-secondary-500"
|
|
@@ -14794,43 +15040,76 @@ var InputListGroup = ({
|
|
|
14794
15040
|
function isMultiCheckbox(props) {
|
|
14795
15041
|
return Array.isArray(props.options);
|
|
14796
15042
|
}
|
|
14797
|
-
|
|
14798
|
-
|
|
15043
|
+
function Checkbox({
|
|
15044
|
+
placeholder,
|
|
15045
|
+
variant = "primary",
|
|
15046
|
+
shape = "roundedSquare",
|
|
15047
|
+
className,
|
|
15048
|
+
...props
|
|
15049
|
+
}) {
|
|
14799
15050
|
const isMulti = isMultiCheckbox(props);
|
|
14800
|
-
const [
|
|
14801
|
-
|
|
15051
|
+
const [multiField, multiMeta, multiHelpers] = useField(
|
|
15052
|
+
props
|
|
15053
|
+
);
|
|
15054
|
+
const [singleField, singleMeta, singleHelpers] = useField(
|
|
15055
|
+
props
|
|
15056
|
+
);
|
|
15057
|
+
const field = isMulti ? multiField : singleField;
|
|
15058
|
+
const meta = isMulti ? multiMeta : singleMeta;
|
|
15059
|
+
const checkboxClass = cn(
|
|
15060
|
+
// Base
|
|
14802
15061
|
"appearance-none cursor-pointer transition-all duration-300",
|
|
14803
15062
|
"w-5 h-5 min-w-[1.25rem] min-h-[1.25rem]",
|
|
14804
|
-
"flex-shrink-0",
|
|
14805
|
-
|
|
14806
|
-
"
|
|
14807
|
-
"
|
|
15063
|
+
"flex-shrink-0 relative",
|
|
15064
|
+
// Unchecked state
|
|
15065
|
+
"bg-white border-2 border-gray-300",
|
|
15066
|
+
"hover:border-gray-400",
|
|
15067
|
+
// Dark mode
|
|
15068
|
+
"dark:bg-neutral-900",
|
|
15069
|
+
"dark:border-neutral-600",
|
|
15070
|
+
"dark:hover:border-neutral-500",
|
|
15071
|
+
// Focus state
|
|
15072
|
+
"focus:outline-none focus:ring-2",
|
|
15073
|
+
"focus:ring-eui-primary-500/30",
|
|
15074
|
+
// Checked variant styles
|
|
15075
|
+
checkboxVariants[variant],
|
|
15076
|
+
// Check icon
|
|
15077
|
+
"checked:before:content-['\u2713']",
|
|
15078
|
+
"checked:before:absolute checked:before:inset-0",
|
|
14808
15079
|
"checked:before:flex checked:before:items-center checked:before:justify-center",
|
|
14809
|
-
"checked:before:text-white checked:before:font-bold checked:before:text-sm"
|
|
15080
|
+
"checked:before:text-white checked:before:font-bold checked:before:text-sm",
|
|
15081
|
+
// Disabled state
|
|
15082
|
+
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
15083
|
+
// Shape
|
|
15084
|
+
shapes[shape],
|
|
15085
|
+
className
|
|
14810
15086
|
);
|
|
14811
15087
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
14812
15088
|
!isMulti && /* @__PURE__ */ jsxs("div", { className: "flex flex-row gap-3 items-start", children: [
|
|
14813
15089
|
/* @__PURE__ */ jsx(
|
|
14814
15090
|
"input",
|
|
14815
15091
|
{
|
|
14816
|
-
id:
|
|
15092
|
+
id: singleField.name,
|
|
14817
15093
|
type: "checkbox",
|
|
14818
|
-
checked: Boolean(
|
|
14819
|
-
onChange: (e) =>
|
|
15094
|
+
checked: Boolean(singleField.value),
|
|
15095
|
+
onChange: (e) => singleHelpers.setValue(e.target.checked),
|
|
14820
15096
|
className: checkboxClass
|
|
14821
15097
|
}
|
|
14822
15098
|
),
|
|
14823
15099
|
/* @__PURE__ */ jsx(
|
|
14824
15100
|
"label",
|
|
14825
15101
|
{
|
|
14826
|
-
htmlFor:
|
|
14827
|
-
className:
|
|
15102
|
+
htmlFor: singleField.name,
|
|
15103
|
+
className: cn(
|
|
15104
|
+
"text-sm leading-relaxed cursor-pointer select-none",
|
|
15105
|
+
"text-gray-800 dark:text-gray-200"
|
|
15106
|
+
),
|
|
14828
15107
|
children: placeholder
|
|
14829
15108
|
}
|
|
14830
15109
|
)
|
|
14831
15110
|
] }),
|
|
14832
15111
|
isMulti && props.options.map((option) => {
|
|
14833
|
-
const values =
|
|
15112
|
+
const values = multiField.value ?? [];
|
|
14834
15113
|
const checked = values.includes(option.value);
|
|
14835
15114
|
return /* @__PURE__ */ jsxs(
|
|
14836
15115
|
"div",
|
|
@@ -14844,7 +15123,7 @@ var Checkbox = (props) => {
|
|
|
14844
15123
|
type: "checkbox",
|
|
14845
15124
|
checked,
|
|
14846
15125
|
onChange: () => {
|
|
14847
|
-
|
|
15126
|
+
multiHelpers.setValue(
|
|
14848
15127
|
checked ? values.filter((v) => v !== option.value) : [...values, option.value]
|
|
14849
15128
|
);
|
|
14850
15129
|
},
|
|
@@ -14855,7 +15134,10 @@ var Checkbox = (props) => {
|
|
|
14855
15134
|
"label",
|
|
14856
15135
|
{
|
|
14857
15136
|
htmlFor: option.value,
|
|
14858
|
-
className:
|
|
15137
|
+
className: cn(
|
|
15138
|
+
"text-sm leading-relaxed cursor-pointer select-none",
|
|
15139
|
+
"text-gray-800 dark:text-gray-200"
|
|
15140
|
+
),
|
|
14859
15141
|
children: option.label
|
|
14860
15142
|
}
|
|
14861
15143
|
)
|
|
@@ -14873,7 +15155,7 @@ var Checkbox = (props) => {
|
|
|
14873
15155
|
}
|
|
14874
15156
|
)
|
|
14875
15157
|
] });
|
|
14876
|
-
}
|
|
15158
|
+
}
|
|
14877
15159
|
var Checkbox_default = Checkbox;
|
|
14878
15160
|
var DateSelector = ({
|
|
14879
15161
|
placeholder,
|
|
@@ -14899,7 +15181,7 @@ var DateSelector = ({
|
|
|
14899
15181
|
...field,
|
|
14900
15182
|
...props,
|
|
14901
15183
|
placeholder,
|
|
14902
|
-
className:
|
|
15184
|
+
className: classNames16({
|
|
14903
15185
|
"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,
|
|
14904
15186
|
"border-eui-danger-500": meta.touched && meta.error,
|
|
14905
15187
|
"transition-all ease-in-out": true,
|
|
@@ -15008,7 +15290,7 @@ var ImageInput = forwardRef(
|
|
|
15008
15290
|
/* @__PURE__ */ jsxs(
|
|
15009
15291
|
"label",
|
|
15010
15292
|
{
|
|
15011
|
-
className:
|
|
15293
|
+
className: classNames16({
|
|
15012
15294
|
"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,
|
|
15013
15295
|
"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80": true,
|
|
15014
15296
|
"transition-all ease-in-out duration-150": true
|
|
@@ -15125,7 +15407,7 @@ function Radio({
|
|
|
15125
15407
|
return /* @__PURE__ */ jsxs(
|
|
15126
15408
|
"div",
|
|
15127
15409
|
{
|
|
15128
|
-
className:
|
|
15410
|
+
className: classNames16({
|
|
15129
15411
|
"flex flex-row gap-2 items-center mx-1 my-2": true
|
|
15130
15412
|
}),
|
|
15131
15413
|
children: [
|
|
@@ -15138,7 +15420,7 @@ function Radio({
|
|
|
15138
15420
|
...props,
|
|
15139
15421
|
value: option.value,
|
|
15140
15422
|
checked: field2.value === option.value,
|
|
15141
|
-
className:
|
|
15423
|
+
className: classNames16({
|
|
15142
15424
|
"appearance-none w-4 h-4 border-2 border-eui-primary-400 rounded-full cursor-pointer transition-all duration-300": true,
|
|
15143
15425
|
// base radio button styles
|
|
15144
15426
|
"checked:bg-eui-secondary-700 checked:border-eui-primary-400": field2.value === option.value
|
|
@@ -15150,7 +15432,7 @@ function Radio({
|
|
|
15150
15432
|
"label",
|
|
15151
15433
|
{
|
|
15152
15434
|
htmlFor: option.value,
|
|
15153
|
-
className:
|
|
15435
|
+
className: classNames16({
|
|
15154
15436
|
"eui-text-md text-sm": true
|
|
15155
15437
|
}),
|
|
15156
15438
|
children: option.label
|
|
@@ -15193,7 +15475,7 @@ function StarRatingInput({
|
|
|
15193
15475
|
return /* @__PURE__ */ jsxs(
|
|
15194
15476
|
"div",
|
|
15195
15477
|
{
|
|
15196
|
-
className:
|
|
15478
|
+
className: classNames16({
|
|
15197
15479
|
"inline-flex gap-[4px] text-[20px]": true,
|
|
15198
15480
|
[`${styles}`]: styles
|
|
15199
15481
|
}),
|
|
@@ -15206,7 +15488,7 @@ function StarRatingInput({
|
|
|
15206
15488
|
onClick: () => handleOnClick(index),
|
|
15207
15489
|
onMouseEnter: () => setHover(index),
|
|
15208
15490
|
onMouseLeave: () => setHover(null),
|
|
15209
|
-
className:
|
|
15491
|
+
className: classNames16({
|
|
15210
15492
|
"text-yellow-600": index <= (hover ?? rating - 1),
|
|
15211
15493
|
"text-gray-400": index > (hover ?? rating - 1)
|
|
15212
15494
|
}),
|
|
@@ -15250,7 +15532,7 @@ function Select({
|
|
|
15250
15532
|
{
|
|
15251
15533
|
as: "select",
|
|
15252
15534
|
...props,
|
|
15253
|
-
className:
|
|
15535
|
+
className: classNames16({
|
|
15254
15536
|
"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,
|
|
15255
15537
|
"border-eui-primary-400": !(meta.touched && meta.error),
|
|
15256
15538
|
"border-red-500": meta.touched && meta.error,
|
|
@@ -15302,7 +15584,7 @@ function Switch({
|
|
|
15302
15584
|
"div",
|
|
15303
15585
|
{
|
|
15304
15586
|
onClick: () => helpers.setValue(!field.value),
|
|
15305
|
-
className:
|
|
15587
|
+
className: classNames16(
|
|
15306
15588
|
"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-eui-dark-100",
|
|
15307
15589
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
15308
15590
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white",
|
|
@@ -15359,7 +15641,7 @@ function Tags({
|
|
|
15359
15641
|
/* @__PURE__ */ jsxs(
|
|
15360
15642
|
"div",
|
|
15361
15643
|
{
|
|
15362
|
-
className:
|
|
15644
|
+
className: classNames16(
|
|
15363
15645
|
"border rounded-sm flex flex-wrap items-center gap-2 px-2 pt-2 pb-6 min-h-[3rem]",
|
|
15364
15646
|
{
|
|
15365
15647
|
"bg-eui-primary-300/10 eui-text-md": true,
|
|
@@ -15407,7 +15689,7 @@ function Tags({
|
|
|
15407
15689
|
InputLabel_default,
|
|
15408
15690
|
{
|
|
15409
15691
|
text: placeholder,
|
|
15410
|
-
styles:
|
|
15692
|
+
styles: classNames16(
|
|
15411
15693
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
15412
15694
|
input.length > 0 || field.value.length > 0 ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
15413
15695
|
)
|
|
@@ -15432,7 +15714,7 @@ function Tags({
|
|
|
15432
15714
|
var Tags_default = Tags;
|
|
15433
15715
|
function TextArea({
|
|
15434
15716
|
placeholder,
|
|
15435
|
-
limit,
|
|
15717
|
+
limit = 1e3,
|
|
15436
15718
|
styles,
|
|
15437
15719
|
shape,
|
|
15438
15720
|
...props
|
|
@@ -15448,7 +15730,7 @@ function TextArea({
|
|
|
15448
15730
|
as: "textarea",
|
|
15449
15731
|
...field,
|
|
15450
15732
|
...props,
|
|
15451
|
-
className:
|
|
15733
|
+
className: classNames16({
|
|
15452
15734
|
"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,
|
|
15453
15735
|
"transition-all ease-in-out": true,
|
|
15454
15736
|
"border-eui-primary-400 focus:border-eui-secondary-500": !(meta.touched && meta.error),
|
|
@@ -15462,7 +15744,7 @@ function TextArea({
|
|
|
15462
15744
|
InputLabel_default,
|
|
15463
15745
|
{
|
|
15464
15746
|
text: placeholder,
|
|
15465
|
-
styles:
|
|
15747
|
+
styles: classNames16(
|
|
15466
15748
|
"absolute left-2 transition-all pointer-events-none text-eui-dark-200",
|
|
15467
15749
|
field.value ? "top-[2px] text-[13.5px]" : "top-3 text-base"
|
|
15468
15750
|
)
|
|
@@ -15493,7 +15775,7 @@ function ContentArea({
|
|
|
15493
15775
|
return /* @__PURE__ */ jsx(
|
|
15494
15776
|
"div",
|
|
15495
15777
|
{
|
|
15496
|
-
className:
|
|
15778
|
+
className: classNames16({
|
|
15497
15779
|
"min-h-screen h-full w-full py-3 px-5": true,
|
|
15498
15780
|
"py-3 px-5": !enablePadding,
|
|
15499
15781
|
"py-3 px-5 lg:px-[150px]": enablePadding,
|
|
@@ -15509,7 +15791,7 @@ function FlexCol({ children, gap = 3, styles }) {
|
|
|
15509
15791
|
return /* @__PURE__ */ jsx(
|
|
15510
15792
|
"div",
|
|
15511
15793
|
{
|
|
15512
|
-
className:
|
|
15794
|
+
className: classNames16({
|
|
15513
15795
|
[`flex flex-col gap-${gap}`]: true,
|
|
15514
15796
|
[`${styles}`]: styles
|
|
15515
15797
|
}),
|
|
@@ -15522,7 +15804,7 @@ function FlexRow({ children, gap = 3, styles }) {
|
|
|
15522
15804
|
return /* @__PURE__ */ jsx(
|
|
15523
15805
|
"div",
|
|
15524
15806
|
{
|
|
15525
|
-
className:
|
|
15807
|
+
className: classNames16({
|
|
15526
15808
|
[`flex flex-row gap-${gap}`]: true,
|
|
15527
15809
|
[`${styles}`]: styles
|
|
15528
15810
|
}),
|
|
@@ -15541,7 +15823,7 @@ function Grid({ children, styles }) {
|
|
|
15541
15823
|
return /* @__PURE__ */ jsx(
|
|
15542
15824
|
"div",
|
|
15543
15825
|
{
|
|
15544
|
-
className:
|
|
15826
|
+
className: classNames16({
|
|
15545
15827
|
[`grid`]: true,
|
|
15546
15828
|
[`${styles}`]: styles
|
|
15547
15829
|
}),
|
|
@@ -15558,7 +15840,7 @@ var Layout = ({
|
|
|
15558
15840
|
return /* @__PURE__ */ jsx(
|
|
15559
15841
|
"div",
|
|
15560
15842
|
{
|
|
15561
|
-
className:
|
|
15843
|
+
className: classNames16({
|
|
15562
15844
|
// "flex h-full w-screen bg-gray-100 overflow-auto": true,
|
|
15563
15845
|
"flex bg-eui-light-600": true,
|
|
15564
15846
|
"flex-col": flexDirection === "vertical",
|
|
@@ -15577,7 +15859,7 @@ var Header = ({
|
|
|
15577
15859
|
return /* @__PURE__ */ jsx(
|
|
15578
15860
|
"div",
|
|
15579
15861
|
{
|
|
15580
|
-
className:
|
|
15862
|
+
className: classNames16({
|
|
15581
15863
|
static: position === "static",
|
|
15582
15864
|
fixed: position === "fixed",
|
|
15583
15865
|
sticky: position === "sticky",
|
|
@@ -15617,7 +15899,7 @@ var Content = ({
|
|
|
15617
15899
|
return /* @__PURE__ */ jsx(
|
|
15618
15900
|
"div",
|
|
15619
15901
|
{
|
|
15620
|
-
className:
|
|
15902
|
+
className: classNames16({
|
|
15621
15903
|
"w-full min-h-screen transition-all duration-200 eui-bg-sm": true,
|
|
15622
15904
|
"md:pl-[300px]": !overlayedSidebar && sidebarVisible && !isMobile,
|
|
15623
15905
|
// Shift when sidebar is open (desktop)
|
|
@@ -15633,7 +15915,7 @@ var Footer = ({ children, styles }) => {
|
|
|
15633
15915
|
return /* @__PURE__ */ jsx(
|
|
15634
15916
|
"div",
|
|
15635
15917
|
{
|
|
15636
|
-
className:
|
|
15918
|
+
className: classNames16({
|
|
15637
15919
|
"bottom-0 w-full h-fit": true,
|
|
15638
15920
|
"border-t border-eui-dark-500/40 dark:border-eui-secondary-800 eui-bg-md": !styles,
|
|
15639
15921
|
[`${styles}`]: styles
|
|
@@ -15721,7 +16003,7 @@ function MarkdownEditor({
|
|
|
15721
16003
|
const [field, meta, helpers] = useField(props);
|
|
15722
16004
|
const { theme } = useTheme_default();
|
|
15723
16005
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
15724
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
16006
|
+
/* @__PURE__ */ jsx("div", { className: classNames16(theme === "dark" ? "dark" : "", styles), children: /* @__PURE__ */ jsx(
|
|
15725
16007
|
MDXEditor,
|
|
15726
16008
|
{
|
|
15727
16009
|
markdown: field.value,
|
|
@@ -15816,7 +16098,7 @@ function MarkdownTOC({ title = "Table of Contents" }) {
|
|
|
15816
16098
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
15817
16099
|
"h2",
|
|
15818
16100
|
{
|
|
15819
|
-
className: "\n text-sm\n font-semibold\n uppercase\n tracking-wide\n text-gray-900\n dark:text-gray-100\n ",
|
|
16101
|
+
className: "\r\n text-sm\r\n font-semibold\r\n uppercase\r\n tracking-wide\r\n text-gray-900\r\n dark:text-gray-100\r\n ",
|
|
15820
16102
|
children: title
|
|
15821
16103
|
}
|
|
15822
16104
|
) }),
|
|
@@ -15824,7 +16106,7 @@ function MarkdownTOC({ title = "Table of Contents" }) {
|
|
|
15824
16106
|
"button",
|
|
15825
16107
|
{
|
|
15826
16108
|
onClick: () => scrollToHeading(heading.id),
|
|
15827
|
-
className:
|
|
16109
|
+
className: classNames16(
|
|
15828
16110
|
"block w-full text-left text-sm transition-all ease-in-out duration-150",
|
|
15829
16111
|
"hover:text-primary",
|
|
15830
16112
|
activeHeading === heading.id ? "text-primary font-semibold underline" : "text-gray-500 dark:text-gray-400"
|
|
@@ -15980,7 +16262,7 @@ function BreadcrumbItem({
|
|
|
15980
16262
|
{
|
|
15981
16263
|
href,
|
|
15982
16264
|
onClick,
|
|
15983
|
-
className:
|
|
16265
|
+
className: classNames16({
|
|
15984
16266
|
"text-lg font-semibold": true,
|
|
15985
16267
|
"text-gray-400 hover:text-gray-600 cursor-pointer": !active,
|
|
15986
16268
|
"text-eui-light-800": active,
|
|
@@ -16057,7 +16339,7 @@ var Breadcrumb = ({
|
|
|
16057
16339
|
index < resolvedData.length - 1 && /* @__PURE__ */ jsx(
|
|
16058
16340
|
"span",
|
|
16059
16341
|
{
|
|
16060
|
-
className:
|
|
16342
|
+
className: classNames16({
|
|
16061
16343
|
"text-lg font-semibold text-gray-500": true,
|
|
16062
16344
|
[`px-${gap}`]: gap
|
|
16063
16345
|
}),
|
|
@@ -16071,7 +16353,7 @@ var Breadcrumb = ({
|
|
|
16071
16353
|
return /* @__PURE__ */ jsx(
|
|
16072
16354
|
"div",
|
|
16073
16355
|
{
|
|
16074
|
-
className:
|
|
16356
|
+
className: classNames16({
|
|
16075
16357
|
"inline-flex": true,
|
|
16076
16358
|
[`${styles}`]: styles
|
|
16077
16359
|
}),
|
|
@@ -16101,7 +16383,7 @@ var Drawer = ({
|
|
|
16101
16383
|
{
|
|
16102
16384
|
show: visibility,
|
|
16103
16385
|
enter: "transform transition duration-200 ease-out",
|
|
16104
|
-
enterFrom:
|
|
16386
|
+
enterFrom: classNames16({
|
|
16105
16387
|
"-translate-x-full": side === "left",
|
|
16106
16388
|
"translate-x-full": side === "right",
|
|
16107
16389
|
"-translate-y-full": side === "top",
|
|
@@ -16110,7 +16392,7 @@ var Drawer = ({
|
|
|
16110
16392
|
enterTo: "translate-x-0 translate-y-0",
|
|
16111
16393
|
leave: "transform transition duration-200 ease-in",
|
|
16112
16394
|
leaveFrom: "translate-x-0 translate-y-0",
|
|
16113
|
-
leaveTo:
|
|
16395
|
+
leaveTo: classNames16({
|
|
16114
16396
|
"-translate-x-full": side === "left",
|
|
16115
16397
|
"translate-x-full": side === "right",
|
|
16116
16398
|
"-translate-y-full": side === "top",
|
|
@@ -16119,7 +16401,7 @@ var Drawer = ({
|
|
|
16119
16401
|
children: /* @__PURE__ */ jsx(
|
|
16120
16402
|
"div",
|
|
16121
16403
|
{
|
|
16122
|
-
className:
|
|
16404
|
+
className: classNames16(
|
|
16123
16405
|
"fixed shadow-lg z-50",
|
|
16124
16406
|
{
|
|
16125
16407
|
"h-full w-[300px]": isHorizontal,
|
|
@@ -16151,7 +16433,7 @@ function DrawerToggler({
|
|
|
16151
16433
|
return /* @__PURE__ */ jsx(
|
|
16152
16434
|
"div",
|
|
16153
16435
|
{
|
|
16154
|
-
className:
|
|
16436
|
+
className: classNames16({
|
|
16155
16437
|
"text-xl p-3 cursor-pointer": true,
|
|
16156
16438
|
"transition-all ease-in-out": true,
|
|
16157
16439
|
"text-eui-dark-500 dark:text-eui-secondary-600": !styles,
|
|
@@ -16199,7 +16481,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
16199
16481
|
childrenContent = /* @__PURE__ */ jsx(
|
|
16200
16482
|
"div",
|
|
16201
16483
|
{
|
|
16202
|
-
className:
|
|
16484
|
+
className: classNames16({
|
|
16203
16485
|
"grid w-full": true,
|
|
16204
16486
|
"grid-cols-1": isMobile,
|
|
16205
16487
|
"grid-cols-3": !isMobile,
|
|
@@ -16212,7 +16494,7 @@ function FooterNav({ data = [], styles }) {
|
|
|
16212
16494
|
return /* @__PURE__ */ jsx(
|
|
16213
16495
|
"div",
|
|
16214
16496
|
{
|
|
16215
|
-
className:
|
|
16497
|
+
className: classNames16({
|
|
16216
16498
|
[`${styles}`]: styles
|
|
16217
16499
|
}),
|
|
16218
16500
|
children: childrenContent
|
|
@@ -16253,7 +16535,7 @@ var FooterNavGroup = ({
|
|
|
16253
16535
|
/* @__PURE__ */ jsx(
|
|
16254
16536
|
"div",
|
|
16255
16537
|
{
|
|
16256
|
-
className:
|
|
16538
|
+
className: classNames16({
|
|
16257
16539
|
"": true,
|
|
16258
16540
|
"py-2 font-semibold eui-text-lg": !styles,
|
|
16259
16541
|
[`${styles}`]: styles
|
|
@@ -16298,7 +16580,7 @@ var FooterNavItem = ({
|
|
|
16298
16580
|
"div",
|
|
16299
16581
|
{
|
|
16300
16582
|
onClick: handleNavigation,
|
|
16301
|
-
className:
|
|
16583
|
+
className: classNames16({
|
|
16302
16584
|
"flex flex-row items-center gap-3 cursor-pointer p-1 w-full": true,
|
|
16303
16585
|
"transition-all duration-200 ease-in-out": true,
|
|
16304
16586
|
"text-sm eui-text-sm": !styles,
|
|
@@ -16327,7 +16609,7 @@ var FooterNavItemTitle = ({
|
|
|
16327
16609
|
return /* @__PURE__ */ jsx(
|
|
16328
16610
|
"div",
|
|
16329
16611
|
{
|
|
16330
|
-
className:
|
|
16612
|
+
className: classNames16({
|
|
16331
16613
|
"": true,
|
|
16332
16614
|
"py-2 font-thin eui-text-md": !styles,
|
|
16333
16615
|
[`${styles}`]: styles
|
|
@@ -16380,7 +16662,7 @@ function HeaderNav({ data = [], styles }) {
|
|
|
16380
16662
|
return /* @__PURE__ */ jsx(
|
|
16381
16663
|
"div",
|
|
16382
16664
|
{
|
|
16383
|
-
className:
|
|
16665
|
+
className: classNames16({
|
|
16384
16666
|
[`${styles}`]: styles
|
|
16385
16667
|
}),
|
|
16386
16668
|
children: childrenContent
|
|
@@ -16442,7 +16724,7 @@ var HeaderNavGroup = ({
|
|
|
16442
16724
|
/* @__PURE__ */ jsxs(
|
|
16443
16725
|
"div",
|
|
16444
16726
|
{
|
|
16445
|
-
className:
|
|
16727
|
+
className: classNames16({
|
|
16446
16728
|
"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full": true,
|
|
16447
16729
|
"transition-all duration-300 ease-in-out": true,
|
|
16448
16730
|
"eui-text-md bg-gradient-to-t from-eui-dark-500/10 dark:from-green-700/10": !styles,
|
|
@@ -16470,7 +16752,7 @@ var HeaderNavGroup = ({
|
|
|
16470
16752
|
children && /* @__PURE__ */ jsx(
|
|
16471
16753
|
BsChevronDown,
|
|
16472
16754
|
{
|
|
16473
|
-
className:
|
|
16755
|
+
className: classNames16({
|
|
16474
16756
|
"text-md": true,
|
|
16475
16757
|
"transition-all ease-in-out duration-300": true,
|
|
16476
16758
|
"rotate-180": !collapsed
|
|
@@ -16483,7 +16765,7 @@ var HeaderNavGroup = ({
|
|
|
16483
16765
|
!collapsed && children && /* @__PURE__ */ jsx(
|
|
16484
16766
|
"div",
|
|
16485
16767
|
{
|
|
16486
|
-
className:
|
|
16768
|
+
className: classNames16({
|
|
16487
16769
|
"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,
|
|
16488
16770
|
"transition-all duration-300 ease-in-out": true
|
|
16489
16771
|
}),
|
|
@@ -16513,7 +16795,7 @@ var HeaderNavItem = ({
|
|
|
16513
16795
|
"div",
|
|
16514
16796
|
{
|
|
16515
16797
|
onClick: handleNavigation,
|
|
16516
|
-
className:
|
|
16798
|
+
className: classNames16({
|
|
16517
16799
|
"flex flex-row items-center gap-3 cursor-pointer p-3 w-full": true,
|
|
16518
16800
|
"transition-all duration-200 ease-in-out": true,
|
|
16519
16801
|
"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,
|
|
@@ -16542,7 +16824,7 @@ var HeaderNavItemTitle = ({
|
|
|
16542
16824
|
return /* @__PURE__ */ jsx(
|
|
16543
16825
|
"div",
|
|
16544
16826
|
{
|
|
16545
|
-
className:
|
|
16827
|
+
className: classNames16({
|
|
16546
16828
|
"p-3 font-thin": true,
|
|
16547
16829
|
"eui-text-md": !styles,
|
|
16548
16830
|
[`${styles}`]: styles
|
|
@@ -16582,7 +16864,7 @@ var Link = ({
|
|
|
16582
16864
|
href: href || "#",
|
|
16583
16865
|
target: targets[target],
|
|
16584
16866
|
onClick: handleClick,
|
|
16585
|
-
className:
|
|
16867
|
+
className: classNames16({
|
|
16586
16868
|
[`${textVariants[variant]}`]: variant,
|
|
16587
16869
|
[`${decorations[decoration]}`]: decoration,
|
|
16588
16870
|
"font-bold": bold,
|
|
@@ -17047,7 +17329,7 @@ function Modal({
|
|
|
17047
17329
|
"div",
|
|
17048
17330
|
{
|
|
17049
17331
|
ref: modalRef,
|
|
17050
|
-
className:
|
|
17332
|
+
className: classNames16({
|
|
17051
17333
|
"eui-bg-md eui-shadow-lg border border-gray-700/80 w-fit h-fit": true,
|
|
17052
17334
|
[`${shapes[resolvedShape]}`]: true,
|
|
17053
17335
|
[`${styles}`]: styles
|
|
@@ -17058,7 +17340,7 @@ function Modal({
|
|
|
17058
17340
|
/* @__PURE__ */ jsx(
|
|
17059
17341
|
"div",
|
|
17060
17342
|
{
|
|
17061
|
-
className:
|
|
17343
|
+
className: classNames16({
|
|
17062
17344
|
"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast": true,
|
|
17063
17345
|
"hover:cursor-pointer hover:bg-eui-dark-500": true
|
|
17064
17346
|
}),
|
|
@@ -17145,7 +17427,7 @@ var GlowWrapper = ({
|
|
|
17145
17427
|
/* @__PURE__ */ jsx(
|
|
17146
17428
|
"span",
|
|
17147
17429
|
{
|
|
17148
|
-
className: "\n pointer-events-none absolute inset-0 opacity-0 \n group-hover:opacity-100 transition-opacity duration-300\n ",
|
|
17430
|
+
className: "\r\n pointer-events-none absolute inset-0 opacity-0 \r\n group-hover:opacity-100 transition-opacity duration-300\r\n ",
|
|
17149
17431
|
style: { background: "var(--glow-bg)" }
|
|
17150
17432
|
}
|
|
17151
17433
|
),
|
|
@@ -17164,7 +17446,7 @@ function ShowMore({ text, limit }) {
|
|
|
17164
17446
|
/* @__PURE__ */ jsx(
|
|
17165
17447
|
"div",
|
|
17166
17448
|
{
|
|
17167
|
-
className:
|
|
17449
|
+
className: classNames16({
|
|
17168
17450
|
"text-blue-300 px-1 pb-1 mt-1": true,
|
|
17169
17451
|
"bg-slate-900/70": !showMore,
|
|
17170
17452
|
"bg-gradient-to-t from-slate-900/50 to-transparent": showMore
|
|
@@ -17176,6 +17458,436 @@ function ShowMore({ text, limit }) {
|
|
|
17176
17458
|
] });
|
|
17177
17459
|
}
|
|
17178
17460
|
var ShowMore_default = ShowMore;
|
|
17461
|
+
function CommentComposer({
|
|
17462
|
+
placeholder = "Add a comment...",
|
|
17463
|
+
submitLabel = "Comment",
|
|
17464
|
+
onSubmit
|
|
17465
|
+
}) {
|
|
17466
|
+
const [value, setValue] = useState("");
|
|
17467
|
+
const [focused, setFocused] = useState(false);
|
|
17468
|
+
async function handleSubmit() {
|
|
17469
|
+
if (!value.trim()) return;
|
|
17470
|
+
await onSubmit?.(value);
|
|
17471
|
+
setValue("");
|
|
17472
|
+
setFocused(false);
|
|
17473
|
+
}
|
|
17474
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex gap-4", children: [
|
|
17475
|
+
/* @__PURE__ */ jsx(Avatar, { size: "md" }),
|
|
17476
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 flex flex-col gap-3", children: [
|
|
17477
|
+
/* @__PURE__ */ jsx(
|
|
17478
|
+
"textarea",
|
|
17479
|
+
{
|
|
17480
|
+
value,
|
|
17481
|
+
placeholder,
|
|
17482
|
+
onFocus: () => setFocused(true),
|
|
17483
|
+
onChange: (e) => setValue(e.target.value),
|
|
17484
|
+
className: "w-full min-h-[48px] bg-transparent border-b border-gray-300 dark:border-neutral-700 outline-none resize-none pb-2 text-sm"
|
|
17485
|
+
}
|
|
17486
|
+
),
|
|
17487
|
+
(focused || value.length > 0) && /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
17488
|
+
/* @__PURE__ */ jsx(
|
|
17489
|
+
Button_default,
|
|
17490
|
+
{
|
|
17491
|
+
variant: "secondary",
|
|
17492
|
+
appearance: "ghost",
|
|
17493
|
+
text: "Cancel",
|
|
17494
|
+
onClick: () => {
|
|
17495
|
+
setValue("");
|
|
17496
|
+
setFocused(false);
|
|
17497
|
+
}
|
|
17498
|
+
}
|
|
17499
|
+
),
|
|
17500
|
+
/* @__PURE__ */ jsx(
|
|
17501
|
+
Button_default,
|
|
17502
|
+
{
|
|
17503
|
+
variant: "primary",
|
|
17504
|
+
text: submitLabel,
|
|
17505
|
+
onClick: handleSubmit
|
|
17506
|
+
}
|
|
17507
|
+
)
|
|
17508
|
+
] })
|
|
17509
|
+
] })
|
|
17510
|
+
] });
|
|
17511
|
+
}
|
|
17512
|
+
var CommentComposer_default = CommentComposer;
|
|
17513
|
+
|
|
17514
|
+
// src/compositions/comment-thread/utils/formatCommentDate.ts
|
|
17515
|
+
function formatCommentDate(date) {
|
|
17516
|
+
const now = /* @__PURE__ */ new Date();
|
|
17517
|
+
const target = new Date(date);
|
|
17518
|
+
const seconds = Math.floor((now.getTime() - target.getTime()) / 1e3);
|
|
17519
|
+
const intervals = [
|
|
17520
|
+
{ label: "year", seconds: 31536e3 },
|
|
17521
|
+
{ label: "month", seconds: 2592e3 },
|
|
17522
|
+
{ label: "day", seconds: 86400 },
|
|
17523
|
+
{ label: "hour", seconds: 3600 },
|
|
17524
|
+
{ label: "minute", seconds: 60 }
|
|
17525
|
+
];
|
|
17526
|
+
for (const interval of intervals) {
|
|
17527
|
+
const count = Math.floor(seconds / interval.seconds);
|
|
17528
|
+
if (count >= 1) {
|
|
17529
|
+
return `${count} ${interval.label}${count > 1 ? "s" : ""} ago`;
|
|
17530
|
+
}
|
|
17531
|
+
}
|
|
17532
|
+
return "Just now";
|
|
17533
|
+
}
|
|
17534
|
+
function CommentHeader({
|
|
17535
|
+
avatar,
|
|
17536
|
+
username,
|
|
17537
|
+
createdAt,
|
|
17538
|
+
edited
|
|
17539
|
+
}) {
|
|
17540
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 min-w-0", children: [
|
|
17541
|
+
/* @__PURE__ */ jsx(Avatar, { src: avatar, size: "sm" }),
|
|
17542
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm flex-wrap", children: [
|
|
17543
|
+
/* @__PURE__ */ jsxs("span", { className: "font-semibold text-gray-900 dark:text-gray-100", children: [
|
|
17544
|
+
"@",
|
|
17545
|
+
username
|
|
17546
|
+
] }),
|
|
17547
|
+
/* @__PURE__ */ jsx("span", { className: "text-gray-500 dark:text-gray-400", children: formatCommentDate(createdAt) }),
|
|
17548
|
+
edited && /* @__PURE__ */ jsx("span", { className: "text-xs text-gray-400", children: "edited" })
|
|
17549
|
+
] })
|
|
17550
|
+
] });
|
|
17551
|
+
}
|
|
17552
|
+
var CommentHeader_default = CommentHeader;
|
|
17553
|
+
function CommentContent({ content }) {
|
|
17554
|
+
return /* @__PURE__ */ jsx("div", { className: "text-sm leading-relaxed whitespace-pre-wrap text-gray-700 dark:text-gray-300", children: content });
|
|
17555
|
+
}
|
|
17556
|
+
var CommentContent_default = CommentContent;
|
|
17557
|
+
function CommentActions({
|
|
17558
|
+
likes = 0,
|
|
17559
|
+
dislikes = 0,
|
|
17560
|
+
onLike,
|
|
17561
|
+
onDislike,
|
|
17562
|
+
onReply
|
|
17563
|
+
}) {
|
|
17564
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-5 text-sm text-gray-500 dark:text-gray-400", children: [
|
|
17565
|
+
/* @__PURE__ */ jsxs(
|
|
17566
|
+
"button",
|
|
17567
|
+
{
|
|
17568
|
+
onClick: onLike,
|
|
17569
|
+
className: "inline-flex items-center gap-1 hover:text-gray-900 dark:hover:text-gray-100 transition-colors",
|
|
17570
|
+
children: [
|
|
17571
|
+
/* @__PURE__ */ jsx(BiLike, { size: 18 }),
|
|
17572
|
+
/* @__PURE__ */ jsx("span", { children: likes })
|
|
17573
|
+
]
|
|
17574
|
+
}
|
|
17575
|
+
),
|
|
17576
|
+
/* @__PURE__ */ jsxs(
|
|
17577
|
+
"button",
|
|
17578
|
+
{
|
|
17579
|
+
onClick: onDislike,
|
|
17580
|
+
className: "inline-flex items-center gap-1 hover:text-gray-900 dark:hover:text-gray-100 transition-colors",
|
|
17581
|
+
children: [
|
|
17582
|
+
/* @__PURE__ */ jsx(BiDislike, { size: 18 }),
|
|
17583
|
+
/* @__PURE__ */ jsx("span", { children: dislikes })
|
|
17584
|
+
]
|
|
17585
|
+
}
|
|
17586
|
+
),
|
|
17587
|
+
/* @__PURE__ */ jsx(
|
|
17588
|
+
"button",
|
|
17589
|
+
{
|
|
17590
|
+
onClick: onReply,
|
|
17591
|
+
className: "font-medium hover:text-gray-900 dark:hover:text-gray-100 transition-colors",
|
|
17592
|
+
children: "Reply"
|
|
17593
|
+
}
|
|
17594
|
+
)
|
|
17595
|
+
] });
|
|
17596
|
+
}
|
|
17597
|
+
var CommentActions_default = CommentActions;
|
|
17598
|
+
function CommentMenu({
|
|
17599
|
+
canEdit,
|
|
17600
|
+
canDelete,
|
|
17601
|
+
canReport,
|
|
17602
|
+
onEdit,
|
|
17603
|
+
onDelete,
|
|
17604
|
+
onReport
|
|
17605
|
+
}) {
|
|
17606
|
+
const [open, setOpen] = useState(false);
|
|
17607
|
+
const ref = useRef(null);
|
|
17608
|
+
useEffect(() => {
|
|
17609
|
+
function handleOutsideClick(event) {
|
|
17610
|
+
if (ref.current && !ref.current.contains(event.target)) {
|
|
17611
|
+
setOpen(false);
|
|
17612
|
+
}
|
|
17613
|
+
}
|
|
17614
|
+
document.addEventListener("mousedown", handleOutsideClick);
|
|
17615
|
+
return () => document.removeEventListener("mousedown", handleOutsideClick);
|
|
17616
|
+
}, []);
|
|
17617
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: "relative", children: [
|
|
17618
|
+
/* @__PURE__ */ jsx(
|
|
17619
|
+
"button",
|
|
17620
|
+
{
|
|
17621
|
+
onClick: () => setOpen((prev) => !prev),
|
|
17622
|
+
className: "text-gray-500 hover:text-gray-900 dark:hover:text-gray-100 transition-colors",
|
|
17623
|
+
children: /* @__PURE__ */ jsx(BiDotsVerticalRounded, { size: 18 })
|
|
17624
|
+
}
|
|
17625
|
+
),
|
|
17626
|
+
open && /* @__PURE__ */ jsxs(
|
|
17627
|
+
"div",
|
|
17628
|
+
{
|
|
17629
|
+
className: "\r\n absolute\r\n right-0\r\n top-full\r\n mt-2\r\n min-w-[160px]\r\n overflow-hidden\r\n rounded-xl\r\n border\r\n border-gray-200\r\n dark:border-neutral-800\r\n bg-white\r\n dark:bg-neutral-900\r\n shadow-xl\r\n z-50\r\n ",
|
|
17630
|
+
children: [
|
|
17631
|
+
canEdit && /* @__PURE__ */ jsxs(
|
|
17632
|
+
"button",
|
|
17633
|
+
{
|
|
17634
|
+
onClick: () => {
|
|
17635
|
+
setOpen(false);
|
|
17636
|
+
onEdit?.();
|
|
17637
|
+
},
|
|
17638
|
+
className: "w-full flex items-center gap-2 px-4 py-3 text-sm hover:bg-gray-100 dark:hover:bg-neutral-800",
|
|
17639
|
+
children: [
|
|
17640
|
+
/* @__PURE__ */ jsx(BiEdit, {}),
|
|
17641
|
+
"Edit"
|
|
17642
|
+
]
|
|
17643
|
+
}
|
|
17644
|
+
),
|
|
17645
|
+
canDelete && /* @__PURE__ */ jsxs(
|
|
17646
|
+
"button",
|
|
17647
|
+
{
|
|
17648
|
+
onClick: () => {
|
|
17649
|
+
setOpen(false);
|
|
17650
|
+
onDelete?.();
|
|
17651
|
+
},
|
|
17652
|
+
className: "w-full flex items-center gap-2 px-4 py-3 text-sm hover:bg-gray-100 dark:hover:bg-neutral-800",
|
|
17653
|
+
children: [
|
|
17654
|
+
/* @__PURE__ */ jsx(BiTrash, {}),
|
|
17655
|
+
"Delete"
|
|
17656
|
+
]
|
|
17657
|
+
}
|
|
17658
|
+
),
|
|
17659
|
+
canReport && /* @__PURE__ */ jsxs(
|
|
17660
|
+
"button",
|
|
17661
|
+
{
|
|
17662
|
+
onClick: () => {
|
|
17663
|
+
setOpen(false);
|
|
17664
|
+
onReport?.();
|
|
17665
|
+
},
|
|
17666
|
+
className: "w-full flex items-center gap-2 px-4 py-3 text-sm hover:bg-gray-100 dark:hover:bg-neutral-800",
|
|
17667
|
+
children: [
|
|
17668
|
+
/* @__PURE__ */ jsx(BiFlag, {}),
|
|
17669
|
+
"Report"
|
|
17670
|
+
]
|
|
17671
|
+
}
|
|
17672
|
+
)
|
|
17673
|
+
]
|
|
17674
|
+
}
|
|
17675
|
+
)
|
|
17676
|
+
] });
|
|
17677
|
+
}
|
|
17678
|
+
var CommentMenu_default = CommentMenu;
|
|
17679
|
+
function CommentRepliesToggle({
|
|
17680
|
+
repliesCount,
|
|
17681
|
+
collapsed,
|
|
17682
|
+
onToggle
|
|
17683
|
+
}) {
|
|
17684
|
+
return /* @__PURE__ */ jsxs(
|
|
17685
|
+
"button",
|
|
17686
|
+
{
|
|
17687
|
+
onClick: onToggle,
|
|
17688
|
+
className: "inline-flex items-center gap-1 text-sm font-medium text-blue-500 hover:text-blue-400 transition-colors w-fit",
|
|
17689
|
+
children: [
|
|
17690
|
+
collapsed ? /* @__PURE__ */ jsx(BiChevronDown, { size: 18 }) : /* @__PURE__ */ jsx(BiChevronUp, { size: 18 }),
|
|
17691
|
+
/* @__PURE__ */ jsx("span", { children: collapsed ? `View ${repliesCount} repl${repliesCount > 1 ? "ies" : "y"}` : "Hide replies" })
|
|
17692
|
+
]
|
|
17693
|
+
}
|
|
17694
|
+
);
|
|
17695
|
+
}
|
|
17696
|
+
var CommentRepliesToggle_default = CommentRepliesToggle;
|
|
17697
|
+
function ReplyComposer({ username, onSubmit }) {
|
|
17698
|
+
return /* @__PURE__ */ jsx("div", { className: "pt-2", children: /* @__PURE__ */ jsx(
|
|
17699
|
+
CommentComposer_default,
|
|
17700
|
+
{
|
|
17701
|
+
placeholder: `Reply to @${username}`,
|
|
17702
|
+
submitLabel: "Reply",
|
|
17703
|
+
onSubmit
|
|
17704
|
+
}
|
|
17705
|
+
) });
|
|
17706
|
+
}
|
|
17707
|
+
var ReplyComposer_default = ReplyComposer;
|
|
17708
|
+
|
|
17709
|
+
// src/compositions/comment-thread/constants/comment.constants.ts
|
|
17710
|
+
var MAX_COMMENT_DEPTH = 5;
|
|
17711
|
+
var COMMENT_INDENTATION = 0;
|
|
17712
|
+
function CommentItem({
|
|
17713
|
+
comment,
|
|
17714
|
+
depth = 0,
|
|
17715
|
+
onLike,
|
|
17716
|
+
onDislike,
|
|
17717
|
+
onReply,
|
|
17718
|
+
onEdit,
|
|
17719
|
+
onDelete,
|
|
17720
|
+
onReport
|
|
17721
|
+
}) {
|
|
17722
|
+
const [collapsed, setCollapsed] = useState(false);
|
|
17723
|
+
const [isReplying, setIsReplying] = useState(false);
|
|
17724
|
+
const resolvedDepth = Math.min(depth, MAX_COMMENT_DEPTH);
|
|
17725
|
+
async function handleReply(content) {
|
|
17726
|
+
console.log(content);
|
|
17727
|
+
setIsReplying(false);
|
|
17728
|
+
}
|
|
17729
|
+
return /* @__PURE__ */ jsxs(
|
|
17730
|
+
"div",
|
|
17731
|
+
{
|
|
17732
|
+
className: "flex flex-col gap-4",
|
|
17733
|
+
style: {
|
|
17734
|
+
paddingLeft: `${resolvedDepth * COMMENT_INDENTATION}px`
|
|
17735
|
+
},
|
|
17736
|
+
children: [
|
|
17737
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-3", children: /* @__PURE__ */ jsxs("div", { className: "flex-1 flex flex-col gap-3 min-w-0", children: [
|
|
17738
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
17739
|
+
/* @__PURE__ */ jsx(
|
|
17740
|
+
CommentHeader_default,
|
|
17741
|
+
{
|
|
17742
|
+
avatar: comment.author.avatar,
|
|
17743
|
+
username: comment.author.username,
|
|
17744
|
+
createdAt: comment.createdAt,
|
|
17745
|
+
edited: comment.edited
|
|
17746
|
+
}
|
|
17747
|
+
),
|
|
17748
|
+
/* @__PURE__ */ jsx(
|
|
17749
|
+
CommentMenu_default,
|
|
17750
|
+
{
|
|
17751
|
+
canEdit: comment.permissions?.canEdit,
|
|
17752
|
+
canDelete: comment.permissions?.canDelete,
|
|
17753
|
+
canReport: comment.permissions?.canReport,
|
|
17754
|
+
onEdit: () => onEdit?.(comment),
|
|
17755
|
+
onDelete: () => onDelete?.(comment),
|
|
17756
|
+
onReport: () => onReport?.(comment)
|
|
17757
|
+
}
|
|
17758
|
+
)
|
|
17759
|
+
] }),
|
|
17760
|
+
/* @__PURE__ */ jsx(CommentContent_default, { content: comment.content }),
|
|
17761
|
+
/* @__PURE__ */ jsx(
|
|
17762
|
+
CommentActions_default,
|
|
17763
|
+
{
|
|
17764
|
+
likes: comment.likes,
|
|
17765
|
+
dislikes: comment.dislikes,
|
|
17766
|
+
onLike: () => onLike?.(comment),
|
|
17767
|
+
onDislike: () => onDislike?.(comment),
|
|
17768
|
+
onReply: () => {
|
|
17769
|
+
setIsReplying((prev) => !prev);
|
|
17770
|
+
onReply?.(comment);
|
|
17771
|
+
}
|
|
17772
|
+
}
|
|
17773
|
+
),
|
|
17774
|
+
isReplying && /* @__PURE__ */ jsx(
|
|
17775
|
+
ReplyComposer_default,
|
|
17776
|
+
{
|
|
17777
|
+
username: comment.author.username,
|
|
17778
|
+
onSubmit: handleReply
|
|
17779
|
+
}
|
|
17780
|
+
),
|
|
17781
|
+
!!comment.replies?.length && /* @__PURE__ */ jsx(
|
|
17782
|
+
CommentRepliesToggle_default,
|
|
17783
|
+
{
|
|
17784
|
+
collapsed,
|
|
17785
|
+
repliesCount: comment.replies.length,
|
|
17786
|
+
onToggle: () => setCollapsed((prev) => !prev)
|
|
17787
|
+
}
|
|
17788
|
+
)
|
|
17789
|
+
] }) }),
|
|
17790
|
+
!collapsed && !!comment.replies?.length && /* @__PURE__ */ jsx(
|
|
17791
|
+
"div",
|
|
17792
|
+
{
|
|
17793
|
+
className: cn(
|
|
17794
|
+
"border-l border-gray-200 dark:border-neutral-800",
|
|
17795
|
+
"pl-4 ml-5"
|
|
17796
|
+
),
|
|
17797
|
+
children: /* @__PURE__ */ jsx(
|
|
17798
|
+
CommentList_default,
|
|
17799
|
+
{
|
|
17800
|
+
comments: comment.replies,
|
|
17801
|
+
depth: depth + 1,
|
|
17802
|
+
onLike,
|
|
17803
|
+
onDislike,
|
|
17804
|
+
onReply,
|
|
17805
|
+
onEdit,
|
|
17806
|
+
onDelete,
|
|
17807
|
+
onReport
|
|
17808
|
+
}
|
|
17809
|
+
)
|
|
17810
|
+
}
|
|
17811
|
+
)
|
|
17812
|
+
]
|
|
17813
|
+
}
|
|
17814
|
+
);
|
|
17815
|
+
}
|
|
17816
|
+
var CommentItem_default = CommentItem;
|
|
17817
|
+
function CommentList({
|
|
17818
|
+
comments,
|
|
17819
|
+
depth = 0,
|
|
17820
|
+
onLike,
|
|
17821
|
+
onDislike,
|
|
17822
|
+
onReply,
|
|
17823
|
+
onEdit,
|
|
17824
|
+
onDelete,
|
|
17825
|
+
onReport
|
|
17826
|
+
}) {
|
|
17827
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-8", children: comments.map((comment) => /* @__PURE__ */ jsx(
|
|
17828
|
+
CommentItem_default,
|
|
17829
|
+
{
|
|
17830
|
+
comment,
|
|
17831
|
+
depth,
|
|
17832
|
+
onLike,
|
|
17833
|
+
onDislike,
|
|
17834
|
+
onReply,
|
|
17835
|
+
onEdit,
|
|
17836
|
+
onDelete,
|
|
17837
|
+
onReport
|
|
17838
|
+
},
|
|
17839
|
+
comment.id
|
|
17840
|
+
)) });
|
|
17841
|
+
}
|
|
17842
|
+
var CommentList_default = CommentList;
|
|
17843
|
+
var CommentThreadContext = createContext(null);
|
|
17844
|
+
function useCommentThread(initialComments) {
|
|
17845
|
+
const [comments, setComments] = useState(initialComments);
|
|
17846
|
+
return {
|
|
17847
|
+
comments,
|
|
17848
|
+
setComments
|
|
17849
|
+
};
|
|
17850
|
+
}
|
|
17851
|
+
function CommentThread({
|
|
17852
|
+
comments: initialComments = [],
|
|
17853
|
+
onCommentCreate,
|
|
17854
|
+
onLike,
|
|
17855
|
+
onDislike,
|
|
17856
|
+
onReply,
|
|
17857
|
+
onEdit,
|
|
17858
|
+
onDelete,
|
|
17859
|
+
onReport
|
|
17860
|
+
}) {
|
|
17861
|
+
const { comments, setComments } = useCommentThread(initialComments);
|
|
17862
|
+
async function handleCreateComment(content) {
|
|
17863
|
+
await onCommentCreate?.(content);
|
|
17864
|
+
}
|
|
17865
|
+
return /* @__PURE__ */ jsx(
|
|
17866
|
+
CommentThreadContext.Provider,
|
|
17867
|
+
{
|
|
17868
|
+
value: {
|
|
17869
|
+
comments,
|
|
17870
|
+
setComments
|
|
17871
|
+
},
|
|
17872
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8 w-full", children: [
|
|
17873
|
+
/* @__PURE__ */ jsx(CommentComposer_default, { onSubmit: handleCreateComment }),
|
|
17874
|
+
/* @__PURE__ */ jsx(
|
|
17875
|
+
CommentList_default,
|
|
17876
|
+
{
|
|
17877
|
+
comments,
|
|
17878
|
+
onLike,
|
|
17879
|
+
onDislike,
|
|
17880
|
+
onReply,
|
|
17881
|
+
onEdit,
|
|
17882
|
+
onDelete,
|
|
17883
|
+
onReport
|
|
17884
|
+
}
|
|
17885
|
+
)
|
|
17886
|
+
] })
|
|
17887
|
+
}
|
|
17888
|
+
);
|
|
17889
|
+
}
|
|
17890
|
+
var CommentThread_default = CommentThread;
|
|
17179
17891
|
function DataViewTable({
|
|
17180
17892
|
title,
|
|
17181
17893
|
columns,
|
|
@@ -17319,6 +18031,80 @@ function Slider({ isLoading, isSuccess, coverArt, screenshots }) {
|
|
|
17319
18031
|
] }) });
|
|
17320
18032
|
}
|
|
17321
18033
|
var Slider_default = Slider;
|
|
18034
|
+
function StarRatingDistribution({
|
|
18035
|
+
numericRating = true,
|
|
18036
|
+
progressBarsRating = true,
|
|
18037
|
+
ratingDistribution = [
|
|
18038
|
+
{ star: 5, count: 0 },
|
|
18039
|
+
{ star: 4, count: 0 },
|
|
18040
|
+
{ star: 3, count: 0 },
|
|
18041
|
+
{ star: 2, count: 0 },
|
|
18042
|
+
{ star: 1, count: 0 }
|
|
18043
|
+
],
|
|
18044
|
+
variant = "warning",
|
|
18045
|
+
appearance = "solid",
|
|
18046
|
+
shape = "roundedSquare",
|
|
18047
|
+
size = "sm",
|
|
18048
|
+
animated = true,
|
|
18049
|
+
striped = false,
|
|
18050
|
+
showReviewCount = true,
|
|
18051
|
+
className,
|
|
18052
|
+
...rest
|
|
18053
|
+
}) {
|
|
18054
|
+
const totalReviews = ratingDistribution.reduce(
|
|
18055
|
+
(acc, item) => acc + item.count,
|
|
18056
|
+
0
|
|
18057
|
+
);
|
|
18058
|
+
const averageRating = totalReviews > 0 ? ratingDistribution.reduce(
|
|
18059
|
+
(acc, item) => acc + item.star * item.count,
|
|
18060
|
+
0
|
|
18061
|
+
) / totalReviews : 0;
|
|
18062
|
+
const ratingDistributionWithPercentage = ratingDistribution.map((item) => ({
|
|
18063
|
+
star: item.star,
|
|
18064
|
+
percentage: totalReviews > 0 ? item.count / totalReviews * 100 : 0
|
|
18065
|
+
}));
|
|
18066
|
+
return /* @__PURE__ */ jsxs(
|
|
18067
|
+
"div",
|
|
18068
|
+
{
|
|
18069
|
+
...rest,
|
|
18070
|
+
className: cn(
|
|
18071
|
+
"flex flex-col md:flex-row items-center gap-8",
|
|
18072
|
+
"p-6",
|
|
18073
|
+
"bg-white dark:bg-neutral-900",
|
|
18074
|
+
"border border-gray-200 dark:border-neutral-800",
|
|
18075
|
+
"rounded-2xl shadow-sm",
|
|
18076
|
+
className
|
|
18077
|
+
),
|
|
18078
|
+
children: [
|
|
18079
|
+
numericRating && /* @__PURE__ */ jsx(
|
|
18080
|
+
NumericRating_default,
|
|
18081
|
+
{
|
|
18082
|
+
rating: averageRating,
|
|
18083
|
+
totalReviews,
|
|
18084
|
+
size: "md",
|
|
18085
|
+
showStars: true,
|
|
18086
|
+
showReviewCount
|
|
18087
|
+
}
|
|
18088
|
+
),
|
|
18089
|
+
progressBarsRating && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-3 w-full min-w-[260px]", children: ratingDistributionWithPercentage.map((item) => /* @__PURE__ */ jsx(
|
|
18090
|
+
ProgressBarRating_default,
|
|
18091
|
+
{
|
|
18092
|
+
star: item.star,
|
|
18093
|
+
percentage: item.percentage,
|
|
18094
|
+
variant,
|
|
18095
|
+
appearance,
|
|
18096
|
+
shape,
|
|
18097
|
+
size,
|
|
18098
|
+
animated,
|
|
18099
|
+
striped
|
|
18100
|
+
},
|
|
18101
|
+
item.star
|
|
18102
|
+
)) })
|
|
18103
|
+
]
|
|
18104
|
+
}
|
|
18105
|
+
);
|
|
18106
|
+
}
|
|
18107
|
+
var StarRatingDistribution_default = StarRatingDistribution;
|
|
17322
18108
|
function WorldMapCountryTable({
|
|
17323
18109
|
title = "Country Breakdown",
|
|
17324
18110
|
data
|
|
@@ -17415,7 +18201,7 @@ function BoxNavItem({ icon, name, to, selected, onClick }) {
|
|
|
17415
18201
|
type: "button",
|
|
17416
18202
|
onClick: handleClick,
|
|
17417
18203
|
"aria-current": selected ? "page" : void 0,
|
|
17418
|
-
className:
|
|
18204
|
+
className: classNames16(
|
|
17419
18205
|
"w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center",
|
|
17420
18206
|
"hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer",
|
|
17421
18207
|
selected ? "text-eui-secondary-700 bg-gray-300/10" : "text-gray-400",
|
|
@@ -17805,7 +18591,7 @@ function GenericLayout({
|
|
|
17805
18591
|
return /* @__PURE__ */ jsx(ThemeProvider, { defaultTheme, children: /* @__PURE__ */ jsx(
|
|
17806
18592
|
"div",
|
|
17807
18593
|
{
|
|
17808
|
-
className:
|
|
18594
|
+
className: classNames16({
|
|
17809
18595
|
[`${styles}`]: styles
|
|
17810
18596
|
}),
|
|
17811
18597
|
children
|
|
@@ -17854,7 +18640,7 @@ function SidemenuLayout({ data, children }) {
|
|
|
17854
18640
|
return /* @__PURE__ */ jsx(DefaultLayout_default, { children: /* @__PURE__ */ jsxs(
|
|
17855
18641
|
"div",
|
|
17856
18642
|
{
|
|
17857
|
-
className:
|
|
18643
|
+
className: classNames16({
|
|
17858
18644
|
grid: true,
|
|
17859
18645
|
"grid-cols-7 gap-10": !isMobile,
|
|
17860
18646
|
"grid-cols-1 gap-": isMobile
|
|
@@ -17913,6 +18699,6 @@ function ScrollToTop({
|
|
|
17913
18699
|
}
|
|
17914
18700
|
var ScrollToTop_default = ScrollToTop;
|
|
17915
18701
|
|
|
17916
|
-
export { Accordion_default as Accordion, AsyncComponentWrapper_default as AsyncComponentWrapper, Avatar, Backdrop_default as Backdrop, Badge, BarChart_default as BarChart, Block_default as Block, BlockGroup_default as BlockGroup, BoxNav_default as BoxNav, BoxNavItem_default as BoxNavItem, Brand_default as Brand, Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, Button, Caption, Card_default as Card, CardContent_default as CardContent, CardFooter_default as CardFooter, CardHeader_default as CardHeader, Chapter, Checkbox_default as Checkbox, Chip, CloudinaryImage_default as CloudinaryImage, CloudinaryProvider, CloudinaryVideo_default as CloudinaryVideo, Code, Content, ContentArea_default as ContentArea, DataView, DataViewTable_default as DataViewTable, DateSelector_default as DateSelector, DefaultLayout_default as DefaultLayout, Display, DocumentationPanel_default as DocumentationPanel, Drawer, DrawerToggler_default as DrawerToggler, EUIDevLayout_default as EUIDevLayout, EUIProvider, Flag, Flex, FlexCol_default as FlexCol, FlexRow_default as FlexRow, Footer, FooterNav_default as FooterNav, FooterNavGroup_default as FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse_default as FormResponse, GenericLayout_default as GenericLayout, GlowWrapper_default as GlowWrapper, Graph, GraphEdge, GraphNode, GraphRenderer, Grid_default as Grid, Header, HeaderNav_default as HeaderNav, HeaderNavGroup_default as HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout_default as HomeLayout, Image2 as Image, ImageInput_default as ImageInput, Info_default as Info, Input, InputFile, InputLabel_default as InputLabel, InputList, InputListGroup, InputResponse_default as InputResponse, Label, Layout, Lead, LineChart_default as LineChart, Link, List_default as List, ListItem_default as ListItem, MarkdownEditor_default as MarkdownEditor, MarkdownProvider_default as MarkdownProvider, MarkdownTOC_default as MarkdownTOC, MarkdownViewer_default as MarkdownViewer, Menu, MenuGroup, MenuItem, MenuItemTitle, Modal_default as Modal, MotionSurface_default as MotionSurface, MultiImageInput_default as MultiImageInput, Overline, Paragraph, PieChart_default as PieChart, PriceTag, ProgressBar, Quote, Radio_default as Radio, RouteTab_default as RouteTab, RouteTabs_default as RouteTabs, ScrollToTop_default as ScrollToTop, Section, Select_default as Select, ShapeSwitch, ShowMore_default as ShowMore, Sidebar_default as Sidebar, SidebarLayout_default as SidebarLayout, SidemenuLayout_default as SidemenuLayout, Skeleton, Slider_default as Slider, StarRating_default as StarRating, StarRatingDistribution_default as StarRatingDistribution, StarRatingInput_default as StarRatingInput, Switch_default as Switch, TNDropdown, TNDropdownItem, TNDropdownTitle, TNGroup, Table_default as Table, Tag_default as Tag, Tags_default as Tags, TextArea_default as TextArea, ThemeContext, ThemeProvider, ThemeSwitch, TitleBanner, Toast, Tooltip4 as Tooltip, TopNav, Transition4 as Transition, TransitionDropdown_default as TransitionDropdown, TransitionFadeIn_default as TransitionFadeIn, Typography, UnderConstructionBanner, ValueBadge_default as ValueBadge, WorldMap, WorldMapCountryTable, YoutubeVideo_default as YoutubeVideoPlayer, cn, createForceLayout, createGridLayout, createTreeLayout, enumValues, getCurrencySymbol, getLayout, isMatch, isRenderFn, normalize, registerLayout, resolveWithGlobal, sendToast, useClickOutside, useCloudinaryConfig, useCurrentTheme_default as useCurrentTheme, useDrawer_default as useDrawer, useEUIConfig, useIsMobile_default as useIsMobile, useModal_default as useModal, useTheme_default as useTheme };
|
|
18702
|
+
export { Accordion_default as Accordion, AsyncComponentWrapper_default as AsyncComponentWrapper, Avatar, Backdrop_default as Backdrop, Badge, BarChart_default as BarChart, Block_default as Block, BlockGroup_default as BlockGroup, BoxNav_default as BoxNav, BoxNavItem_default as BoxNavItem, Brand_default as Brand, Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, Button_default as Button, Caption, Card_default as Card, CardContent_default as CardContent, CardFooter_default as CardFooter, CardHeader_default as CardHeader, Chapter, Checkbox_default as Checkbox, Chip, CloudinaryImage_default as CloudinaryImage, CloudinaryProvider, CloudinaryVideo_default as CloudinaryVideo, Code, CommentThread_default as CommentThread, Content, ContentArea_default as ContentArea, DataView, DataViewTable_default as DataViewTable, DateSelector_default as DateSelector, DefaultLayout_default as DefaultLayout, Display, DocumentationPanel_default as DocumentationPanel, Drawer, DrawerToggler_default as DrawerToggler, EUIDevLayout_default as EUIDevLayout, EUIProvider, Flag, Flex, FlexCol_default as FlexCol, FlexRow_default as FlexRow, Footer, FooterNav_default as FooterNav, FooterNavGroup_default as FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse_default as FormResponse, GenericLayout_default as GenericLayout, GlowWrapper_default as GlowWrapper, Graph, GraphEdge, GraphNode, GraphRenderer, Grid_default as Grid, Header, HeaderNav_default as HeaderNav, HeaderNavGroup_default as HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout_default as HomeLayout, Image2 as Image, ImageInput_default as ImageInput, Info_default as Info, Input, InputFile, InputLabel_default as InputLabel, InputList, InputListGroup, InputResponse_default as InputResponse, Label, Layout, Lead, LineChart_default as LineChart, Link, List_default as List, ListItem_default as ListItem, MarkdownEditor_default as MarkdownEditor, MarkdownProvider_default as MarkdownProvider, MarkdownTOC_default as MarkdownTOC, MarkdownViewer_default as MarkdownViewer, Menu, MenuGroup, MenuItem, MenuItemTitle, Modal_default as Modal, MotionSurface_default as MotionSurface, MultiImageInput_default as MultiImageInput, NumericRating_default as NumericRating, Overline, Paragraph, PieChart_default as PieChart, PriceTag, ProgressBar, ProgressBarRating_default as ProgressBarRating, Quote, Radio_default as Radio, RouteTab_default as RouteTab, RouteTabs_default as RouteTabs, ScrollToTop_default as ScrollToTop, Section, Select_default as Select, ShapeSwitch, ShowMore_default as ShowMore, Sidebar_default as Sidebar, SidebarLayout_default as SidebarLayout, SidemenuLayout_default as SidemenuLayout, Skeleton, Slider_default as Slider, StarRating_default as StarRating, StarRatingDistribution_default as StarRatingDistribution, StarRatingInput_default as StarRatingInput, Switch_default as Switch, TNDropdown, TNDropdownItem, TNDropdownTitle, TNGroup, Table_default as Table, Tag_default as Tag, Tags_default as Tags, TextArea_default as TextArea, ThemeContext, ThemeProvider, ThemeSwitch, TitleBanner, Toast, Tooltip4 as Tooltip, TopNav, Transition4 as Transition, TransitionDropdown_default as TransitionDropdown, TransitionFadeIn_default as TransitionFadeIn, Typography, UnderConstructionBanner, ValueBadge_default as ValueBadge, WorldMap, WorldMapCountryTable, YoutubeVideo_default as YoutubeVideoPlayer, cn, createForceLayout, createGridLayout, createTreeLayout, enumValues, getCurrencySymbol, getLayout, isMatch, isRenderFn, normalize, registerLayout, resolveAppearanceStyles, resolveWithGlobal, sendToast, useClickOutside, useCloudinaryConfig, useCurrentTheme_default as useCurrentTheme, useDrawer_default as useDrawer, useEUIConfig, useIsMobile_default as useIsMobile, useModal_default as useModal, useTheme_default as useTheme };
|
|
17917
18703
|
//# sourceMappingURL=index.mjs.map
|
|
17918
18704
|
//# sourceMappingURL=index.mjs.map
|