@cjlapao/ui-kit 0.2.8 → 0.2.9
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/index.cjs +2069 -831
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +3756 -3424
- package/dist/index.d.cts +317 -5
- package/dist/index.d.ts +317 -5
- package/dist/index.js +1939 -701
- package/dist/index.js.map +1 -1
- package/dist/markdown.cjs +123 -48
- package/dist/markdown.cjs.map +1 -1
- package/dist/markdown.js +123 -48
- package/dist/markdown.js.map +1 -1
- package/package.json +3 -1
package/dist/markdown.cjs
CHANGED
|
@@ -1619,6 +1619,9 @@ function getLocalizedParseNames(locale, catalog) {
|
|
|
1619
1619
|
// ../common/i18n/builtIn/de.ts
|
|
1620
1620
|
var DE_KIT_CATALOG = {
|
|
1621
1621
|
kit: {
|
|
1622
|
+
connectionFlowConnection: {
|
|
1623
|
+
label: "Verbindung von {source} zu {target}"
|
|
1624
|
+
},
|
|
1622
1625
|
connectionFlowEdit: {
|
|
1623
1626
|
connected: "Verbindung angefordert",
|
|
1624
1627
|
add: "Knoten {side} von {label} hinzuf\xFCgen",
|
|
@@ -1746,7 +1749,9 @@ var DE_KIT_CATALOG = {
|
|
|
1746
1749
|
acceptsFrom: "Nimmt Karten an aus",
|
|
1747
1750
|
acceptsAny: "Nichts ausgew\xE4hlt: jede Spalte.",
|
|
1748
1751
|
save: "Speichern",
|
|
1749
|
-
cancel: "Abbrechen"
|
|
1752
|
+
cancel: "Abbrechen",
|
|
1753
|
+
maxItems: "Max. Karten",
|
|
1754
|
+
maxItemsHint: "Leer nutzt den Board-Standard."
|
|
1750
1755
|
},
|
|
1751
1756
|
help: {
|
|
1752
1757
|
show: "Hilfe anzeigen",
|
|
@@ -2029,6 +2034,9 @@ var DE_KIT_CATALOG = {
|
|
|
2029
2034
|
// ../common/i18n/builtIn/en.ts
|
|
2030
2035
|
var EN_KIT_CATALOG = {
|
|
2031
2036
|
kit: {
|
|
2037
|
+
connectionFlowConnection: {
|
|
2038
|
+
label: "Connection from {source} to {target}"
|
|
2039
|
+
},
|
|
2032
2040
|
connectionFlowEdit: {
|
|
2033
2041
|
connected: "Connection requested",
|
|
2034
2042
|
add: "Add a node {side} {label}",
|
|
@@ -2156,7 +2164,9 @@ var EN_KIT_CATALOG = {
|
|
|
2156
2164
|
acceptsFrom: "Accepts cards from",
|
|
2157
2165
|
acceptsAny: "None ticked: any column.",
|
|
2158
2166
|
save: "Save",
|
|
2159
|
-
cancel: "Cancel"
|
|
2167
|
+
cancel: "Cancel",
|
|
2168
|
+
maxItems: "Max items",
|
|
2169
|
+
maxItemsHint: "Empty uses the board default."
|
|
2160
2170
|
},
|
|
2161
2171
|
help: {
|
|
2162
2172
|
show: "Show help",
|
|
@@ -2439,6 +2449,9 @@ var EN_KIT_CATALOG = {
|
|
|
2439
2449
|
// ../common/i18n/builtIn/es.ts
|
|
2440
2450
|
var ES_KIT_CATALOG = {
|
|
2441
2451
|
kit: {
|
|
2452
|
+
connectionFlowConnection: {
|
|
2453
|
+
label: "Conexi\xF3n de {source} a {target}"
|
|
2454
|
+
},
|
|
2442
2455
|
connectionFlowEdit: {
|
|
2443
2456
|
connected: "Conexi\xF3n solicitada",
|
|
2444
2457
|
add: "A\xF1adir un nodo {side} de {label}",
|
|
@@ -2566,7 +2579,9 @@ var ES_KIT_CATALOG = {
|
|
|
2566
2579
|
acceptsFrom: "Acepta tarjetas de",
|
|
2567
2580
|
acceptsAny: "Ninguna marcada: cualquier columna.",
|
|
2568
2581
|
save: "Guardar",
|
|
2569
|
-
cancel: "Cancelar"
|
|
2582
|
+
cancel: "Cancelar",
|
|
2583
|
+
maxItems: "M\xE1x. tarjetas",
|
|
2584
|
+
maxItemsHint: "Vac\xEDo usa el valor del tablero."
|
|
2570
2585
|
},
|
|
2571
2586
|
help: {
|
|
2572
2587
|
show: "Mostrar ayuda",
|
|
@@ -2849,6 +2864,9 @@ var ES_KIT_CATALOG = {
|
|
|
2849
2864
|
// ../common/i18n/builtIn/fr.ts
|
|
2850
2865
|
var FR_KIT_CATALOG = {
|
|
2851
2866
|
kit: {
|
|
2867
|
+
connectionFlowConnection: {
|
|
2868
|
+
label: "Connexion de {source} vers {target}"
|
|
2869
|
+
},
|
|
2852
2870
|
connectionFlowEdit: {
|
|
2853
2871
|
connected: "Connexion demand\xE9e",
|
|
2854
2872
|
add: "Ajouter un n\u0153ud {side} de {label}",
|
|
@@ -2976,7 +2994,9 @@ var FR_KIT_CATALOG = {
|
|
|
2976
2994
|
acceptsFrom: "Accepte les cartes de",
|
|
2977
2995
|
acceptsAny: "Aucune coch\xE9e : toutes les colonnes.",
|
|
2978
2996
|
save: "Enregistrer",
|
|
2979
|
-
cancel: "Annuler"
|
|
2997
|
+
cancel: "Annuler",
|
|
2998
|
+
maxItems: "Cartes max.",
|
|
2999
|
+
maxItemsHint: "Vide : valeur du tableau."
|
|
2980
3000
|
},
|
|
2981
3001
|
help: {
|
|
2982
3002
|
show: "Afficher l\\'aide",
|
|
@@ -3259,6 +3279,9 @@ var FR_KIT_CATALOG = {
|
|
|
3259
3279
|
// ../common/i18n/builtIn/pt.ts
|
|
3260
3280
|
var PT_KIT_CATALOG = {
|
|
3261
3281
|
kit: {
|
|
3282
|
+
connectionFlowConnection: {
|
|
3283
|
+
label: "Liga\xE7\xE3o de {source} para {target}"
|
|
3284
|
+
},
|
|
3262
3285
|
connectionFlowEdit: {
|
|
3263
3286
|
connected: "Liga\xE7\xE3o solicitada",
|
|
3264
3287
|
add: "Adicionar um n\xF3 {side} de {label}",
|
|
@@ -3386,7 +3409,9 @@ var PT_KIT_CATALOG = {
|
|
|
3386
3409
|
acceptsFrom: "Aceita cart\xF5es de",
|
|
3387
3410
|
acceptsAny: "Nenhuma marcada: qualquer coluna.",
|
|
3388
3411
|
save: "Salvar",
|
|
3389
|
-
cancel: "Cancelar"
|
|
3412
|
+
cancel: "Cancelar",
|
|
3413
|
+
maxItems: "M\xE1x. de cart\xF5es",
|
|
3414
|
+
maxItemsHint: "Vazio usa o padr\xE3o do quadro."
|
|
3390
3415
|
},
|
|
3391
3416
|
help: {
|
|
3392
3417
|
show: "Mostrar ajuda",
|
|
@@ -8915,6 +8940,7 @@ var TooltipWrapper = ({
|
|
|
8915
8940
|
const tooltipRef = (0, import_react151.useRef)(null);
|
|
8916
8941
|
const triggerRectRef = (0, import_react151.useRef)(null);
|
|
8917
8942
|
const [visible, setVisible] = (0, import_react151.useState)(false);
|
|
8943
|
+
const [colorScheme, setColorScheme] = (0, import_react151.useState)(null);
|
|
8918
8944
|
const [placement, setPlacement] = (0, import_react151.useState)(null);
|
|
8919
8945
|
(0, import_react151.useEffect)(() => {
|
|
8920
8946
|
return () => {
|
|
@@ -8976,6 +9002,9 @@ var TooltipWrapper = ({
|
|
|
8976
9002
|
const show = (0, import_react151.useCallback)(
|
|
8977
9003
|
(e) => {
|
|
8978
9004
|
if (text) {
|
|
9005
|
+
setColorScheme(
|
|
9006
|
+
e.currentTarget.closest("[data-color-scheme]")?.getAttribute("data-color-scheme") ?? null
|
|
9007
|
+
);
|
|
8979
9008
|
triggerRectRef.current = e.currentTarget.getBoundingClientRect();
|
|
8980
9009
|
setPlacement(null);
|
|
8981
9010
|
timerRef.current = setTimeout(() => setVisible(true), delay);
|
|
@@ -9027,6 +9056,7 @@ var TooltipWrapper = ({
|
|
|
9027
9056
|
ref: tooltipRef,
|
|
9028
9057
|
id: tooltipId,
|
|
9029
9058
|
role: "tooltip",
|
|
9059
|
+
"data-color-scheme": colorScheme ?? void 0,
|
|
9030
9060
|
"data-side": side,
|
|
9031
9061
|
style: {
|
|
9032
9062
|
position: "fixed",
|
|
@@ -9037,7 +9067,8 @@ var TooltipWrapper = ({
|
|
|
9037
9067
|
},
|
|
9038
9068
|
className: (0, import_classnames2.default)(
|
|
9039
9069
|
"pointer-events-none max-w-xs rounded-md px-2.5 py-1.5 text-xs leading-snug",
|
|
9040
|
-
tokens.box
|
|
9070
|
+
tokens.box,
|
|
9071
|
+
colorScheme === "dark" && "dark"
|
|
9041
9072
|
),
|
|
9042
9073
|
children: [
|
|
9043
9074
|
text,
|
|
@@ -10626,6 +10657,7 @@ var BAR_BASE = "absolute select-none touch-none opacity-100 transition-opacity d
|
|
|
10626
10657
|
var THUMB_BASE = "absolute left-0 top-0 cursor-grab rounded-full bg-neutral-300 transition-colors active:cursor-grabbing dark:bg-neutral-600 hover:bg-neutral-400 dark:hover:bg-neutral-500";
|
|
10627
10658
|
var FITTING_THUMB = { size: 0, offset: 0, ratio: 0 };
|
|
10628
10659
|
var ScrollArea = ({
|
|
10660
|
+
virtualScroll,
|
|
10629
10661
|
variant = "auto",
|
|
10630
10662
|
mask = false,
|
|
10631
10663
|
horizontal = true,
|
|
@@ -10637,6 +10669,7 @@ var ScrollArea = ({
|
|
|
10637
10669
|
className = "",
|
|
10638
10670
|
...rest
|
|
10639
10671
|
}) => {
|
|
10672
|
+
horizontal = horizontal && !virtualScroll;
|
|
10640
10673
|
const viewportId = (0, import_react157.useId)();
|
|
10641
10674
|
const viewportRef = (0, import_react157.useRef)(null);
|
|
10642
10675
|
const setViewportRef = (0, import_react157.useCallback)(
|
|
@@ -10660,36 +10693,36 @@ var ScrollArea = ({
|
|
|
10660
10693
|
const dragging = (0, import_react157.useRef)(null);
|
|
10661
10694
|
const thumb = (0, import_react157.useCallback)(
|
|
10662
10695
|
(viewport, track, axis) => {
|
|
10663
|
-
const viewportSize = axis === "y" ? viewport.clientHeight : viewport.clientWidth;
|
|
10664
|
-
const contentSize = axis === "y" ? viewport.scrollHeight : viewport.scrollWidth;
|
|
10696
|
+
const viewportSize = axis === "y" && virtualScroll ? virtualScroll.viewportSize : axis === "y" ? viewport.clientHeight : viewport.clientWidth;
|
|
10697
|
+
const contentSize = axis === "y" && virtualScroll ? virtualScroll.contentSize : axis === "y" ? viewport.scrollHeight : viewport.scrollWidth;
|
|
10665
10698
|
const trackSize = (track ? axis === "y" ? track.clientHeight : track.clientWidth : viewportSize) || 1;
|
|
10666
10699
|
const scrollable = contentSize - viewportSize;
|
|
10667
|
-
if (scrollable <= 1) return FITTING_THUMB;
|
|
10700
|
+
if (scrollable <= (virtualScroll ? 0 : 1)) return FITTING_THUMB;
|
|
10668
10701
|
const size = Math.max(
|
|
10669
10702
|
MIN_THUMB,
|
|
10670
10703
|
viewportSize / contentSize * trackSize
|
|
10671
10704
|
);
|
|
10672
|
-
const position = axis === "y" ? viewport.scrollTop : viewport.scrollLeft;
|
|
10705
|
+
const position = axis === "y" && virtualScroll ? virtualScroll.offset : axis === "y" ? viewport.scrollTop : viewport.scrollLeft;
|
|
10673
10706
|
return {
|
|
10674
10707
|
size,
|
|
10675
10708
|
offset: position / scrollable * (trackSize - size),
|
|
10676
10709
|
ratio: position / scrollable
|
|
10677
10710
|
};
|
|
10678
10711
|
},
|
|
10679
|
-
[]
|
|
10712
|
+
[virtualScroll]
|
|
10680
10713
|
);
|
|
10681
10714
|
const update = (0, import_react157.useCallback)(() => {
|
|
10682
10715
|
const viewport = viewportRef.current;
|
|
10683
10716
|
if (!viewport) return;
|
|
10684
10717
|
setOverflow({
|
|
10685
10718
|
x: horizontal && viewport.scrollWidth - viewport.clientWidth > 1,
|
|
10686
|
-
y: viewport.scrollHeight - viewport.clientHeight > 1
|
|
10719
|
+
y: virtualScroll ? virtualScroll.contentSize > virtualScroll.viewportSize : viewport.scrollHeight - viewport.clientHeight > 1
|
|
10687
10720
|
});
|
|
10688
10721
|
setThumbY(thumb(viewport, yTrackRef.current, "y"));
|
|
10689
10722
|
setThumbX(
|
|
10690
10723
|
horizontal ? thumb(viewport, xTrackRef.current, "x") : FITTING_THUMB
|
|
10691
10724
|
);
|
|
10692
|
-
}, [thumb, horizontal]);
|
|
10725
|
+
}, [thumb, horizontal, virtualScroll]);
|
|
10693
10726
|
(0, import_react157.useEffect)(() => {
|
|
10694
10727
|
update();
|
|
10695
10728
|
let observer;
|
|
@@ -10715,6 +10748,18 @@ var ScrollArea = ({
|
|
|
10715
10748
|
SCROLL_LINGER_MS
|
|
10716
10749
|
);
|
|
10717
10750
|
};
|
|
10751
|
+
const previousVirtualOffset = (0, import_react157.useRef)(virtualScroll?.offset);
|
|
10752
|
+
(0, import_react157.useEffect)(() => {
|
|
10753
|
+
if (previousVirtualOffset.current === virtualScroll?.offset) return;
|
|
10754
|
+
previousVirtualOffset.current = virtualScroll?.offset;
|
|
10755
|
+
if (!virtualScroll) return;
|
|
10756
|
+
setScrolling(true);
|
|
10757
|
+
window.clearTimeout(lingerTimer.current);
|
|
10758
|
+
lingerTimer.current = window.setTimeout(
|
|
10759
|
+
() => setScrolling(false),
|
|
10760
|
+
SCROLL_LINGER_MS
|
|
10761
|
+
);
|
|
10762
|
+
}, [virtualScroll]);
|
|
10718
10763
|
const visible = (overflows) => {
|
|
10719
10764
|
if (!overflows || variant === "hidden") return false;
|
|
10720
10765
|
if (variant === "always") return true;
|
|
@@ -10732,11 +10777,11 @@ var ScrollArea = ({
|
|
|
10732
10777
|
const track = axis === "y" ? yTrackRef.current : xTrackRef.current;
|
|
10733
10778
|
const metrics = axis === "y" ? thumbY : thumbX;
|
|
10734
10779
|
const travel = (track ? axis === "y" ? track.clientHeight : track.clientWidth : 0) - metrics.size;
|
|
10735
|
-
const scrollable = (axis === "y" ? viewport.scrollHeight : viewport.scrollWidth) - (axis === "y" ? viewport.clientHeight : viewport.clientWidth);
|
|
10780
|
+
const scrollable = axis === "y" && virtualScroll ? virtualScroll.contentSize - virtualScroll.viewportSize : (axis === "y" ? viewport.scrollHeight : viewport.scrollWidth) - (axis === "y" ? viewport.clientHeight : viewport.clientWidth);
|
|
10736
10781
|
dragging.current = {
|
|
10737
10782
|
axis,
|
|
10738
10783
|
pointer: axis === "y" ? event.clientY : event.clientX,
|
|
10739
|
-
scroll: axis === "y" ? viewport.scrollTop : viewport.scrollLeft,
|
|
10784
|
+
scroll: axis === "y" && virtualScroll ? virtualScroll.offset : axis === "y" ? viewport.scrollTop : viewport.scrollLeft,
|
|
10740
10785
|
ratio: travel > 0 ? scrollable / travel : 0
|
|
10741
10786
|
};
|
|
10742
10787
|
};
|
|
@@ -10746,7 +10791,17 @@ var ScrollArea = ({
|
|
|
10746
10791
|
if (!drag || !viewport) return;
|
|
10747
10792
|
const pointer = drag.axis === "y" ? event.clientY : event.clientX;
|
|
10748
10793
|
const delta = (pointer - drag.pointer) * drag.ratio;
|
|
10749
|
-
if (drag.axis === "y"
|
|
10794
|
+
if (drag.axis === "y" && virtualScroll)
|
|
10795
|
+
virtualScroll.onScroll(
|
|
10796
|
+
Math.max(
|
|
10797
|
+
0,
|
|
10798
|
+
Math.min(
|
|
10799
|
+
virtualScroll.contentSize - virtualScroll.viewportSize,
|
|
10800
|
+
drag.scroll + delta
|
|
10801
|
+
)
|
|
10802
|
+
)
|
|
10803
|
+
);
|
|
10804
|
+
else if (drag.axis === "y") viewport.scrollTop = drag.scroll + delta;
|
|
10750
10805
|
else viewport.scrollLeft = drag.scroll + delta;
|
|
10751
10806
|
};
|
|
10752
10807
|
const endDrag = (event) => {
|
|
@@ -10800,6 +10855,7 @@ var ScrollArea = ({
|
|
|
10800
10855
|
onScroll: handleScroll,
|
|
10801
10856
|
style: {
|
|
10802
10857
|
...maskStyle(),
|
|
10858
|
+
...virtualScroll ? { overflow: "hidden" } : null,
|
|
10803
10859
|
...horizontal ? null : { overflowX: "hidden" }
|
|
10804
10860
|
},
|
|
10805
10861
|
className: (0, import_classnames9.default)(
|
|
@@ -10817,7 +10873,10 @@ var ScrollArea = ({
|
|
|
10817
10873
|
{
|
|
10818
10874
|
ref: contentRef,
|
|
10819
10875
|
"data-slot": "scrollarea-content",
|
|
10820
|
-
className: (0, import_classnames9.default)(
|
|
10876
|
+
className: (0, import_classnames9.default)(
|
|
10877
|
+
virtualScroll ? "h-full min-w-full" : "table min-w-full",
|
|
10878
|
+
contentClassName
|
|
10879
|
+
),
|
|
10821
10880
|
children
|
|
10822
10881
|
}
|
|
10823
10882
|
)
|
|
@@ -11411,42 +11470,58 @@ var Tabs = ({
|
|
|
11411
11470
|
isGlass && isActive && glassActiveRing
|
|
11412
11471
|
);
|
|
11413
11472
|
const showDividerAfter = shouldShowDividers && index < items.length - 1;
|
|
11473
|
+
const tabButton = /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)(
|
|
11474
|
+
"button",
|
|
11475
|
+
{
|
|
11476
|
+
type: "button",
|
|
11477
|
+
role: "tab",
|
|
11478
|
+
id: `tab-${item.id}`,
|
|
11479
|
+
"aria-selected": isActive,
|
|
11480
|
+
"aria-controls": item.panel !== void 0 ? controlsId : void 0,
|
|
11481
|
+
disabled: isDisabled,
|
|
11482
|
+
className: (0, import_classnames11.default)(
|
|
11483
|
+
baseClassesForItem,
|
|
11484
|
+
Boolean(item.trailingAction) && "pr-10"
|
|
11485
|
+
),
|
|
11486
|
+
onClick: () => selectTab(item),
|
|
11487
|
+
tabIndex: isActive ? 0 : -1,
|
|
11488
|
+
ref: (node) => {
|
|
11489
|
+
tabRefs.current.set(item.id, node);
|
|
11490
|
+
},
|
|
11491
|
+
children: [
|
|
11492
|
+
isGlass && glassSpecular ? /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
|
|
11493
|
+
"div",
|
|
11494
|
+
{
|
|
11495
|
+
"aria-hidden": "true",
|
|
11496
|
+
className: (0, import_classnames11.default)(
|
|
11497
|
+
"pointer-events-none absolute inset-0 rounded-[inherit]",
|
|
11498
|
+
glassSpecular
|
|
11499
|
+
)
|
|
11500
|
+
}
|
|
11501
|
+
) : null,
|
|
11502
|
+
renderTabIcon(item.icon),
|
|
11503
|
+
/* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("span", { className: "flex min-w-0 flex-col text-left", children: [
|
|
11504
|
+
/* @__PURE__ */ (0, import_jsx_runtime160.jsx)("span", { className: "truncate", children: item.label }),
|
|
11505
|
+
item.description ? /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("span", { className: "mt-1 text-xs opacity-70", children: item.description }) : null
|
|
11506
|
+
] }),
|
|
11507
|
+
item.badge ? /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(Badge_default, { count: item.badge, tone: item.badgeColor }) : null
|
|
11508
|
+
]
|
|
11509
|
+
}
|
|
11510
|
+
);
|
|
11414
11511
|
return /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)(import_react158.default.Fragment, { children: [
|
|
11415
|
-
/* @__PURE__ */ (0, import_jsx_runtime160.jsxs)(
|
|
11416
|
-
"
|
|
11512
|
+
item.trailingAction ? /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)(
|
|
11513
|
+
"div",
|
|
11417
11514
|
{
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
"aria-controls": item.panel !== void 0 ? controlsId : void 0,
|
|
11423
|
-
disabled: isDisabled,
|
|
11424
|
-
className: baseClassesForItem,
|
|
11425
|
-
onClick: () => selectTab(item),
|
|
11426
|
-
tabIndex: isActive ? 0 : -1,
|
|
11427
|
-
ref: (node) => {
|
|
11428
|
-
tabRefs.current.set(item.id, node);
|
|
11429
|
-
},
|
|
11515
|
+
className: (0, import_classnames11.default)(
|
|
11516
|
+
"relative inline-flex shrink-0",
|
|
11517
|
+
fullWidth && "flex-1"
|
|
11518
|
+
),
|
|
11430
11519
|
children: [
|
|
11431
|
-
|
|
11432
|
-
|
|
11433
|
-
{
|
|
11434
|
-
"aria-hidden": "true",
|
|
11435
|
-
className: (0, import_classnames11.default)(
|
|
11436
|
-
"pointer-events-none absolute inset-0 rounded-[inherit]",
|
|
11437
|
-
glassSpecular
|
|
11438
|
-
)
|
|
11439
|
-
}
|
|
11440
|
-
) : null,
|
|
11441
|
-
renderTabIcon(item.icon),
|
|
11442
|
-
/* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("span", { className: "flex min-w-0 flex-col text-left", children: [
|
|
11443
|
-
/* @__PURE__ */ (0, import_jsx_runtime160.jsx)("span", { className: "truncate", children: item.label }),
|
|
11444
|
-
item.description ? /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("span", { className: "mt-1 text-xs opacity-70", children: item.description }) : null
|
|
11445
|
-
] }),
|
|
11446
|
-
item.badge ? /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(Badge_default, { count: item.badge, tone: item.badgeColor }) : null
|
|
11520
|
+
tabButton,
|
|
11521
|
+
/* @__PURE__ */ (0, import_jsx_runtime160.jsx)("span", { className: "absolute right-1 top-1/2 -translate-y-1/2", children: item.trailingAction })
|
|
11447
11522
|
]
|
|
11448
11523
|
}
|
|
11449
|
-
),
|
|
11524
|
+
) : tabButton,
|
|
11450
11525
|
showDividerAfter ? /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
|
|
11451
11526
|
"span",
|
|
11452
11527
|
{
|