@expcat/tigercat-react 0.3.70 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ZTVATZB6.js → chunk-6OVVMHZJ.js} +137 -70
- package/dist/{chunk-ZGQOYCQT.mjs → chunk-FX2IBA4W.mjs} +1 -1
- package/dist/{chunk-PWZB45Z7.js → chunk-JQK354YN.js} +11 -9
- package/dist/chunk-JWFEJ4XG.js +543 -0
- package/dist/chunk-PEGJ2KHC.js +273 -0
- package/dist/{chunk-3577FW3I.mjs → chunk-PJ7NS7NX.mjs} +139 -72
- package/dist/chunk-PJCY45UP.mjs +536 -0
- package/dist/{chunk-IRH2ZVD3.js → chunk-Q7GUWWG5.js} +2 -2
- package/dist/chunk-RCNTRSUA.mjs +271 -0
- package/dist/chunk-SHT4TU3T.mjs +26 -0
- package/dist/{chunk-OUAZM7NY.mjs → chunk-SMC2RV3V.mjs} +12 -10
- package/dist/{chunk-OESNOOOT.js → chunk-YWTZALG5.js} +8 -4
- package/dist/components/ActivityFeed.js +4 -4
- package/dist/components/ActivityFeed.mjs +2 -2
- package/dist/components/DataTableWithToolbar.js +4 -4
- package/dist/components/DataTableWithToolbar.mjs +2 -2
- package/dist/components/InputNumber.d.mts +24 -0
- package/dist/components/InputNumber.d.ts +24 -0
- package/dist/components/InputNumber.js +10 -0
- package/dist/components/InputNumber.mjs +1 -0
- package/dist/components/Sidebar.js +2 -2
- package/dist/components/Sidebar.mjs +1 -1
- package/dist/components/SubMenu.js +2 -2
- package/dist/components/SubMenu.mjs +1 -1
- package/dist/components/Table.d.mts +5 -1
- package/dist/components/Table.d.ts +5 -1
- package/dist/components/Table.js +2 -2
- package/dist/components/Table.mjs +1 -1
- package/dist/components/TaskBoard.d.mts +13 -0
- package/dist/components/TaskBoard.d.ts +13 -0
- package/dist/components/TaskBoard.js +17 -0
- package/dist/components/TaskBoard.mjs +2 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +50 -40
- package/dist/index.mjs +13 -11
- package/package.json +2 -2
- package/dist/chunk-RITTIFCJ.mjs +0 -22
- package/dist/{chunk-IOM7DWWQ.js → chunk-J3HKED4B.js} +1 -1
- package/dist/{chunk-FTY2W4L2.mjs → chunk-MTL2QUM3.mjs} +1 -1
|
@@ -66,12 +66,14 @@ function Table({
|
|
|
66
66
|
stickyHeader = false,
|
|
67
67
|
maxHeight,
|
|
68
68
|
tableLayout = "auto",
|
|
69
|
+
expandable,
|
|
69
70
|
onChange,
|
|
70
71
|
onRowClick,
|
|
71
72
|
onSelectionChange,
|
|
72
73
|
onSortChange,
|
|
73
74
|
onFilterChange,
|
|
74
75
|
onPageChange,
|
|
76
|
+
onExpandedRowsChange,
|
|
75
77
|
className,
|
|
76
78
|
...props
|
|
77
79
|
}) {
|
|
@@ -124,6 +126,24 @@ function Table({
|
|
|
124
126
|
setUncontrolledSelectedRowKeys(rowSelection?.selectedRowKeys ?? []);
|
|
125
127
|
}
|
|
126
128
|
}, [isSelectionControlled, rowSelection?.selectedRowKeys]);
|
|
129
|
+
const isExpandControlled = expandable?.expandedRowKeys !== void 0;
|
|
130
|
+
const [uncontrolledExpandedRowKeys, setUncontrolledExpandedRowKeys] = react.useState(expandable?.defaultExpandedRowKeys ?? expandable?.expandedRowKeys ?? []);
|
|
131
|
+
const expandedRowKeys = isExpandControlled ? expandable.expandedRowKeys : uncontrolledExpandedRowKeys;
|
|
132
|
+
const expandedRowKeySet = react.useMemo(
|
|
133
|
+
() => new Set(expandedRowKeys),
|
|
134
|
+
[expandedRowKeys]
|
|
135
|
+
);
|
|
136
|
+
const handleToggleExpand = react.useCallback(
|
|
137
|
+
(key) => {
|
|
138
|
+
const isExp = expandedRowKeySet.has(key);
|
|
139
|
+
const next = isExp ? expandedRowKeys.filter((k) => k !== key) : [...expandedRowKeys, key];
|
|
140
|
+
if (!isExpandControlled) {
|
|
141
|
+
setUncontrolledExpandedRowKeys(next);
|
|
142
|
+
}
|
|
143
|
+
onExpandedRowsChange?.(next);
|
|
144
|
+
},
|
|
145
|
+
[expandedRowKeys, expandedRowKeySet, isExpandControlled, onExpandedRowsChange]
|
|
146
|
+
);
|
|
127
147
|
const [fixedOverrides, setFixedOverrides] = react.useState({});
|
|
128
148
|
const displayColumns = react.useMemo(() => {
|
|
129
149
|
return columns.map((column) => {
|
|
@@ -134,6 +154,12 @@ function Table({
|
|
|
134
154
|
};
|
|
135
155
|
});
|
|
136
156
|
}, [columns, fixedOverrides]);
|
|
157
|
+
const totalColumnCount = react.useMemo(() => {
|
|
158
|
+
let count = displayColumns.length;
|
|
159
|
+
if (rowSelection && rowSelection.showCheckbox !== false) count++;
|
|
160
|
+
if (expandable) count++;
|
|
161
|
+
return count;
|
|
162
|
+
}, [displayColumns.length, rowSelection, expandable]);
|
|
137
163
|
const columnByKey = react.useMemo(() => {
|
|
138
164
|
const map = {};
|
|
139
165
|
for (const column of displayColumns) {
|
|
@@ -345,6 +371,7 @@ function Table({
|
|
|
345
371
|
}, [selectedRowKeys.length, allSelected]);
|
|
346
372
|
const renderTableHeader = react.useCallback(() => {
|
|
347
373
|
return /* @__PURE__ */ jsxRuntime.jsx("thead", { className: tigercatCore.getTableHeaderClasses(stickyHeader), children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
374
|
+
expandable && expandable.expandIconPosition !== "end" && /* @__PURE__ */ jsxRuntime.jsx("th", { className: tigercatCore.getExpandCellClasses(size) }),
|
|
348
375
|
rowSelection && rowSelection.showCheckbox !== false && rowSelection.type !== "radio" && /* @__PURE__ */ jsxRuntime.jsx("th", { className: tigercatCore.getCheckboxCellClasses(size), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
349
376
|
"input",
|
|
350
377
|
{
|
|
@@ -437,7 +464,8 @@ function Table({
|
|
|
437
464
|
},
|
|
438
465
|
column.key
|
|
439
466
|
);
|
|
440
|
-
})
|
|
467
|
+
}),
|
|
468
|
+
expandable && expandable.expandIconPosition === "end" && /* @__PURE__ */ jsxRuntime.jsx("th", { className: tigercatCore.getExpandCellClasses(size) })
|
|
441
469
|
] }) });
|
|
442
470
|
}, [
|
|
443
471
|
displayColumns,
|
|
@@ -452,86 +480,121 @@ function Table({
|
|
|
452
480
|
handleSelectAll,
|
|
453
481
|
columnLockable,
|
|
454
482
|
toggleColumnLock,
|
|
455
|
-
fixedColumnsInfo
|
|
483
|
+
fixedColumnsInfo,
|
|
484
|
+
expandable
|
|
456
485
|
]);
|
|
457
486
|
const renderTableBody = react.useCallback(() => {
|
|
458
487
|
if (loading) {
|
|
459
488
|
return null;
|
|
460
489
|
}
|
|
461
490
|
if (paginatedData.length === 0) {
|
|
462
|
-
return /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
463
|
-
"td",
|
|
464
|
-
{
|
|
465
|
-
colSpan: displayColumns.length + (rowSelection ? 1 : 0),
|
|
466
|
-
className: tigercatCore.tableEmptyStateClasses,
|
|
467
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { role: "status", "aria-live": "polite", children: emptyText })
|
|
468
|
-
}
|
|
469
|
-
) }) });
|
|
491
|
+
return /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan: totalColumnCount, className: tigercatCore.tableEmptyStateClasses, children: /* @__PURE__ */ jsxRuntime.jsx("div", { role: "status", "aria-live": "polite", children: emptyText }) }) }) });
|
|
470
492
|
}
|
|
493
|
+
const ExpandToggle = ({ rowKey: rk, expandableRow, expanded }) => expandableRow ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
494
|
+
"button",
|
|
495
|
+
{
|
|
496
|
+
className: tigercatCore.classNames(tigercatCore.expandIconButtonClasses, tigercatCore.getExpandIconRotationClasses(expanded)),
|
|
497
|
+
"aria-label": expanded ? "Collapse row" : "Expand row",
|
|
498
|
+
onClick: (e) => {
|
|
499
|
+
e.stopPropagation();
|
|
500
|
+
handleToggleExpand(rk);
|
|
501
|
+
},
|
|
502
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
503
|
+
"svg",
|
|
504
|
+
{
|
|
505
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
506
|
+
viewBox: tigercatCore.icon16ViewBox,
|
|
507
|
+
fill: "currentColor",
|
|
508
|
+
className: "w-4 h-4",
|
|
509
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 3l6 5-6 5V3z" })
|
|
510
|
+
}
|
|
511
|
+
)
|
|
512
|
+
}
|
|
513
|
+
) : null;
|
|
471
514
|
return /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: paginatedData.map((record, index) => {
|
|
472
515
|
const key = pageRowKeys[index];
|
|
473
516
|
const isSelected = selectedRowKeySet.has(key);
|
|
517
|
+
const isExpanded = expandedRowKeySet.has(key);
|
|
518
|
+
const isExpandableRow = expandable ? expandable.rowExpandable?.(record) ?? true : false;
|
|
474
519
|
const rowClass = typeof rowClassName === "function" ? rowClassName(record, index) : rowClassName;
|
|
475
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
tigercatCore.
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
"
|
|
486
|
-
|
|
487
|
-
type: rowSelection?.type === "radio" ? "radio" : "checkbox",
|
|
488
|
-
className: rowSelection?.type === "radio" ? "border-gray-300 text-[var(--tiger-primary,#2563eb)] focus:ring-[var(--tiger-primary,#2563eb)]" : "rounded border-gray-300 text-[var(--tiger-primary,#2563eb)] focus:ring-[var(--tiger-primary,#2563eb)]",
|
|
489
|
-
checked: isSelected,
|
|
490
|
-
disabled: rowSelection?.getCheckboxProps?.(record)?.disabled,
|
|
491
|
-
onChange: (e) => handleSelectRow(key, e.target.checked),
|
|
492
|
-
onClick: (e) => e.stopPropagation()
|
|
493
|
-
}
|
|
494
|
-
) }),
|
|
495
|
-
displayColumns.map((column) => {
|
|
496
|
-
const dataKey = column.dataKey || column.key;
|
|
497
|
-
const cellValue = record[dataKey];
|
|
498
|
-
const isFixedLeft = column.fixed === "left";
|
|
499
|
-
const isFixedRight = column.fixed === "right";
|
|
500
|
-
const fixedStyle = isFixedLeft ? {
|
|
501
|
-
position: "sticky",
|
|
502
|
-
left: `${fixedColumnsInfo.leftOffsets[column.key] || 0}px`,
|
|
503
|
-
zIndex: 10
|
|
504
|
-
} : isFixedRight ? {
|
|
505
|
-
position: "sticky",
|
|
506
|
-
right: `${fixedColumnsInfo.rightOffsets[column.key] || 0}px`,
|
|
507
|
-
zIndex: 10
|
|
508
|
-
} : void 0;
|
|
509
|
-
const widthStyle = column.width ? {
|
|
510
|
-
width: typeof column.width === "number" ? `${column.width}px` : column.width
|
|
511
|
-
} : void 0;
|
|
512
|
-
const style = fixedStyle ? { ...widthStyle, ...fixedStyle } : widthStyle;
|
|
513
|
-
const stickyBgClass = striped && index % 2 === 0 ? "bg-[var(--tiger-surface-muted,#f9fafb)]/50" : "bg-[var(--tiger-surface,#ffffff)]";
|
|
514
|
-
const stickyCellClass = isFixedLeft || isFixedRight ? tigercatCore.classNames(
|
|
515
|
-
stickyBgClass,
|
|
516
|
-
hoverable && "group-hover:bg-[var(--tiger-surface-muted,#f9fafb)]"
|
|
517
|
-
) : void 0;
|
|
518
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
519
|
-
"td",
|
|
520
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(react.Fragment, { children: [
|
|
521
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
522
|
+
"tr",
|
|
523
|
+
{
|
|
524
|
+
className: tigercatCore.classNames(
|
|
525
|
+
tigercatCore.getTableRowClasses(hoverable, striped, index % 2 === 0, rowClass),
|
|
526
|
+
fixedColumnsInfo.hasFixedColumns && "group"
|
|
527
|
+
),
|
|
528
|
+
onClick: () => handleRowClick(record, index),
|
|
529
|
+
children: [
|
|
530
|
+
expandable && expandable.expandIconPosition !== "end" && /* @__PURE__ */ jsxRuntime.jsx("td", { className: tigercatCore.getExpandCellClasses(size), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
531
|
+
ExpandToggle,
|
|
520
532
|
{
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
533
|
+
rowKey: key,
|
|
534
|
+
expandableRow: isExpandableRow,
|
|
535
|
+
expanded: isExpanded
|
|
536
|
+
}
|
|
537
|
+
) }),
|
|
538
|
+
rowSelection && rowSelection.showCheckbox !== false && /* @__PURE__ */ jsxRuntime.jsx("td", { className: tigercatCore.getCheckboxCellClasses(size), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
539
|
+
"input",
|
|
540
|
+
{
|
|
541
|
+
type: rowSelection?.type === "radio" ? "radio" : "checkbox",
|
|
542
|
+
className: rowSelection?.type === "radio" ? "border-gray-300 text-[var(--tiger-primary,#2563eb)] focus:ring-[var(--tiger-primary,#2563eb)]" : "rounded border-gray-300 text-[var(--tiger-primary,#2563eb)] focus:ring-[var(--tiger-primary,#2563eb)]",
|
|
543
|
+
checked: isSelected,
|
|
544
|
+
disabled: rowSelection?.getCheckboxProps?.(record)?.disabled,
|
|
545
|
+
onChange: (e) => handleSelectRow(key, e.target.checked),
|
|
546
|
+
onClick: (e) => e.stopPropagation()
|
|
547
|
+
}
|
|
548
|
+
) }),
|
|
549
|
+
displayColumns.map((column) => {
|
|
550
|
+
const dataKey = column.dataKey || column.key;
|
|
551
|
+
const cellValue = record[dataKey];
|
|
552
|
+
const isFixedLeft = column.fixed === "left";
|
|
553
|
+
const isFixedRight = column.fixed === "right";
|
|
554
|
+
const fixedStyle = isFixedLeft ? {
|
|
555
|
+
position: "sticky",
|
|
556
|
+
left: `${fixedColumnsInfo.leftOffsets[column.key] || 0}px`,
|
|
557
|
+
zIndex: 10
|
|
558
|
+
} : isFixedRight ? {
|
|
559
|
+
position: "sticky",
|
|
560
|
+
right: `${fixedColumnsInfo.rightOffsets[column.key] || 0}px`,
|
|
561
|
+
zIndex: 10
|
|
562
|
+
} : void 0;
|
|
563
|
+
const widthStyle = column.width ? {
|
|
564
|
+
width: typeof column.width === "number" ? `${column.width}px` : column.width
|
|
565
|
+
} : void 0;
|
|
566
|
+
const style = fixedStyle ? { ...widthStyle, ...fixedStyle } : widthStyle;
|
|
567
|
+
const stickyBgClass = striped && index % 2 === 0 ? "bg-[var(--tiger-surface-muted,#f9fafb)]/50" : "bg-[var(--tiger-surface,#ffffff)]";
|
|
568
|
+
const stickyCellClass = isFixedLeft || isFixedRight ? tigercatCore.classNames(
|
|
569
|
+
stickyBgClass,
|
|
570
|
+
hoverable && "group-hover:bg-[var(--tiger-surface-muted,#f9fafb)]"
|
|
571
|
+
) : void 0;
|
|
572
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
573
|
+
"td",
|
|
574
|
+
{
|
|
575
|
+
className: tigercatCore.classNames(
|
|
576
|
+
tigercatCore.getTableCellClasses(size, column.align || "left", column.className),
|
|
577
|
+
stickyCellClass
|
|
578
|
+
),
|
|
579
|
+
style,
|
|
580
|
+
children: column.render ? column.render(record, index) : cellValue
|
|
581
|
+
},
|
|
582
|
+
column.key
|
|
583
|
+
);
|
|
584
|
+
}),
|
|
585
|
+
expandable && expandable.expandIconPosition === "end" && /* @__PURE__ */ jsxRuntime.jsx("td", { className: tigercatCore.getExpandCellClasses(size), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
586
|
+
ExpandToggle,
|
|
587
|
+
{
|
|
588
|
+
rowKey: key,
|
|
589
|
+
expandableRow: isExpandableRow,
|
|
590
|
+
expanded: isExpanded
|
|
591
|
+
}
|
|
592
|
+
) })
|
|
593
|
+
]
|
|
594
|
+
}
|
|
595
|
+
),
|
|
596
|
+
expandable && isExpanded && isExpandableRow && /* @__PURE__ */ jsxRuntime.jsx("tr", { className: tigercatCore.expandedRowContentClasses, children: /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan: totalColumnCount, children: expandable.expandedRowRender(record, index) }) })
|
|
597
|
+
] }, key);
|
|
535
598
|
}) });
|
|
536
599
|
}, [
|
|
537
600
|
loading,
|
|
@@ -547,7 +610,11 @@ function Table({
|
|
|
547
610
|
size,
|
|
548
611
|
handleRowClick,
|
|
549
612
|
handleSelectRow,
|
|
550
|
-
fixedColumnsInfo
|
|
613
|
+
fixedColumnsInfo,
|
|
614
|
+
expandable,
|
|
615
|
+
expandedRowKeySet,
|
|
616
|
+
handleToggleExpand,
|
|
617
|
+
totalColumnCount
|
|
551
618
|
]);
|
|
552
619
|
const renderPagination = react.useCallback(() => {
|
|
553
620
|
if (pagination === false || !paginationInfo) {
|
|
@@ -39,9 +39,9 @@ var SubMenu = ({
|
|
|
39
39
|
const [isHovered, setIsHovered] = React.useState(false);
|
|
40
40
|
const [isOpenByKeyboard, setIsOpenByKeyboard] = React.useState(false);
|
|
41
41
|
const effectiveCollapsed = collapsedOverride ?? (menuContext ? menuContext.collapsed : false);
|
|
42
|
-
const isPopup = !!menuContext && menuContext.mode === "vertical" && effectiveCollapsed;
|
|
42
|
+
const isPopup = !!menuContext && (menuContext.mode === "horizontal" || menuContext.mode === "vertical" && effectiveCollapsed);
|
|
43
43
|
const isOpen = !!menuContext && tigercatCore.isKeyOpen(itemKey, menuContext.openKeys);
|
|
44
|
-
const isExpanded =
|
|
44
|
+
const isExpanded = isPopup ? isHovered || isOpenByKeyboard : isOpen;
|
|
45
45
|
const isInlineOrVertical = menuContext?.mode !== "horizontal" && !isPopup;
|
|
46
46
|
const [hasRenderedInline, setHasRenderedInline] = React.useState(
|
|
47
47
|
() => isInlineOrVertical ? isExpanded : false
|
|
@@ -56,11 +56,13 @@ var SubMenu = ({
|
|
|
56
56
|
}, [menuContext, disabled, className]);
|
|
57
57
|
const contentClasses = React.useMemo(() => {
|
|
58
58
|
if (!menuContext) return "";
|
|
59
|
-
if (menuContext.mode === "horizontal")
|
|
59
|
+
if (menuContext.mode === "horizontal") {
|
|
60
|
+
return level === 0 ? tigercatCore.submenuContentHorizontalClasses : tigercatCore.submenuContentHorizontalNestedClasses;
|
|
61
|
+
}
|
|
60
62
|
if (isPopup) return tigercatCore.submenuContentPopupClasses;
|
|
61
63
|
if (menuContext.mode === "inline") return tigercatCore.submenuContentInlineClasses;
|
|
62
64
|
return tigercatCore.submenuContentVerticalClasses;
|
|
63
|
-
}, [menuContext, isPopup]);
|
|
65
|
+
}, [menuContext, isPopup, level]);
|
|
64
66
|
const handleTitleClick = React.useCallback(() => {
|
|
65
67
|
if (!menuContext || disabled) return;
|
|
66
68
|
if (menuContext.mode === "horizontal") return;
|
|
@@ -185,19 +187,19 @@ var SubMenu = ({
|
|
|
185
187
|
return React__default.default.cloneElement(
|
|
186
188
|
child,
|
|
187
189
|
{
|
|
188
|
-
level: nextLevel
|
|
189
|
-
collapsed: isPopup ? false : void 0
|
|
190
|
+
level: nextLevel
|
|
190
191
|
}
|
|
191
192
|
);
|
|
192
193
|
}
|
|
193
194
|
return child;
|
|
194
195
|
});
|
|
195
|
-
|
|
196
|
+
const popupZIndex = isPopup ? tigercatCore.getSubmenuPopupZIndex(level) : {};
|
|
197
|
+
if (isPopup) {
|
|
196
198
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
197
199
|
"ul",
|
|
198
200
|
{
|
|
199
201
|
className: contentClasses,
|
|
200
|
-
style: { display: isExpanded ? "block" : "none" },
|
|
202
|
+
style: { display: isExpanded ? "block" : "none", ...popupZIndex },
|
|
201
203
|
role: "menu",
|
|
202
204
|
"aria-hidden": isExpanded ? void 0 : "true",
|
|
203
205
|
children: enhancedChildren
|
|
@@ -222,7 +224,7 @@ var SubMenu = ({
|
|
|
222
224
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
223
225
|
"li",
|
|
224
226
|
{
|
|
225
|
-
className:
|
|
227
|
+
className: isPopup ? "relative" : "",
|
|
226
228
|
onMouseEnter: handleMouseEnter,
|
|
227
229
|
onMouseLeave: handleMouseLeave,
|
|
228
230
|
role: "none",
|