@cjlapao/ui-kit 0.2.6 → 0.2.8
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/{CapsuleBlueprint-BI0jdbTt.d.cts → CapsuleBlueprint-DzjbCo3k.d.cts} +29 -2
- package/dist/{CapsuleBlueprint-BI0jdbTt.d.ts → CapsuleBlueprint-DzjbCo3k.d.ts} +29 -2
- package/dist/index.cjs +12391 -4974
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1013 -165
- package/dist/index.d.cts +960 -16
- package/dist/index.d.ts +960 -16
- package/dist/index.js +12083 -4681
- package/dist/index.js.map +1 -1
- package/dist/markdown.cjs +489 -17
- package/dist/markdown.cjs.map +1 -1
- package/dist/markdown.d.cts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.js +489 -17
- package/dist/markdown.js.map +1 -1
- package/package.json +1 -1
package/dist/markdown.cjs
CHANGED
|
@@ -300,9 +300,11 @@ var inputVariantTokens = {
|
|
|
300
300
|
translucent: true
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
|
+
var FILL_CLASS = /^(?:dark:)?bg-(?:[a-z]+-\d{2,3}(?:\/\d+)?|white(?:\/\d+)?|black(?:\/\d+)?|transparent|current|inherit)$/;
|
|
304
|
+
var stripFillClass = (surface) => surface.split(/\s+/).filter((token) => token !== "" && !FILL_CLASS.test(token)).join(" ");
|
|
303
305
|
var TEXT_COLOR_CLASS = /^(?:dark:)?text-(?:[a-z]+-\d{2,3}(?:\/\d+)?|white(?:\/\d+)?|black(?:\/\d+)?|transparent|current|inherit)$/;
|
|
304
306
|
var hasTextColor = (className) => Boolean(className) && className.split(/\s+/).some((token) => TEXT_COLOR_CLASS.test(token));
|
|
305
|
-
var getInputVariantTokens = (variant, tone = "neutral", corner = "auto") => {
|
|
307
|
+
var getInputVariantTokens = (variant, tone = "neutral", corner = "auto", options) => {
|
|
306
308
|
const tokens = inputVariantTokens[variant] ?? inputVariantTokens.elevated;
|
|
307
309
|
let resolved = tokens;
|
|
308
310
|
if (variant === "ghost") {
|
|
@@ -316,6 +318,13 @@ var getInputVariantTokens = (variant, tone = "neutral", corner = "auto") => {
|
|
|
316
318
|
].join(" ")
|
|
317
319
|
};
|
|
318
320
|
}
|
|
321
|
+
if (variant === "glass" && options?.explicitTone) {
|
|
322
|
+
const tint = options.explicitTone;
|
|
323
|
+
resolved = {
|
|
324
|
+
...resolved,
|
|
325
|
+
surface: `${stripFillClass(resolved.surface)} bg-${tint}-100/45 dark:bg-${tint}-500/10`
|
|
326
|
+
};
|
|
327
|
+
}
|
|
319
328
|
if (corner === "auto") return resolved;
|
|
320
329
|
return {
|
|
321
330
|
...resolved,
|
|
@@ -1610,6 +1619,31 @@ function getLocalizedParseNames(locale, catalog) {
|
|
|
1610
1619
|
// ../common/i18n/builtIn/de.ts
|
|
1611
1620
|
var DE_KIT_CATALOG = {
|
|
1612
1621
|
kit: {
|
|
1622
|
+
connectionFlowEdit: {
|
|
1623
|
+
connected: "Verbindung angefordert",
|
|
1624
|
+
add: "Knoten {side} von {label} hinzuf\xFCgen",
|
|
1625
|
+
top: "oberhalb",
|
|
1626
|
+
right: "rechts",
|
|
1627
|
+
bottom: "unterhalb",
|
|
1628
|
+
left: "links",
|
|
1629
|
+
canceled: "Knotenerstellung abgebrochen",
|
|
1630
|
+
created: "Knotenentwurf hinzugef\xFCgt. Konfigurieren oder verwerfen."
|
|
1631
|
+
},
|
|
1632
|
+
networkGraph: {
|
|
1633
|
+
name: "Netzwerkgraph",
|
|
1634
|
+
zoomIn: "Vergr\xF6\xDFern",
|
|
1635
|
+
zoomOut: "Verkleinern",
|
|
1636
|
+
zoom: "Zoom",
|
|
1637
|
+
fit: "Einpassen",
|
|
1638
|
+
reset: "Zur\xFCcksetzen",
|
|
1639
|
+
findNode: "Knoten suchen",
|
|
1640
|
+
empty: "Keine sichtbaren Knoten",
|
|
1641
|
+
communities: "Gemeinschaften",
|
|
1642
|
+
selectAll: "Alle ausw\xE4hlen",
|
|
1643
|
+
instructions: "Ziehen zum Verschieben. Strg + Scrollen zum Zoomen. Pfeiltasten: navigieren; Eingabe: ausw\xE4hlen; Escape: l\xF6schen; Pos1: einpassen; +/\u2212: zoomen.",
|
|
1644
|
+
nodeStatus: "{label} \xB7 {count} Verbindungen",
|
|
1645
|
+
summary: "{nodes} Knoten \xB7 {edges} Verbindungen"
|
|
1646
|
+
},
|
|
1613
1647
|
accordion: {
|
|
1614
1648
|
loadingTitle: "Wird geladen",
|
|
1615
1649
|
noItemsTitle: "Keine Eintr\xE4ge"
|
|
@@ -1674,6 +1708,46 @@ var DE_KIT_CATALOG = {
|
|
|
1674
1708
|
barAriaMilestone: "{task}: {start} bis {end}, Meilenstein",
|
|
1675
1709
|
zoomQuarter: "Quartal"
|
|
1676
1710
|
},
|
|
1711
|
+
taskboard: {
|
|
1712
|
+
root: "Aufgabenboard",
|
|
1713
|
+
loading: "Board wird geladen\u2026",
|
|
1714
|
+
empty: "Noch keine Karten",
|
|
1715
|
+
error: "Board konnte nicht geladen werden",
|
|
1716
|
+
retry: "Erneut versuchen",
|
|
1717
|
+
addCard: "Karte hinzuf\xFCgen",
|
|
1718
|
+
collapse: "{name} einklappen",
|
|
1719
|
+
expand: "{name} ausklappen",
|
|
1720
|
+
cardCount: "{count, plural, one {# Karte} other {# Karten}}",
|
|
1721
|
+
wip: "{count} von {limit}",
|
|
1722
|
+
grabbed: "{title} aufgenommen. Mit den Pfeiltasten verschieben, Leertaste zum Ablegen, Escape zum Abbrechen.",
|
|
1723
|
+
moved: "Nach {column} verschoben, Position {index} von {total}",
|
|
1724
|
+
movedLane: "Nach {column} in {lane} verschoben, Position {index} von {total}",
|
|
1725
|
+
dropped: "{title} in {column} abgelegt",
|
|
1726
|
+
cancelled: "Verschieben abgebrochen",
|
|
1727
|
+
held: "{name} verschiebt diese Karte",
|
|
1728
|
+
heldShort: "{name} hat diese Karte",
|
|
1729
|
+
notAllowed: "Hier nicht ablegbar",
|
|
1730
|
+
pending: "Wird gespeichert\u2026",
|
|
1731
|
+
online: "{count} online",
|
|
1732
|
+
notes: "Hat Notizen",
|
|
1733
|
+
checklist: "{done} von {total} erledigt",
|
|
1734
|
+
due: "F\xE4llig {date}",
|
|
1735
|
+
addColumn: "Spalte hinzuf\xFCgen",
|
|
1736
|
+
columnName: "Spaltenname",
|
|
1737
|
+
moveColumn: "{name} verschieben",
|
|
1738
|
+
columnGrabbed: "{name} aufgenommen. Mit den Pfeiltasten verschieben, Leertaste zum Ablegen, Escape zum Abbrechen.",
|
|
1739
|
+
columnMoved: "{name} an Position {index} von {total} verschoben",
|
|
1740
|
+
editColumn: "{name} bearbeiten",
|
|
1741
|
+
columnColor: "Farbe",
|
|
1742
|
+
wipLimit: "WIP-Limit",
|
|
1743
|
+
wipLimitHint: "Leer bedeutet kein Limit.",
|
|
1744
|
+
lockColumn: "Gesperrt",
|
|
1745
|
+
lockColumnHint: "Keine Karte wird hinein- oder herausbewegt.",
|
|
1746
|
+
acceptsFrom: "Nimmt Karten an aus",
|
|
1747
|
+
acceptsAny: "Nichts ausgew\xE4hlt: jede Spalte.",
|
|
1748
|
+
save: "Speichern",
|
|
1749
|
+
cancel: "Abbrechen"
|
|
1750
|
+
},
|
|
1677
1751
|
help: {
|
|
1678
1752
|
show: "Hilfe anzeigen",
|
|
1679
1753
|
close: "Hilfe schlie\xDFen",
|
|
@@ -1756,7 +1830,8 @@ var DE_KIT_CATALOG = {
|
|
|
1756
1830
|
collapseSidebar: "Seitenleiste einklappen",
|
|
1757
1831
|
verbCollapse: "Einklappen",
|
|
1758
1832
|
verbExpand: "Auskklappen",
|
|
1759
|
-
toggleSubmenu: "{verb} Untermen\xFC {label}"
|
|
1833
|
+
toggleSubmenu: "{verb} Untermen\xFC {label}",
|
|
1834
|
+
dismissCta: "Ausblenden"
|
|
1760
1835
|
},
|
|
1761
1836
|
splitview: {
|
|
1762
1837
|
moreOptions: "Weitere Optionen",
|
|
@@ -1954,6 +2029,31 @@ var DE_KIT_CATALOG = {
|
|
|
1954
2029
|
// ../common/i18n/builtIn/en.ts
|
|
1955
2030
|
var EN_KIT_CATALOG = {
|
|
1956
2031
|
kit: {
|
|
2032
|
+
connectionFlowEdit: {
|
|
2033
|
+
connected: "Connection requested",
|
|
2034
|
+
add: "Add a node {side} {label}",
|
|
2035
|
+
top: "above",
|
|
2036
|
+
right: "to the right of",
|
|
2037
|
+
bottom: "below",
|
|
2038
|
+
left: "to the left of",
|
|
2039
|
+
canceled: "Node creation canceled",
|
|
2040
|
+
created: "Draft node added. Configure or dismiss it."
|
|
2041
|
+
},
|
|
2042
|
+
networkGraph: {
|
|
2043
|
+
name: "Network graph",
|
|
2044
|
+
zoomIn: "Zoom in",
|
|
2045
|
+
zoomOut: "Zoom out",
|
|
2046
|
+
zoom: "Zoom",
|
|
2047
|
+
fit: "Fit",
|
|
2048
|
+
reset: "Reset",
|
|
2049
|
+
findNode: "Find a node",
|
|
2050
|
+
empty: "No visible nodes",
|
|
2051
|
+
communities: "Communities",
|
|
2052
|
+
selectAll: "Select all",
|
|
2053
|
+
instructions: "Drag to pan. Ctrl + scroll to zoom. Arrow keys browse nodes; Enter selects; Escape clears; Home fits; +/\u2212 zoom.",
|
|
2054
|
+
nodeStatus: "{label} \xB7 {count} connections",
|
|
2055
|
+
summary: "{nodes} nodes \xB7 {edges} connections"
|
|
2056
|
+
},
|
|
1957
2057
|
accordion: {
|
|
1958
2058
|
loadingTitle: "Loading",
|
|
1959
2059
|
noItemsTitle: "No items"
|
|
@@ -2018,6 +2118,46 @@ var EN_KIT_CATALOG = {
|
|
|
2018
2118
|
barAriaMilestone: "{task}: {start} to {end}, milestone",
|
|
2019
2119
|
zoomQuarter: "Quarter"
|
|
2020
2120
|
},
|
|
2121
|
+
taskboard: {
|
|
2122
|
+
root: "Task board",
|
|
2123
|
+
loading: "Loading board\u2026",
|
|
2124
|
+
empty: "No cards yet",
|
|
2125
|
+
error: "Couldn\u2019t load the board",
|
|
2126
|
+
retry: "Retry",
|
|
2127
|
+
addCard: "Add card",
|
|
2128
|
+
collapse: "Collapse {name}",
|
|
2129
|
+
expand: "Expand {name}",
|
|
2130
|
+
cardCount: "{count, plural, one {# card} other {# cards}}",
|
|
2131
|
+
wip: "{count} of {limit}",
|
|
2132
|
+
grabbed: "Picked up {title}. Use arrow keys to move, Space to drop, Escape to cancel.",
|
|
2133
|
+
moved: "Moved to {column}, position {index} of {total}",
|
|
2134
|
+
movedLane: "Moved to {column} in {lane}, position {index} of {total}",
|
|
2135
|
+
dropped: "Dropped {title} in {column}",
|
|
2136
|
+
cancelled: "Move cancelled",
|
|
2137
|
+
held: "{name} is moving this",
|
|
2138
|
+
heldShort: "{name} has this",
|
|
2139
|
+
notAllowed: "Can\u2019t drop here",
|
|
2140
|
+
pending: "Saving\u2026",
|
|
2141
|
+
online: "{count} online",
|
|
2142
|
+
notes: "Has notes",
|
|
2143
|
+
checklist: "{done} of {total} done",
|
|
2144
|
+
due: "Due {date}",
|
|
2145
|
+
addColumn: "Add column",
|
|
2146
|
+
columnName: "Column name",
|
|
2147
|
+
moveColumn: "Move {name}",
|
|
2148
|
+
columnGrabbed: "Picked up {name}. Use the arrow keys to move it, Space to drop, Escape to cancel.",
|
|
2149
|
+
columnMoved: "{name} moved to position {index} of {total}",
|
|
2150
|
+
editColumn: "Edit {name}",
|
|
2151
|
+
columnColor: "Colour",
|
|
2152
|
+
wipLimit: "WIP limit",
|
|
2153
|
+
wipLimitHint: "Empty means no limit.",
|
|
2154
|
+
lockColumn: "Locked",
|
|
2155
|
+
lockColumnHint: "No card moves in or out.",
|
|
2156
|
+
acceptsFrom: "Accepts cards from",
|
|
2157
|
+
acceptsAny: "None ticked: any column.",
|
|
2158
|
+
save: "Save",
|
|
2159
|
+
cancel: "Cancel"
|
|
2160
|
+
},
|
|
2021
2161
|
help: {
|
|
2022
2162
|
show: "Show help",
|
|
2023
2163
|
close: "Close help",
|
|
@@ -2100,7 +2240,8 @@ var EN_KIT_CATALOG = {
|
|
|
2100
2240
|
collapseSidebar: "Collapse sidebar",
|
|
2101
2241
|
verbCollapse: "Collapse",
|
|
2102
2242
|
verbExpand: "Expand",
|
|
2103
|
-
toggleSubmenu: "{verb} {label} submenu"
|
|
2243
|
+
toggleSubmenu: "{verb} {label} submenu",
|
|
2244
|
+
dismissCta: "Dismiss"
|
|
2104
2245
|
},
|
|
2105
2246
|
splitview: {
|
|
2106
2247
|
moreOptions: "More options",
|
|
@@ -2298,6 +2439,31 @@ var EN_KIT_CATALOG = {
|
|
|
2298
2439
|
// ../common/i18n/builtIn/es.ts
|
|
2299
2440
|
var ES_KIT_CATALOG = {
|
|
2300
2441
|
kit: {
|
|
2442
|
+
connectionFlowEdit: {
|
|
2443
|
+
connected: "Conexi\xF3n solicitada",
|
|
2444
|
+
add: "A\xF1adir un nodo {side} de {label}",
|
|
2445
|
+
top: "encima",
|
|
2446
|
+
right: "a la derecha",
|
|
2447
|
+
bottom: "debajo",
|
|
2448
|
+
left: "a la izquierda",
|
|
2449
|
+
canceled: "Creaci\xF3n de nodo cancelada",
|
|
2450
|
+
created: "Nodo provisional a\xF1adido. Config\xFAralo o desc\xE1rtalo."
|
|
2451
|
+
},
|
|
2452
|
+
networkGraph: {
|
|
2453
|
+
name: "Grafo de red",
|
|
2454
|
+
zoomIn: "Acercar",
|
|
2455
|
+
zoomOut: "Alejar",
|
|
2456
|
+
zoom: "Zoom",
|
|
2457
|
+
fit: "Ajustar",
|
|
2458
|
+
reset: "Restablecer",
|
|
2459
|
+
findNode: "Buscar un nodo",
|
|
2460
|
+
empty: "No hay nodos visibles",
|
|
2461
|
+
communities: "Comunidades",
|
|
2462
|
+
selectAll: "Seleccionar todo",
|
|
2463
|
+
instructions: "Arrastra para desplazar. Ctrl + desplazamiento para ampliar. Flechas: recorrer; Intro: seleccionar; Escape: borrar; Inicio: ajustar; +/\u2212: zoom.",
|
|
2464
|
+
nodeStatus: "{label} \xB7 {count} conexiones",
|
|
2465
|
+
summary: "{nodes} nodos \xB7 {edges} conexiones"
|
|
2466
|
+
},
|
|
2301
2467
|
accordion: {
|
|
2302
2468
|
loadingTitle: "Cargando",
|
|
2303
2469
|
noItemsTitle: "Sin elementos"
|
|
@@ -2362,6 +2528,46 @@ var ES_KIT_CATALOG = {
|
|
|
2362
2528
|
barAriaMilestone: "{task}: del {start} al {end}, hito",
|
|
2363
2529
|
zoomQuarter: "Trimestre"
|
|
2364
2530
|
},
|
|
2531
|
+
taskboard: {
|
|
2532
|
+
root: "Tablero de tareas",
|
|
2533
|
+
loading: "Cargando tablero\u2026",
|
|
2534
|
+
empty: "A\xFAn no hay tarjetas",
|
|
2535
|
+
error: "No se pudo cargar el tablero",
|
|
2536
|
+
retry: "Reintentar",
|
|
2537
|
+
addCard: "A\xF1adir tarjeta",
|
|
2538
|
+
collapse: "Contraer {name}",
|
|
2539
|
+
expand: "Expandir {name}",
|
|
2540
|
+
cardCount: "{count, plural, one {# tarjeta} other {# tarjetas}}",
|
|
2541
|
+
wip: "{count} de {limit}",
|
|
2542
|
+
grabbed: "{title} seleccionada. Usa las flechas para moverla, Espacio para soltarla y Escape para cancelar.",
|
|
2543
|
+
moved: "Movida a {column}, posici\xF3n {index} de {total}",
|
|
2544
|
+
movedLane: "Movida a {column} en {lane}, posici\xF3n {index} de {total}",
|
|
2545
|
+
dropped: "{title} soltada en {column}",
|
|
2546
|
+
cancelled: "Movimiento cancelado",
|
|
2547
|
+
held: "{name} est\xE1 moviendo esta tarjeta",
|
|
2548
|
+
heldShort: "{name} la tiene",
|
|
2549
|
+
notAllowed: "No se puede soltar aqu\xED",
|
|
2550
|
+
pending: "Guardando\u2026",
|
|
2551
|
+
online: "{count} en l\xEDnea",
|
|
2552
|
+
notes: "Tiene notas",
|
|
2553
|
+
checklist: "{done} de {total} hechas",
|
|
2554
|
+
due: "Vence {date}",
|
|
2555
|
+
addColumn: "A\xF1adir columna",
|
|
2556
|
+
columnName: "Nombre de la columna",
|
|
2557
|
+
moveColumn: "Mover {name}",
|
|
2558
|
+
columnGrabbed: "{name} seleccionada. Usa las flechas para moverla, Espacio para soltarla y Escape para cancelar.",
|
|
2559
|
+
columnMoved: "{name} movida a la posici\xF3n {index} de {total}",
|
|
2560
|
+
editColumn: "Editar {name}",
|
|
2561
|
+
columnColor: "Color",
|
|
2562
|
+
wipLimit: "L\xEDmite WIP",
|
|
2563
|
+
wipLimitHint: "Vac\xEDo significa sin l\xEDmite.",
|
|
2564
|
+
lockColumn: "Bloqueada",
|
|
2565
|
+
lockColumnHint: "Ninguna tarjeta entra ni sale.",
|
|
2566
|
+
acceptsFrom: "Acepta tarjetas de",
|
|
2567
|
+
acceptsAny: "Ninguna marcada: cualquier columna.",
|
|
2568
|
+
save: "Guardar",
|
|
2569
|
+
cancel: "Cancelar"
|
|
2570
|
+
},
|
|
2365
2571
|
help: {
|
|
2366
2572
|
show: "Mostrar ayuda",
|
|
2367
2573
|
close: "Cerrar ayuda",
|
|
@@ -2444,7 +2650,8 @@ var ES_KIT_CATALOG = {
|
|
|
2444
2650
|
collapseSidebar: "Contraer barra lateral",
|
|
2445
2651
|
verbCollapse: "Contraer",
|
|
2446
2652
|
verbExpand: "Expandir",
|
|
2447
|
-
toggleSubmenu: "{verb} el submen\xFA {label}"
|
|
2653
|
+
toggleSubmenu: "{verb} el submen\xFA {label}",
|
|
2654
|
+
dismissCta: "Descartar"
|
|
2448
2655
|
},
|
|
2449
2656
|
splitview: {
|
|
2450
2657
|
moreOptions: "M\xE1s opciones",
|
|
@@ -2642,6 +2849,31 @@ var ES_KIT_CATALOG = {
|
|
|
2642
2849
|
// ../common/i18n/builtIn/fr.ts
|
|
2643
2850
|
var FR_KIT_CATALOG = {
|
|
2644
2851
|
kit: {
|
|
2852
|
+
connectionFlowEdit: {
|
|
2853
|
+
connected: "Connexion demand\xE9e",
|
|
2854
|
+
add: "Ajouter un n\u0153ud {side} de {label}",
|
|
2855
|
+
top: "au-dessus",
|
|
2856
|
+
right: "\xE0 droite",
|
|
2857
|
+
bottom: "en dessous",
|
|
2858
|
+
left: "\xE0 gauche",
|
|
2859
|
+
canceled: "Cr\xE9ation du n\u0153ud annul\xE9e",
|
|
2860
|
+
created: "N\u0153ud provisoire ajout\xE9. Configurez-le ou supprimez-le."
|
|
2861
|
+
},
|
|
2862
|
+
networkGraph: {
|
|
2863
|
+
name: "Graphe de r\xE9seau",
|
|
2864
|
+
zoomIn: "Zoom avant",
|
|
2865
|
+
zoomOut: "Zoom arri\xE8re",
|
|
2866
|
+
zoom: "Zoom",
|
|
2867
|
+
fit: "Ajuster",
|
|
2868
|
+
reset: "R\xE9initialiser",
|
|
2869
|
+
findNode: "Rechercher un n\u0153ud",
|
|
2870
|
+
empty: "Aucun n\u0153ud visible",
|
|
2871
|
+
communities: "Communaut\xE9s",
|
|
2872
|
+
selectAll: "Tout s\xE9lectionner",
|
|
2873
|
+
instructions: "Glissez pour d\xE9placer. Ctrl + d\xE9filement pour zoomer. Fl\xE8ches : parcourir ; Entr\xE9e : s\xE9lectionner ; \xC9chap : effacer ; D\xE9but : ajuster ; +/\u2212 : zoomer.",
|
|
2874
|
+
nodeStatus: "{label} \xB7 {count} connexions",
|
|
2875
|
+
summary: "{nodes} n\u0153uds \xB7 {edges} connexions"
|
|
2876
|
+
},
|
|
2645
2877
|
accordion: {
|
|
2646
2878
|
loadingTitle: "Chargement",
|
|
2647
2879
|
noItemsTitle: "Aucun \xE9l\xE9ment"
|
|
@@ -2706,6 +2938,46 @@ var FR_KIT_CATALOG = {
|
|
|
2706
2938
|
barAriaMilestone: "{task} : du {start} au {end}, jalon",
|
|
2707
2939
|
zoomQuarter: "Trimestre"
|
|
2708
2940
|
},
|
|
2941
|
+
taskboard: {
|
|
2942
|
+
root: "Tableau des t\xE2ches",
|
|
2943
|
+
loading: "Chargement du tableau\u2026",
|
|
2944
|
+
empty: "Aucune carte pour l\u2019instant",
|
|
2945
|
+
error: "Impossible de charger le tableau",
|
|
2946
|
+
retry: "R\xE9essayer",
|
|
2947
|
+
addCard: "Ajouter une carte",
|
|
2948
|
+
collapse: "R\xE9duire {name}",
|
|
2949
|
+
expand: "D\xE9velopper {name}",
|
|
2950
|
+
cardCount: "{count, plural, one {# carte} other {# cartes}}",
|
|
2951
|
+
wip: "{count} sur {limit}",
|
|
2952
|
+
grabbed: "{title} saisie. Fl\xE8ches pour d\xE9placer, Espace pour d\xE9poser, \xC9chap pour annuler.",
|
|
2953
|
+
moved: "D\xE9plac\xE9e vers {column}, position {index} sur {total}",
|
|
2954
|
+
movedLane: "D\xE9plac\xE9e vers {column} dans {lane}, position {index} sur {total}",
|
|
2955
|
+
dropped: "{title} d\xE9pos\xE9e dans {column}",
|
|
2956
|
+
cancelled: "D\xE9placement annul\xE9",
|
|
2957
|
+
held: "{name} d\xE9place cette carte",
|
|
2958
|
+
heldShort: "{name} l\u2019a prise",
|
|
2959
|
+
notAllowed: "D\xE9p\xF4t impossible ici",
|
|
2960
|
+
pending: "Enregistrement\u2026",
|
|
2961
|
+
online: "{count} en ligne",
|
|
2962
|
+
notes: "Contient des notes",
|
|
2963
|
+
checklist: "{done} sur {total} faites",
|
|
2964
|
+
due: "\xC9ch\xE9ance {date}",
|
|
2965
|
+
addColumn: "Ajouter une colonne",
|
|
2966
|
+
columnName: "Nom de la colonne",
|
|
2967
|
+
moveColumn: "D\xE9placer {name}",
|
|
2968
|
+
columnGrabbed: "{name} saisie. Fl\xE8ches pour d\xE9placer, Espace pour d\xE9poser, \xC9chap pour annuler.",
|
|
2969
|
+
columnMoved: "{name} d\xE9plac\xE9e en position {index} sur {total}",
|
|
2970
|
+
editColumn: "Modifier {name}",
|
|
2971
|
+
columnColor: "Couleur",
|
|
2972
|
+
wipLimit: "Limite WIP",
|
|
2973
|
+
wipLimitHint: "Vide signifie aucune limite.",
|
|
2974
|
+
lockColumn: "Verrouill\xE9e",
|
|
2975
|
+
lockColumnHint: "Aucune carte n\u2019entre ni ne sort.",
|
|
2976
|
+
acceptsFrom: "Accepte les cartes de",
|
|
2977
|
+
acceptsAny: "Aucune coch\xE9e : toutes les colonnes.",
|
|
2978
|
+
save: "Enregistrer",
|
|
2979
|
+
cancel: "Annuler"
|
|
2980
|
+
},
|
|
2709
2981
|
help: {
|
|
2710
2982
|
show: "Afficher l\\'aide",
|
|
2711
2983
|
close: "Fermer l\\'aide",
|
|
@@ -2788,7 +3060,8 @@ var FR_KIT_CATALOG = {
|
|
|
2788
3060
|
collapseSidebar: "R\xE9duire la barre lat\xE9rale",
|
|
2789
3061
|
verbCollapse: "R\xE9duire",
|
|
2790
3062
|
verbExpand: "D\xE9ployer",
|
|
2791
|
-
toggleSubmenu: "{verb} le sous-menu {label}"
|
|
3063
|
+
toggleSubmenu: "{verb} le sous-menu {label}",
|
|
3064
|
+
dismissCta: "Ignorer"
|
|
2792
3065
|
},
|
|
2793
3066
|
splitview: {
|
|
2794
3067
|
moreOptions: "Plus d\\'options",
|
|
@@ -2986,6 +3259,31 @@ var FR_KIT_CATALOG = {
|
|
|
2986
3259
|
// ../common/i18n/builtIn/pt.ts
|
|
2987
3260
|
var PT_KIT_CATALOG = {
|
|
2988
3261
|
kit: {
|
|
3262
|
+
connectionFlowEdit: {
|
|
3263
|
+
connected: "Liga\xE7\xE3o solicitada",
|
|
3264
|
+
add: "Adicionar um n\xF3 {side} de {label}",
|
|
3265
|
+
top: "acima",
|
|
3266
|
+
right: "\xE0 direita",
|
|
3267
|
+
bottom: "abaixo",
|
|
3268
|
+
left: "\xE0 esquerda",
|
|
3269
|
+
canceled: "Cria\xE7\xE3o do n\xF3 cancelada",
|
|
3270
|
+
created: "N\xF3 provis\xF3rio adicionado. Configure-o ou descarte-o."
|
|
3271
|
+
},
|
|
3272
|
+
networkGraph: {
|
|
3273
|
+
name: "Grafo de rede",
|
|
3274
|
+
zoomIn: "Ampliar",
|
|
3275
|
+
zoomOut: "Reduzir",
|
|
3276
|
+
zoom: "Zoom",
|
|
3277
|
+
fit: "Ajustar",
|
|
3278
|
+
reset: "Repor",
|
|
3279
|
+
findNode: "Procurar um n\xF3",
|
|
3280
|
+
empty: "Nenhum n\xF3 vis\xEDvel",
|
|
3281
|
+
communities: "Comunidades",
|
|
3282
|
+
selectAll: "Selecionar tudo",
|
|
3283
|
+
instructions: "Arraste para mover. Ctrl + deslocamento para ampliar. Setas: navegar; Enter: selecionar; Escape: limpar; Home: ajustar; +/\u2212: ampliar ou reduzir.",
|
|
3284
|
+
nodeStatus: "{label} \xB7 {count} liga\xE7\xF5es",
|
|
3285
|
+
summary: "{nodes} n\xF3s \xB7 {edges} liga\xE7\xF5es"
|
|
3286
|
+
},
|
|
2989
3287
|
accordion: {
|
|
2990
3288
|
loadingTitle: "Carregando",
|
|
2991
3289
|
noItemsTitle: "Sem itens"
|
|
@@ -3050,6 +3348,46 @@ var PT_KIT_CATALOG = {
|
|
|
3050
3348
|
barAriaMilestone: "{task}: de {start} a {end}, marco",
|
|
3051
3349
|
zoomQuarter: "Trimestre"
|
|
3052
3350
|
},
|
|
3351
|
+
taskboard: {
|
|
3352
|
+
root: "Quadro de tarefas",
|
|
3353
|
+
loading: "Carregando quadro\u2026",
|
|
3354
|
+
empty: "Nenhum cart\xE3o ainda",
|
|
3355
|
+
error: "N\xE3o foi poss\xEDvel carregar o quadro",
|
|
3356
|
+
retry: "Tentar novamente",
|
|
3357
|
+
addCard: "Adicionar cart\xE3o",
|
|
3358
|
+
collapse: "Recolher {name}",
|
|
3359
|
+
expand: "Expandir {name}",
|
|
3360
|
+
cardCount: "{count, plural, one {# cart\xE3o} other {# cart\xF5es}}",
|
|
3361
|
+
wip: "{count} de {limit}",
|
|
3362
|
+
grabbed: "{title} selecionado. Use as setas para mover, Espa\xE7o para soltar e Escape para cancelar.",
|
|
3363
|
+
moved: "Movido para {column}, posi\xE7\xE3o {index} de {total}",
|
|
3364
|
+
movedLane: "Movido para {column} em {lane}, posi\xE7\xE3o {index} de {total}",
|
|
3365
|
+
dropped: "{title} solto em {column}",
|
|
3366
|
+
cancelled: "Movimento cancelado",
|
|
3367
|
+
held: "{name} est\xE1 movendo este cart\xE3o",
|
|
3368
|
+
heldShort: "{name} est\xE1 com ele",
|
|
3369
|
+
notAllowed: "N\xE3o \xE9 poss\xEDvel soltar aqui",
|
|
3370
|
+
pending: "Salvando\u2026",
|
|
3371
|
+
online: "{count} online",
|
|
3372
|
+
notes: "Tem notas",
|
|
3373
|
+
checklist: "{done} de {total} conclu\xEDdos",
|
|
3374
|
+
due: "Vence {date}",
|
|
3375
|
+
addColumn: "Adicionar coluna",
|
|
3376
|
+
columnName: "Nome da coluna",
|
|
3377
|
+
moveColumn: "Mover {name}",
|
|
3378
|
+
columnGrabbed: "{name} selecionada. Use as setas para mover, Espa\xE7o para soltar e Escape para cancelar.",
|
|
3379
|
+
columnMoved: "{name} movida para a posi\xE7\xE3o {index} de {total}",
|
|
3380
|
+
editColumn: "Editar {name}",
|
|
3381
|
+
columnColor: "Cor",
|
|
3382
|
+
wipLimit: "Limite WIP",
|
|
3383
|
+
wipLimitHint: "Vazio significa sem limite.",
|
|
3384
|
+
lockColumn: "Bloqueada",
|
|
3385
|
+
lockColumnHint: "Nenhum cart\xE3o entra ou sai.",
|
|
3386
|
+
acceptsFrom: "Aceita cart\xF5es de",
|
|
3387
|
+
acceptsAny: "Nenhuma marcada: qualquer coluna.",
|
|
3388
|
+
save: "Salvar",
|
|
3389
|
+
cancel: "Cancelar"
|
|
3390
|
+
},
|
|
3053
3391
|
help: {
|
|
3054
3392
|
show: "Mostrar ajuda",
|
|
3055
3393
|
close: "Fechar ajuda",
|
|
@@ -3132,7 +3470,8 @@ var PT_KIT_CATALOG = {
|
|
|
3132
3470
|
collapseSidebar: "Recolher barra lateral",
|
|
3133
3471
|
verbCollapse: "Recolher",
|
|
3134
3472
|
verbExpand: "Expandir",
|
|
3135
|
-
toggleSubmenu: "{verb} o submenu {label}"
|
|
3473
|
+
toggleSubmenu: "{verb} o submenu {label}",
|
|
3474
|
+
dismissCta: "Dispensar"
|
|
3136
3475
|
},
|
|
3137
3476
|
splitview: {
|
|
3138
3477
|
moreOptions: "Mais op\xE7\xF5es",
|
|
@@ -9328,6 +9667,43 @@ var Loader = ({
|
|
|
9328
9667
|
};
|
|
9329
9668
|
var Loader_default = Loader;
|
|
9330
9669
|
|
|
9670
|
+
// ../common/a11y/interactive.ts
|
|
9671
|
+
var INTERACTIVE_SELECTOR = [
|
|
9672
|
+
"a[href]",
|
|
9673
|
+
"button",
|
|
9674
|
+
"input",
|
|
9675
|
+
"select",
|
|
9676
|
+
"textarea",
|
|
9677
|
+
"summary",
|
|
9678
|
+
'[contenteditable=""]',
|
|
9679
|
+
'[contenteditable="true"]',
|
|
9680
|
+
"audio[controls]",
|
|
9681
|
+
"video[controls]",
|
|
9682
|
+
'[role="button"]',
|
|
9683
|
+
'[role="link"]',
|
|
9684
|
+
'[role="checkbox"]',
|
|
9685
|
+
'[role="radio"]',
|
|
9686
|
+
'[role="switch"]',
|
|
9687
|
+
'[role="tab"]',
|
|
9688
|
+
'[role="menuitem"]',
|
|
9689
|
+
'[role="option"]',
|
|
9690
|
+
'[role="combobox"]',
|
|
9691
|
+
'[role="slider"]'
|
|
9692
|
+
].join(",");
|
|
9693
|
+
var NO_CLICK_ATTR_SELECTOR = "[data-panel-no-click]";
|
|
9694
|
+
function isClickOwnedByDescendant(root, target) {
|
|
9695
|
+
if (!root || !target) return false;
|
|
9696
|
+
if (typeof target.closest !== "function") return false;
|
|
9697
|
+
const hit = target.closest(
|
|
9698
|
+
`${INTERACTIVE_SELECTOR},${NO_CLICK_ATTR_SELECTOR}`
|
|
9699
|
+
);
|
|
9700
|
+
return hit !== null && hit !== root && root.contains(hit);
|
|
9701
|
+
}
|
|
9702
|
+
function hasInteractiveDescendant(root) {
|
|
9703
|
+
if (!root || typeof root.querySelector !== "function") return false;
|
|
9704
|
+
return root.querySelector(INTERACTIVE_SELECTOR) !== null;
|
|
9705
|
+
}
|
|
9706
|
+
|
|
9331
9707
|
// src/components/Panel.tsx
|
|
9332
9708
|
var import_jsx_runtime156 = require("react/jsx-runtime");
|
|
9333
9709
|
var variantBaseStyles = {
|
|
@@ -9357,7 +9733,12 @@ var actionWrapperLayout = {
|
|
|
9357
9733
|
inline: "flex-wrap items-center gap-3"
|
|
9358
9734
|
};
|
|
9359
9735
|
var defaultActionColor = "neutral";
|
|
9360
|
-
var SkeletonBar = ({
|
|
9736
|
+
var SkeletonBar = ({
|
|
9737
|
+
width,
|
|
9738
|
+
height = "h-3",
|
|
9739
|
+
ink = "bg-black/10 dark:bg-white/10",
|
|
9740
|
+
className
|
|
9741
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
|
|
9361
9742
|
"span",
|
|
9362
9743
|
{
|
|
9363
9744
|
className: (0, import_classnames7.default)("block rounded-full", ink, height, className),
|
|
@@ -9455,6 +9836,19 @@ var Panel = import_react155.default.forwardRef(function Panel2({
|
|
|
9455
9836
|
hoverShadow = false,
|
|
9456
9837
|
decoration = "none",
|
|
9457
9838
|
hoverable,
|
|
9839
|
+
clickable,
|
|
9840
|
+
// Pulled out of `rest` so the card can wrap them. `onClick` becomes the
|
|
9841
|
+
// guarded handler below; `role`, `tabIndex` and `onKeyDown` are the
|
|
9842
|
+
// caller's overrides, and they win over what a clickable card would have
|
|
9843
|
+
// set for itself.
|
|
9844
|
+
onClick,
|
|
9845
|
+
role,
|
|
9846
|
+
tabIndex,
|
|
9847
|
+
onKeyDown,
|
|
9848
|
+
// Chained, not replaced: the drag measurement has to see the press and
|
|
9849
|
+
// the release, and the caller still gets both.
|
|
9850
|
+
onMouseDown,
|
|
9851
|
+
onMouseUp,
|
|
9458
9852
|
titleClassName,
|
|
9459
9853
|
subtitleClassName,
|
|
9460
9854
|
descriptionClassName,
|
|
@@ -9472,7 +9866,54 @@ var Panel = import_react155.default.forwardRef(function Panel2({
|
|
|
9472
9866
|
const resolvedTone = resolvePanelTone(tone, color);
|
|
9473
9867
|
const palette = getPanelToneStyles(resolvedTone);
|
|
9474
9868
|
const surfaceText = getSurfaceTextTokens(variant);
|
|
9475
|
-
const isHoverable = hoverable ?? Boolean(
|
|
9869
|
+
const isHoverable = hoverable ?? Boolean(onClick);
|
|
9870
|
+
const isClickable = clickable ?? Boolean(onClick);
|
|
9871
|
+
const trigger = getSurfaceTriggerTokens(resolvedTone);
|
|
9872
|
+
const sectionRef = import_react155.default.useRef(null);
|
|
9873
|
+
const bodyRef = import_react155.default.useRef(null);
|
|
9874
|
+
const setSectionRef = import_react155.default.useCallback(
|
|
9875
|
+
(node) => {
|
|
9876
|
+
sectionRef.current = node;
|
|
9877
|
+
if (typeof ref === "function") ref(node);
|
|
9878
|
+
else if (ref)
|
|
9879
|
+
ref.current = node;
|
|
9880
|
+
},
|
|
9881
|
+
[ref]
|
|
9882
|
+
);
|
|
9883
|
+
const pressRef = import_react155.default.useRef(null);
|
|
9884
|
+
const draggedRef = import_react155.default.useRef(false);
|
|
9885
|
+
const handleCardMouseDown = (event) => {
|
|
9886
|
+
pressRef.current = { x: event.clientX, y: event.clientY };
|
|
9887
|
+
draggedRef.current = false;
|
|
9888
|
+
};
|
|
9889
|
+
const handleCardMouseUp = (event) => {
|
|
9890
|
+
const press = pressRef.current;
|
|
9891
|
+
if (!press) return;
|
|
9892
|
+
draggedRef.current = Math.abs(event.clientX - press.x) > 4 || Math.abs(event.clientY - press.y) > 4;
|
|
9893
|
+
};
|
|
9894
|
+
const handleCardClick = (event) => {
|
|
9895
|
+
if (isClickOwnedByDescendant(sectionRef.current, event.target)) return;
|
|
9896
|
+
if (draggedRef.current) {
|
|
9897
|
+
draggedRef.current = false;
|
|
9898
|
+
return;
|
|
9899
|
+
}
|
|
9900
|
+
onClick?.(event);
|
|
9901
|
+
};
|
|
9902
|
+
const handleCardKeyDown = (event) => {
|
|
9903
|
+
if (event.target !== sectionRef.current) return;
|
|
9904
|
+
if (event.key !== "Enter" && event.key !== " ") return;
|
|
9905
|
+
event.preventDefault();
|
|
9906
|
+
sectionRef.current?.click();
|
|
9907
|
+
};
|
|
9908
|
+
import_react155.default.useEffect(() => {
|
|
9909
|
+
if (!isClickable) return;
|
|
9910
|
+
if (hasInteractiveDescendant(bodyRef.current)) {
|
|
9911
|
+
devWarnA11yOnce(
|
|
9912
|
+
"Panel:clickable-nested-interactive",
|
|
9913
|
+
"Panel: a clickable Panel whose body contains controls is announced as a single button named after all of its text, with those controls nested inside it. Pass clickable={false} when the body owns the interaction, or render the card's primary action as a real Button/Link."
|
|
9914
|
+
);
|
|
9915
|
+
}
|
|
9916
|
+
}, [isClickable, loading]);
|
|
9476
9917
|
const isGlass = GLASS_VARIANTS.includes(variant);
|
|
9477
9918
|
const resolvedSpecularMode = (() => {
|
|
9478
9919
|
if (specularMode !== void 0) return specularMode;
|
|
@@ -9628,6 +10069,7 @@ var Panel = import_react155.default.forwardRef(function Panel2({
|
|
|
9628
10069
|
const bodyContent = children ? /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
|
|
9629
10070
|
"div",
|
|
9630
10071
|
{
|
|
10072
|
+
ref: bodyRef,
|
|
9631
10073
|
className: (0, import_classnames7.default)(
|
|
9632
10074
|
padding === "none" ? "" : "space-y-3 leading-6",
|
|
9633
10075
|
// min-h-0 lets this flex item shrink below its content height, so
|
|
@@ -9738,7 +10180,7 @@ var Panel = import_react155.default.forwardRef(function Panel2({
|
|
|
9738
10180
|
return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(SurfaceProvider, { variant, children: /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)(
|
|
9739
10181
|
"section",
|
|
9740
10182
|
{
|
|
9741
|
-
ref,
|
|
10183
|
+
ref: setSectionRef,
|
|
9742
10184
|
className: (0, import_classnames7.default)(
|
|
9743
10185
|
"relative flex w-full min-h-0 flex-col overflow-hidden shrink-0",
|
|
9744
10186
|
!isOverlay && surfaceText.body,
|
|
@@ -9748,7 +10190,15 @@ var Panel = import_react155.default.forwardRef(function Panel2({
|
|
|
9748
10190
|
fullWidth ? "w-full" : void 0,
|
|
9749
10191
|
isOverlay ? overlayClasses : void 0,
|
|
9750
10192
|
hoverShadow && "transition-shadow duration-200 hover:shadow-xl hover:-translate-y-[1px]",
|
|
9751
|
-
isHoverable && "group
|
|
10193
|
+
isHoverable && "group",
|
|
10194
|
+
// Additive, not moved. A hoverable-only panel has shown a pointer
|
|
10195
|
+
// cursor as long as it has existed, so callers must keep it; a
|
|
10196
|
+
// clickable one now gets it even with `hoverable={false}`.
|
|
10197
|
+
(isHoverable || isClickable) && (disabled ? "cursor-not-allowed" : "cursor-pointer"),
|
|
10198
|
+
// The ring is the shared trigger token, whose inset exists precisely
|
|
10199
|
+
// because an outer ring is clipped by `overflow: hidden` — which
|
|
10200
|
+
// every Panel has.
|
|
10201
|
+
isClickable && !disabled && trigger.focusRing,
|
|
9752
10202
|
isHoverable && hoverColorName && `hover:bg-${hoverColorName}-50 dark:hover:bg-${hoverColorName}-900/20`,
|
|
9753
10203
|
className
|
|
9754
10204
|
),
|
|
@@ -9757,6 +10207,19 @@ var Panel = import_react155.default.forwardRef(function Panel2({
|
|
|
9757
10207
|
"data-tone": resolvedTone,
|
|
9758
10208
|
"aria-busy": loading,
|
|
9759
10209
|
...rest,
|
|
10210
|
+
role: role ?? (isClickable ? "button" : void 0),
|
|
10211
|
+
tabIndex: tabIndex ?? (isClickable ? disabled ? -1 : 0 : void 0),
|
|
10212
|
+
"aria-disabled": isClickable && disabled ? true : void 0,
|
|
10213
|
+
onClick: disabled || !onClick ? void 0 : handleCardClick,
|
|
10214
|
+
onMouseDown: disabled || !onClick ? void 0 : (event) => {
|
|
10215
|
+
onMouseDown?.(event);
|
|
10216
|
+
handleCardMouseDown(event);
|
|
10217
|
+
},
|
|
10218
|
+
onMouseUp: disabled || !onClick ? void 0 : (event) => {
|
|
10219
|
+
onMouseUp?.(event);
|
|
10220
|
+
handleCardMouseUp(event);
|
|
10221
|
+
},
|
|
10222
|
+
onKeyDown: onKeyDown ?? (isClickable && !disabled && onClick ? handleCardKeyDown : void 0),
|
|
9760
10223
|
children: [
|
|
9761
10224
|
isOverlay && !showSkeleton && /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)(import_jsx_runtime156.Fragment, { children: [
|
|
9762
10225
|
/* @__PURE__ */ (0, import_jsx_runtime156.jsx)("div", { className: "absolute inset-0 overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("div", { className: "h-full w-full", children: media }) }),
|
|
@@ -9931,12 +10394,13 @@ var SearchBar = ({
|
|
|
9931
10394
|
leadingIcon = "Search",
|
|
9932
10395
|
variant = "elevated",
|
|
9933
10396
|
size = "md",
|
|
9934
|
-
color
|
|
10397
|
+
color: colorProp,
|
|
9935
10398
|
gradientFrom,
|
|
9936
10399
|
gradientTo,
|
|
9937
10400
|
glowIntensity = DEFAULT_GLOW_INTENSITY,
|
|
9938
10401
|
loading = false
|
|
9939
10402
|
}) => {
|
|
10403
|
+
const color = colorProp ?? "blue";
|
|
9940
10404
|
const t = useKitT();
|
|
9941
10405
|
const [resolvedFrom, resolvedTo] = resolveGlowGradient(
|
|
9942
10406
|
color,
|
|
@@ -10046,7 +10510,9 @@ var SearchBar = ({
|
|
|
10046
10510
|
}
|
|
10047
10511
|
) : null;
|
|
10048
10512
|
const sizeToken = getFieldSizeTokens(size);
|
|
10049
|
-
const variantTokens = getInputVariantTokens(variant, color
|
|
10513
|
+
const variantTokens = getInputVariantTokens(variant, color, "auto", {
|
|
10514
|
+
explicitTone: colorProp
|
|
10515
|
+
});
|
|
10050
10516
|
const bar = /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)(
|
|
10051
10517
|
"div",
|
|
10052
10518
|
{
|
|
@@ -10162,6 +10628,7 @@ var FITTING_THUMB = { size: 0, offset: 0, ratio: 0 };
|
|
|
10162
10628
|
var ScrollArea = ({
|
|
10163
10629
|
variant = "auto",
|
|
10164
10630
|
mask = false,
|
|
10631
|
+
horizontal = true,
|
|
10165
10632
|
tabIndex = 0,
|
|
10166
10633
|
contentClassName,
|
|
10167
10634
|
viewportClassName,
|
|
@@ -10215,12 +10682,14 @@ var ScrollArea = ({
|
|
|
10215
10682
|
const viewport = viewportRef.current;
|
|
10216
10683
|
if (!viewport) return;
|
|
10217
10684
|
setOverflow({
|
|
10218
|
-
x: viewport.scrollWidth - viewport.clientWidth > 1,
|
|
10685
|
+
x: horizontal && viewport.scrollWidth - viewport.clientWidth > 1,
|
|
10219
10686
|
y: viewport.scrollHeight - viewport.clientHeight > 1
|
|
10220
10687
|
});
|
|
10221
10688
|
setThumbY(thumb(viewport, yTrackRef.current, "y"));
|
|
10222
|
-
setThumbX(
|
|
10223
|
-
|
|
10689
|
+
setThumbX(
|
|
10690
|
+
horizontal ? thumb(viewport, xTrackRef.current, "x") : FITTING_THUMB
|
|
10691
|
+
);
|
|
10692
|
+
}, [thumb, horizontal]);
|
|
10224
10693
|
(0, import_react157.useEffect)(() => {
|
|
10225
10694
|
update();
|
|
10226
10695
|
let observer;
|
|
@@ -10329,7 +10798,10 @@ var ScrollArea = ({
|
|
|
10329
10798
|
"data-overflow-x": overflow.x ? "" : void 0,
|
|
10330
10799
|
"data-overflow-y": overflow.y ? "" : void 0,
|
|
10331
10800
|
onScroll: handleScroll,
|
|
10332
|
-
style:
|
|
10801
|
+
style: {
|
|
10802
|
+
...maskStyle(),
|
|
10803
|
+
...horizontal ? null : { overflowX: "hidden" }
|
|
10804
|
+
},
|
|
10333
10805
|
className: (0, import_classnames9.default)(
|
|
10334
10806
|
"h-full w-full max-h-[inherit] overflow-auto rounded-[inherit] outline-none",
|
|
10335
10807
|
// `max-height: inherit` is what makes a `max-h-*` frame work: a
|
|
@@ -10383,7 +10855,7 @@ var ScrollArea = ({
|
|
|
10383
10855
|
) })
|
|
10384
10856
|
}
|
|
10385
10857
|
),
|
|
10386
|
-
/* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
|
|
10858
|
+
horizontal && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
|
|
10387
10859
|
"div",
|
|
10388
10860
|
{
|
|
10389
10861
|
"data-slot": "scrollarea-scrollbar",
|