@cjlapao/ui-kit 0.2.7 → 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/markdown.js CHANGED
@@ -1589,6 +1589,34 @@ function getLocalizedParseNames(locale, catalog) {
1589
1589
  // ../common/i18n/builtIn/de.ts
1590
1590
  var DE_KIT_CATALOG = {
1591
1591
  kit: {
1592
+ connectionFlowConnection: {
1593
+ label: "Verbindung von {source} zu {target}"
1594
+ },
1595
+ connectionFlowEdit: {
1596
+ connected: "Verbindung angefordert",
1597
+ add: "Knoten {side} von {label} hinzuf\xFCgen",
1598
+ top: "oberhalb",
1599
+ right: "rechts",
1600
+ bottom: "unterhalb",
1601
+ left: "links",
1602
+ canceled: "Knotenerstellung abgebrochen",
1603
+ created: "Knotenentwurf hinzugef\xFCgt. Konfigurieren oder verwerfen."
1604
+ },
1605
+ networkGraph: {
1606
+ name: "Netzwerkgraph",
1607
+ zoomIn: "Vergr\xF6\xDFern",
1608
+ zoomOut: "Verkleinern",
1609
+ zoom: "Zoom",
1610
+ fit: "Einpassen",
1611
+ reset: "Zur\xFCcksetzen",
1612
+ findNode: "Knoten suchen",
1613
+ empty: "Keine sichtbaren Knoten",
1614
+ communities: "Gemeinschaften",
1615
+ selectAll: "Alle ausw\xE4hlen",
1616
+ instructions: "Ziehen zum Verschieben. Strg + Scrollen zum Zoomen. Pfeiltasten: navigieren; Eingabe: ausw\xE4hlen; Escape: l\xF6schen; Pos1: einpassen; +/\u2212: zoomen.",
1617
+ nodeStatus: "{label} \xB7 {count} Verbindungen",
1618
+ summary: "{nodes} Knoten \xB7 {edges} Verbindungen"
1619
+ },
1592
1620
  accordion: {
1593
1621
  loadingTitle: "Wird geladen",
1594
1622
  noItemsTitle: "Keine Eintr\xE4ge"
@@ -1653,6 +1681,48 @@ var DE_KIT_CATALOG = {
1653
1681
  barAriaMilestone: "{task}: {start} bis {end}, Meilenstein",
1654
1682
  zoomQuarter: "Quartal"
1655
1683
  },
1684
+ taskboard: {
1685
+ root: "Aufgabenboard",
1686
+ loading: "Board wird geladen\u2026",
1687
+ empty: "Noch keine Karten",
1688
+ error: "Board konnte nicht geladen werden",
1689
+ retry: "Erneut versuchen",
1690
+ addCard: "Karte hinzuf\xFCgen",
1691
+ collapse: "{name} einklappen",
1692
+ expand: "{name} ausklappen",
1693
+ cardCount: "{count, plural, one {# Karte} other {# Karten}}",
1694
+ wip: "{count} von {limit}",
1695
+ grabbed: "{title} aufgenommen. Mit den Pfeiltasten verschieben, Leertaste zum Ablegen, Escape zum Abbrechen.",
1696
+ moved: "Nach {column} verschoben, Position {index} von {total}",
1697
+ movedLane: "Nach {column} in {lane} verschoben, Position {index} von {total}",
1698
+ dropped: "{title} in {column} abgelegt",
1699
+ cancelled: "Verschieben abgebrochen",
1700
+ held: "{name} verschiebt diese Karte",
1701
+ heldShort: "{name} hat diese Karte",
1702
+ notAllowed: "Hier nicht ablegbar",
1703
+ pending: "Wird gespeichert\u2026",
1704
+ online: "{count} online",
1705
+ notes: "Hat Notizen",
1706
+ checklist: "{done} von {total} erledigt",
1707
+ due: "F\xE4llig {date}",
1708
+ addColumn: "Spalte hinzuf\xFCgen",
1709
+ columnName: "Spaltenname",
1710
+ moveColumn: "{name} verschieben",
1711
+ columnGrabbed: "{name} aufgenommen. Mit den Pfeiltasten verschieben, Leertaste zum Ablegen, Escape zum Abbrechen.",
1712
+ columnMoved: "{name} an Position {index} von {total} verschoben",
1713
+ editColumn: "{name} bearbeiten",
1714
+ columnColor: "Farbe",
1715
+ wipLimit: "WIP-Limit",
1716
+ wipLimitHint: "Leer bedeutet kein Limit.",
1717
+ lockColumn: "Gesperrt",
1718
+ lockColumnHint: "Keine Karte wird hinein- oder herausbewegt.",
1719
+ acceptsFrom: "Nimmt Karten an aus",
1720
+ acceptsAny: "Nichts ausgew\xE4hlt: jede Spalte.",
1721
+ save: "Speichern",
1722
+ cancel: "Abbrechen",
1723
+ maxItems: "Max. Karten",
1724
+ maxItemsHint: "Leer nutzt den Board-Standard."
1725
+ },
1656
1726
  help: {
1657
1727
  show: "Hilfe anzeigen",
1658
1728
  close: "Hilfe schlie\xDFen",
@@ -1934,6 +2004,34 @@ var DE_KIT_CATALOG = {
1934
2004
  // ../common/i18n/builtIn/en.ts
1935
2005
  var EN_KIT_CATALOG = {
1936
2006
  kit: {
2007
+ connectionFlowConnection: {
2008
+ label: "Connection from {source} to {target}"
2009
+ },
2010
+ connectionFlowEdit: {
2011
+ connected: "Connection requested",
2012
+ add: "Add a node {side} {label}",
2013
+ top: "above",
2014
+ right: "to the right of",
2015
+ bottom: "below",
2016
+ left: "to the left of",
2017
+ canceled: "Node creation canceled",
2018
+ created: "Draft node added. Configure or dismiss it."
2019
+ },
2020
+ networkGraph: {
2021
+ name: "Network graph",
2022
+ zoomIn: "Zoom in",
2023
+ zoomOut: "Zoom out",
2024
+ zoom: "Zoom",
2025
+ fit: "Fit",
2026
+ reset: "Reset",
2027
+ findNode: "Find a node",
2028
+ empty: "No visible nodes",
2029
+ communities: "Communities",
2030
+ selectAll: "Select all",
2031
+ instructions: "Drag to pan. Ctrl + scroll to zoom. Arrow keys browse nodes; Enter selects; Escape clears; Home fits; +/\u2212 zoom.",
2032
+ nodeStatus: "{label} \xB7 {count} connections",
2033
+ summary: "{nodes} nodes \xB7 {edges} connections"
2034
+ },
1937
2035
  accordion: {
1938
2036
  loadingTitle: "Loading",
1939
2037
  noItemsTitle: "No items"
@@ -1998,6 +2096,48 @@ var EN_KIT_CATALOG = {
1998
2096
  barAriaMilestone: "{task}: {start} to {end}, milestone",
1999
2097
  zoomQuarter: "Quarter"
2000
2098
  },
2099
+ taskboard: {
2100
+ root: "Task board",
2101
+ loading: "Loading board\u2026",
2102
+ empty: "No cards yet",
2103
+ error: "Couldn\u2019t load the board",
2104
+ retry: "Retry",
2105
+ addCard: "Add card",
2106
+ collapse: "Collapse {name}",
2107
+ expand: "Expand {name}",
2108
+ cardCount: "{count, plural, one {# card} other {# cards}}",
2109
+ wip: "{count} of {limit}",
2110
+ grabbed: "Picked up {title}. Use arrow keys to move, Space to drop, Escape to cancel.",
2111
+ moved: "Moved to {column}, position {index} of {total}",
2112
+ movedLane: "Moved to {column} in {lane}, position {index} of {total}",
2113
+ dropped: "Dropped {title} in {column}",
2114
+ cancelled: "Move cancelled",
2115
+ held: "{name} is moving this",
2116
+ heldShort: "{name} has this",
2117
+ notAllowed: "Can\u2019t drop here",
2118
+ pending: "Saving\u2026",
2119
+ online: "{count} online",
2120
+ notes: "Has notes",
2121
+ checklist: "{done} of {total} done",
2122
+ due: "Due {date}",
2123
+ addColumn: "Add column",
2124
+ columnName: "Column name",
2125
+ moveColumn: "Move {name}",
2126
+ columnGrabbed: "Picked up {name}. Use the arrow keys to move it, Space to drop, Escape to cancel.",
2127
+ columnMoved: "{name} moved to position {index} of {total}",
2128
+ editColumn: "Edit {name}",
2129
+ columnColor: "Colour",
2130
+ wipLimit: "WIP limit",
2131
+ wipLimitHint: "Empty means no limit.",
2132
+ lockColumn: "Locked",
2133
+ lockColumnHint: "No card moves in or out.",
2134
+ acceptsFrom: "Accepts cards from",
2135
+ acceptsAny: "None ticked: any column.",
2136
+ save: "Save",
2137
+ cancel: "Cancel",
2138
+ maxItems: "Max items",
2139
+ maxItemsHint: "Empty uses the board default."
2140
+ },
2001
2141
  help: {
2002
2142
  show: "Show help",
2003
2143
  close: "Close help",
@@ -2279,6 +2419,34 @@ var EN_KIT_CATALOG = {
2279
2419
  // ../common/i18n/builtIn/es.ts
2280
2420
  var ES_KIT_CATALOG = {
2281
2421
  kit: {
2422
+ connectionFlowConnection: {
2423
+ label: "Conexi\xF3n de {source} a {target}"
2424
+ },
2425
+ connectionFlowEdit: {
2426
+ connected: "Conexi\xF3n solicitada",
2427
+ add: "A\xF1adir un nodo {side} de {label}",
2428
+ top: "encima",
2429
+ right: "a la derecha",
2430
+ bottom: "debajo",
2431
+ left: "a la izquierda",
2432
+ canceled: "Creaci\xF3n de nodo cancelada",
2433
+ created: "Nodo provisional a\xF1adido. Config\xFAralo o desc\xE1rtalo."
2434
+ },
2435
+ networkGraph: {
2436
+ name: "Grafo de red",
2437
+ zoomIn: "Acercar",
2438
+ zoomOut: "Alejar",
2439
+ zoom: "Zoom",
2440
+ fit: "Ajustar",
2441
+ reset: "Restablecer",
2442
+ findNode: "Buscar un nodo",
2443
+ empty: "No hay nodos visibles",
2444
+ communities: "Comunidades",
2445
+ selectAll: "Seleccionar todo",
2446
+ instructions: "Arrastra para desplazar. Ctrl + desplazamiento para ampliar. Flechas: recorrer; Intro: seleccionar; Escape: borrar; Inicio: ajustar; +/\u2212: zoom.",
2447
+ nodeStatus: "{label} \xB7 {count} conexiones",
2448
+ summary: "{nodes} nodos \xB7 {edges} conexiones"
2449
+ },
2282
2450
  accordion: {
2283
2451
  loadingTitle: "Cargando",
2284
2452
  noItemsTitle: "Sin elementos"
@@ -2343,6 +2511,48 @@ var ES_KIT_CATALOG = {
2343
2511
  barAriaMilestone: "{task}: del {start} al {end}, hito",
2344
2512
  zoomQuarter: "Trimestre"
2345
2513
  },
2514
+ taskboard: {
2515
+ root: "Tablero de tareas",
2516
+ loading: "Cargando tablero\u2026",
2517
+ empty: "A\xFAn no hay tarjetas",
2518
+ error: "No se pudo cargar el tablero",
2519
+ retry: "Reintentar",
2520
+ addCard: "A\xF1adir tarjeta",
2521
+ collapse: "Contraer {name}",
2522
+ expand: "Expandir {name}",
2523
+ cardCount: "{count, plural, one {# tarjeta} other {# tarjetas}}",
2524
+ wip: "{count} de {limit}",
2525
+ grabbed: "{title} seleccionada. Usa las flechas para moverla, Espacio para soltarla y Escape para cancelar.",
2526
+ moved: "Movida a {column}, posici\xF3n {index} de {total}",
2527
+ movedLane: "Movida a {column} en {lane}, posici\xF3n {index} de {total}",
2528
+ dropped: "{title} soltada en {column}",
2529
+ cancelled: "Movimiento cancelado",
2530
+ held: "{name} est\xE1 moviendo esta tarjeta",
2531
+ heldShort: "{name} la tiene",
2532
+ notAllowed: "No se puede soltar aqu\xED",
2533
+ pending: "Guardando\u2026",
2534
+ online: "{count} en l\xEDnea",
2535
+ notes: "Tiene notas",
2536
+ checklist: "{done} de {total} hechas",
2537
+ due: "Vence {date}",
2538
+ addColumn: "A\xF1adir columna",
2539
+ columnName: "Nombre de la columna",
2540
+ moveColumn: "Mover {name}",
2541
+ columnGrabbed: "{name} seleccionada. Usa las flechas para moverla, Espacio para soltarla y Escape para cancelar.",
2542
+ columnMoved: "{name} movida a la posici\xF3n {index} de {total}",
2543
+ editColumn: "Editar {name}",
2544
+ columnColor: "Color",
2545
+ wipLimit: "L\xEDmite WIP",
2546
+ wipLimitHint: "Vac\xEDo significa sin l\xEDmite.",
2547
+ lockColumn: "Bloqueada",
2548
+ lockColumnHint: "Ninguna tarjeta entra ni sale.",
2549
+ acceptsFrom: "Acepta tarjetas de",
2550
+ acceptsAny: "Ninguna marcada: cualquier columna.",
2551
+ save: "Guardar",
2552
+ cancel: "Cancelar",
2553
+ maxItems: "M\xE1x. tarjetas",
2554
+ maxItemsHint: "Vac\xEDo usa el valor del tablero."
2555
+ },
2346
2556
  help: {
2347
2557
  show: "Mostrar ayuda",
2348
2558
  close: "Cerrar ayuda",
@@ -2624,6 +2834,34 @@ var ES_KIT_CATALOG = {
2624
2834
  // ../common/i18n/builtIn/fr.ts
2625
2835
  var FR_KIT_CATALOG = {
2626
2836
  kit: {
2837
+ connectionFlowConnection: {
2838
+ label: "Connexion de {source} vers {target}"
2839
+ },
2840
+ connectionFlowEdit: {
2841
+ connected: "Connexion demand\xE9e",
2842
+ add: "Ajouter un n\u0153ud {side} de {label}",
2843
+ top: "au-dessus",
2844
+ right: "\xE0 droite",
2845
+ bottom: "en dessous",
2846
+ left: "\xE0 gauche",
2847
+ canceled: "Cr\xE9ation du n\u0153ud annul\xE9e",
2848
+ created: "N\u0153ud provisoire ajout\xE9. Configurez-le ou supprimez-le."
2849
+ },
2850
+ networkGraph: {
2851
+ name: "Graphe de r\xE9seau",
2852
+ zoomIn: "Zoom avant",
2853
+ zoomOut: "Zoom arri\xE8re",
2854
+ zoom: "Zoom",
2855
+ fit: "Ajuster",
2856
+ reset: "R\xE9initialiser",
2857
+ findNode: "Rechercher un n\u0153ud",
2858
+ empty: "Aucun n\u0153ud visible",
2859
+ communities: "Communaut\xE9s",
2860
+ selectAll: "Tout s\xE9lectionner",
2861
+ instructions: "Glissez pour d\xE9placer. Ctrl + d\xE9filement pour zoomer. Fl\xE8ches : parcourir ; Entr\xE9e : s\xE9lectionner ; \xC9chap : effacer ; D\xE9but : ajuster ; +/\u2212 : zoomer.",
2862
+ nodeStatus: "{label} \xB7 {count} connexions",
2863
+ summary: "{nodes} n\u0153uds \xB7 {edges} connexions"
2864
+ },
2627
2865
  accordion: {
2628
2866
  loadingTitle: "Chargement",
2629
2867
  noItemsTitle: "Aucun \xE9l\xE9ment"
@@ -2688,6 +2926,48 @@ var FR_KIT_CATALOG = {
2688
2926
  barAriaMilestone: "{task} : du {start} au {end}, jalon",
2689
2927
  zoomQuarter: "Trimestre"
2690
2928
  },
2929
+ taskboard: {
2930
+ root: "Tableau des t\xE2ches",
2931
+ loading: "Chargement du tableau\u2026",
2932
+ empty: "Aucune carte pour l\u2019instant",
2933
+ error: "Impossible de charger le tableau",
2934
+ retry: "R\xE9essayer",
2935
+ addCard: "Ajouter une carte",
2936
+ collapse: "R\xE9duire {name}",
2937
+ expand: "D\xE9velopper {name}",
2938
+ cardCount: "{count, plural, one {# carte} other {# cartes}}",
2939
+ wip: "{count} sur {limit}",
2940
+ grabbed: "{title} saisie. Fl\xE8ches pour d\xE9placer, Espace pour d\xE9poser, \xC9chap pour annuler.",
2941
+ moved: "D\xE9plac\xE9e vers {column}, position {index} sur {total}",
2942
+ movedLane: "D\xE9plac\xE9e vers {column} dans {lane}, position {index} sur {total}",
2943
+ dropped: "{title} d\xE9pos\xE9e dans {column}",
2944
+ cancelled: "D\xE9placement annul\xE9",
2945
+ held: "{name} d\xE9place cette carte",
2946
+ heldShort: "{name} l\u2019a prise",
2947
+ notAllowed: "D\xE9p\xF4t impossible ici",
2948
+ pending: "Enregistrement\u2026",
2949
+ online: "{count} en ligne",
2950
+ notes: "Contient des notes",
2951
+ checklist: "{done} sur {total} faites",
2952
+ due: "\xC9ch\xE9ance {date}",
2953
+ addColumn: "Ajouter une colonne",
2954
+ columnName: "Nom de la colonne",
2955
+ moveColumn: "D\xE9placer {name}",
2956
+ columnGrabbed: "{name} saisie. Fl\xE8ches pour d\xE9placer, Espace pour d\xE9poser, \xC9chap pour annuler.",
2957
+ columnMoved: "{name} d\xE9plac\xE9e en position {index} sur {total}",
2958
+ editColumn: "Modifier {name}",
2959
+ columnColor: "Couleur",
2960
+ wipLimit: "Limite WIP",
2961
+ wipLimitHint: "Vide signifie aucune limite.",
2962
+ lockColumn: "Verrouill\xE9e",
2963
+ lockColumnHint: "Aucune carte n\u2019entre ni ne sort.",
2964
+ acceptsFrom: "Accepte les cartes de",
2965
+ acceptsAny: "Aucune coch\xE9e : toutes les colonnes.",
2966
+ save: "Enregistrer",
2967
+ cancel: "Annuler",
2968
+ maxItems: "Cartes max.",
2969
+ maxItemsHint: "Vide : valeur du tableau."
2970
+ },
2691
2971
  help: {
2692
2972
  show: "Afficher l\\'aide",
2693
2973
  close: "Fermer l\\'aide",
@@ -2969,6 +3249,34 @@ var FR_KIT_CATALOG = {
2969
3249
  // ../common/i18n/builtIn/pt.ts
2970
3250
  var PT_KIT_CATALOG = {
2971
3251
  kit: {
3252
+ connectionFlowConnection: {
3253
+ label: "Liga\xE7\xE3o de {source} para {target}"
3254
+ },
3255
+ connectionFlowEdit: {
3256
+ connected: "Liga\xE7\xE3o solicitada",
3257
+ add: "Adicionar um n\xF3 {side} de {label}",
3258
+ top: "acima",
3259
+ right: "\xE0 direita",
3260
+ bottom: "abaixo",
3261
+ left: "\xE0 esquerda",
3262
+ canceled: "Cria\xE7\xE3o do n\xF3 cancelada",
3263
+ created: "N\xF3 provis\xF3rio adicionado. Configure-o ou descarte-o."
3264
+ },
3265
+ networkGraph: {
3266
+ name: "Grafo de rede",
3267
+ zoomIn: "Ampliar",
3268
+ zoomOut: "Reduzir",
3269
+ zoom: "Zoom",
3270
+ fit: "Ajustar",
3271
+ reset: "Repor",
3272
+ findNode: "Procurar um n\xF3",
3273
+ empty: "Nenhum n\xF3 vis\xEDvel",
3274
+ communities: "Comunidades",
3275
+ selectAll: "Selecionar tudo",
3276
+ instructions: "Arraste para mover. Ctrl + deslocamento para ampliar. Setas: navegar; Enter: selecionar; Escape: limpar; Home: ajustar; +/\u2212: ampliar ou reduzir.",
3277
+ nodeStatus: "{label} \xB7 {count} liga\xE7\xF5es",
3278
+ summary: "{nodes} n\xF3s \xB7 {edges} liga\xE7\xF5es"
3279
+ },
2972
3280
  accordion: {
2973
3281
  loadingTitle: "Carregando",
2974
3282
  noItemsTitle: "Sem itens"
@@ -3033,6 +3341,48 @@ var PT_KIT_CATALOG = {
3033
3341
  barAriaMilestone: "{task}: de {start} a {end}, marco",
3034
3342
  zoomQuarter: "Trimestre"
3035
3343
  },
3344
+ taskboard: {
3345
+ root: "Quadro de tarefas",
3346
+ loading: "Carregando quadro\u2026",
3347
+ empty: "Nenhum cart\xE3o ainda",
3348
+ error: "N\xE3o foi poss\xEDvel carregar o quadro",
3349
+ retry: "Tentar novamente",
3350
+ addCard: "Adicionar cart\xE3o",
3351
+ collapse: "Recolher {name}",
3352
+ expand: "Expandir {name}",
3353
+ cardCount: "{count, plural, one {# cart\xE3o} other {# cart\xF5es}}",
3354
+ wip: "{count} de {limit}",
3355
+ grabbed: "{title} selecionado. Use as setas para mover, Espa\xE7o para soltar e Escape para cancelar.",
3356
+ moved: "Movido para {column}, posi\xE7\xE3o {index} de {total}",
3357
+ movedLane: "Movido para {column} em {lane}, posi\xE7\xE3o {index} de {total}",
3358
+ dropped: "{title} solto em {column}",
3359
+ cancelled: "Movimento cancelado",
3360
+ held: "{name} est\xE1 movendo este cart\xE3o",
3361
+ heldShort: "{name} est\xE1 com ele",
3362
+ notAllowed: "N\xE3o \xE9 poss\xEDvel soltar aqui",
3363
+ pending: "Salvando\u2026",
3364
+ online: "{count} online",
3365
+ notes: "Tem notas",
3366
+ checklist: "{done} de {total} conclu\xEDdos",
3367
+ due: "Vence {date}",
3368
+ addColumn: "Adicionar coluna",
3369
+ columnName: "Nome da coluna",
3370
+ moveColumn: "Mover {name}",
3371
+ columnGrabbed: "{name} selecionada. Use as setas para mover, Espa\xE7o para soltar e Escape para cancelar.",
3372
+ columnMoved: "{name} movida para a posi\xE7\xE3o {index} de {total}",
3373
+ editColumn: "Editar {name}",
3374
+ columnColor: "Cor",
3375
+ wipLimit: "Limite WIP",
3376
+ wipLimitHint: "Vazio significa sem limite.",
3377
+ lockColumn: "Bloqueada",
3378
+ lockColumnHint: "Nenhum cart\xE3o entra ou sai.",
3379
+ acceptsFrom: "Aceita cart\xF5es de",
3380
+ acceptsAny: "Nenhuma marcada: qualquer coluna.",
3381
+ save: "Salvar",
3382
+ cancel: "Cancelar",
3383
+ maxItems: "M\xE1x. de cart\xF5es",
3384
+ maxItemsHint: "Vazio usa o padr\xE3o do quadro."
3385
+ },
3036
3386
  help: {
3037
3387
  show: "Mostrar ajuda",
3038
3388
  close: "Fechar ajuda",
@@ -8566,6 +8916,7 @@ var TooltipWrapper = ({
8566
8916
  const tooltipRef = useRef(null);
8567
8917
  const triggerRectRef = useRef(null);
8568
8918
  const [visible, setVisible] = useState(false);
8919
+ const [colorScheme, setColorScheme] = useState(null);
8569
8920
  const [placement, setPlacement] = useState(null);
8570
8921
  useEffect(() => {
8571
8922
  return () => {
@@ -8627,6 +8978,9 @@ var TooltipWrapper = ({
8627
8978
  const show = useCallback(
8628
8979
  (e) => {
8629
8980
  if (text) {
8981
+ setColorScheme(
8982
+ e.currentTarget.closest("[data-color-scheme]")?.getAttribute("data-color-scheme") ?? null
8983
+ );
8630
8984
  triggerRectRef.current = e.currentTarget.getBoundingClientRect();
8631
8985
  setPlacement(null);
8632
8986
  timerRef.current = setTimeout(() => setVisible(true), delay);
@@ -8678,6 +9032,7 @@ var TooltipWrapper = ({
8678
9032
  ref: tooltipRef,
8679
9033
  id: tooltipId,
8680
9034
  role: "tooltip",
9035
+ "data-color-scheme": colorScheme ?? void 0,
8681
9036
  "data-side": side,
8682
9037
  style: {
8683
9038
  position: "fixed",
@@ -8688,7 +9043,8 @@ var TooltipWrapper = ({
8688
9043
  },
8689
9044
  className: classNames2(
8690
9045
  "pointer-events-none max-w-xs rounded-md px-2.5 py-1.5 text-xs leading-snug",
8691
- tokens.box
9046
+ tokens.box,
9047
+ colorScheme === "dark" && "dark"
8692
9048
  ),
8693
9049
  children: [
8694
9050
  text,
@@ -10285,6 +10641,7 @@ var BAR_BASE = "absolute select-none touch-none opacity-100 transition-opacity d
10285
10641
  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";
10286
10642
  var FITTING_THUMB = { size: 0, offset: 0, ratio: 0 };
10287
10643
  var ScrollArea = ({
10644
+ virtualScroll,
10288
10645
  variant = "auto",
10289
10646
  mask = false,
10290
10647
  horizontal = true,
@@ -10296,6 +10653,7 @@ var ScrollArea = ({
10296
10653
  className = "",
10297
10654
  ...rest
10298
10655
  }) => {
10656
+ horizontal = horizontal && !virtualScroll;
10299
10657
  const viewportId = useId2();
10300
10658
  const viewportRef = useRef3(null);
10301
10659
  const setViewportRef = useCallback3(
@@ -10319,36 +10677,36 @@ var ScrollArea = ({
10319
10677
  const dragging = useRef3(null);
10320
10678
  const thumb = useCallback3(
10321
10679
  (viewport, track, axis) => {
10322
- const viewportSize = axis === "y" ? viewport.clientHeight : viewport.clientWidth;
10323
- const contentSize = axis === "y" ? viewport.scrollHeight : viewport.scrollWidth;
10680
+ const viewportSize = axis === "y" && virtualScroll ? virtualScroll.viewportSize : axis === "y" ? viewport.clientHeight : viewport.clientWidth;
10681
+ const contentSize = axis === "y" && virtualScroll ? virtualScroll.contentSize : axis === "y" ? viewport.scrollHeight : viewport.scrollWidth;
10324
10682
  const trackSize = (track ? axis === "y" ? track.clientHeight : track.clientWidth : viewportSize) || 1;
10325
10683
  const scrollable = contentSize - viewportSize;
10326
- if (scrollable <= 1) return FITTING_THUMB;
10684
+ if (scrollable <= (virtualScroll ? 0 : 1)) return FITTING_THUMB;
10327
10685
  const size = Math.max(
10328
10686
  MIN_THUMB,
10329
10687
  viewportSize / contentSize * trackSize
10330
10688
  );
10331
- const position = axis === "y" ? viewport.scrollTop : viewport.scrollLeft;
10689
+ const position = axis === "y" && virtualScroll ? virtualScroll.offset : axis === "y" ? viewport.scrollTop : viewport.scrollLeft;
10332
10690
  return {
10333
10691
  size,
10334
10692
  offset: position / scrollable * (trackSize - size),
10335
10693
  ratio: position / scrollable
10336
10694
  };
10337
10695
  },
10338
- []
10696
+ [virtualScroll]
10339
10697
  );
10340
10698
  const update = useCallback3(() => {
10341
10699
  const viewport = viewportRef.current;
10342
10700
  if (!viewport) return;
10343
10701
  setOverflow({
10344
10702
  x: horizontal && viewport.scrollWidth - viewport.clientWidth > 1,
10345
- y: viewport.scrollHeight - viewport.clientHeight > 1
10703
+ y: virtualScroll ? virtualScroll.contentSize > virtualScroll.viewportSize : viewport.scrollHeight - viewport.clientHeight > 1
10346
10704
  });
10347
10705
  setThumbY(thumb(viewport, yTrackRef.current, "y"));
10348
10706
  setThumbX(
10349
10707
  horizontal ? thumb(viewport, xTrackRef.current, "x") : FITTING_THUMB
10350
10708
  );
10351
- }, [thumb, horizontal]);
10709
+ }, [thumb, horizontal, virtualScroll]);
10352
10710
  useEffect3(() => {
10353
10711
  update();
10354
10712
  let observer;
@@ -10374,6 +10732,18 @@ var ScrollArea = ({
10374
10732
  SCROLL_LINGER_MS
10375
10733
  );
10376
10734
  };
10735
+ const previousVirtualOffset = useRef3(virtualScroll?.offset);
10736
+ useEffect3(() => {
10737
+ if (previousVirtualOffset.current === virtualScroll?.offset) return;
10738
+ previousVirtualOffset.current = virtualScroll?.offset;
10739
+ if (!virtualScroll) return;
10740
+ setScrolling(true);
10741
+ window.clearTimeout(lingerTimer.current);
10742
+ lingerTimer.current = window.setTimeout(
10743
+ () => setScrolling(false),
10744
+ SCROLL_LINGER_MS
10745
+ );
10746
+ }, [virtualScroll]);
10377
10747
  const visible = (overflows) => {
10378
10748
  if (!overflows || variant === "hidden") return false;
10379
10749
  if (variant === "always") return true;
@@ -10391,11 +10761,11 @@ var ScrollArea = ({
10391
10761
  const track = axis === "y" ? yTrackRef.current : xTrackRef.current;
10392
10762
  const metrics = axis === "y" ? thumbY : thumbX;
10393
10763
  const travel = (track ? axis === "y" ? track.clientHeight : track.clientWidth : 0) - metrics.size;
10394
- const scrollable = (axis === "y" ? viewport.scrollHeight : viewport.scrollWidth) - (axis === "y" ? viewport.clientHeight : viewport.clientWidth);
10764
+ const scrollable = axis === "y" && virtualScroll ? virtualScroll.contentSize - virtualScroll.viewportSize : (axis === "y" ? viewport.scrollHeight : viewport.scrollWidth) - (axis === "y" ? viewport.clientHeight : viewport.clientWidth);
10395
10765
  dragging.current = {
10396
10766
  axis,
10397
10767
  pointer: axis === "y" ? event.clientY : event.clientX,
10398
- scroll: axis === "y" ? viewport.scrollTop : viewport.scrollLeft,
10768
+ scroll: axis === "y" && virtualScroll ? virtualScroll.offset : axis === "y" ? viewport.scrollTop : viewport.scrollLeft,
10399
10769
  ratio: travel > 0 ? scrollable / travel : 0
10400
10770
  };
10401
10771
  };
@@ -10405,7 +10775,17 @@ var ScrollArea = ({
10405
10775
  if (!drag || !viewport) return;
10406
10776
  const pointer = drag.axis === "y" ? event.clientY : event.clientX;
10407
10777
  const delta = (pointer - drag.pointer) * drag.ratio;
10408
- if (drag.axis === "y") viewport.scrollTop = drag.scroll + delta;
10778
+ if (drag.axis === "y" && virtualScroll)
10779
+ virtualScroll.onScroll(
10780
+ Math.max(
10781
+ 0,
10782
+ Math.min(
10783
+ virtualScroll.contentSize - virtualScroll.viewportSize,
10784
+ drag.scroll + delta
10785
+ )
10786
+ )
10787
+ );
10788
+ else if (drag.axis === "y") viewport.scrollTop = drag.scroll + delta;
10409
10789
  else viewport.scrollLeft = drag.scroll + delta;
10410
10790
  };
10411
10791
  const endDrag = (event) => {
@@ -10459,6 +10839,7 @@ var ScrollArea = ({
10459
10839
  onScroll: handleScroll,
10460
10840
  style: {
10461
10841
  ...maskStyle(),
10842
+ ...virtualScroll ? { overflow: "hidden" } : null,
10462
10843
  ...horizontal ? null : { overflowX: "hidden" }
10463
10844
  },
10464
10845
  className: classNames9(
@@ -10476,7 +10857,10 @@ var ScrollArea = ({
10476
10857
  {
10477
10858
  ref: contentRef,
10478
10859
  "data-slot": "scrollarea-content",
10479
- className: classNames9("table min-w-full", contentClassName),
10860
+ className: classNames9(
10861
+ virtualScroll ? "h-full min-w-full" : "table min-w-full",
10862
+ contentClassName
10863
+ ),
10480
10864
  children
10481
10865
  }
10482
10866
  )
@@ -11075,42 +11459,58 @@ var Tabs = ({
11075
11459
  isGlass && isActive && glassActiveRing
11076
11460
  );
11077
11461
  const showDividerAfter = shouldShowDividers && index < items.length - 1;
11462
+ const tabButton = /* @__PURE__ */ jsxs62(
11463
+ "button",
11464
+ {
11465
+ type: "button",
11466
+ role: "tab",
11467
+ id: `tab-${item.id}`,
11468
+ "aria-selected": isActive,
11469
+ "aria-controls": item.panel !== void 0 ? controlsId : void 0,
11470
+ disabled: isDisabled,
11471
+ className: classNames11(
11472
+ baseClassesForItem,
11473
+ Boolean(item.trailingAction) && "pr-10"
11474
+ ),
11475
+ onClick: () => selectTab(item),
11476
+ tabIndex: isActive ? 0 : -1,
11477
+ ref: (node) => {
11478
+ tabRefs.current.set(item.id, node);
11479
+ },
11480
+ children: [
11481
+ isGlass && glassSpecular ? /* @__PURE__ */ jsx160(
11482
+ "div",
11483
+ {
11484
+ "aria-hidden": "true",
11485
+ className: classNames11(
11486
+ "pointer-events-none absolute inset-0 rounded-[inherit]",
11487
+ glassSpecular
11488
+ )
11489
+ }
11490
+ ) : null,
11491
+ renderTabIcon(item.icon),
11492
+ /* @__PURE__ */ jsxs62("span", { className: "flex min-w-0 flex-col text-left", children: [
11493
+ /* @__PURE__ */ jsx160("span", { className: "truncate", children: item.label }),
11494
+ item.description ? /* @__PURE__ */ jsx160("span", { className: "mt-1 text-xs opacity-70", children: item.description }) : null
11495
+ ] }),
11496
+ item.badge ? /* @__PURE__ */ jsx160(Badge_default, { count: item.badge, tone: item.badgeColor }) : null
11497
+ ]
11498
+ }
11499
+ );
11078
11500
  return /* @__PURE__ */ jsxs62(React12.Fragment, { children: [
11079
- /* @__PURE__ */ jsxs62(
11080
- "button",
11501
+ item.trailingAction ? /* @__PURE__ */ jsxs62(
11502
+ "div",
11081
11503
  {
11082
- type: "button",
11083
- role: "tab",
11084
- id: `tab-${item.id}`,
11085
- "aria-selected": isActive,
11086
- "aria-controls": item.panel !== void 0 ? controlsId : void 0,
11087
- disabled: isDisabled,
11088
- className: baseClassesForItem,
11089
- onClick: () => selectTab(item),
11090
- tabIndex: isActive ? 0 : -1,
11091
- ref: (node) => {
11092
- tabRefs.current.set(item.id, node);
11093
- },
11504
+ className: classNames11(
11505
+ "relative inline-flex shrink-0",
11506
+ fullWidth && "flex-1"
11507
+ ),
11094
11508
  children: [
11095
- isGlass && glassSpecular ? /* @__PURE__ */ jsx160(
11096
- "div",
11097
- {
11098
- "aria-hidden": "true",
11099
- className: classNames11(
11100
- "pointer-events-none absolute inset-0 rounded-[inherit]",
11101
- glassSpecular
11102
- )
11103
- }
11104
- ) : null,
11105
- renderTabIcon(item.icon),
11106
- /* @__PURE__ */ jsxs62("span", { className: "flex min-w-0 flex-col text-left", children: [
11107
- /* @__PURE__ */ jsx160("span", { className: "truncate", children: item.label }),
11108
- item.description ? /* @__PURE__ */ jsx160("span", { className: "mt-1 text-xs opacity-70", children: item.description }) : null
11109
- ] }),
11110
- item.badge ? /* @__PURE__ */ jsx160(Badge_default, { count: item.badge, tone: item.badgeColor }) : null
11509
+ tabButton,
11510
+ /* @__PURE__ */ jsx160("span", { className: "absolute right-1 top-1/2 -translate-y-1/2", children: item.trailingAction })
11111
11511
  ]
11112
11512
  }
11113
- ),
11513
+ ) : tabButton,
11114
11514
  showDividerAfter ? /* @__PURE__ */ jsx160(
11115
11515
  "span",
11116
11516
  {