@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.cjs CHANGED
@@ -1619,6 +1619,34 @@ 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
+ },
1625
+ connectionFlowEdit: {
1626
+ connected: "Verbindung angefordert",
1627
+ add: "Knoten {side} von {label} hinzuf\xFCgen",
1628
+ top: "oberhalb",
1629
+ right: "rechts",
1630
+ bottom: "unterhalb",
1631
+ left: "links",
1632
+ canceled: "Knotenerstellung abgebrochen",
1633
+ created: "Knotenentwurf hinzugef\xFCgt. Konfigurieren oder verwerfen."
1634
+ },
1635
+ networkGraph: {
1636
+ name: "Netzwerkgraph",
1637
+ zoomIn: "Vergr\xF6\xDFern",
1638
+ zoomOut: "Verkleinern",
1639
+ zoom: "Zoom",
1640
+ fit: "Einpassen",
1641
+ reset: "Zur\xFCcksetzen",
1642
+ findNode: "Knoten suchen",
1643
+ empty: "Keine sichtbaren Knoten",
1644
+ communities: "Gemeinschaften",
1645
+ selectAll: "Alle ausw\xE4hlen",
1646
+ instructions: "Ziehen zum Verschieben. Strg + Scrollen zum Zoomen. Pfeiltasten: navigieren; Eingabe: ausw\xE4hlen; Escape: l\xF6schen; Pos1: einpassen; +/\u2212: zoomen.",
1647
+ nodeStatus: "{label} \xB7 {count} Verbindungen",
1648
+ summary: "{nodes} Knoten \xB7 {edges} Verbindungen"
1649
+ },
1622
1650
  accordion: {
1623
1651
  loadingTitle: "Wird geladen",
1624
1652
  noItemsTitle: "Keine Eintr\xE4ge"
@@ -1683,6 +1711,48 @@ var DE_KIT_CATALOG = {
1683
1711
  barAriaMilestone: "{task}: {start} bis {end}, Meilenstein",
1684
1712
  zoomQuarter: "Quartal"
1685
1713
  },
1714
+ taskboard: {
1715
+ root: "Aufgabenboard",
1716
+ loading: "Board wird geladen\u2026",
1717
+ empty: "Noch keine Karten",
1718
+ error: "Board konnte nicht geladen werden",
1719
+ retry: "Erneut versuchen",
1720
+ addCard: "Karte hinzuf\xFCgen",
1721
+ collapse: "{name} einklappen",
1722
+ expand: "{name} ausklappen",
1723
+ cardCount: "{count, plural, one {# Karte} other {# Karten}}",
1724
+ wip: "{count} von {limit}",
1725
+ grabbed: "{title} aufgenommen. Mit den Pfeiltasten verschieben, Leertaste zum Ablegen, Escape zum Abbrechen.",
1726
+ moved: "Nach {column} verschoben, Position {index} von {total}",
1727
+ movedLane: "Nach {column} in {lane} verschoben, Position {index} von {total}",
1728
+ dropped: "{title} in {column} abgelegt",
1729
+ cancelled: "Verschieben abgebrochen",
1730
+ held: "{name} verschiebt diese Karte",
1731
+ heldShort: "{name} hat diese Karte",
1732
+ notAllowed: "Hier nicht ablegbar",
1733
+ pending: "Wird gespeichert\u2026",
1734
+ online: "{count} online",
1735
+ notes: "Hat Notizen",
1736
+ checklist: "{done} von {total} erledigt",
1737
+ due: "F\xE4llig {date}",
1738
+ addColumn: "Spalte hinzuf\xFCgen",
1739
+ columnName: "Spaltenname",
1740
+ moveColumn: "{name} verschieben",
1741
+ columnGrabbed: "{name} aufgenommen. Mit den Pfeiltasten verschieben, Leertaste zum Ablegen, Escape zum Abbrechen.",
1742
+ columnMoved: "{name} an Position {index} von {total} verschoben",
1743
+ editColumn: "{name} bearbeiten",
1744
+ columnColor: "Farbe",
1745
+ wipLimit: "WIP-Limit",
1746
+ wipLimitHint: "Leer bedeutet kein Limit.",
1747
+ lockColumn: "Gesperrt",
1748
+ lockColumnHint: "Keine Karte wird hinein- oder herausbewegt.",
1749
+ acceptsFrom: "Nimmt Karten an aus",
1750
+ acceptsAny: "Nichts ausgew\xE4hlt: jede Spalte.",
1751
+ save: "Speichern",
1752
+ cancel: "Abbrechen",
1753
+ maxItems: "Max. Karten",
1754
+ maxItemsHint: "Leer nutzt den Board-Standard."
1755
+ },
1686
1756
  help: {
1687
1757
  show: "Hilfe anzeigen",
1688
1758
  close: "Hilfe schlie\xDFen",
@@ -1964,6 +2034,34 @@ var DE_KIT_CATALOG = {
1964
2034
  // ../common/i18n/builtIn/en.ts
1965
2035
  var EN_KIT_CATALOG = {
1966
2036
  kit: {
2037
+ connectionFlowConnection: {
2038
+ label: "Connection from {source} to {target}"
2039
+ },
2040
+ connectionFlowEdit: {
2041
+ connected: "Connection requested",
2042
+ add: "Add a node {side} {label}",
2043
+ top: "above",
2044
+ right: "to the right of",
2045
+ bottom: "below",
2046
+ left: "to the left of",
2047
+ canceled: "Node creation canceled",
2048
+ created: "Draft node added. Configure or dismiss it."
2049
+ },
2050
+ networkGraph: {
2051
+ name: "Network graph",
2052
+ zoomIn: "Zoom in",
2053
+ zoomOut: "Zoom out",
2054
+ zoom: "Zoom",
2055
+ fit: "Fit",
2056
+ reset: "Reset",
2057
+ findNode: "Find a node",
2058
+ empty: "No visible nodes",
2059
+ communities: "Communities",
2060
+ selectAll: "Select all",
2061
+ instructions: "Drag to pan. Ctrl + scroll to zoom. Arrow keys browse nodes; Enter selects; Escape clears; Home fits; +/\u2212 zoom.",
2062
+ nodeStatus: "{label} \xB7 {count} connections",
2063
+ summary: "{nodes} nodes \xB7 {edges} connections"
2064
+ },
1967
2065
  accordion: {
1968
2066
  loadingTitle: "Loading",
1969
2067
  noItemsTitle: "No items"
@@ -2028,6 +2126,48 @@ var EN_KIT_CATALOG = {
2028
2126
  barAriaMilestone: "{task}: {start} to {end}, milestone",
2029
2127
  zoomQuarter: "Quarter"
2030
2128
  },
2129
+ taskboard: {
2130
+ root: "Task board",
2131
+ loading: "Loading board\u2026",
2132
+ empty: "No cards yet",
2133
+ error: "Couldn\u2019t load the board",
2134
+ retry: "Retry",
2135
+ addCard: "Add card",
2136
+ collapse: "Collapse {name}",
2137
+ expand: "Expand {name}",
2138
+ cardCount: "{count, plural, one {# card} other {# cards}}",
2139
+ wip: "{count} of {limit}",
2140
+ grabbed: "Picked up {title}. Use arrow keys to move, Space to drop, Escape to cancel.",
2141
+ moved: "Moved to {column}, position {index} of {total}",
2142
+ movedLane: "Moved to {column} in {lane}, position {index} of {total}",
2143
+ dropped: "Dropped {title} in {column}",
2144
+ cancelled: "Move cancelled",
2145
+ held: "{name} is moving this",
2146
+ heldShort: "{name} has this",
2147
+ notAllowed: "Can\u2019t drop here",
2148
+ pending: "Saving\u2026",
2149
+ online: "{count} online",
2150
+ notes: "Has notes",
2151
+ checklist: "{done} of {total} done",
2152
+ due: "Due {date}",
2153
+ addColumn: "Add column",
2154
+ columnName: "Column name",
2155
+ moveColumn: "Move {name}",
2156
+ columnGrabbed: "Picked up {name}. Use the arrow keys to move it, Space to drop, Escape to cancel.",
2157
+ columnMoved: "{name} moved to position {index} of {total}",
2158
+ editColumn: "Edit {name}",
2159
+ columnColor: "Colour",
2160
+ wipLimit: "WIP limit",
2161
+ wipLimitHint: "Empty means no limit.",
2162
+ lockColumn: "Locked",
2163
+ lockColumnHint: "No card moves in or out.",
2164
+ acceptsFrom: "Accepts cards from",
2165
+ acceptsAny: "None ticked: any column.",
2166
+ save: "Save",
2167
+ cancel: "Cancel",
2168
+ maxItems: "Max items",
2169
+ maxItemsHint: "Empty uses the board default."
2170
+ },
2031
2171
  help: {
2032
2172
  show: "Show help",
2033
2173
  close: "Close help",
@@ -2309,6 +2449,34 @@ var EN_KIT_CATALOG = {
2309
2449
  // ../common/i18n/builtIn/es.ts
2310
2450
  var ES_KIT_CATALOG = {
2311
2451
  kit: {
2452
+ connectionFlowConnection: {
2453
+ label: "Conexi\xF3n de {source} a {target}"
2454
+ },
2455
+ connectionFlowEdit: {
2456
+ connected: "Conexi\xF3n solicitada",
2457
+ add: "A\xF1adir un nodo {side} de {label}",
2458
+ top: "encima",
2459
+ right: "a la derecha",
2460
+ bottom: "debajo",
2461
+ left: "a la izquierda",
2462
+ canceled: "Creaci\xF3n de nodo cancelada",
2463
+ created: "Nodo provisional a\xF1adido. Config\xFAralo o desc\xE1rtalo."
2464
+ },
2465
+ networkGraph: {
2466
+ name: "Grafo de red",
2467
+ zoomIn: "Acercar",
2468
+ zoomOut: "Alejar",
2469
+ zoom: "Zoom",
2470
+ fit: "Ajustar",
2471
+ reset: "Restablecer",
2472
+ findNode: "Buscar un nodo",
2473
+ empty: "No hay nodos visibles",
2474
+ communities: "Comunidades",
2475
+ selectAll: "Seleccionar todo",
2476
+ instructions: "Arrastra para desplazar. Ctrl + desplazamiento para ampliar. Flechas: recorrer; Intro: seleccionar; Escape: borrar; Inicio: ajustar; +/\u2212: zoom.",
2477
+ nodeStatus: "{label} \xB7 {count} conexiones",
2478
+ summary: "{nodes} nodos \xB7 {edges} conexiones"
2479
+ },
2312
2480
  accordion: {
2313
2481
  loadingTitle: "Cargando",
2314
2482
  noItemsTitle: "Sin elementos"
@@ -2373,6 +2541,48 @@ var ES_KIT_CATALOG = {
2373
2541
  barAriaMilestone: "{task}: del {start} al {end}, hito",
2374
2542
  zoomQuarter: "Trimestre"
2375
2543
  },
2544
+ taskboard: {
2545
+ root: "Tablero de tareas",
2546
+ loading: "Cargando tablero\u2026",
2547
+ empty: "A\xFAn no hay tarjetas",
2548
+ error: "No se pudo cargar el tablero",
2549
+ retry: "Reintentar",
2550
+ addCard: "A\xF1adir tarjeta",
2551
+ collapse: "Contraer {name}",
2552
+ expand: "Expandir {name}",
2553
+ cardCount: "{count, plural, one {# tarjeta} other {# tarjetas}}",
2554
+ wip: "{count} de {limit}",
2555
+ grabbed: "{title} seleccionada. Usa las flechas para moverla, Espacio para soltarla y Escape para cancelar.",
2556
+ moved: "Movida a {column}, posici\xF3n {index} de {total}",
2557
+ movedLane: "Movida a {column} en {lane}, posici\xF3n {index} de {total}",
2558
+ dropped: "{title} soltada en {column}",
2559
+ cancelled: "Movimiento cancelado",
2560
+ held: "{name} est\xE1 moviendo esta tarjeta",
2561
+ heldShort: "{name} la tiene",
2562
+ notAllowed: "No se puede soltar aqu\xED",
2563
+ pending: "Guardando\u2026",
2564
+ online: "{count} en l\xEDnea",
2565
+ notes: "Tiene notas",
2566
+ checklist: "{done} de {total} hechas",
2567
+ due: "Vence {date}",
2568
+ addColumn: "A\xF1adir columna",
2569
+ columnName: "Nombre de la columna",
2570
+ moveColumn: "Mover {name}",
2571
+ columnGrabbed: "{name} seleccionada. Usa las flechas para moverla, Espacio para soltarla y Escape para cancelar.",
2572
+ columnMoved: "{name} movida a la posici\xF3n {index} de {total}",
2573
+ editColumn: "Editar {name}",
2574
+ columnColor: "Color",
2575
+ wipLimit: "L\xEDmite WIP",
2576
+ wipLimitHint: "Vac\xEDo significa sin l\xEDmite.",
2577
+ lockColumn: "Bloqueada",
2578
+ lockColumnHint: "Ninguna tarjeta entra ni sale.",
2579
+ acceptsFrom: "Acepta tarjetas de",
2580
+ acceptsAny: "Ninguna marcada: cualquier columna.",
2581
+ save: "Guardar",
2582
+ cancel: "Cancelar",
2583
+ maxItems: "M\xE1x. tarjetas",
2584
+ maxItemsHint: "Vac\xEDo usa el valor del tablero."
2585
+ },
2376
2586
  help: {
2377
2587
  show: "Mostrar ayuda",
2378
2588
  close: "Cerrar ayuda",
@@ -2654,6 +2864,34 @@ var ES_KIT_CATALOG = {
2654
2864
  // ../common/i18n/builtIn/fr.ts
2655
2865
  var FR_KIT_CATALOG = {
2656
2866
  kit: {
2867
+ connectionFlowConnection: {
2868
+ label: "Connexion de {source} vers {target}"
2869
+ },
2870
+ connectionFlowEdit: {
2871
+ connected: "Connexion demand\xE9e",
2872
+ add: "Ajouter un n\u0153ud {side} de {label}",
2873
+ top: "au-dessus",
2874
+ right: "\xE0 droite",
2875
+ bottom: "en dessous",
2876
+ left: "\xE0 gauche",
2877
+ canceled: "Cr\xE9ation du n\u0153ud annul\xE9e",
2878
+ created: "N\u0153ud provisoire ajout\xE9. Configurez-le ou supprimez-le."
2879
+ },
2880
+ networkGraph: {
2881
+ name: "Graphe de r\xE9seau",
2882
+ zoomIn: "Zoom avant",
2883
+ zoomOut: "Zoom arri\xE8re",
2884
+ zoom: "Zoom",
2885
+ fit: "Ajuster",
2886
+ reset: "R\xE9initialiser",
2887
+ findNode: "Rechercher un n\u0153ud",
2888
+ empty: "Aucun n\u0153ud visible",
2889
+ communities: "Communaut\xE9s",
2890
+ selectAll: "Tout s\xE9lectionner",
2891
+ instructions: "Glissez pour d\xE9placer. Ctrl + d\xE9filement pour zoomer. Fl\xE8ches : parcourir ; Entr\xE9e : s\xE9lectionner ; \xC9chap : effacer ; D\xE9but : ajuster ; +/\u2212 : zoomer.",
2892
+ nodeStatus: "{label} \xB7 {count} connexions",
2893
+ summary: "{nodes} n\u0153uds \xB7 {edges} connexions"
2894
+ },
2657
2895
  accordion: {
2658
2896
  loadingTitle: "Chargement",
2659
2897
  noItemsTitle: "Aucun \xE9l\xE9ment"
@@ -2718,6 +2956,48 @@ var FR_KIT_CATALOG = {
2718
2956
  barAriaMilestone: "{task} : du {start} au {end}, jalon",
2719
2957
  zoomQuarter: "Trimestre"
2720
2958
  },
2959
+ taskboard: {
2960
+ root: "Tableau des t\xE2ches",
2961
+ loading: "Chargement du tableau\u2026",
2962
+ empty: "Aucune carte pour l\u2019instant",
2963
+ error: "Impossible de charger le tableau",
2964
+ retry: "R\xE9essayer",
2965
+ addCard: "Ajouter une carte",
2966
+ collapse: "R\xE9duire {name}",
2967
+ expand: "D\xE9velopper {name}",
2968
+ cardCount: "{count, plural, one {# carte} other {# cartes}}",
2969
+ wip: "{count} sur {limit}",
2970
+ grabbed: "{title} saisie. Fl\xE8ches pour d\xE9placer, Espace pour d\xE9poser, \xC9chap pour annuler.",
2971
+ moved: "D\xE9plac\xE9e vers {column}, position {index} sur {total}",
2972
+ movedLane: "D\xE9plac\xE9e vers {column} dans {lane}, position {index} sur {total}",
2973
+ dropped: "{title} d\xE9pos\xE9e dans {column}",
2974
+ cancelled: "D\xE9placement annul\xE9",
2975
+ held: "{name} d\xE9place cette carte",
2976
+ heldShort: "{name} l\u2019a prise",
2977
+ notAllowed: "D\xE9p\xF4t impossible ici",
2978
+ pending: "Enregistrement\u2026",
2979
+ online: "{count} en ligne",
2980
+ notes: "Contient des notes",
2981
+ checklist: "{done} sur {total} faites",
2982
+ due: "\xC9ch\xE9ance {date}",
2983
+ addColumn: "Ajouter une colonne",
2984
+ columnName: "Nom de la colonne",
2985
+ moveColumn: "D\xE9placer {name}",
2986
+ columnGrabbed: "{name} saisie. Fl\xE8ches pour d\xE9placer, Espace pour d\xE9poser, \xC9chap pour annuler.",
2987
+ columnMoved: "{name} d\xE9plac\xE9e en position {index} sur {total}",
2988
+ editColumn: "Modifier {name}",
2989
+ columnColor: "Couleur",
2990
+ wipLimit: "Limite WIP",
2991
+ wipLimitHint: "Vide signifie aucune limite.",
2992
+ lockColumn: "Verrouill\xE9e",
2993
+ lockColumnHint: "Aucune carte n\u2019entre ni ne sort.",
2994
+ acceptsFrom: "Accepte les cartes de",
2995
+ acceptsAny: "Aucune coch\xE9e : toutes les colonnes.",
2996
+ save: "Enregistrer",
2997
+ cancel: "Annuler",
2998
+ maxItems: "Cartes max.",
2999
+ maxItemsHint: "Vide : valeur du tableau."
3000
+ },
2721
3001
  help: {
2722
3002
  show: "Afficher l\\'aide",
2723
3003
  close: "Fermer l\\'aide",
@@ -2999,6 +3279,34 @@ var FR_KIT_CATALOG = {
2999
3279
  // ../common/i18n/builtIn/pt.ts
3000
3280
  var PT_KIT_CATALOG = {
3001
3281
  kit: {
3282
+ connectionFlowConnection: {
3283
+ label: "Liga\xE7\xE3o de {source} para {target}"
3284
+ },
3285
+ connectionFlowEdit: {
3286
+ connected: "Liga\xE7\xE3o solicitada",
3287
+ add: "Adicionar um n\xF3 {side} de {label}",
3288
+ top: "acima",
3289
+ right: "\xE0 direita",
3290
+ bottom: "abaixo",
3291
+ left: "\xE0 esquerda",
3292
+ canceled: "Cria\xE7\xE3o do n\xF3 cancelada",
3293
+ created: "N\xF3 provis\xF3rio adicionado. Configure-o ou descarte-o."
3294
+ },
3295
+ networkGraph: {
3296
+ name: "Grafo de rede",
3297
+ zoomIn: "Ampliar",
3298
+ zoomOut: "Reduzir",
3299
+ zoom: "Zoom",
3300
+ fit: "Ajustar",
3301
+ reset: "Repor",
3302
+ findNode: "Procurar um n\xF3",
3303
+ empty: "Nenhum n\xF3 vis\xEDvel",
3304
+ communities: "Comunidades",
3305
+ selectAll: "Selecionar tudo",
3306
+ instructions: "Arraste para mover. Ctrl + deslocamento para ampliar. Setas: navegar; Enter: selecionar; Escape: limpar; Home: ajustar; +/\u2212: ampliar ou reduzir.",
3307
+ nodeStatus: "{label} \xB7 {count} liga\xE7\xF5es",
3308
+ summary: "{nodes} n\xF3s \xB7 {edges} liga\xE7\xF5es"
3309
+ },
3002
3310
  accordion: {
3003
3311
  loadingTitle: "Carregando",
3004
3312
  noItemsTitle: "Sem itens"
@@ -3063,6 +3371,48 @@ var PT_KIT_CATALOG = {
3063
3371
  barAriaMilestone: "{task}: de {start} a {end}, marco",
3064
3372
  zoomQuarter: "Trimestre"
3065
3373
  },
3374
+ taskboard: {
3375
+ root: "Quadro de tarefas",
3376
+ loading: "Carregando quadro\u2026",
3377
+ empty: "Nenhum cart\xE3o ainda",
3378
+ error: "N\xE3o foi poss\xEDvel carregar o quadro",
3379
+ retry: "Tentar novamente",
3380
+ addCard: "Adicionar cart\xE3o",
3381
+ collapse: "Recolher {name}",
3382
+ expand: "Expandir {name}",
3383
+ cardCount: "{count, plural, one {# cart\xE3o} other {# cart\xF5es}}",
3384
+ wip: "{count} de {limit}",
3385
+ grabbed: "{title} selecionado. Use as setas para mover, Espa\xE7o para soltar e Escape para cancelar.",
3386
+ moved: "Movido para {column}, posi\xE7\xE3o {index} de {total}",
3387
+ movedLane: "Movido para {column} em {lane}, posi\xE7\xE3o {index} de {total}",
3388
+ dropped: "{title} solto em {column}",
3389
+ cancelled: "Movimento cancelado",
3390
+ held: "{name} est\xE1 movendo este cart\xE3o",
3391
+ heldShort: "{name} est\xE1 com ele",
3392
+ notAllowed: "N\xE3o \xE9 poss\xEDvel soltar aqui",
3393
+ pending: "Salvando\u2026",
3394
+ online: "{count} online",
3395
+ notes: "Tem notas",
3396
+ checklist: "{done} de {total} conclu\xEDdos",
3397
+ due: "Vence {date}",
3398
+ addColumn: "Adicionar coluna",
3399
+ columnName: "Nome da coluna",
3400
+ moveColumn: "Mover {name}",
3401
+ columnGrabbed: "{name} selecionada. Use as setas para mover, Espa\xE7o para soltar e Escape para cancelar.",
3402
+ columnMoved: "{name} movida para a posi\xE7\xE3o {index} de {total}",
3403
+ editColumn: "Editar {name}",
3404
+ columnColor: "Cor",
3405
+ wipLimit: "Limite WIP",
3406
+ wipLimitHint: "Vazio significa sem limite.",
3407
+ lockColumn: "Bloqueada",
3408
+ lockColumnHint: "Nenhum cart\xE3o entra ou sai.",
3409
+ acceptsFrom: "Aceita cart\xF5es de",
3410
+ acceptsAny: "Nenhuma marcada: qualquer coluna.",
3411
+ save: "Salvar",
3412
+ cancel: "Cancelar",
3413
+ maxItems: "M\xE1x. de cart\xF5es",
3414
+ maxItemsHint: "Vazio usa o padr\xE3o do quadro."
3415
+ },
3066
3416
  help: {
3067
3417
  show: "Mostrar ajuda",
3068
3418
  close: "Fechar ajuda",
@@ -8590,6 +8940,7 @@ var TooltipWrapper = ({
8590
8940
  const tooltipRef = (0, import_react151.useRef)(null);
8591
8941
  const triggerRectRef = (0, import_react151.useRef)(null);
8592
8942
  const [visible, setVisible] = (0, import_react151.useState)(false);
8943
+ const [colorScheme, setColorScheme] = (0, import_react151.useState)(null);
8593
8944
  const [placement, setPlacement] = (0, import_react151.useState)(null);
8594
8945
  (0, import_react151.useEffect)(() => {
8595
8946
  return () => {
@@ -8651,6 +9002,9 @@ var TooltipWrapper = ({
8651
9002
  const show = (0, import_react151.useCallback)(
8652
9003
  (e) => {
8653
9004
  if (text) {
9005
+ setColorScheme(
9006
+ e.currentTarget.closest("[data-color-scheme]")?.getAttribute("data-color-scheme") ?? null
9007
+ );
8654
9008
  triggerRectRef.current = e.currentTarget.getBoundingClientRect();
8655
9009
  setPlacement(null);
8656
9010
  timerRef.current = setTimeout(() => setVisible(true), delay);
@@ -8702,6 +9056,7 @@ var TooltipWrapper = ({
8702
9056
  ref: tooltipRef,
8703
9057
  id: tooltipId,
8704
9058
  role: "tooltip",
9059
+ "data-color-scheme": colorScheme ?? void 0,
8705
9060
  "data-side": side,
8706
9061
  style: {
8707
9062
  position: "fixed",
@@ -8712,7 +9067,8 @@ var TooltipWrapper = ({
8712
9067
  },
8713
9068
  className: (0, import_classnames2.default)(
8714
9069
  "pointer-events-none max-w-xs rounded-md px-2.5 py-1.5 text-xs leading-snug",
8715
- tokens.box
9070
+ tokens.box,
9071
+ colorScheme === "dark" && "dark"
8716
9072
  ),
8717
9073
  children: [
8718
9074
  text,
@@ -10301,6 +10657,7 @@ var BAR_BASE = "absolute select-none touch-none opacity-100 transition-opacity d
10301
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";
10302
10658
  var FITTING_THUMB = { size: 0, offset: 0, ratio: 0 };
10303
10659
  var ScrollArea = ({
10660
+ virtualScroll,
10304
10661
  variant = "auto",
10305
10662
  mask = false,
10306
10663
  horizontal = true,
@@ -10312,6 +10669,7 @@ var ScrollArea = ({
10312
10669
  className = "",
10313
10670
  ...rest
10314
10671
  }) => {
10672
+ horizontal = horizontal && !virtualScroll;
10315
10673
  const viewportId = (0, import_react157.useId)();
10316
10674
  const viewportRef = (0, import_react157.useRef)(null);
10317
10675
  const setViewportRef = (0, import_react157.useCallback)(
@@ -10335,36 +10693,36 @@ var ScrollArea = ({
10335
10693
  const dragging = (0, import_react157.useRef)(null);
10336
10694
  const thumb = (0, import_react157.useCallback)(
10337
10695
  (viewport, track, axis) => {
10338
- const viewportSize = axis === "y" ? viewport.clientHeight : viewport.clientWidth;
10339
- 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;
10340
10698
  const trackSize = (track ? axis === "y" ? track.clientHeight : track.clientWidth : viewportSize) || 1;
10341
10699
  const scrollable = contentSize - viewportSize;
10342
- if (scrollable <= 1) return FITTING_THUMB;
10700
+ if (scrollable <= (virtualScroll ? 0 : 1)) return FITTING_THUMB;
10343
10701
  const size = Math.max(
10344
10702
  MIN_THUMB,
10345
10703
  viewportSize / contentSize * trackSize
10346
10704
  );
10347
- const position = axis === "y" ? viewport.scrollTop : viewport.scrollLeft;
10705
+ const position = axis === "y" && virtualScroll ? virtualScroll.offset : axis === "y" ? viewport.scrollTop : viewport.scrollLeft;
10348
10706
  return {
10349
10707
  size,
10350
10708
  offset: position / scrollable * (trackSize - size),
10351
10709
  ratio: position / scrollable
10352
10710
  };
10353
10711
  },
10354
- []
10712
+ [virtualScroll]
10355
10713
  );
10356
10714
  const update = (0, import_react157.useCallback)(() => {
10357
10715
  const viewport = viewportRef.current;
10358
10716
  if (!viewport) return;
10359
10717
  setOverflow({
10360
10718
  x: horizontal && viewport.scrollWidth - viewport.clientWidth > 1,
10361
- y: viewport.scrollHeight - viewport.clientHeight > 1
10719
+ y: virtualScroll ? virtualScroll.contentSize > virtualScroll.viewportSize : viewport.scrollHeight - viewport.clientHeight > 1
10362
10720
  });
10363
10721
  setThumbY(thumb(viewport, yTrackRef.current, "y"));
10364
10722
  setThumbX(
10365
10723
  horizontal ? thumb(viewport, xTrackRef.current, "x") : FITTING_THUMB
10366
10724
  );
10367
- }, [thumb, horizontal]);
10725
+ }, [thumb, horizontal, virtualScroll]);
10368
10726
  (0, import_react157.useEffect)(() => {
10369
10727
  update();
10370
10728
  let observer;
@@ -10390,6 +10748,18 @@ var ScrollArea = ({
10390
10748
  SCROLL_LINGER_MS
10391
10749
  );
10392
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]);
10393
10763
  const visible = (overflows) => {
10394
10764
  if (!overflows || variant === "hidden") return false;
10395
10765
  if (variant === "always") return true;
@@ -10407,11 +10777,11 @@ var ScrollArea = ({
10407
10777
  const track = axis === "y" ? yTrackRef.current : xTrackRef.current;
10408
10778
  const metrics = axis === "y" ? thumbY : thumbX;
10409
10779
  const travel = (track ? axis === "y" ? track.clientHeight : track.clientWidth : 0) - metrics.size;
10410
- 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);
10411
10781
  dragging.current = {
10412
10782
  axis,
10413
10783
  pointer: axis === "y" ? event.clientY : event.clientX,
10414
- scroll: axis === "y" ? viewport.scrollTop : viewport.scrollLeft,
10784
+ scroll: axis === "y" && virtualScroll ? virtualScroll.offset : axis === "y" ? viewport.scrollTop : viewport.scrollLeft,
10415
10785
  ratio: travel > 0 ? scrollable / travel : 0
10416
10786
  };
10417
10787
  };
@@ -10421,7 +10791,17 @@ var ScrollArea = ({
10421
10791
  if (!drag || !viewport) return;
10422
10792
  const pointer = drag.axis === "y" ? event.clientY : event.clientX;
10423
10793
  const delta = (pointer - drag.pointer) * drag.ratio;
10424
- if (drag.axis === "y") viewport.scrollTop = drag.scroll + delta;
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;
10425
10805
  else viewport.scrollLeft = drag.scroll + delta;
10426
10806
  };
10427
10807
  const endDrag = (event) => {
@@ -10475,6 +10855,7 @@ var ScrollArea = ({
10475
10855
  onScroll: handleScroll,
10476
10856
  style: {
10477
10857
  ...maskStyle(),
10858
+ ...virtualScroll ? { overflow: "hidden" } : null,
10478
10859
  ...horizontal ? null : { overflowX: "hidden" }
10479
10860
  },
10480
10861
  className: (0, import_classnames9.default)(
@@ -10492,7 +10873,10 @@ var ScrollArea = ({
10492
10873
  {
10493
10874
  ref: contentRef,
10494
10875
  "data-slot": "scrollarea-content",
10495
- className: (0, import_classnames9.default)("table min-w-full", contentClassName),
10876
+ className: (0, import_classnames9.default)(
10877
+ virtualScroll ? "h-full min-w-full" : "table min-w-full",
10878
+ contentClassName
10879
+ ),
10496
10880
  children
10497
10881
  }
10498
10882
  )
@@ -11086,42 +11470,58 @@ var Tabs = ({
11086
11470
  isGlass && isActive && glassActiveRing
11087
11471
  );
11088
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
+ );
11089
11511
  return /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)(import_react158.default.Fragment, { children: [
11090
- /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)(
11091
- "button",
11512
+ item.trailingAction ? /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)(
11513
+ "div",
11092
11514
  {
11093
- type: "button",
11094
- role: "tab",
11095
- id: `tab-${item.id}`,
11096
- "aria-selected": isActive,
11097
- "aria-controls": item.panel !== void 0 ? controlsId : void 0,
11098
- disabled: isDisabled,
11099
- className: baseClassesForItem,
11100
- onClick: () => selectTab(item),
11101
- tabIndex: isActive ? 0 : -1,
11102
- ref: (node) => {
11103
- tabRefs.current.set(item.id, node);
11104
- },
11515
+ className: (0, import_classnames11.default)(
11516
+ "relative inline-flex shrink-0",
11517
+ fullWidth && "flex-1"
11518
+ ),
11105
11519
  children: [
11106
- isGlass && glassSpecular ? /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
11107
- "div",
11108
- {
11109
- "aria-hidden": "true",
11110
- className: (0, import_classnames11.default)(
11111
- "pointer-events-none absolute inset-0 rounded-[inherit]",
11112
- glassSpecular
11113
- )
11114
- }
11115
- ) : null,
11116
- renderTabIcon(item.icon),
11117
- /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("span", { className: "flex min-w-0 flex-col text-left", children: [
11118
- /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("span", { className: "truncate", children: item.label }),
11119
- item.description ? /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("span", { className: "mt-1 text-xs opacity-70", children: item.description }) : null
11120
- ] }),
11121
- 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 })
11122
11522
  ]
11123
11523
  }
11124
- ),
11524
+ ) : tabButton,
11125
11525
  showDividerAfter ? /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
11126
11526
  "span",
11127
11527
  {