@cjlapao/ui-kit 0.2.32 → 0.2.34
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/{CodeBlock-Dm0yAxf-.d.cts → CodeBlock-QDW3hqU0.d.cts} +1 -1
- package/dist/{CodeBlock-Dm0yAxf-.d.ts → CodeBlock-QDW3hqU0.d.ts} +1 -1
- package/dist/index.cjs +1020 -490
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +675 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +134 -7
- package/dist/index.d.ts +134 -7
- package/dist/index.js +804 -275
- package/dist/index.js.map +1 -1
- package/dist/markdown.cjs +102 -3
- 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 +102 -3
- package/dist/markdown.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8036,6 +8036,13 @@ function getLocalizedParseNames(locale, catalog) {
|
|
|
8036
8036
|
// ../common/i18n/builtIn/de.ts
|
|
8037
8037
|
var DE_KIT_CATALOG = {
|
|
8038
8038
|
kit: {
|
|
8039
|
+
codeBlock: {
|
|
8040
|
+
code: "Code",
|
|
8041
|
+
edit: "Code bearbeiten",
|
|
8042
|
+
copy: "Code kopieren",
|
|
8043
|
+
copied: "Kopiert",
|
|
8044
|
+
copyFailed: "Kopieren fehlgeschlagen. Code ausw\xE4hlen und manuell kopieren."
|
|
8045
|
+
},
|
|
8039
8046
|
knowledge: {
|
|
8040
8047
|
"library": "Erinnerungsbibliothek",
|
|
8041
8048
|
"map": "Wissenskarte",
|
|
@@ -8308,6 +8315,20 @@ var DE_KIT_CATALOG = {
|
|
|
8308
8315
|
progressspinner: {
|
|
8309
8316
|
loading: "Wird geladen"
|
|
8310
8317
|
},
|
|
8318
|
+
filterbar: {
|
|
8319
|
+
filters: "Filter",
|
|
8320
|
+
search: "Suchen",
|
|
8321
|
+
empty: "Keine Filter angewendet",
|
|
8322
|
+
add: "Filter hinzuf\xFCgen",
|
|
8323
|
+
filterBy: "Filtern nach",
|
|
8324
|
+
back: "Zur\xFCck",
|
|
8325
|
+
clear: "Leeren",
|
|
8326
|
+
done: "Fertig",
|
|
8327
|
+
clearAll: "Alle l\xF6schen",
|
|
8328
|
+
items: "Eintr\xE4ge",
|
|
8329
|
+
summary: "{filtered} von {total} {items}",
|
|
8330
|
+
remove: "Filter {label} entfernen"
|
|
8331
|
+
},
|
|
8311
8332
|
searchbar: {
|
|
8312
8333
|
clearAria: "Suche l\xF6schen",
|
|
8313
8334
|
placeholder: "Suchen..."
|
|
@@ -8811,6 +8832,20 @@ var EN_KIT_CATALOG = {
|
|
|
8811
8832
|
progressspinner: {
|
|
8812
8833
|
loading: "Loading"
|
|
8813
8834
|
},
|
|
8835
|
+
filterbar: {
|
|
8836
|
+
filters: "Filters",
|
|
8837
|
+
search: "Search",
|
|
8838
|
+
empty: "No filters applied",
|
|
8839
|
+
add: "Add filter",
|
|
8840
|
+
filterBy: "Filter by",
|
|
8841
|
+
back: "Back",
|
|
8842
|
+
clear: "Clear",
|
|
8843
|
+
done: "Done",
|
|
8844
|
+
clearAll: "Clear all",
|
|
8845
|
+
items: "items",
|
|
8846
|
+
summary: "{filtered} of {total} {items}",
|
|
8847
|
+
remove: "Remove {label} filter"
|
|
8848
|
+
},
|
|
8814
8849
|
searchbar: {
|
|
8815
8850
|
clearAria: "Clear search",
|
|
8816
8851
|
placeholder: "Search..."
|
|
@@ -9035,6 +9070,13 @@ var EN_KIT_CATALOG = {
|
|
|
9035
9070
|
// ../common/i18n/builtIn/es.ts
|
|
9036
9071
|
var ES_KIT_CATALOG = {
|
|
9037
9072
|
kit: {
|
|
9073
|
+
codeBlock: {
|
|
9074
|
+
code: "C\xF3digo",
|
|
9075
|
+
edit: "Editar c\xF3digo",
|
|
9076
|
+
copy: "Copiar c\xF3digo",
|
|
9077
|
+
copied: "Copiado",
|
|
9078
|
+
copyFailed: "No se pudo copiar. Selecciona y copia el c\xF3digo manualmente."
|
|
9079
|
+
},
|
|
9038
9080
|
knowledge: {
|
|
9039
9081
|
"library": "Biblioteca de memorias",
|
|
9040
9082
|
"map": "Mapa de conocimiento",
|
|
@@ -9307,6 +9349,20 @@ var ES_KIT_CATALOG = {
|
|
|
9307
9349
|
progressspinner: {
|
|
9308
9350
|
loading: "Cargando"
|
|
9309
9351
|
},
|
|
9352
|
+
filterbar: {
|
|
9353
|
+
filters: "Filtros",
|
|
9354
|
+
search: "Buscar",
|
|
9355
|
+
empty: "Sin filtros aplicados",
|
|
9356
|
+
add: "A\xF1adir filtro",
|
|
9357
|
+
filterBy: "Filtrar por",
|
|
9358
|
+
back: "Volver",
|
|
9359
|
+
clear: "Limpiar",
|
|
9360
|
+
done: "Listo",
|
|
9361
|
+
clearAll: "Borrar todos",
|
|
9362
|
+
items: "elementos",
|
|
9363
|
+
summary: "{filtered} de {total} {items}",
|
|
9364
|
+
remove: "Eliminar filtro {label}"
|
|
9365
|
+
},
|
|
9310
9366
|
searchbar: {
|
|
9311
9367
|
clearAria: "Borrar b\xFAsqueda",
|
|
9312
9368
|
placeholder: "Buscar..."
|
|
@@ -9531,6 +9587,13 @@ var ES_KIT_CATALOG = {
|
|
|
9531
9587
|
// ../common/i18n/builtIn/fr.ts
|
|
9532
9588
|
var FR_KIT_CATALOG = {
|
|
9533
9589
|
kit: {
|
|
9590
|
+
codeBlock: {
|
|
9591
|
+
code: "Code",
|
|
9592
|
+
edit: "Modifier le code",
|
|
9593
|
+
copy: "Copier le code",
|
|
9594
|
+
copied: "Copi\xE9",
|
|
9595
|
+
copyFailed: "Copie impossible. S\xE9lectionnez et copiez le code manuellement."
|
|
9596
|
+
},
|
|
9534
9597
|
knowledge: {
|
|
9535
9598
|
"library": "Biblioth\xE8que de m\xE9moires",
|
|
9536
9599
|
"map": "Carte des connaissances",
|
|
@@ -9803,6 +9866,20 @@ var FR_KIT_CATALOG = {
|
|
|
9803
9866
|
progressspinner: {
|
|
9804
9867
|
loading: "Chargement"
|
|
9805
9868
|
},
|
|
9869
|
+
filterbar: {
|
|
9870
|
+
filters: "Filtres",
|
|
9871
|
+
search: "Rechercher",
|
|
9872
|
+
empty: "Aucun filtre appliqu\xE9",
|
|
9873
|
+
add: "Ajouter un filtre",
|
|
9874
|
+
filterBy: "Filtrer par",
|
|
9875
|
+
back: "Retour",
|
|
9876
|
+
clear: "Effacer",
|
|
9877
|
+
done: "Termin\xE9",
|
|
9878
|
+
clearAll: "Tout effacer",
|
|
9879
|
+
items: "\xE9l\xE9ments",
|
|
9880
|
+
summary: "{filtered} sur {total} {items}",
|
|
9881
|
+
remove: "Supprimer le filtre {label}"
|
|
9882
|
+
},
|
|
9806
9883
|
searchbar: {
|
|
9807
9884
|
clearAria: "Effacer la recherche",
|
|
9808
9885
|
placeholder: "Rechercher..."
|
|
@@ -10027,6 +10104,13 @@ var FR_KIT_CATALOG = {
|
|
|
10027
10104
|
// ../common/i18n/builtIn/pt.ts
|
|
10028
10105
|
var PT_KIT_CATALOG = {
|
|
10029
10106
|
kit: {
|
|
10107
|
+
codeBlock: {
|
|
10108
|
+
code: "C\xF3digo",
|
|
10109
|
+
edit: "Editar c\xF3digo",
|
|
10110
|
+
copy: "Copiar c\xF3digo",
|
|
10111
|
+
copied: "Copiado",
|
|
10112
|
+
copyFailed: "N\xE3o foi poss\xEDvel copiar. Selecione e copie o c\xF3digo manualmente."
|
|
10113
|
+
},
|
|
10030
10114
|
knowledge: {
|
|
10031
10115
|
"library": "Biblioteca de mem\xF3rias",
|
|
10032
10116
|
"map": "Mapa de conhecimento",
|
|
@@ -10299,6 +10383,20 @@ var PT_KIT_CATALOG = {
|
|
|
10299
10383
|
progressspinner: {
|
|
10300
10384
|
loading: "Carregando"
|
|
10301
10385
|
},
|
|
10386
|
+
filterbar: {
|
|
10387
|
+
filters: "Filtros",
|
|
10388
|
+
search: "Pesquisar",
|
|
10389
|
+
empty: "Nenhum filtro aplicado",
|
|
10390
|
+
add: "Adicionar filtro",
|
|
10391
|
+
filterBy: "Filtrar por",
|
|
10392
|
+
back: "Voltar",
|
|
10393
|
+
clear: "Limpar",
|
|
10394
|
+
done: "Conclu\xEDdo",
|
|
10395
|
+
clearAll: "Limpar todos",
|
|
10396
|
+
items: "itens",
|
|
10397
|
+
summary: "{filtered} de {total} {items}",
|
|
10398
|
+
remove: "Remover filtro {label}"
|
|
10399
|
+
},
|
|
10302
10400
|
searchbar: {
|
|
10303
10401
|
clearAria: "Limpar busca",
|
|
10304
10402
|
placeholder: "Buscar..."
|
|
@@ -11640,7 +11738,7 @@ var Panel = React10.forwardRef(function Panel2({
|
|
|
11640
11738
|
if (specularHighlight === false) return "none";
|
|
11641
11739
|
return "classic";
|
|
11642
11740
|
})();
|
|
11643
|
-
const effectiveHoverColor = hoverColor ?? (
|
|
11741
|
+
const effectiveHoverColor = hoverColor ?? (resolvedTone !== "none" && resolvedTone !== "neutral" ? resolvedTone : void 0);
|
|
11644
11742
|
const hoverColorName = effectiveHoverColor ? effectiveHoverColor : void 0;
|
|
11645
11743
|
const borderPalette = borderColor ? getPanelToneStyles(borderColor) : void 0;
|
|
11646
11744
|
const effectiveBorderClass = borderPalette?.border;
|
|
@@ -15225,7 +15323,7 @@ var ExpandableButton = forwardRef152(
|
|
|
15225
15323
|
fadeDuration,
|
|
15226
15324
|
labelGap,
|
|
15227
15325
|
labelSlide,
|
|
15228
|
-
elevate =
|
|
15326
|
+
elevate = false,
|
|
15229
15327
|
iconMotion = "pop-tilt",
|
|
15230
15328
|
squish = true,
|
|
15231
15329
|
labelPlacement = "after",
|
|
@@ -18234,6 +18332,7 @@ var Combobox = React30.forwardRef(
|
|
|
18234
18332
|
leadingIcon,
|
|
18235
18333
|
visibleRows = 6,
|
|
18236
18334
|
panelVariant = "auto",
|
|
18335
|
+
panelTone = "auto",
|
|
18237
18336
|
panelCorner = "auto",
|
|
18238
18337
|
className,
|
|
18239
18338
|
listClassName,
|
|
@@ -18379,7 +18478,7 @@ var Combobox = React30.forwardRef(
|
|
|
18379
18478
|
Panel_default,
|
|
18380
18479
|
{
|
|
18381
18480
|
variant: resolvedPanelVariant,
|
|
18382
|
-
tone: PANEL_TONE_FOR_FIELD,
|
|
18481
|
+
tone: panelTone === "auto" ? PANEL_TONE_FOR_FIELD : panelTone,
|
|
18383
18482
|
corner: panelCorner,
|
|
18384
18483
|
padding: "none",
|
|
18385
18484
|
scrollable: false,
|
|
@@ -18616,6 +18715,7 @@ var Picker = ({
|
|
|
18616
18715
|
glowIntensity = DEFAULT_GLOW_INTENSITY,
|
|
18617
18716
|
validationStatus = "none",
|
|
18618
18717
|
panelVariant = "auto",
|
|
18718
|
+
panelTone = "auto",
|
|
18619
18719
|
panelCorner = "auto",
|
|
18620
18720
|
disabled = false,
|
|
18621
18721
|
multi = false,
|
|
@@ -18846,7 +18946,7 @@ var Picker = ({
|
|
|
18846
18946
|
Panel_default,
|
|
18847
18947
|
{
|
|
18848
18948
|
variant: resolvedPanelVariant,
|
|
18849
|
-
tone: PANEL_TONE_FOR_FIELD,
|
|
18949
|
+
tone: panelTone === "auto" ? PANEL_TONE_FOR_FIELD : panelTone,
|
|
18850
18950
|
corner: panelCorner,
|
|
18851
18951
|
padding: "none",
|
|
18852
18952
|
scrollable: false,
|
|
@@ -18948,14 +19048,19 @@ var Picker = ({
|
|
|
18948
19048
|
}
|
|
18949
19049
|
)
|
|
18950
19050
|
] }),
|
|
18951
|
-
multi &&
|
|
19051
|
+
multi && /* @__PURE__ */ jsxs86(
|
|
18952
19052
|
"button",
|
|
18953
19053
|
{
|
|
18954
19054
|
type: "button",
|
|
19055
|
+
disabled: effectiveSelectedIds.length === 0,
|
|
18955
19056
|
onMouseDown: (e) => e.preventDefault(),
|
|
18956
19057
|
onClick: handleClearMulti,
|
|
18957
19058
|
className: classNames38(
|
|
18958
|
-
|
|
19059
|
+
// Always rendered: mounting it on the first pick pushed the
|
|
19060
|
+
// list down and resized the popup (flicker). Hidden, not
|
|
19061
|
+
// removed, while nothing is selected.
|
|
19062
|
+
"flex w-full select-none items-center justify-between border-b border-black/5 px-4 py-1.5 text-xs dark:border-white/10",
|
|
19063
|
+
effectiveSelectedIds.length > 0 ? "cursor-pointer hover:bg-neutral-50 dark:hover:bg-neutral-800/60" : "invisible",
|
|
18959
19064
|
popupText.muted
|
|
18960
19065
|
),
|
|
18961
19066
|
children: [
|
|
@@ -19542,6 +19647,7 @@ var TagPicker = ({
|
|
|
19542
19647
|
glowIntensity = DEFAULT_GLOW_INTENSITY,
|
|
19543
19648
|
validationStatus = "none",
|
|
19544
19649
|
panelVariant = "auto",
|
|
19650
|
+
panelTone = "auto",
|
|
19545
19651
|
panelCorner = "auto",
|
|
19546
19652
|
tagLimit = 3,
|
|
19547
19653
|
highlightNew = true,
|
|
@@ -19725,7 +19831,7 @@ var TagPicker = ({
|
|
|
19725
19831
|
const idx = filtered.findIndex((item) => selectedSet.has(item.id));
|
|
19726
19832
|
setFocusedIndex(idx >= 0 ? idx : multi || filtered.length === 0 ? -1 : 0);
|
|
19727
19833
|
}, [open]);
|
|
19728
|
-
const
|
|
19834
|
+
const normalize2 = useCallback10(
|
|
19729
19835
|
(v) => normalizeValue ? normalizeValue(v) : v,
|
|
19730
19836
|
[normalizeValue]
|
|
19731
19837
|
);
|
|
@@ -19735,7 +19841,7 @@ var TagPicker = ({
|
|
|
19735
19841
|
filtered.findIndex((candidate) => candidate.id === item.id)
|
|
19736
19842
|
);
|
|
19737
19843
|
setCursorByKeyboard(fromKeyboard);
|
|
19738
|
-
const id =
|
|
19844
|
+
const id = normalize2(item.id);
|
|
19739
19845
|
if (!multi) {
|
|
19740
19846
|
onChange([id]);
|
|
19741
19847
|
setOpen(false);
|
|
@@ -19748,14 +19854,14 @@ var TagPicker = ({
|
|
|
19748
19854
|
onChange([...value, id]);
|
|
19749
19855
|
}
|
|
19750
19856
|
},
|
|
19751
|
-
[multi,
|
|
19857
|
+
[multi, normalize2, onChange, selectedSet, value, filtered]
|
|
19752
19858
|
);
|
|
19753
19859
|
const handleRemove = useCallback10(
|
|
19754
19860
|
(v) => onChange(value.filter((x) => x !== v)),
|
|
19755
19861
|
[onChange, value]
|
|
19756
19862
|
);
|
|
19757
19863
|
const handleCreate = useCallback10(() => {
|
|
19758
|
-
const label =
|
|
19864
|
+
const label = normalize2(query.trim());
|
|
19759
19865
|
if (!label) return;
|
|
19760
19866
|
if (onCreateItem) {
|
|
19761
19867
|
onCreateItem(label);
|
|
@@ -19766,7 +19872,7 @@ var TagPicker = ({
|
|
|
19766
19872
|
}
|
|
19767
19873
|
if (!multi) setOpen(false);
|
|
19768
19874
|
setQuery("");
|
|
19769
|
-
}, [query,
|
|
19875
|
+
}, [query, normalize2, onCreateItem, multi, onChange, value]);
|
|
19770
19876
|
const handleKeyDown = (e) => {
|
|
19771
19877
|
if (e.key === "ArrowDown") {
|
|
19772
19878
|
e.preventDefault();
|
|
@@ -19802,7 +19908,7 @@ var TagPicker = ({
|
|
|
19802
19908
|
Panel_default,
|
|
19803
19909
|
{
|
|
19804
19910
|
variant: resolvedPanelVariant,
|
|
19805
|
-
tone: PANEL_TONE_FOR_FIELD,
|
|
19911
|
+
tone: panelTone === "auto" ? PANEL_TONE_FOR_FIELD : panelTone,
|
|
19806
19912
|
corner: panelCorner,
|
|
19807
19913
|
padding: "none",
|
|
19808
19914
|
scrollable: false,
|
|
@@ -21520,8 +21626,8 @@ function StackCarousel({
|
|
|
21520
21626
|
setExpanded(true);
|
|
21521
21627
|
}, Math.max(0, Number.isFinite(hoverExpandDelay) ? hoverExpandDelay : 2e3));
|
|
21522
21628
|
};
|
|
21523
|
-
const
|
|
21524
|
-
const index =
|
|
21629
|
+
const normalize2 = useCallback12((value) => loop ? wrap(value, items.length) : Math.max(0, Math.min(items.length - 1, Math.trunc(value))), [loop, items.length]);
|
|
21630
|
+
const index = normalize2(Number.isFinite(activeIndex ?? internalIndex) ? activeIndex ?? internalIndex : 0);
|
|
21525
21631
|
const layers = Math.min(loop ? items.length : items.length - index, Math.max(1, Math.min(3, Math.trunc(visibleCount) || 1)));
|
|
21526
21632
|
const offset = Math.max(0, Number.isFinite(stackOffset) ? stackOffset : 12);
|
|
21527
21633
|
const rootRef = useRef18(null);
|
|
@@ -21539,14 +21645,14 @@ function StackCarousel({
|
|
|
21539
21645
|
}, [isExpanded]);
|
|
21540
21646
|
const navigate = useCallback12((next, focus = false) => {
|
|
21541
21647
|
if (items.length < 2) return;
|
|
21542
|
-
const normalized =
|
|
21648
|
+
const normalized = normalize2(next);
|
|
21543
21649
|
if (normalized === index) return;
|
|
21544
21650
|
if (focus || measureRef.current?.contains(document.activeElement)) {
|
|
21545
21651
|
rootRef.current?.focus({ preventScroll: true });
|
|
21546
21652
|
}
|
|
21547
21653
|
if (activeIndex === void 0) setInternalIndex(normalized);
|
|
21548
21654
|
onActiveIndexChange?.(normalized);
|
|
21549
|
-
}, [items.length, index, activeIndex, onActiveIndexChange,
|
|
21655
|
+
}, [items.length, index, activeIndex, onActiveIndexChange, normalize2]);
|
|
21550
21656
|
useLayoutEffect8(() => {
|
|
21551
21657
|
const old = previousIndex.current;
|
|
21552
21658
|
previousIndex.current = index;
|
|
@@ -21609,7 +21715,7 @@ function StackCarousel({
|
|
|
21609
21715
|
root.addEventListener("wheel", handleWheel, { passive: false });
|
|
21610
21716
|
return () => root.removeEventListener("wheel", handleWheel);
|
|
21611
21717
|
}, [wheel, isExpanded, items.length, index, navigate, canScrollInside]);
|
|
21612
|
-
const visible = isExpanded ? items.map((_, i) => i) : Array.from({ length: layers }, (_, rank) =>
|
|
21718
|
+
const visible = isExpanded ? items.map((_, i) => i) : Array.from({ length: layers }, (_, rank) => normalize2(index + rank));
|
|
21613
21719
|
const rendered = [...visible];
|
|
21614
21720
|
const transitionFrom = previousIndex.current !== index ? previousIndex.current : outgoing;
|
|
21615
21721
|
if (!isExpanded && transitionFrom !== null && transitionFrom < items.length && !rendered.includes(transitionFrom)) rendered.push(transitionFrom);
|
|
@@ -40175,7 +40281,7 @@ var HelpButton = ({
|
|
|
40175
40281
|
window.removeEventListener("resize", recompute);
|
|
40176
40282
|
};
|
|
40177
40283
|
}, [open, recompute]);
|
|
40178
|
-
const palette = getPanelToneStyles(
|
|
40284
|
+
const palette = getPanelToneStyles(tone);
|
|
40179
40285
|
const surfaceText = getSurfaceTextTokens(variant);
|
|
40180
40286
|
const isMarkdown = typeof content === "string";
|
|
40181
40287
|
return /* @__PURE__ */ jsxs140("span", { className: classNames69("inline-flex items-center", className), children: [
|
|
@@ -42280,7 +42386,7 @@ var Popover = ({
|
|
|
42280
42386
|
"aria-hidden": "true",
|
|
42281
42387
|
className: classNames73(
|
|
42282
42388
|
"absolute block h-4 w-4 rotate-45",
|
|
42283
|
-
ARROW_SIDE_BORDERS[position.placement.side],
|
|
42389
|
+
variant !== "none" && ARROW_SIDE_BORDERS[position.placement.side],
|
|
42284
42390
|
chrome.border,
|
|
42285
42391
|
chrome.fill,
|
|
42286
42392
|
chrome.backdrop
|
|
@@ -42306,7 +42412,8 @@ var Popover = ({
|
|
|
42306
42412
|
"aria-hidden": "true",
|
|
42307
42413
|
"data-popover-bubble": true,
|
|
42308
42414
|
className: classNames73(
|
|
42309
|
-
"pointer-events-none absolute z-20 block rounded-full
|
|
42415
|
+
"pointer-events-none absolute z-20 block rounded-full",
|
|
42416
|
+
variant !== "none" && "border",
|
|
42310
42417
|
chrome.border,
|
|
42311
42418
|
chrome.fill,
|
|
42312
42419
|
chrome.backdrop
|
|
@@ -45781,6 +45888,7 @@ var SideMenuCtaCard = ({
|
|
|
45781
45888
|
);
|
|
45782
45889
|
};
|
|
45783
45890
|
var SideMenuDetailPanel = ({
|
|
45891
|
+
variant,
|
|
45784
45892
|
items,
|
|
45785
45893
|
tone,
|
|
45786
45894
|
menuTone,
|
|
@@ -45819,11 +45927,11 @@ var SideMenuDetailPanel = ({
|
|
|
45819
45927
|
},
|
|
45820
45928
|
item.slug
|
|
45821
45929
|
));
|
|
45822
|
-
if (glass) {
|
|
45930
|
+
if (glass || variant) {
|
|
45823
45931
|
return /* @__PURE__ */ jsx266(
|
|
45824
45932
|
Panel_default,
|
|
45825
45933
|
{
|
|
45826
|
-
variant: "glass",
|
|
45934
|
+
variant: variant ?? "glass",
|
|
45827
45935
|
tone,
|
|
45828
45936
|
corner: "rounded-sm",
|
|
45829
45937
|
padding: "none",
|
|
@@ -45866,6 +45974,7 @@ var SideMenu = ({
|
|
|
45866
45974
|
ctas,
|
|
45867
45975
|
footerDetails,
|
|
45868
45976
|
footerDetailsTone,
|
|
45977
|
+
footerDetailsVariant,
|
|
45869
45978
|
noise = false,
|
|
45870
45979
|
noiseScale,
|
|
45871
45980
|
loading = false,
|
|
@@ -46442,6 +46551,7 @@ var SideMenu = ({
|
|
|
46442
46551
|
!contentCollapsed2 && footerDetails && footerDetails.length > 0 && /* @__PURE__ */ jsx266("div", { className: "shrink-0 px-3 pb-1", children: /* @__PURE__ */ jsx266(
|
|
46443
46552
|
SideMenuDetailPanel,
|
|
46444
46553
|
{
|
|
46554
|
+
variant: footerDetailsVariant,
|
|
46445
46555
|
items: footerDetails,
|
|
46446
46556
|
tone: footerDetailsTone ?? "none",
|
|
46447
46557
|
menuTone: color2,
|
|
@@ -51117,7 +51227,7 @@ function useResizable({
|
|
|
51117
51227
|
const getMaxWidth = useCallback37(() => {
|
|
51118
51228
|
return typeof maxWidthOpt === "function" ? maxWidthOpt() : maxWidthOpt;
|
|
51119
51229
|
}, [maxWidthOpt]);
|
|
51120
|
-
const
|
|
51230
|
+
const clamp5 = useCallback37(
|
|
51121
51231
|
(value) => Math.max(minWidth, Math.min(getMaxWidth(), value)),
|
|
51122
51232
|
[minWidth, getMaxWidth]
|
|
51123
51233
|
);
|
|
@@ -51125,7 +51235,7 @@ function useResizable({
|
|
|
51125
51235
|
if (!isDragging) return;
|
|
51126
51236
|
const handlePointerMove = (e) => {
|
|
51127
51237
|
const delta = e.clientX - startXRef.current;
|
|
51128
|
-
const newWidth =
|
|
51238
|
+
const newWidth = clamp5(startWidthRef.current + delta);
|
|
51129
51239
|
setWidth(newWidth);
|
|
51130
51240
|
onResize?.(newWidth);
|
|
51131
51241
|
};
|
|
@@ -51148,7 +51258,7 @@ function useResizable({
|
|
|
51148
51258
|
document.body.style.cursor = "";
|
|
51149
51259
|
document.body.style.userSelect = "";
|
|
51150
51260
|
};
|
|
51151
|
-
}, [isDragging,
|
|
51261
|
+
}, [isDragging, clamp5, onResize, onResizeEnd]);
|
|
51152
51262
|
const onPointerDown = useCallback37(
|
|
51153
51263
|
(e) => {
|
|
51154
51264
|
if (!enabled) return;
|
|
@@ -51165,9 +51275,9 @@ function useResizable({
|
|
|
51165
51275
|
const step = 20;
|
|
51166
51276
|
let newWidth = width;
|
|
51167
51277
|
if (e.key === "ArrowRight") {
|
|
51168
|
-
newWidth =
|
|
51278
|
+
newWidth = clamp5(width + step);
|
|
51169
51279
|
} else if (e.key === "ArrowLeft") {
|
|
51170
|
-
newWidth =
|
|
51280
|
+
newWidth = clamp5(width - step);
|
|
51171
51281
|
} else {
|
|
51172
51282
|
return;
|
|
51173
51283
|
}
|
|
@@ -51176,7 +51286,7 @@ function useResizable({
|
|
|
51176
51286
|
onResize?.(newWidth);
|
|
51177
51287
|
onResizeEnd?.(newWidth);
|
|
51178
51288
|
},
|
|
51179
|
-
[enabled, width,
|
|
51289
|
+
[enabled, width, clamp5, onResize, onResizeEnd]
|
|
51180
51290
|
);
|
|
51181
51291
|
const resolvedMax = getMaxWidth();
|
|
51182
51292
|
return {
|
|
@@ -51509,7 +51619,7 @@ var SplitView = ({
|
|
|
51509
51619
|
const border = headerProps.border ?? true;
|
|
51510
51620
|
const detailsVariant = headerDetails?.variant ?? headerDetails?.variants ?? "subtle";
|
|
51511
51621
|
const detailsDecoration = headerDetails?.decoration ?? headerDetails?.decorations ?? "none";
|
|
51512
|
-
const detailsTone = headerDetails?.tone ?? "
|
|
51622
|
+
const detailsTone = headerDetails?.tone ?? "none";
|
|
51513
51623
|
const hasCustomHeaderBody = headerDetails?.headerBody !== void 0 && headerDetails?.headerBody !== null;
|
|
51514
51624
|
const hasHeaderDetailsContent = Boolean(
|
|
51515
51625
|
hasCustomHeaderBody || headerDetails?.title || headerDetails?.subtitle || headerDetails?.description || headerDetails?.tags
|
|
@@ -52460,6 +52570,7 @@ var VariablePicker = ({
|
|
|
52460
52570
|
tone = "blue",
|
|
52461
52571
|
size = "md",
|
|
52462
52572
|
variant = "elevated",
|
|
52573
|
+
panelTone = "auto",
|
|
52463
52574
|
corner = "auto",
|
|
52464
52575
|
initialSearch = "",
|
|
52465
52576
|
title,
|
|
@@ -52535,7 +52646,7 @@ var VariablePicker = ({
|
|
|
52535
52646
|
Panel_default,
|
|
52536
52647
|
{
|
|
52537
52648
|
variant,
|
|
52538
|
-
tone: PANEL_TONE_FOR_FIELD,
|
|
52649
|
+
tone: panelTone === "auto" ? PANEL_TONE_FOR_FIELD : panelTone,
|
|
52539
52650
|
corner,
|
|
52540
52651
|
padding: "none",
|
|
52541
52652
|
scrollable: false,
|
|
@@ -52633,6 +52744,7 @@ var SmartInput = ({
|
|
|
52633
52744
|
gradientTo,
|
|
52634
52745
|
glowIntensity = DEFAULT_GLOW_INTENSITY,
|
|
52635
52746
|
panelVariant = "auto",
|
|
52747
|
+
panelTone = "auto",
|
|
52636
52748
|
panelCorner = "auto",
|
|
52637
52749
|
defaultViewMode = "token",
|
|
52638
52750
|
autocomplete = true,
|
|
@@ -52963,6 +53075,7 @@ var SmartInput = ({
|
|
|
52963
53075
|
tone,
|
|
52964
53076
|
size,
|
|
52965
53077
|
variant: resolvedPanelVariant,
|
|
53078
|
+
panelTone,
|
|
52966
53079
|
corner: panelCorner,
|
|
52967
53080
|
initialSearch: pickerFilter,
|
|
52968
53081
|
onSelect: handleSelect,
|
|
@@ -67537,9 +67650,73 @@ import { useMemo as useMemo59 } from "react";
|
|
|
67537
67650
|
import classNames124 from "classnames";
|
|
67538
67651
|
|
|
67539
67652
|
// src/components/WorkflowTracker/WorkflowTrackerRail.tsx
|
|
67540
|
-
import { useId as
|
|
67653
|
+
import { useId as useId47, useMemo as useMemo55, useState as useState86 } from "react";
|
|
67541
67654
|
import classNames117 from "classnames";
|
|
67542
67655
|
|
|
67656
|
+
// src/components/WorkflowTracker/useWorkflowFooterResize.ts
|
|
67657
|
+
import { useId as useId46, useRef as useRef74, useState as useState85 } from "react";
|
|
67658
|
+
var clamp4 = (value) => Number.isFinite(value) ? Math.max(10, Math.min(80, value)) : 30;
|
|
67659
|
+
function useWorkflowFooterResize({ height, defaultHeight, onChange, enabled }) {
|
|
67660
|
+
const [internal, setInternal] = useState85(() => clamp4(defaultHeight));
|
|
67661
|
+
const percentage = clamp4(height ?? internal);
|
|
67662
|
+
const bodyRef = useRef74(null);
|
|
67663
|
+
const drag = useRef74(null);
|
|
67664
|
+
const [dragging, setDragging] = useState85(false);
|
|
67665
|
+
const footerId = useId46();
|
|
67666
|
+
const update = (next) => {
|
|
67667
|
+
const value = clamp4(next);
|
|
67668
|
+
if (height === void 0) setInternal(value);
|
|
67669
|
+
onChange?.(value);
|
|
67670
|
+
};
|
|
67671
|
+
const finish = () => {
|
|
67672
|
+
drag.current = null;
|
|
67673
|
+
setDragging(false);
|
|
67674
|
+
};
|
|
67675
|
+
return {
|
|
67676
|
+
percentage,
|
|
67677
|
+
bodyRef,
|
|
67678
|
+
footerId,
|
|
67679
|
+
dragging: enabled && dragging,
|
|
67680
|
+
handleProps: {
|
|
67681
|
+
role: "separator",
|
|
67682
|
+
tabIndex: 0,
|
|
67683
|
+
"aria-orientation": "horizontal",
|
|
67684
|
+
"aria-valuemin": 10,
|
|
67685
|
+
"aria-valuemax": 80,
|
|
67686
|
+
"aria-valuenow": Math.round(percentage),
|
|
67687
|
+
"aria-valuetext": `${Math.round(percentage)}%`,
|
|
67688
|
+
"aria-controls": footerId,
|
|
67689
|
+
onPointerDown: (event) => {
|
|
67690
|
+
if (!enabled || event.button !== 0 || event.isPrimary === false) return;
|
|
67691
|
+
const bounds = bodyRef.current?.getBoundingClientRect();
|
|
67692
|
+
const available = (bounds?.height ?? 0) - event.currentTarget.getBoundingClientRect().height;
|
|
67693
|
+
if (available <= 0) return;
|
|
67694
|
+
event.preventDefault();
|
|
67695
|
+
event.currentTarget.focus();
|
|
67696
|
+
event.currentTarget.setPointerCapture?.(event.pointerId);
|
|
67697
|
+
drag.current = { y: event.clientY, height: available, percentage, pointerId: event.pointerId };
|
|
67698
|
+
setDragging(true);
|
|
67699
|
+
},
|
|
67700
|
+
onPointerMove: (event) => {
|
|
67701
|
+
const start = drag.current;
|
|
67702
|
+
if (!enabled || !start || start.pointerId !== event.pointerId) return;
|
|
67703
|
+
update(start.percentage + (start.y - event.clientY) / start.height * 100);
|
|
67704
|
+
},
|
|
67705
|
+
onPointerUp: finish,
|
|
67706
|
+
onPointerCancel: finish,
|
|
67707
|
+
onLostPointerCapture: finish,
|
|
67708
|
+
onKeyDown: (event) => {
|
|
67709
|
+
if (!enabled) return;
|
|
67710
|
+
const step = event.shiftKey ? 10 : 5;
|
|
67711
|
+
const next = event.key === "ArrowUp" ? percentage + step : event.key === "ArrowDown" ? percentage - step : event.key === "Home" ? 10 : event.key === "End" ? 80 : void 0;
|
|
67712
|
+
if (next === void 0) return;
|
|
67713
|
+
event.preventDefault();
|
|
67714
|
+
update(next);
|
|
67715
|
+
}
|
|
67716
|
+
}
|
|
67717
|
+
};
|
|
67718
|
+
}
|
|
67719
|
+
|
|
67543
67720
|
// src/components/WorkflowTracker/WorkflowTimeline.tsx
|
|
67544
67721
|
import React96 from "react";
|
|
67545
67722
|
import classNames116 from "classnames";
|
|
@@ -68070,6 +68247,12 @@ var NestedSubSteps = ({
|
|
|
68070
68247
|
var WorkflowTimeline = ({
|
|
68071
68248
|
disableFutureSteps = false,
|
|
68072
68249
|
controls,
|
|
68250
|
+
footerResizable = false,
|
|
68251
|
+
defaultFooterHeight = 30,
|
|
68252
|
+
footerHeight,
|
|
68253
|
+
onFooterHeightChange,
|
|
68254
|
+
footerLabel = "Workflow footer",
|
|
68255
|
+
footerResizeLabel = "Resize workflow footer",
|
|
68073
68256
|
hasCollapseToggle = false,
|
|
68074
68257
|
renderStepPopover,
|
|
68075
68258
|
stepPopoverProps,
|
|
@@ -68093,6 +68276,14 @@ var WorkflowTimeline = ({
|
|
|
68093
68276
|
onStepAction
|
|
68094
68277
|
}) => {
|
|
68095
68278
|
const isEmpty2 = steps.length === 0;
|
|
68279
|
+
const hasFooter = controls != null && controls !== false;
|
|
68280
|
+
const resizableFooter = footerResizable && fillHeight && hasFooter;
|
|
68281
|
+
const footer = useWorkflowFooterResize({
|
|
68282
|
+
height: footerHeight,
|
|
68283
|
+
defaultHeight: defaultFooterHeight,
|
|
68284
|
+
onChange: onFooterHeightChange,
|
|
68285
|
+
enabled: resizableFooter
|
|
68286
|
+
});
|
|
68096
68287
|
const tallyEntries = [
|
|
68097
68288
|
{ count: tallies.done, label: labels.done },
|
|
68098
68289
|
{ count: tallies.skipped, label: labels.skipped },
|
|
@@ -68179,16 +68370,18 @@ var WorkflowTimeline = ({
|
|
|
68179
68370
|
]
|
|
68180
68371
|
}
|
|
68181
68372
|
),
|
|
68182
|
-
/* @__PURE__ */ jsxs194(
|
|
68183
|
-
|
|
68184
|
-
|
|
68185
|
-
|
|
68186
|
-
|
|
68187
|
-
|
|
68188
|
-
|
|
68189
|
-
|
|
68190
|
-
|
|
68191
|
-
|
|
68373
|
+
/* @__PURE__ */ jsxs194("div", { ref: footer.bodyRef, className: classNames116("flex min-h-0 flex-col", fillHeight && "flex-1", footer.dragging && "select-none"), children: [
|
|
68374
|
+
/* @__PURE__ */ jsx314(
|
|
68375
|
+
ScrollArea_default,
|
|
68376
|
+
{
|
|
68377
|
+
variant: "hover",
|
|
68378
|
+
className: fillHeight ? "min-h-0 flex-1" : void 0,
|
|
68379
|
+
style: fillHeight ? { flex: `${hasFooter ? 100 - footer.percentage : 100} 1 0%` } : void 0,
|
|
68380
|
+
viewportClassName: "overscroll-contain",
|
|
68381
|
+
contentClassName: classNames116(
|
|
68382
|
+
!loading && !isEmpty2 && (collapsed ? "px-2 py-4" : "px-5 py-5")
|
|
68383
|
+
),
|
|
68384
|
+
children: loading ? /* @__PURE__ */ jsx314(WorkflowRailSkeleton, { rows: loadingRows, collapsed }) : isEmpty2 ? collapsed ? /* @__PURE__ */ jsx314("span", { className: "sr-only", children: labels.empty }) : emptyState ?? /* @__PURE__ */ jsx314(
|
|
68192
68385
|
WorkflowPlaceholder,
|
|
68193
68386
|
{
|
|
68194
68387
|
title: labels.empty,
|
|
@@ -68383,21 +68576,36 @@ var WorkflowTimeline = ({
|
|
|
68383
68576
|
},
|
|
68384
68577
|
step.id
|
|
68385
68578
|
);
|
|
68386
|
-
}) })
|
|
68387
|
-
|
|
68388
|
-
|
|
68389
|
-
|
|
68390
|
-
|
|
68391
|
-
|
|
68392
|
-
|
|
68393
|
-
|
|
68394
|
-
|
|
68395
|
-
|
|
68396
|
-
}
|
|
68397
|
-
|
|
68398
|
-
|
|
68399
|
-
|
|
68400
|
-
|
|
68579
|
+
}) })
|
|
68580
|
+
}
|
|
68581
|
+
),
|
|
68582
|
+
resizableFooter && /* @__PURE__ */ jsxs194(
|
|
68583
|
+
"div",
|
|
68584
|
+
{
|
|
68585
|
+
...footer.handleProps,
|
|
68586
|
+
"aria-label": footerResizeLabel,
|
|
68587
|
+
className: classNames116("group relative flex h-3 shrink-0 touch-none cursor-row-resize items-center justify-center outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-neutral-400", surfaces.border),
|
|
68588
|
+
children: [
|
|
68589
|
+
/* @__PURE__ */ jsx314("span", { "aria-hidden": "true", className: classNames116("pointer-events-none absolute inset-x-0 top-1/2 border-t", surfaces.border) }),
|
|
68590
|
+
/* @__PURE__ */ jsx314("span", { "aria-hidden": "true", className: classNames116("relative h-1 w-10 rounded-full bg-neutral-400 transition-opacity dark:bg-neutral-500", footer.dragging ? "opacity-100" : "opacity-40 group-hover:opacity-100 group-focus-visible:opacity-100") })
|
|
68591
|
+
]
|
|
68592
|
+
}
|
|
68593
|
+
),
|
|
68594
|
+
hasFooter && /* @__PURE__ */ jsx314(
|
|
68595
|
+
ScrollArea_default,
|
|
68596
|
+
{
|
|
68597
|
+
id: footer.footerId,
|
|
68598
|
+
role: "region",
|
|
68599
|
+
"aria-label": footerLabel,
|
|
68600
|
+
variant: "hover",
|
|
68601
|
+
className: classNames116(!resizableFooter && "border-t", surfaces.border, fillHeight && "min-h-0"),
|
|
68602
|
+
style: fillHeight ? { flex: `${footer.percentage} 1 0%` } : void 0,
|
|
68603
|
+
viewportClassName: "overscroll-contain",
|
|
68604
|
+
contentClassName: collapsed ? "px-2 py-4" : "px-5 py-4",
|
|
68605
|
+
children: controls
|
|
68606
|
+
}
|
|
68607
|
+
)
|
|
68608
|
+
] }),
|
|
68401
68609
|
showLegend && !isEmpty2 && !collapsed && /* @__PURE__ */ jsx314(
|
|
68402
68610
|
"div",
|
|
68403
68611
|
{
|
|
@@ -68790,6 +68998,12 @@ var WorkflowTrackerRail = ({
|
|
|
68790
68998
|
collapseLabel = "Collapse workflow rail",
|
|
68791
68999
|
renderStepPopover,
|
|
68792
69000
|
renderControls,
|
|
69001
|
+
footerResizable = false,
|
|
69002
|
+
defaultFooterHeight = 30,
|
|
69003
|
+
footerHeight,
|
|
69004
|
+
onFooterHeightChange,
|
|
69005
|
+
footerLabel = "Workflow footer",
|
|
69006
|
+
footerResizeLabel = "Resize workflow footer",
|
|
68793
69007
|
stepPopoverProps,
|
|
68794
69008
|
data = sampleWorkflow,
|
|
68795
69009
|
loading = false,
|
|
@@ -68807,9 +69021,9 @@ var WorkflowTrackerRail = ({
|
|
|
68807
69021
|
style,
|
|
68808
69022
|
...styleProps
|
|
68809
69023
|
}) => {
|
|
68810
|
-
const [internalCollapsed, setInternalCollapsed] =
|
|
69024
|
+
const [internalCollapsed, setInternalCollapsed] = useState86(defaultCollapsed);
|
|
68811
69025
|
const isCollapsed = collapsible && (collapsed ?? internalCollapsed);
|
|
68812
|
-
const timelineId =
|
|
69026
|
+
const timelineId = useId47();
|
|
68813
69027
|
const scrollBody = fillHeight || (cardScrollable ?? false);
|
|
68814
69028
|
const steps = data?.steps ?? [];
|
|
68815
69029
|
const { palette, surfaces, customStatuses } = useWorkflowChrome(styleProps);
|
|
@@ -68881,6 +69095,12 @@ var WorkflowTrackerRail = ({
|
|
|
68881
69095
|
WorkflowTimeline_default,
|
|
68882
69096
|
{
|
|
68883
69097
|
controls: renderControls?.({ collapsed: isCollapsed }),
|
|
69098
|
+
footerResizable,
|
|
69099
|
+
defaultFooterHeight,
|
|
69100
|
+
footerHeight,
|
|
69101
|
+
onFooterHeightChange,
|
|
69102
|
+
footerLabel,
|
|
69103
|
+
footerResizeLabel,
|
|
68884
69104
|
collapsed: isCollapsed,
|
|
68885
69105
|
side,
|
|
68886
69106
|
hasCollapseToggle: collapsible,
|
|
@@ -69538,7 +69758,7 @@ var WorkflowTracker = ({
|
|
|
69538
69758
|
var WorkflowTracker_default = WorkflowTracker;
|
|
69539
69759
|
|
|
69540
69760
|
// src/components/Gantt/Gantt.tsx
|
|
69541
|
-
import { useCallback as useCallback48, useEffect as useEffect76, useMemo as useMemo63, useRef as
|
|
69761
|
+
import { useCallback as useCallback48, useEffect as useEffect76, useMemo as useMemo63, useRef as useRef77, useState as useState88 } from "react";
|
|
69542
69762
|
import { createPortal as createPortal16 } from "react-dom";
|
|
69543
69763
|
import classNames128 from "classnames";
|
|
69544
69764
|
|
|
@@ -71170,7 +71390,7 @@ var GanttScale = ({ levels, height }) => {
|
|
|
71170
71390
|
GanttScale.displayName = "GanttScale";
|
|
71171
71391
|
|
|
71172
71392
|
// src/components/Gantt/GanttLinkLayer.tsx
|
|
71173
|
-
import { forwardRef as forwardRef168, useRef as
|
|
71393
|
+
import { forwardRef as forwardRef168, useRef as useRef75 } from "react";
|
|
71174
71394
|
import { jsx as jsx325, jsxs as jsxs202 } from "react/jsx-runtime";
|
|
71175
71395
|
var GanttLinkLayer = forwardRef168(
|
|
71176
71396
|
function GanttLinkLayer2({
|
|
@@ -71186,7 +71406,7 @@ var GanttLinkLayer = forwardRef168(
|
|
|
71186
71406
|
onDeleteLink
|
|
71187
71407
|
}, ref) {
|
|
71188
71408
|
const t = useKitT();
|
|
71189
|
-
const svgRef =
|
|
71409
|
+
const svgRef = useRef75(null);
|
|
71190
71410
|
const selPath = selected ? paths.find((p) => p.link === selected) : void 0;
|
|
71191
71411
|
const selColor = selPath ? selPath.color ?? color2 : color2;
|
|
71192
71412
|
const selMid = selPath ? { x: (selPath.from.x + selPath.to.x) / 2, y: (selPath.from.y + selPath.to.y) / 2 } : null;
|
|
@@ -71849,13 +72069,13 @@ var GanttToolbar = ({
|
|
|
71849
72069
|
GanttToolbar.displayName = "GanttToolbar";
|
|
71850
72070
|
|
|
71851
72071
|
// src/components/Gantt/useGanttDrag.ts
|
|
71852
|
-
import { useCallback as useCallback47, useEffect as useEffect75, useMemo as useMemo62, useRef as
|
|
72072
|
+
import { useCallback as useCallback47, useEffect as useEffect75, useMemo as useMemo62, useRef as useRef76, useState as useState87 } from "react";
|
|
71853
72073
|
function useGanttDrag(opts) {
|
|
71854
|
-
const [drag, setDrag] =
|
|
71855
|
-
const [linkSelected, setLinkSelected] =
|
|
71856
|
-
const optsRef =
|
|
72074
|
+
const [drag, setDrag] = useState87(null);
|
|
72075
|
+
const [linkSelected, setLinkSelected] = useState87(null);
|
|
72076
|
+
const optsRef = useRef76(opts);
|
|
71857
72077
|
optsRef.current = opts;
|
|
71858
|
-
const dragRef =
|
|
72078
|
+
const dragRef = useRef76(null);
|
|
71859
72079
|
dragRef.current = drag;
|
|
71860
72080
|
const { rows, zoom, rangeStart, accentColor } = opts;
|
|
71861
72081
|
const barGeom = useCallback47(
|
|
@@ -72283,7 +72503,7 @@ var Gantt = ({
|
|
|
72283
72503
|
}));
|
|
72284
72504
|
const interactive = editable ?? Boolean(onTasksChange || onLinksChange || onReorder);
|
|
72285
72505
|
const surfaceText = useMemo63(() => getSurfaceTextTokens(variant), [variant]);
|
|
72286
|
-
const [internalZoom, setInternalZoom] =
|
|
72506
|
+
const [internalZoom, setInternalZoom] = useState88(initialZoom);
|
|
72287
72507
|
const zoom = zoomProp ?? internalZoom;
|
|
72288
72508
|
const setZoom = useCallback48(
|
|
72289
72509
|
(z) => {
|
|
@@ -72293,7 +72513,7 @@ var Gantt = ({
|
|
|
72293
72513
|
},
|
|
72294
72514
|
[minZoom, maxZoom, onZoomChange]
|
|
72295
72515
|
);
|
|
72296
|
-
const [internalSelection, setInternalSelection] =
|
|
72516
|
+
const [internalSelection, setInternalSelection] = useState88(null);
|
|
72297
72517
|
const selectedId = selectedIdProp !== void 0 ? selectedIdProp : internalSelection;
|
|
72298
72518
|
const setSelected = useCallback48(
|
|
72299
72519
|
(id) => {
|
|
@@ -72302,7 +72522,7 @@ var Gantt = ({
|
|
|
72302
72522
|
},
|
|
72303
72523
|
[onSelect, selectedIdProp]
|
|
72304
72524
|
);
|
|
72305
|
-
const [internalOrder, setInternalOrder] =
|
|
72525
|
+
const [internalOrder, setInternalOrder] = useState88(void 0);
|
|
72306
72526
|
const rowOrder = rowOrderProp ?? internalOrder;
|
|
72307
72527
|
const handleReorder = useCallback48(
|
|
72308
72528
|
(order) => {
|
|
@@ -72311,14 +72531,14 @@ var Gantt = ({
|
|
|
72311
72531
|
},
|
|
72312
72532
|
[onReorder, rowOrderProp]
|
|
72313
72533
|
);
|
|
72314
|
-
const [collapsed, setCollapsed] =
|
|
72534
|
+
const [collapsed, setCollapsed] = useState88(
|
|
72315
72535
|
() => new Set(tasks.filter((t2) => t2.open === false).map((t2) => t2.id))
|
|
72316
72536
|
);
|
|
72317
|
-
const [closedLanes, setClosedLanes] =
|
|
72537
|
+
const [closedLanes, setClosedLanes] = useState88(
|
|
72318
72538
|
() => new Set((lanes ?? []).filter((l) => l.open === false).map((l) => l.id))
|
|
72319
72539
|
);
|
|
72320
|
-
const tasksRef =
|
|
72321
|
-
const lanesRef =
|
|
72540
|
+
const tasksRef = useRef77(tasks);
|
|
72541
|
+
const lanesRef = useRef77(lanes);
|
|
72322
72542
|
useEffect76(() => {
|
|
72323
72543
|
if (tasksRef.current !== tasks) {
|
|
72324
72544
|
tasksRef.current = tasks;
|
|
@@ -72372,7 +72592,7 @@ var Gantt = ({
|
|
|
72372
72592
|
() => buildTimeScale(range.start, range.end, zoom, dateLocale),
|
|
72373
72593
|
[range, zoom, dateLocale]
|
|
72374
72594
|
);
|
|
72375
|
-
const [colWidths, setColWidths] =
|
|
72595
|
+
const [colWidths, setColWidths] = useState88(
|
|
72376
72596
|
() => columnWidths ? { ...columnWidths } : {}
|
|
72377
72597
|
);
|
|
72378
72598
|
useEffect76(() => {
|
|
@@ -72389,7 +72609,7 @@ var Gantt = ({
|
|
|
72389
72609
|
() => resolvedColumns.map((c) => ({ ...c, width: `${effectiveColWidth(c)}px` })),
|
|
72390
72610
|
[resolvedColumns, colWidths]
|
|
72391
72611
|
);
|
|
72392
|
-
const effectiveWidthsRef =
|
|
72612
|
+
const effectiveWidthsRef = useRef77({});
|
|
72393
72613
|
effectiveWidthsRef.current = Object.fromEntries(
|
|
72394
72614
|
sizedColumns.map((c) => [c.key, effectiveColWidth(c)])
|
|
72395
72615
|
);
|
|
@@ -72397,8 +72617,8 @@ var Gantt = ({
|
|
|
72397
72617
|
() => GRIP_WIDTH + resolvedColumns.reduce((sum, c) => sum + effectiveColWidth(c), 0),
|
|
72398
72618
|
[resolvedColumns, colWidths]
|
|
72399
72619
|
);
|
|
72400
|
-
const resizingRef =
|
|
72401
|
-
const [resizingKey, setResizingKey] =
|
|
72620
|
+
const resizingRef = useRef77(null);
|
|
72621
|
+
const [resizingKey, setResizingKey] = useState88(null);
|
|
72402
72622
|
const startColumnResize = useCallback48(
|
|
72403
72623
|
(e, key) => {
|
|
72404
72624
|
if (e.button !== 0) return;
|
|
@@ -72437,10 +72657,10 @@ var Gantt = ({
|
|
|
72437
72657
|
},
|
|
72438
72658
|
[]
|
|
72439
72659
|
);
|
|
72440
|
-
const scrollRef =
|
|
72441
|
-
const overlayRef =
|
|
72442
|
-
const rootRef =
|
|
72443
|
-
const headerScaleRef =
|
|
72660
|
+
const scrollRef = useRef77(null);
|
|
72661
|
+
const overlayRef = useRef77(null);
|
|
72662
|
+
const rootRef = useRef77(null);
|
|
72663
|
+
const headerScaleRef = useRef77(null);
|
|
72444
72664
|
const syncHeaderScale = useCallback48(() => {
|
|
72445
72665
|
const s = scrollRef.current;
|
|
72446
72666
|
const h = headerScaleRef.current;
|
|
@@ -72480,7 +72700,7 @@ var Gantt = ({
|
|
|
72480
72700
|
useEffect76(() => {
|
|
72481
72701
|
syncHeaderScale();
|
|
72482
72702
|
}, [syncHeaderScale, timelineWidth, zoom, range.start, leftWidth]);
|
|
72483
|
-
const liveRowsRef =
|
|
72703
|
+
const liveRowsRef = useRef77(null);
|
|
72484
72704
|
const dragApi = useGanttDrag({
|
|
72485
72705
|
scrollRef,
|
|
72486
72706
|
overlayRef,
|
|
@@ -73156,7 +73376,7 @@ var GanttSkeleton = ({
|
|
|
73156
73376
|
] }, i)) });
|
|
73157
73377
|
|
|
73158
73378
|
// src/components/TaskBoard/TaskBoard.tsx
|
|
73159
|
-
import { useCallback as useCallback54, useEffect as useEffect81, useMemo as useMemo68, useRef as
|
|
73379
|
+
import { useCallback as useCallback54, useEffect as useEffect81, useMemo as useMemo68, useRef as useRef83, useState as useState97 } from "react";
|
|
73160
73380
|
import classNames139 from "classnames";
|
|
73161
73381
|
|
|
73162
73382
|
// ../common/taskboard/types.ts
|
|
@@ -73965,10 +74185,10 @@ var TaskBoardBucket = ({ column, lane, cards, className, label }) => {
|
|
|
73965
74185
|
};
|
|
73966
74186
|
|
|
73967
74187
|
// src/components/TaskBoard/usePresence.ts
|
|
73968
|
-
import { useEffect as useEffect77, useState as
|
|
74188
|
+
import { useEffect as useEffect77, useState as useState89 } from "react";
|
|
73969
74189
|
var COLLAPSE_MS = 200;
|
|
73970
74190
|
function usePresence(open, ms = COLLAPSE_MS) {
|
|
73971
|
-
const [mounted, setMounted] =
|
|
74191
|
+
const [mounted, setMounted] = useState89(open);
|
|
73972
74192
|
useEffect77(() => {
|
|
73973
74193
|
if (open) {
|
|
73974
74194
|
setMounted(true);
|
|
@@ -73986,7 +74206,7 @@ function usePresence(open, ms = COLLAPSE_MS) {
|
|
|
73986
74206
|
}
|
|
73987
74207
|
|
|
73988
74208
|
// src/components/TaskBoard/TaskBoardColumnEdit.tsx
|
|
73989
|
-
import { useState as
|
|
74209
|
+
import { useState as useState90 } from "react";
|
|
73990
74210
|
import { createPortal as createPortal17 } from "react-dom";
|
|
73991
74211
|
import classNames131 from "classnames";
|
|
73992
74212
|
import { jsx as jsx331, jsxs as jsxs207 } from "react/jsx-runtime";
|
|
@@ -74014,8 +74234,8 @@ var TaskBoardAddColumn = ({
|
|
|
74014
74234
|
variant
|
|
74015
74235
|
}) => {
|
|
74016
74236
|
const { text: text2, surface, color: color2, size, columnCornerClass } = useTaskBoard();
|
|
74017
|
-
const [editing, setEditing] =
|
|
74018
|
-
const [title, setTitle] =
|
|
74237
|
+
const [editing, setEditing] = useState90(false);
|
|
74238
|
+
const [title, setTitle] = useState90("");
|
|
74019
74239
|
const trigger = getSurfaceTriggerTokens(color2);
|
|
74020
74240
|
const close = () => {
|
|
74021
74241
|
setEditing(false);
|
|
@@ -74128,7 +74348,7 @@ var TaskBoardColumnClone = ({ drag, column, cards, count }) => {
|
|
|
74128
74348
|
};
|
|
74129
74349
|
|
|
74130
74350
|
// src/components/TaskBoard/TaskBoardColumnEditor.tsx
|
|
74131
|
-
import { useId as
|
|
74351
|
+
import { useId as useId48, useState as useState91 } from "react";
|
|
74132
74352
|
import classNames132 from "classnames";
|
|
74133
74353
|
import { jsx as jsx332, jsxs as jsxs208 } from "react/jsx-runtime";
|
|
74134
74354
|
var toDraft = (c) => ({
|
|
@@ -74152,9 +74372,9 @@ function fromDraft(column, d) {
|
|
|
74152
74372
|
var limitValid = (wip) => wip.trim() === "" || Number.isInteger(Number(wip)) && Number(wip) >= 1;
|
|
74153
74373
|
var TaskBoardColumnEditButton = ({ column }) => {
|
|
74154
74374
|
const { onEditColumn, allColumns, text: text2, surface, color: color2 } = useTaskBoard();
|
|
74155
|
-
const [open, setOpen] =
|
|
74156
|
-
const [draft, setDraft] =
|
|
74157
|
-
const id =
|
|
74375
|
+
const [open, setOpen] = useState91(false);
|
|
74376
|
+
const [draft, setDraft] = useState91(() => toDraft(column));
|
|
74377
|
+
const id = useId48();
|
|
74158
74378
|
if (!onEditColumn) return null;
|
|
74159
74379
|
const trigger = getSurfaceTriggerTokens(color2);
|
|
74160
74380
|
const valid = draft.title.trim() !== "" && limitValid(draft.wip) && limitValid(draft.max);
|
|
@@ -74770,7 +74990,7 @@ var TaskBoardDragLayer = ({ drag, card }) => {
|
|
|
74770
74990
|
};
|
|
74771
74991
|
|
|
74772
74992
|
// src/components/TaskBoard/useTaskBoardDrag.ts
|
|
74773
|
-
import { useCallback as useCallback49, useEffect as useEffect78, useMemo as useMemo64, useRef as
|
|
74993
|
+
import { useCallback as useCallback49, useEffect as useEffect78, useMemo as useMemo64, useRef as useRef78, useState as useState92 } from "react";
|
|
74774
74994
|
var DRAG_THRESHOLD_PX = 4;
|
|
74775
74995
|
var TOUCH_GRAB_DELAY_MS = 250;
|
|
74776
74996
|
var TOUCH_SLOP_PX = 8;
|
|
@@ -74785,17 +75005,17 @@ function bucketOf(el) {
|
|
|
74785
75005
|
return column === null ? null : { column, lane: lane || null, el: bucket };
|
|
74786
75006
|
}
|
|
74787
75007
|
function useTaskBoardDrag(opts) {
|
|
74788
|
-
const [drag, setDrag] =
|
|
74789
|
-
const [pending, setPending] =
|
|
74790
|
-
const optsRef =
|
|
75008
|
+
const [drag, setDrag] = useState92(null);
|
|
75009
|
+
const [pending, setPending] = useState92(null);
|
|
75010
|
+
const optsRef = useRef78(opts);
|
|
74791
75011
|
optsRef.current = opts;
|
|
74792
|
-
const dragRef =
|
|
74793
|
-
const pressRef =
|
|
74794
|
-
const suppressClickRef =
|
|
74795
|
-
const pointerRef =
|
|
74796
|
-
const rafRef =
|
|
74797
|
-
const cleanupRef =
|
|
74798
|
-
const userSelectRef =
|
|
75012
|
+
const dragRef = useRef78(null);
|
|
75013
|
+
const pressRef = useRef78(null);
|
|
75014
|
+
const suppressClickRef = useRef78(false);
|
|
75015
|
+
const pointerRef = useRef78({ x: 0, y: 0 });
|
|
75016
|
+
const rafRef = useRef78(null);
|
|
75017
|
+
const cleanupRef = useRef78(null);
|
|
75018
|
+
const userSelectRef = useRef78(null);
|
|
74799
75019
|
const setDragState = useCallback49((next) => {
|
|
74800
75020
|
dragRef.current = next;
|
|
74801
75021
|
setDrag(next);
|
|
@@ -75069,16 +75289,16 @@ function useTaskBoardDrag(opts) {
|
|
|
75069
75289
|
}
|
|
75070
75290
|
|
|
75071
75291
|
// src/components/TaskBoard/useTaskBoardKeyboard.ts
|
|
75072
|
-
import { useCallback as useCallback50, useLayoutEffect as useLayoutEffect30, useMemo as useMemo65, useRef as
|
|
75292
|
+
import { useCallback as useCallback50, useLayoutEffect as useLayoutEffect30, useMemo as useMemo65, useRef as useRef79, useState as useState93 } from "react";
|
|
75073
75293
|
var isRtl = (el) => el?.closest("[dir]")?.getAttribute("dir") === "rtl";
|
|
75074
75294
|
function useTaskBoardKeyboard(o) {
|
|
75075
75295
|
const { rootRef, cards, viewCards, columns, lanes, text: text2, drag } = o;
|
|
75076
|
-
const [message, setMessage] =
|
|
75077
|
-
const [activeId, setActiveId] =
|
|
75078
|
-
const [ownSelection, setOwnSelection] =
|
|
75296
|
+
const [message, setMessage] = useState93("");
|
|
75297
|
+
const [activeId, setActiveId] = useState93(null);
|
|
75298
|
+
const [ownSelection, setOwnSelection] = useState93([]);
|
|
75079
75299
|
const selection = o.selectedIds ?? ownSelection;
|
|
75080
|
-
const anchorRef =
|
|
75081
|
-
const refocusRef =
|
|
75300
|
+
const anchorRef = useRef79(null);
|
|
75301
|
+
const refocusRef = useRef79(null);
|
|
75082
75302
|
const viewBuckets = useMemo65(() => bucketCards(viewCards, columns, lanes), [viewCards, columns, lanes]);
|
|
75083
75303
|
const firstId = useMemo65(() => {
|
|
75084
75304
|
for (const cards2 of viewBuckets.values()) if (cards2.length) return cards2[0].id;
|
|
@@ -75256,17 +75476,17 @@ function useTaskBoardKeyboard(o) {
|
|
|
75256
75476
|
}
|
|
75257
75477
|
|
|
75258
75478
|
// src/components/TaskBoard/useTaskBoardColumnDrag.ts
|
|
75259
|
-
import { useCallback as useCallback51, useEffect as useEffect79, useLayoutEffect as useLayoutEffect31, useMemo as useMemo66, useRef as
|
|
75479
|
+
import { useCallback as useCallback51, useEffect as useEffect79, useLayoutEffect as useLayoutEffect31, useMemo as useMemo66, useRef as useRef80, useState as useState94 } from "react";
|
|
75260
75480
|
var DRAG_THRESHOLD_PX2 = 4;
|
|
75261
75481
|
var isRtl2 = (el) => el?.closest("[dir]")?.getAttribute("dir") === "rtl";
|
|
75262
75482
|
function useTaskBoardColumnDrag(opts) {
|
|
75263
|
-
const [drag, setDrag] =
|
|
75264
|
-
const optsRef =
|
|
75483
|
+
const [drag, setDrag] = useState94(null);
|
|
75484
|
+
const optsRef = useRef80(opts);
|
|
75265
75485
|
optsRef.current = opts;
|
|
75266
|
-
const dragRef =
|
|
75267
|
-
const cleanupRef =
|
|
75268
|
-
const userSelectRef =
|
|
75269
|
-
const refocusRef =
|
|
75486
|
+
const dragRef = useRef80(null);
|
|
75487
|
+
const cleanupRef = useRef80(null);
|
|
75488
|
+
const userSelectRef = useRef80(null);
|
|
75489
|
+
const refocusRef = useRef80(null);
|
|
75270
75490
|
const set = useCallback51((next) => {
|
|
75271
75491
|
dragRef.current = next;
|
|
75272
75492
|
setDrag(next);
|
|
@@ -75405,10 +75625,10 @@ function useTaskBoardColumnDrag(opts) {
|
|
|
75405
75625
|
}
|
|
75406
75626
|
|
|
75407
75627
|
// src/components/TaskBoard/useFlip.ts
|
|
75408
|
-
import { useLayoutEffect as useLayoutEffect32, useRef as
|
|
75628
|
+
import { useLayoutEffect as useLayoutEffect32, useRef as useRef81 } from "react";
|
|
75409
75629
|
function useFlip(rootRef, orderKey) {
|
|
75410
|
-
const positions =
|
|
75411
|
-
const lastKey =
|
|
75630
|
+
const positions = useRef81(/* @__PURE__ */ new Map());
|
|
75631
|
+
const lastKey = useRef81(orderKey);
|
|
75412
75632
|
useLayoutEffect32(() => {
|
|
75413
75633
|
const root = rootRef.current;
|
|
75414
75634
|
if (!root) return;
|
|
@@ -75437,15 +75657,15 @@ function useFlip(rootRef, orderKey) {
|
|
|
75437
75657
|
}
|
|
75438
75658
|
|
|
75439
75659
|
// src/components/TaskBoard/useTaskBoardCollab.ts
|
|
75440
|
-
import { useCallback as useCallback52, useEffect as useEffect80, useMemo as useMemo67, useRef as
|
|
75660
|
+
import { useCallback as useCallback52, useEffect as useEffect80, useMemo as useMemo67, useRef as useRef82, useState as useState95 } from "react";
|
|
75441
75661
|
var EXPIRE_TICK_MS = 1e3;
|
|
75442
75662
|
function useTaskBoardCollab(transport, currentUser) {
|
|
75443
|
-
const [presence, setPresence] =
|
|
75663
|
+
const [presence, setPresence] = useState95(emptyPresence);
|
|
75444
75664
|
const active = Boolean(transport && currentUser);
|
|
75445
|
-
const mountedRef =
|
|
75446
|
-
const userRef =
|
|
75665
|
+
const mountedRef = useRef82(false);
|
|
75666
|
+
const userRef = useRef82(currentUser);
|
|
75447
75667
|
userRef.current = currentUser;
|
|
75448
|
-
const hoverRef =
|
|
75668
|
+
const hoverRef = useRef82({ last: 0, timer: null });
|
|
75449
75669
|
const apply = useCallback52((event) => {
|
|
75450
75670
|
if (!mountedRef.current) return;
|
|
75451
75671
|
const now2 = Date.now();
|
|
@@ -75557,14 +75777,14 @@ function safePublish(transport, event) {
|
|
|
75557
75777
|
}
|
|
75558
75778
|
|
|
75559
75779
|
// src/components/TaskBoard/TaskBoardRemoteGhosts.tsx
|
|
75560
|
-
import { useLayoutEffect as useLayoutEffect33, useState as
|
|
75780
|
+
import { useLayoutEffect as useLayoutEffect33, useState as useState96 } from "react";
|
|
75561
75781
|
import { createPortal as createPortal19 } from "react-dom";
|
|
75562
75782
|
import classNames137 from "classnames";
|
|
75563
75783
|
import { Fragment as Fragment54, jsx as jsx337, jsxs as jsxs212 } from "react/jsx-runtime";
|
|
75564
75784
|
var GHOST_HEIGHT = 40;
|
|
75565
75785
|
var TaskBoardRemoteGhosts = ({ rootRef, holds, selfId, cards, userById }) => {
|
|
75566
|
-
const [ghosts, setGhosts] =
|
|
75567
|
-
const [tick, setTick] =
|
|
75786
|
+
const [ghosts, setGhosts] = useState96([]);
|
|
75787
|
+
const [tick, setTick] = useState96(0);
|
|
75568
75788
|
useLayoutEffect33(() => {
|
|
75569
75789
|
const root = rootRef.current;
|
|
75570
75790
|
if (!root) return;
|
|
@@ -75769,7 +75989,7 @@ var TaskBoardBody = (props) => {
|
|
|
75769
75989
|
const resolvedColumnWidth = normalizedColumnWidth === "auto" || normalizedColumnWidth === "" || typeof normalizedColumnWidth === "number" && (!Number.isFinite(normalizedColumnWidth) || normalizedColumnWidth <= 0) ? sizeTokens12.columnWidth : normalizedColumnWidth;
|
|
75770
75990
|
const wellSurface = surface.translucent ? GLASS_WELL : SOLID_WELL;
|
|
75771
75991
|
const columnCornerClass = getSurfaceCornerClass(columnCorner);
|
|
75772
|
-
const rootRef =
|
|
75992
|
+
const rootRef = useRef83(null);
|
|
75773
75993
|
const isEditable = editable ?? Boolean(onCardsChange);
|
|
75774
75994
|
const laneView = layout === "lanes" && Boolean(lanes?.length);
|
|
75775
75995
|
const viewLanes = laneView ? lanes : void 0;
|
|
@@ -75790,7 +76010,7 @@ var TaskBoardBody = (props) => {
|
|
|
75790
76010
|
onDragTarget: (cardId, slot) => slot && collab.hover(cardId, slot),
|
|
75791
76011
|
onDragEnd: collab.release
|
|
75792
76012
|
});
|
|
75793
|
-
const [notice, setNotice] =
|
|
76013
|
+
const [notice, setNotice] = useState97(null);
|
|
75794
76014
|
useEffect81(() => {
|
|
75795
76015
|
if (!drag || !selfId) return;
|
|
75796
76016
|
const holder = collab.heldBy.get(drag.cardId);
|
|
@@ -76235,8 +76455,8 @@ import {
|
|
|
76235
76455
|
useEffect as useEffect82,
|
|
76236
76456
|
useImperativeHandle as useImperativeHandle5,
|
|
76237
76457
|
useMemo as useMemo70,
|
|
76238
|
-
useRef as
|
|
76239
|
-
useState as
|
|
76458
|
+
useRef as useRef84,
|
|
76459
|
+
useState as useState98
|
|
76240
76460
|
} from "react";
|
|
76241
76461
|
|
|
76242
76462
|
// src/components/Terminal/engine.ts
|
|
@@ -76297,10 +76517,10 @@ var TERMINAL_DARK_THEME = {
|
|
|
76297
76517
|
// src/components/Terminal/TerminalViewport.tsx
|
|
76298
76518
|
import { jsx as jsx341 } from "react/jsx-runtime";
|
|
76299
76519
|
var TerminalViewport = forwardRef169(function TerminalViewport2(props, ref) {
|
|
76300
|
-
const host =
|
|
76301
|
-
const engine =
|
|
76302
|
-
const fitAddon =
|
|
76303
|
-
const [scroll, setScroll] =
|
|
76520
|
+
const host = useRef84(null);
|
|
76521
|
+
const engine = useRef84(null);
|
|
76522
|
+
const fitAddon = useRef84(null);
|
|
76523
|
+
const [scroll, setScroll] = useState98({
|
|
76304
76524
|
contentSize: 0,
|
|
76305
76525
|
viewportSize: 0,
|
|
76306
76526
|
offset: 0
|
|
@@ -76313,10 +76533,10 @@ var TerminalViewport = forwardRef169(function TerminalViewport2(props, ref) {
|
|
|
76313
76533
|
() => ({ ...scroll, onScroll: scrollTo }),
|
|
76314
76534
|
[scroll, scrollTo]
|
|
76315
76535
|
);
|
|
76316
|
-
const latest =
|
|
76536
|
+
const latest = useRef84(props);
|
|
76317
76537
|
latest.current = props;
|
|
76318
|
-
const initialData =
|
|
76319
|
-
const pending =
|
|
76538
|
+
const initialData = useRef84(props.initialData);
|
|
76539
|
+
const pending = useRef84([]);
|
|
76320
76540
|
const handle = useMemo70(
|
|
76321
76541
|
() => ({
|
|
76322
76542
|
write(data) {
|
|
@@ -76365,7 +76585,7 @@ var TerminalViewport = forwardRef169(function TerminalViewport2(props, ref) {
|
|
|
76365
76585
|
}
|
|
76366
76586
|
};
|
|
76367
76587
|
};
|
|
76368
|
-
const updateOptions =
|
|
76588
|
+
const updateOptions = useRef84(applyOptions);
|
|
76369
76589
|
updateOptions.current = applyOptions;
|
|
76370
76590
|
useEffect82(() => {
|
|
76371
76591
|
let cancelled = false;
|
|
@@ -76559,10 +76779,10 @@ import classNames142 from "classnames";
|
|
|
76559
76779
|
import {
|
|
76560
76780
|
forwardRef as forwardRef171,
|
|
76561
76781
|
useEffect as useEffect83,
|
|
76562
|
-
useId as
|
|
76782
|
+
useId as useId49,
|
|
76563
76783
|
useImperativeHandle as useImperativeHandle6,
|
|
76564
|
-
useRef as
|
|
76565
|
-
useState as
|
|
76784
|
+
useRef as useRef85,
|
|
76785
|
+
useState as useState99
|
|
76566
76786
|
} from "react";
|
|
76567
76787
|
import { jsx as jsx343, jsxs as jsxs216 } from "react/jsx-runtime";
|
|
76568
76788
|
var TerminalTabs = forwardRef171(
|
|
@@ -76594,12 +76814,12 @@ var TerminalTabs = forwardRef171(
|
|
|
76594
76814
|
...surface
|
|
76595
76815
|
}, ref) {
|
|
76596
76816
|
const tone = getSurfaceAccentColor(surfaceTone);
|
|
76597
|
-
const prefix =
|
|
76598
|
-
const [selected, setSelected] =
|
|
76817
|
+
const prefix = useId49();
|
|
76818
|
+
const [selected, setSelected] = useState99(defaultValue ?? sessions[0]?.id);
|
|
76599
76819
|
const requested = value ?? selected;
|
|
76600
76820
|
const active = sessions.find((session) => session.id === requested) ?? sessions[0];
|
|
76601
76821
|
const activeId = active?.id;
|
|
76602
|
-
const handles =
|
|
76822
|
+
const handles = useRef85(/* @__PURE__ */ new Map());
|
|
76603
76823
|
useImperativeHandle6(
|
|
76604
76824
|
ref,
|
|
76605
76825
|
() => ({ getSession: (id) => handles.current.get(id) }),
|
|
@@ -76745,17 +76965,17 @@ function hasZone(node) {
|
|
|
76745
76965
|
}
|
|
76746
76966
|
|
|
76747
76967
|
// src/components/Menu/Menu.tsx
|
|
76748
|
-
import React112, { cloneElement as cloneElement4, useCallback as useCallback56, useEffect as useEffect84, useId as
|
|
76968
|
+
import React112, { cloneElement as cloneElement4, useCallback as useCallback56, useEffect as useEffect84, useId as useId50, useLayoutEffect as useLayoutEffect35, useRef as useRef87, useState as useState101 } from "react";
|
|
76749
76969
|
import { Link as Link3 } from "react-router-dom";
|
|
76750
76970
|
import classNames144 from "classnames";
|
|
76751
76971
|
|
|
76752
76972
|
// src/components/Menu/MenuPopup.tsx
|
|
76753
|
-
import { useLayoutEffect as useLayoutEffect34, useRef as
|
|
76973
|
+
import { useLayoutEffect as useLayoutEffect34, useRef as useRef86, useState as useState100 } from "react";
|
|
76754
76974
|
import { createPortal as createPortal20 } from "react-dom";
|
|
76755
76975
|
import { jsx as jsx345 } from "react/jsx-runtime";
|
|
76756
76976
|
function MenuPopup({ anchor, placement, width, children }) {
|
|
76757
|
-
const ref =
|
|
76758
|
-
const [style, setStyle] =
|
|
76977
|
+
const ref = useRef86(null);
|
|
76978
|
+
const [style, setStyle] = useState100({ visibility: "hidden" });
|
|
76759
76979
|
useLayoutEffect34(() => {
|
|
76760
76980
|
const update = () => {
|
|
76761
76981
|
if (!anchor.current || !ref.current) return;
|
|
@@ -76800,9 +77020,9 @@ var menuPadding = {
|
|
|
76800
77020
|
var rowSizes = { xs: "px-2 py-1 text-xs", sm: "px-2.5 py-1.5 text-xs", md: "px-3 py-2 text-sm", lg: "px-4 py-2.5 text-base", xl: "px-5 py-3 text-lg" };
|
|
76801
77021
|
var text = (item) => item.textValue ?? (typeof item.label === "string" ? item.label : item.id);
|
|
76802
77022
|
function MenuList({ items, state, depth = 0, parentLabel, onBack, focusOnMount = false, grouped = false }) {
|
|
76803
|
-
const list =
|
|
76804
|
-
const buffer =
|
|
76805
|
-
const timer =
|
|
77023
|
+
const list = useRef87(null);
|
|
77024
|
+
const buffer = useRef87("");
|
|
77025
|
+
const timer = useRef87(void 0);
|
|
76806
77026
|
const actions = () => Array.from(list.current?.querySelectorAll("[data-menu-action]") ?? []).filter((el) => el.closest('[role="menu"]') === list.current && el.getAttribute("aria-disabled") !== "true");
|
|
76807
77027
|
useLayoutEffect35(() => {
|
|
76808
77028
|
if (grouped) return;
|
|
@@ -76877,13 +77097,13 @@ function MenuList({ items, state, depth = 0, parentLabel, onBack, focusOnMount =
|
|
|
76877
77097
|
);
|
|
76878
77098
|
}
|
|
76879
77099
|
function MenuRow({ item, state, depth }) {
|
|
76880
|
-
const anchor =
|
|
77100
|
+
const anchor = useRef87(null);
|
|
76881
77101
|
const { props } = state;
|
|
76882
77102
|
const tiered = (item.submenuMode ?? props.submenuMode) === "tiered";
|
|
76883
77103
|
const nested = Boolean(item.items?.some((child) => !child.hidden) || item.content != null);
|
|
76884
77104
|
const expanded = tiered ? state.path[depth] === item.id : state.expanded.includes(item.id);
|
|
76885
77105
|
const label = text(item);
|
|
76886
|
-
const id =
|
|
77106
|
+
const id = useId50();
|
|
76887
77107
|
const open = (keyboard) => {
|
|
76888
77108
|
if (item.disabled || !nested) return;
|
|
76889
77109
|
state.keyboard.current = keyboard;
|
|
@@ -77001,6 +77221,7 @@ function MenuSurface({ state, children, root = false }) {
|
|
|
77001
77221
|
transparency: props.transparency,
|
|
77002
77222
|
vibrancy: props.vibrancy,
|
|
77003
77223
|
specularMode: props.specularMode,
|
|
77224
|
+
style: root ? props.style : void 0,
|
|
77004
77225
|
className: classNames144(
|
|
77005
77226
|
root ? props.className : void 0,
|
|
77006
77227
|
(!root || props.popup || props.trigger || props.anchorRef) && "backdrop-blur-xl"
|
|
@@ -77014,16 +77235,16 @@ function MenuSurface({ state, children, root = false }) {
|
|
|
77014
77235
|
) });
|
|
77015
77236
|
}
|
|
77016
77237
|
function Menu(props) {
|
|
77017
|
-
const owner =
|
|
77018
|
-
const triggerRef =
|
|
77238
|
+
const owner = useId50();
|
|
77239
|
+
const triggerRef = useRef87(null);
|
|
77019
77240
|
const anchor = props.anchorRef ?? triggerRef;
|
|
77020
77241
|
const popup = props.popup ?? Boolean(props.trigger || props.anchorRef);
|
|
77021
|
-
const [internalOpen, setInternalOpen] =
|
|
77242
|
+
const [internalOpen, setInternalOpen] = useState101(props.defaultOpen ?? false);
|
|
77022
77243
|
const open = props.open ?? internalOpen;
|
|
77023
|
-
const [expanded, setExpanded] =
|
|
77024
|
-
const [path, setPath] =
|
|
77025
|
-
const keyboard =
|
|
77026
|
-
const leave =
|
|
77244
|
+
const [expanded, setExpanded] = useState101(props.defaultExpandedKeys ?? []);
|
|
77245
|
+
const [path, setPath] = useState101([]);
|
|
77246
|
+
const keyboard = useRef87(false);
|
|
77247
|
+
const leave = useRef87(void 0);
|
|
77027
77248
|
const cancelLeave = useCallback56(() => clearTimeout(leave.current), []);
|
|
77028
77249
|
const requestOpen = useCallback56((value) => {
|
|
77029
77250
|
if (props.open === void 0) setInternalOpen(value);
|
|
@@ -77107,7 +77328,7 @@ function Menu(props) {
|
|
|
77107
77328
|
}
|
|
77108
77329
|
|
|
77109
77330
|
// src/components/FileUpload/FileUpload.tsx
|
|
77110
|
-
import { useId as
|
|
77331
|
+
import { useId as useId51, useRef as useRef88, useState as useState103 } from "react";
|
|
77111
77332
|
import classNames145 from "classnames";
|
|
77112
77333
|
|
|
77113
77334
|
// src/components/FileUpload/fileSelection.ts
|
|
@@ -77150,11 +77371,11 @@ var uploadSizeTokens = {
|
|
|
77150
77371
|
};
|
|
77151
77372
|
|
|
77152
77373
|
// src/components/FileUpload/ImagePreview.tsx
|
|
77153
|
-
import { useEffect as useEffect85, useState as
|
|
77374
|
+
import { useEffect as useEffect85, useState as useState102 } from "react";
|
|
77154
77375
|
import { jsx as jsx347 } from "react/jsx-runtime";
|
|
77155
77376
|
function ImagePreview({ file, src, alt, className }) {
|
|
77156
|
-
const [preview, setPreview] =
|
|
77157
|
-
const [failed, setFailed] =
|
|
77377
|
+
const [preview, setPreview] = useState102(null);
|
|
77378
|
+
const [failed, setFailed] = useState102(null);
|
|
77158
77379
|
useEffect85(() => {
|
|
77159
77380
|
if (!file) return;
|
|
77160
77381
|
let active = true;
|
|
@@ -77196,12 +77417,12 @@ var defaultLabels = {
|
|
|
77196
77417
|
};
|
|
77197
77418
|
function FileUpload({ embedded = false, compact: compact2 = false, value, defaultValue = [], onChange, onReject, accept, maxSize, multiple = false, maxFiles = 20, size = "md", disabled = false, loading = false, error, preview = true, labels: overrides, rejectionMessage, className, "aria-label": ariaLabel, ...surface }) {
|
|
77198
77419
|
const density = uploadSizeTokens[size];
|
|
77199
|
-
const [internal, setInternal] =
|
|
77200
|
-
const [rejections, setRejections] =
|
|
77201
|
-
const [dragging, setDragging] =
|
|
77202
|
-
const depth =
|
|
77203
|
-
const input =
|
|
77204
|
-
const id =
|
|
77420
|
+
const [internal, setInternal] = useState103(defaultValue);
|
|
77421
|
+
const [rejections, setRejections] = useState103([]);
|
|
77422
|
+
const [dragging, setDragging] = useState103(false);
|
|
77423
|
+
const depth = useRef88(0);
|
|
77424
|
+
const input = useRef88(null);
|
|
77425
|
+
const id = useId51();
|
|
77205
77426
|
const files = value ?? internal;
|
|
77206
77427
|
const locked = disabled || loading;
|
|
77207
77428
|
const labels = { ...defaultLabels, ...overrides };
|
|
@@ -77284,7 +77505,7 @@ function FileUpload({ embedded = false, compact: compact2 = false, value, defaul
|
|
|
77284
77505
|
}
|
|
77285
77506
|
|
|
77286
77507
|
// src/components/IdentityPicker/IdentityPicker.tsx
|
|
77287
|
-
import { useId as
|
|
77508
|
+
import { useId as useId52, useState as useState104 } from "react";
|
|
77288
77509
|
import classNames146 from "classnames";
|
|
77289
77510
|
|
|
77290
77511
|
// src/components/IdentityPicker/sizeTokens.ts
|
|
@@ -77479,10 +77700,10 @@ function IdentityPicker({
|
|
|
77479
77700
|
const spacing = compact2 ? compactIdentitySpacing[size] : density;
|
|
77480
77701
|
const monogramLayout = compact2 ? classNames146("flex flex-wrap items-end gap-2", spacing.panel.split(" ").filter((token) => !token.startsWith("space-y-"))) : spacing.panel;
|
|
77481
77702
|
const categoryLineHeight = size === "xs" || size === "sm" ? "1rem" : size === "md" ? "1.25rem" : "1.5rem";
|
|
77482
|
-
const tabsId =
|
|
77483
|
-
const [internal, setInternal] =
|
|
77484
|
-
const [query, setQuery] =
|
|
77485
|
-
const [category, setCategory] =
|
|
77703
|
+
const tabsId = useId52();
|
|
77704
|
+
const [internal, setInternal] = useState104(defaultValue);
|
|
77705
|
+
const [query, setQuery] = useState104("");
|
|
77706
|
+
const [category, setCategory] = useState104("recommended");
|
|
77486
77707
|
const selected = value === void 0 ? internal : value;
|
|
77487
77708
|
const labels = { ...defaults, ...overrides };
|
|
77488
77709
|
const locked = disabled || loading;
|
|
@@ -77502,7 +77723,7 @@ function IdentityPicker({
|
|
|
77502
77723
|
});
|
|
77503
77724
|
const previewClass = classNames146("flex shrink-0 items-center justify-center overflow-hidden border border-neutral-200 dark:border-neutral-600", density.preview, getSurfaceCornerClass(surface.corner ?? "rounded-md"), tokens.bg);
|
|
77504
77725
|
const preview = selected?.type === "image" ? /* @__PURE__ */ jsx349(ImagePreview, { file: selected.file, src: selected.src, alt: labels.preview, className: "h-full w-full object-contain" }) : /* @__PURE__ */ jsx349("span", { style: { fontFamily }, "aria-hidden": "true", children: selected?.type === "emoji" ? selected.emoji : selected?.type === "monogram" ? selected.text : automatic });
|
|
77505
|
-
return /* @__PURE__ */ jsxs220(Panel_default, { ...surface, variant: surface.variant ?? "outlined", tone, padding: surface.padding ?? (compact2 ? "xs" : "sm"), className, "aria-busy": loading || void 0, children: [
|
|
77726
|
+
return /* @__PURE__ */ jsxs220(Panel_default, { ...surface, variant: surface.variant ?? "outlined", tone: surface.tone ?? "none", padding: surface.padding ?? (compact2 ? "xs" : "sm"), className, "aria-busy": loading || void 0, children: [
|
|
77506
77727
|
/* @__PURE__ */ jsxs220("div", { className: classNames146("flex items-start", density.headerGap), children: [
|
|
77507
77728
|
/* @__PURE__ */ jsx349("div", { className: previewClass, role: selected?.type === "image" ? void 0 : "img", "aria-label": selected?.type === "image" ? void 0 : `${labels.preview}: ${selected?.type === "emoji" ? selected.emoji : selected?.type === "monogram" ? selected.text : automatic}`, children: preview }),
|
|
77508
77729
|
/* @__PURE__ */ jsxs220("div", { className: "min-w-0 flex-1", children: [
|
|
@@ -77576,7 +77797,7 @@ function IdentityPicker({
|
|
|
77576
77797
|
embedded: true,
|
|
77577
77798
|
compact: compact2,
|
|
77578
77799
|
variant: surface.variant,
|
|
77579
|
-
tone,
|
|
77800
|
+
tone: surface.tone ?? "none",
|
|
77580
77801
|
corner: surface.corner,
|
|
77581
77802
|
padding: "none",
|
|
77582
77803
|
size,
|
|
@@ -77616,7 +77837,7 @@ function IdentityPicker({
|
|
|
77616
77837
|
}
|
|
77617
77838
|
|
|
77618
77839
|
// src/components/DotStepper/DotStepper.tsx
|
|
77619
|
-
import React115, { forwardRef as forwardRef172, useState as
|
|
77840
|
+
import React115, { forwardRef as forwardRef172, useState as useState105 } from "react";
|
|
77620
77841
|
import classNames147 from "classnames";
|
|
77621
77842
|
|
|
77622
77843
|
// src/components/DotStepper/plan.ts
|
|
@@ -77654,7 +77875,7 @@ var DotTrigger = forwardRef172(function DotTrigger2({ tooltip, ...props }, ref)
|
|
|
77654
77875
|
return /* @__PURE__ */ jsx350(TooltipWrapper_default, { text: tooltip, children: /* @__PURE__ */ jsx350("button", { ...props, ref }) });
|
|
77655
77876
|
});
|
|
77656
77877
|
function ActivePopover({ trigger, content, options }) {
|
|
77657
|
-
const [open, setOpen] =
|
|
77878
|
+
const [open, setOpen] = useState105(false);
|
|
77658
77879
|
const { onOpenChange, ...rest } = options ?? {};
|
|
77659
77880
|
const anchor = React115.cloneElement(trigger, { tooltip: open ? void 0 : trigger.props.tooltip });
|
|
77660
77881
|
return /* @__PURE__ */ jsx350(Popover_default, { ...rest, trigger: anchor, visible: open, onOpenChange: (value) => {
|
|
@@ -77688,7 +77909,7 @@ function DotStepper({ steps, currentIndex, currentStepId, maxVisible = 5, size =
|
|
|
77688
77909
|
}
|
|
77689
77910
|
|
|
77690
77911
|
// src/components/knowledge/shared.tsx
|
|
77691
|
-
import { useState as
|
|
77912
|
+
import { useState as useState106 } from "react";
|
|
77692
77913
|
import { jsx as jsx351, jsxs as jsxs222 } from "react/jsx-runtime";
|
|
77693
77914
|
var MESSAGE_KEYS = {
|
|
77694
77915
|
"library": "kit.knowledge.library",
|
|
@@ -77747,7 +77968,7 @@ function useKnowledgeCopy(labels) {
|
|
|
77747
77968
|
return (key) => labels?.[key] ?? t(MESSAGE_KEYS[key]);
|
|
77748
77969
|
}
|
|
77749
77970
|
function useKnowledgeState(value, initial, onChange) {
|
|
77750
|
-
const [internal, setInternal] =
|
|
77971
|
+
const [internal, setInternal] = useState106(initial);
|
|
77751
77972
|
return [value === void 0 ? internal : value, (next) => {
|
|
77752
77973
|
if (value === void 0) setInternal(next);
|
|
77753
77974
|
onChange?.(next);
|
|
@@ -78045,7 +78266,7 @@ function MemoryDetail({
|
|
|
78045
78266
|
}
|
|
78046
78267
|
|
|
78047
78268
|
// src/components/knowledge/KnowledgeMap.tsx
|
|
78048
|
-
import { useCallback as useCallback57, useEffect as useEffect86, useId as
|
|
78269
|
+
import { useCallback as useCallback57, useEffect as useEffect86, useId as useId53, useMemo as useMemo72, useRef as useRef89, useState as useState107 } from "react";
|
|
78049
78270
|
import { jsx as jsx355, jsxs as jsxs226 } from "react/jsx-runtime";
|
|
78050
78271
|
var COLORS = ["#0891b2", "#d97706", "#059669", "#e11d48", "#6366f1", "#8b5cf6"];
|
|
78051
78272
|
var PAGE_SIZE = 24;
|
|
@@ -78070,13 +78291,13 @@ function KnowledgeMap({
|
|
|
78070
78291
|
disabled = false,
|
|
78071
78292
|
...surface
|
|
78072
78293
|
}) {
|
|
78073
|
-
const copy = useKnowledgeCopy(labels), helpId =
|
|
78294
|
+
const copy = useKnowledgeCopy(labels), helpId = useId53();
|
|
78074
78295
|
const scene = useMemo72(() => buildKnowledgeScene(memories, points), [memories, points]);
|
|
78075
78296
|
const [selection, select] = useKnowledgeState(selectedId, defaultSelectedId, onSelectionChange);
|
|
78076
|
-
const canvasRef =
|
|
78077
|
-
const drag =
|
|
78078
|
-
const [camera, setCamera] =
|
|
78079
|
-
const [query, setQuery] =
|
|
78297
|
+
const canvasRef = useRef89(null), hostRef = useRef89(null);
|
|
78298
|
+
const drag = useRef89(null);
|
|
78299
|
+
const [camera, setCamera] = useState107(INITIAL_CAMERA), [size, setSize] = useState107({ width: 640, height });
|
|
78300
|
+
const [query, setQuery] = useState107(""), [page, setPage] = useState107(0);
|
|
78080
78301
|
const highlighted = useMemo72(() => new Set(highlightedIds), [highlightedIds]);
|
|
78081
78302
|
const clusters = useMemo72(() => {
|
|
78082
78303
|
const groups = /* @__PURE__ */ new Map();
|
|
@@ -78354,7 +78575,7 @@ function KnowledgeMap({
|
|
|
78354
78575
|
}
|
|
78355
78576
|
|
|
78356
78577
|
// src/components/knowledge/KnowledgeExplorer.tsx
|
|
78357
|
-
import { useMemo as useMemo73, useState as
|
|
78578
|
+
import { useMemo as useMemo73, useState as useState108 } from "react";
|
|
78358
78579
|
import { Fragment as Fragment61, jsx as jsx356, jsxs as jsxs227 } from "react/jsx-runtime";
|
|
78359
78580
|
function KnowledgeExplorer({
|
|
78360
78581
|
memories,
|
|
@@ -78390,7 +78611,7 @@ function KnowledgeExplorer({
|
|
|
78390
78611
|
const [query, setQuery] = useKnowledgeState(queryProp, defaultQuery, onQueryChange);
|
|
78391
78612
|
const [filters, setFilters] = useKnowledgeState(filtersProp, defaultFilters, onFiltersChange);
|
|
78392
78613
|
const [traceId, selectTrace] = useKnowledgeState(traceIdProp, defaultSelectedTraceId, onTraceSelectionChange);
|
|
78393
|
-
const [mobileView, setMobileView] =
|
|
78614
|
+
const [mobileView, setMobileView] = useState108("library");
|
|
78394
78615
|
const records = useMemo73(() => new Map(memories.map((memory) => [memory.id, memory])), [memories]);
|
|
78395
78616
|
const selectedMemory = selection ? records.get(selection) ?? null : null;
|
|
78396
78617
|
const highlightedIds = useMemo73(() => [...new Set(traceLinks.filter((link) => link.traceNodeId === traceId && records.has(link.memoryId)).map((link) => link.memoryId))], [traceLinks, traceId, records]);
|
|
@@ -78482,7 +78703,7 @@ function ContentActions({
|
|
|
78482
78703
|
var ContentActions_default = ContentActions;
|
|
78483
78704
|
|
|
78484
78705
|
// src/components/CodeBlock.tsx
|
|
78485
|
-
import React116, { useEffect as useEffect87, useMemo as useMemo74, useRef as
|
|
78706
|
+
import React116, { useEffect as useEffect87, useMemo as useMemo74, useRef as useRef90, useState as useState109 } from "react";
|
|
78486
78707
|
import { refractor } from "refractor";
|
|
78487
78708
|
import tsx from "refractor/tsx";
|
|
78488
78709
|
import { jsx as jsx358, jsxs as jsxs229 } from "react/jsx-runtime";
|
|
@@ -78534,9 +78755,9 @@ function CodeBlock({
|
|
|
78534
78755
|
...rest
|
|
78535
78756
|
}) {
|
|
78536
78757
|
const t = useKitT();
|
|
78537
|
-
const [copyState, setCopyState] =
|
|
78538
|
-
const timer =
|
|
78539
|
-
const generation =
|
|
78758
|
+
const [copyState, setCopyState] = useState109("idle");
|
|
78759
|
+
const timer = useRef90(void 0);
|
|
78760
|
+
const generation = useRef90(0);
|
|
78540
78761
|
useEffect87(() => {
|
|
78541
78762
|
generation.current++;
|
|
78542
78763
|
setCopyState("idle");
|
|
@@ -78594,19 +78815,326 @@ function CodeBlock({
|
|
|
78594
78815
|
] }) });
|
|
78595
78816
|
}
|
|
78596
78817
|
|
|
78818
|
+
// src/components/FilterBar.tsx
|
|
78819
|
+
import { useEffect as useEffect88, useId as useId54, useLayoutEffect as useLayoutEffect36, useRef as useRef91, useState as useState110 } from "react";
|
|
78820
|
+
import classNames149 from "classnames";
|
|
78821
|
+
import { Fragment as Fragment62, jsx as jsx359, jsxs as jsxs230 } from "react/jsx-runtime";
|
|
78822
|
+
function normalize(filters, value) {
|
|
78823
|
+
return Object.assign(/* @__PURE__ */ Object.create(null), Object.fromEntries(filters.flatMap((filter) => {
|
|
78824
|
+
const selected = new Set(Object.prototype.hasOwnProperty.call(value, filter.id) ? value[filter.id] : []);
|
|
78825
|
+
const values = filter.options.filter((option) => selected.has(option.value)).map((option) => option.value);
|
|
78826
|
+
return values.length ? [[filter.id, values]] : [];
|
|
78827
|
+
})));
|
|
78828
|
+
}
|
|
78829
|
+
function FilterBar({
|
|
78830
|
+
searchProps,
|
|
78831
|
+
filters,
|
|
78832
|
+
value,
|
|
78833
|
+
defaultValue = {},
|
|
78834
|
+
onChange,
|
|
78835
|
+
filteredCount,
|
|
78836
|
+
totalCount,
|
|
78837
|
+
itemLabel,
|
|
78838
|
+
size = "md",
|
|
78839
|
+
color: color2 = "blue",
|
|
78840
|
+
showSearch = true,
|
|
78841
|
+
showFilterLabel = true,
|
|
78842
|
+
showEmptyState = true,
|
|
78843
|
+
showClearAll = true,
|
|
78844
|
+
showResultCount = true,
|
|
78845
|
+
showMenuCounts = true,
|
|
78846
|
+
variant = "outlined",
|
|
78847
|
+
tone = "neutral",
|
|
78848
|
+
corner = "rounded-sm",
|
|
78849
|
+
padding = "xs",
|
|
78850
|
+
transparency,
|
|
78851
|
+
glassOpacity = "frosted",
|
|
78852
|
+
vibrancy = "medium",
|
|
78853
|
+
buttonVariant = "outline",
|
|
78854
|
+
secondaryButtonVariant = "ghost",
|
|
78855
|
+
applyButtonVariant = "solid",
|
|
78856
|
+
buttonTone = color2,
|
|
78857
|
+
buttonSize = size,
|
|
78858
|
+
buttonCorner,
|
|
78859
|
+
buttonWeight = "normal",
|
|
78860
|
+
buttonDashed = true,
|
|
78861
|
+
menuVariant = "outlined",
|
|
78862
|
+
menuTone = "none",
|
|
78863
|
+
menuCorner,
|
|
78864
|
+
menuPadding: menuPadding2,
|
|
78865
|
+
chipVariant = "soft",
|
|
78866
|
+
chipTone = color2,
|
|
78867
|
+
spring = "snappy",
|
|
78868
|
+
disabled = false,
|
|
78869
|
+
className,
|
|
78870
|
+
"aria-label": ariaLabel
|
|
78871
|
+
}) {
|
|
78872
|
+
const t = useKitT();
|
|
78873
|
+
const buttonStyle = buttonCorner === void 0 ? void 0 : { borderRadius: getSurfaceCornerRem(buttonCorner) };
|
|
78874
|
+
const actionStyle = { color: buttonTone, size: buttonSize, weight: buttonWeight, style: buttonStyle };
|
|
78875
|
+
const surfaceClasses = getSurfaceVariantClasses(variant, tone, {
|
|
78876
|
+
transparency,
|
|
78877
|
+
liquidExtras: classNames149(getGlassVibrancyClass(vibrancy), getSurfaceGlassFillClass(tone, glassOpacity))
|
|
78878
|
+
});
|
|
78879
|
+
const [internal, setInternal] = useState110(defaultValue);
|
|
78880
|
+
const applied = normalize(filters, value ?? internal);
|
|
78881
|
+
const [open, setOpen] = useState110(false);
|
|
78882
|
+
const [category, setCategory] = useState110(null);
|
|
78883
|
+
const [draft, setDraft] = useState110([]);
|
|
78884
|
+
const anchor = useRef91(null);
|
|
78885
|
+
const searchRegion = useRef91(null);
|
|
78886
|
+
const searchId = useId54();
|
|
78887
|
+
const [expanded, setExpanded] = useState110(Boolean(searchProps.initialValue));
|
|
78888
|
+
const searchDisabled = disabled || searchProps.disabled;
|
|
78889
|
+
const active = filters.find((filter) => filter.id === category);
|
|
78890
|
+
const motion = CONTROL_SPRING_TOKENS[spring];
|
|
78891
|
+
const style = { "--fb-duration": `${motion.duration}ms`, "--fb-easing": motion.easing };
|
|
78892
|
+
const commit = (next) => {
|
|
78893
|
+
const normalized = normalize(filters, next);
|
|
78894
|
+
if (value === void 0) setInternal(normalized);
|
|
78895
|
+
onChange?.(normalized);
|
|
78896
|
+
};
|
|
78897
|
+
const close = (restore = false) => {
|
|
78898
|
+
setOpen(false);
|
|
78899
|
+
setCategory(null);
|
|
78900
|
+
setDraft([]);
|
|
78901
|
+
if (restore) anchor.current?.focus();
|
|
78902
|
+
};
|
|
78903
|
+
const edit = (filter) => {
|
|
78904
|
+
setDraft([...applied[filter.id] ?? []]);
|
|
78905
|
+
setCategory(filter.id);
|
|
78906
|
+
setOpen(true);
|
|
78907
|
+
};
|
|
78908
|
+
const previouslyExpanded = useRef91(expanded);
|
|
78909
|
+
useLayoutEffect36(() => {
|
|
78910
|
+
if (showSearch && expanded && !previouslyExpanded.current && !searchDisabled) searchRegion.current?.querySelector("input")?.focus();
|
|
78911
|
+
previouslyExpanded.current = expanded;
|
|
78912
|
+
}, [expanded, searchDisabled, showSearch]);
|
|
78913
|
+
useEffect88(() => {
|
|
78914
|
+
if (disabled || category !== null && (!active || active.disabled)) {
|
|
78915
|
+
setOpen(false);
|
|
78916
|
+
setCategory(null);
|
|
78917
|
+
setDraft([]);
|
|
78918
|
+
}
|
|
78919
|
+
}, [disabled, category, active]);
|
|
78920
|
+
const items = active ? active.options.map((option) => ({
|
|
78921
|
+
id: option.value,
|
|
78922
|
+
label: option.label,
|
|
78923
|
+
type: "checkbox",
|
|
78924
|
+
checked: draft.includes(option.value),
|
|
78925
|
+
disabled: option.disabled,
|
|
78926
|
+
badge: showMenuCounts ? option.count : void 0,
|
|
78927
|
+
onCheckedChange: (checked) => setDraft((current) => checked ? [.../* @__PURE__ */ new Set([...current, option.value])] : current.filter((entry) => entry !== option.value))
|
|
78928
|
+
})) : filters.map((filter) => ({
|
|
78929
|
+
id: filter.id,
|
|
78930
|
+
label: filter.label,
|
|
78931
|
+
badge: showMenuCounts ? filter.count ?? filter.options.length : void 0,
|
|
78932
|
+
disabled: filter.disabled,
|
|
78933
|
+
trailing: /* @__PURE__ */ jsx359(CustomIcon_default, { icon: "ChevronRight", size: "sm" }),
|
|
78934
|
+
closeOnSelect: false,
|
|
78935
|
+
command: () => edit(filter)
|
|
78936
|
+
}));
|
|
78937
|
+
const chips = filters.filter((filter) => applied[filter.id]?.length).map((filter) => ({
|
|
78938
|
+
id: filter.id,
|
|
78939
|
+
label: `${filter.label}: ${filter.options.filter((option) => applied[filter.id].includes(option.value)).map((option) => option.label).join(", ")}`,
|
|
78940
|
+
disabled: disabled || filter.disabled,
|
|
78941
|
+
edit: () => edit(filter),
|
|
78942
|
+
remove: () => {
|
|
78943
|
+
const next = { ...applied };
|
|
78944
|
+
delete next[filter.id];
|
|
78945
|
+
commit(next);
|
|
78946
|
+
anchor.current?.focus();
|
|
78947
|
+
}
|
|
78948
|
+
}));
|
|
78949
|
+
return /* @__PURE__ */ jsxs230(
|
|
78950
|
+
"div",
|
|
78951
|
+
{
|
|
78952
|
+
role: "group",
|
|
78953
|
+
"aria-label": ariaLabel ?? t("kit.filterbar.filters"),
|
|
78954
|
+
className: classNames149("kit-filter-bar flex min-w-0 flex-wrap items-center gap-2 text-sm", surfaceClasses, getSurfaceCornerClass(corner), getSurfacePaddingClass(padding), className),
|
|
78955
|
+
style,
|
|
78956
|
+
onBlurCapture: (event) => {
|
|
78957
|
+
const menu = event.target.closest("[data-menu-owner]");
|
|
78958
|
+
const next = event.relatedTarget;
|
|
78959
|
+
if (open && menu && !menu.contains(next) && !event.currentTarget.contains(next)) close();
|
|
78960
|
+
},
|
|
78961
|
+
onKeyDownCapture: (event) => {
|
|
78962
|
+
if (open && active && event.key === "Tab") event.stopPropagation();
|
|
78963
|
+
if (open && category && event.key === "ArrowLeft") {
|
|
78964
|
+
event.preventDefault();
|
|
78965
|
+
event.stopPropagation();
|
|
78966
|
+
setCategory(null);
|
|
78967
|
+
setDraft([]);
|
|
78968
|
+
}
|
|
78969
|
+
if (open && event.key === "Escape") {
|
|
78970
|
+
event.preventDefault();
|
|
78971
|
+
event.stopPropagation();
|
|
78972
|
+
close(true);
|
|
78973
|
+
}
|
|
78974
|
+
},
|
|
78975
|
+
children: [
|
|
78976
|
+
/* @__PURE__ */ jsxs230(
|
|
78977
|
+
"div",
|
|
78978
|
+
{
|
|
78979
|
+
ref: searchRegion,
|
|
78980
|
+
className: "fb-search",
|
|
78981
|
+
"data-expanded": expanded,
|
|
78982
|
+
hidden: !showSearch,
|
|
78983
|
+
inert: !showSearch,
|
|
78984
|
+
onBlur: (event) => {
|
|
78985
|
+
if (!event.currentTarget.contains(event.relatedTarget) && !event.currentTarget.querySelector("input")?.value) setExpanded(false);
|
|
78986
|
+
},
|
|
78987
|
+
children: [
|
|
78988
|
+
/* @__PURE__ */ jsx359(
|
|
78989
|
+
Button_default,
|
|
78990
|
+
{
|
|
78991
|
+
...actionStyle,
|
|
78992
|
+
variant: "icon",
|
|
78993
|
+
leadingIcon: "Search",
|
|
78994
|
+
"aria-label": t("kit.filterbar.search"),
|
|
78995
|
+
"aria-expanded": expanded,
|
|
78996
|
+
"aria-controls": searchId,
|
|
78997
|
+
disabled: searchDisabled,
|
|
78998
|
+
className: "fb-search-trigger",
|
|
78999
|
+
hidden: expanded,
|
|
79000
|
+
onClick: () => setExpanded(true)
|
|
79001
|
+
}
|
|
79002
|
+
),
|
|
79003
|
+
/* @__PURE__ */ jsx359("div", { id: searchId, className: "fb-search-input", inert: !expanded, "aria-hidden": !expanded, children: /* @__PURE__ */ jsx359(SearchBar_default, { size, color: color2, ...searchProps, disabled: searchDisabled }) })
|
|
79004
|
+
]
|
|
79005
|
+
}
|
|
79006
|
+
),
|
|
79007
|
+
showSearch && (showFilterLabel || chips.length > 0 || showEmptyState) && /* @__PURE__ */ jsx359("span", { "aria-hidden": "true", className: "h-5 border-l border-neutral-200 dark:border-neutral-700" }),
|
|
79008
|
+
showFilterLabel && /* @__PURE__ */ jsxs230("span", { className: "flex items-center gap-1.5 text-neutral-600 dark:text-neutral-300", children: [
|
|
79009
|
+
/* @__PURE__ */ jsx359("svg", { "aria-hidden": "true", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.7", children: /* @__PURE__ */ jsx359("path", { d: "M3 4h18l-7 8v8l-4-2v-6Z" }) }),
|
|
79010
|
+
t("kit.filterbar.filters")
|
|
79011
|
+
] }),
|
|
79012
|
+
/* @__PURE__ */ jsx359(FilterChips, { chips, color: chipTone, variant: chipVariant, size, buttonTone, buttonStyle, removeLabel: (label) => t("kit.filterbar.remove", { label }) }),
|
|
79013
|
+
showEmptyState && !chips.length && /* @__PURE__ */ jsx359("span", { className: "text-neutral-400", children: t("kit.filterbar.empty") }),
|
|
79014
|
+
/* @__PURE__ */ jsxs230("div", { className: "flex flex-1 flex-wrap items-center justify-end gap-2", children: [
|
|
79015
|
+
/* @__PURE__ */ jsx359(
|
|
79016
|
+
Button_default,
|
|
79017
|
+
{
|
|
79018
|
+
...actionStyle,
|
|
79019
|
+
ref: anchor,
|
|
79020
|
+
variant: buttonVariant,
|
|
79021
|
+
leadingIcon: "Add",
|
|
79022
|
+
disabled: disabled || !filters.length,
|
|
79023
|
+
className: classNames149(buttonCorner === void 0 && "rounded-full", buttonDashed && buttonVariant === "outline" && "border-dashed"),
|
|
79024
|
+
"aria-haspopup": "menu",
|
|
79025
|
+
"aria-expanded": open,
|
|
79026
|
+
onClick: () => {
|
|
79027
|
+
if (open) close();
|
|
79028
|
+
else {
|
|
79029
|
+
setCategory(null);
|
|
79030
|
+
setOpen(true);
|
|
79031
|
+
}
|
|
79032
|
+
},
|
|
79033
|
+
onKeyDown: (event) => {
|
|
79034
|
+
if (event.key === "ArrowDown") {
|
|
79035
|
+
event.preventDefault();
|
|
79036
|
+
setCategory(null);
|
|
79037
|
+
setOpen(true);
|
|
79038
|
+
}
|
|
79039
|
+
},
|
|
79040
|
+
children: t("kit.filterbar.add")
|
|
79041
|
+
}
|
|
79042
|
+
),
|
|
79043
|
+
showClearAll && chips.length > 0 && /* @__PURE__ */ jsx359(Button_default, { ...actionStyle, variant: secondaryButtonVariant, disabled, onClick: () => {
|
|
79044
|
+
commit({});
|
|
79045
|
+
anchor.current?.focus();
|
|
79046
|
+
}, children: t("kit.filterbar.clearAll") }),
|
|
79047
|
+
showResultCount && /* @__PURE__ */ jsx359("span", { className: "border-l border-neutral-200 pl-2 text-neutral-400 dark:border-neutral-700", role: "status", children: t("kit.filterbar.summary", { filtered: filteredCount, total: totalCount, items: itemLabel ?? t("kit.filterbar.items") }) })
|
|
79048
|
+
] }),
|
|
79049
|
+
/* @__PURE__ */ jsx359(
|
|
79050
|
+
Menu,
|
|
79051
|
+
{
|
|
79052
|
+
popup: true,
|
|
79053
|
+
anchorRef: anchor,
|
|
79054
|
+
open: open && !disabled,
|
|
79055
|
+
onOpenChange: (next) => {
|
|
79056
|
+
if (!next) close();
|
|
79057
|
+
},
|
|
79058
|
+
items,
|
|
79059
|
+
width: 320,
|
|
79060
|
+
size,
|
|
79061
|
+
variant: menuVariant,
|
|
79062
|
+
tone: menuTone,
|
|
79063
|
+
corner: menuCorner,
|
|
79064
|
+
padding: menuPadding2,
|
|
79065
|
+
className: "fb-menu",
|
|
79066
|
+
style,
|
|
79067
|
+
"aria-label": active?.label ?? t("kit.filterbar.filterBy"),
|
|
79068
|
+
renderItem: active ? (item) => /* @__PURE__ */ jsxs230(Fragment62, { children: [
|
|
79069
|
+
/* @__PURE__ */ jsx359("span", { "aria-hidden": "true", className: "inline-flex h-4 w-4 shrink-0 items-center justify-center rounded border border-neutral-300 dark:border-neutral-600", children: item.checked && /* @__PURE__ */ jsx359(CustomIcon_default, { icon: "Check", size: "xs" }) }),
|
|
79070
|
+
/* @__PURE__ */ jsx359("span", { className: "min-w-0 flex-1 truncate", children: item.label }),
|
|
79071
|
+
item.badge != null && /* @__PURE__ */ jsx359("span", { className: "shrink-0 text-xs text-neutral-400", children: item.badge })
|
|
79072
|
+
] }) : void 0,
|
|
79073
|
+
header: active ? /* @__PURE__ */ jsx359(Button_default, { ...actionStyle, variant: secondaryButtonVariant, leadingIcon: "ChevronLeft", onClick: () => {
|
|
79074
|
+
setCategory(null);
|
|
79075
|
+
setDraft([]);
|
|
79076
|
+
}, "aria-label": t("kit.filterbar.back"), children: /* @__PURE__ */ jsx359("span", { className: "uppercase tracking-wide", children: active.label }) }) : /* @__PURE__ */ jsx359("span", { className: "px-3 text-xs uppercase tracking-wide text-neutral-400", children: t("kit.filterbar.filterBy") }),
|
|
79077
|
+
footer: active ? /* @__PURE__ */ jsxs230("div", { className: "flex items-center justify-between", children: [
|
|
79078
|
+
/* @__PURE__ */ jsx359(Button_default, { ...actionStyle, variant: secondaryButtonVariant, onClick: () => setDraft((current) => current.filter((entry) => active.options.some((option) => option.value === entry && option.disabled))), children: t("kit.filterbar.clear") }),
|
|
79079
|
+
/* @__PURE__ */ jsx359(Button_default, { ...actionStyle, variant: applyButtonVariant, onClick: () => {
|
|
79080
|
+
commit({ ...applied, [active.id]: draft });
|
|
79081
|
+
close(true);
|
|
79082
|
+
}, children: t("kit.filterbar.done") })
|
|
79083
|
+
] }) : void 0
|
|
79084
|
+
},
|
|
79085
|
+
category ?? "categories"
|
|
79086
|
+
)
|
|
79087
|
+
]
|
|
79088
|
+
}
|
|
79089
|
+
);
|
|
79090
|
+
}
|
|
79091
|
+
function FilterChips({ chips, color: color2, variant, size, buttonTone, buttonStyle, removeLabel }) {
|
|
79092
|
+
const [visible, setVisible] = useState110(chips);
|
|
79093
|
+
const region = useRef91(null);
|
|
79094
|
+
const positions = useRef91(/* @__PURE__ */ new Map());
|
|
79095
|
+
const signature = chips.map((chip) => chip.id).join("\0");
|
|
79096
|
+
useEffect88(() => {
|
|
79097
|
+
const timer = setTimeout(() => setVisible((current) => current.filter((chip) => signature.split("\0").includes(chip.id))), 900);
|
|
79098
|
+
return () => clearTimeout(timer);
|
|
79099
|
+
}, [signature]);
|
|
79100
|
+
useLayoutEffect36(() => {
|
|
79101
|
+
setVisible((current) => [...chips, ...current.filter((chip) => !chips.some((next) => next.id === chip.id))]);
|
|
79102
|
+
}, [signature]);
|
|
79103
|
+
useLayoutEffect36(() => {
|
|
79104
|
+
if (typeof matchMedia === "undefined" || matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
79105
|
+
const next = /* @__PURE__ */ new Map();
|
|
79106
|
+
region.current?.querySelectorAll("[data-chip]").forEach((element) => {
|
|
79107
|
+
const key = element.dataset.chip;
|
|
79108
|
+
const left = element.getBoundingClientRect().left;
|
|
79109
|
+
const previous = positions.current.get(key);
|
|
79110
|
+
if (previous !== void 0 && previous !== left) element.animate?.([{ transform: `translateX(${previous - left}px)` }, { transform: "translateX(0)" }], { duration: 320, easing: "ease-out" });
|
|
79111
|
+
next.set(key, left);
|
|
79112
|
+
});
|
|
79113
|
+
positions.current = next;
|
|
79114
|
+
});
|
|
79115
|
+
return /* @__PURE__ */ jsx359("div", { ref: region, className: "contents", children: visible.map((old) => {
|
|
79116
|
+
const chip = chips.find((current) => current.id === old.id);
|
|
79117
|
+
const entry = chip ?? old;
|
|
79118
|
+
return /* @__PURE__ */ jsx359("span", { "data-chip": entry.id, className: "fb-chip", "data-exiting": !chip, inert: !chip, "aria-hidden": !chip, children: /* @__PURE__ */ jsx359(Badge_default, { tone: color2, variant, size, ring: false, className: "max-w-full py-1", children: /* @__PURE__ */ jsxs230("span", { className: "flex min-w-0 items-center gap-1", children: [
|
|
79119
|
+
/* @__PURE__ */ jsx359("button", { type: "button", disabled: entry.disabled, className: "min-w-0 truncate rounded-full px-1 py-1 focus-visible:outline focus-visible:outline-2 disabled:opacity-50", onClick: entry.edit, children: entry.label }),
|
|
79120
|
+
/* @__PURE__ */ jsx359(Button_default, { variant: "icon", size: "xs", color: buttonTone, style: buttonStyle, leadingIcon: "Close", disabled: entry.disabled, "aria-label": removeLabel(entry.label), onClick: entry.remove })
|
|
79121
|
+
] }) }) }, entry.id);
|
|
79122
|
+
}) });
|
|
79123
|
+
}
|
|
79124
|
+
|
|
78597
79125
|
// src/contexts/BottomSheetContext.tsx
|
|
78598
79126
|
import {
|
|
78599
79127
|
createContext as createContext10,
|
|
78600
79128
|
useCallback as useCallback58,
|
|
78601
79129
|
useContext as useContext10,
|
|
78602
|
-
useEffect as
|
|
79130
|
+
useEffect as useEffect89,
|
|
78603
79131
|
useMemo as useMemo75,
|
|
78604
|
-
useRef as
|
|
78605
|
-
useState as
|
|
79132
|
+
useRef as useRef92,
|
|
79133
|
+
useState as useState111
|
|
78606
79134
|
} from "react";
|
|
78607
79135
|
import { createPortal as createPortal21 } from "react-dom";
|
|
78608
|
-
import
|
|
78609
|
-
import { jsx as
|
|
79136
|
+
import classNames150 from "classnames";
|
|
79137
|
+
import { jsx as jsx360, jsxs as jsxs231 } from "react/jsx-runtime";
|
|
78610
79138
|
var BottomSheetContext = createContext10(null);
|
|
78611
79139
|
var TRANSITION_MS2 = 260;
|
|
78612
79140
|
var renderSlot = (slot, controls) => {
|
|
@@ -78618,9 +79146,9 @@ var renderSlot = (slot, controls) => {
|
|
|
78618
79146
|
var BottomSheetProvider = ({
|
|
78619
79147
|
children
|
|
78620
79148
|
}) => {
|
|
78621
|
-
const [sheet, setSheet] =
|
|
78622
|
-
const [isVisible, setIsVisible] =
|
|
78623
|
-
const pendingCloseRef =
|
|
79149
|
+
const [sheet, setSheet] = useState111(null);
|
|
79150
|
+
const [isVisible, setIsVisible] = useState111(false);
|
|
79151
|
+
const pendingCloseRef = useRef92(null);
|
|
78624
79152
|
const dismissSheet = useCallback58(() => {
|
|
78625
79153
|
setIsVisible(false);
|
|
78626
79154
|
}, []);
|
|
@@ -78637,7 +79165,7 @@ var BottomSheetProvider = ({
|
|
|
78637
79165
|
setTimeout(animateIn, 0);
|
|
78638
79166
|
}
|
|
78639
79167
|
}, []);
|
|
78640
|
-
|
|
79168
|
+
useEffect89(() => {
|
|
78641
79169
|
if (!isVisible && sheet) {
|
|
78642
79170
|
pendingCloseRef.current = setTimeout(() => {
|
|
78643
79171
|
sheet.onClose?.();
|
|
@@ -78652,7 +79180,7 @@ var BottomSheetProvider = ({
|
|
|
78652
79180
|
}
|
|
78653
79181
|
return void 0;
|
|
78654
79182
|
}, [isVisible, sheet]);
|
|
78655
|
-
|
|
79183
|
+
useEffect89(
|
|
78656
79184
|
() => () => {
|
|
78657
79185
|
if (pendingCloseRef.current) {
|
|
78658
79186
|
clearTimeout(pendingCloseRef.current);
|
|
@@ -78676,11 +79204,11 @@ var BottomSheetProvider = ({
|
|
|
78676
79204
|
[presentSheet, dismissSheet, sheet, isVisible]
|
|
78677
79205
|
);
|
|
78678
79206
|
const overlayNode = typeof document !== "undefined" && sheet ? createPortal21(
|
|
78679
|
-
/* @__PURE__ */
|
|
78680
|
-
/* @__PURE__ */
|
|
79207
|
+
/* @__PURE__ */ jsxs231("div", { className: "pointer-events-none fixed inset-0 z-[70] flex items-end justify-center", children: [
|
|
79208
|
+
/* @__PURE__ */ jsx360(
|
|
78681
79209
|
"div",
|
|
78682
79210
|
{
|
|
78683
|
-
className:
|
|
79211
|
+
className: classNames150(
|
|
78684
79212
|
"absolute inset-0 bg-neutral-900/40 transition-opacity duration-300",
|
|
78685
79213
|
isVisible ? "opacity-100 pointer-events-auto" : "opacity-0"
|
|
78686
79214
|
),
|
|
@@ -78690,24 +79218,24 @@ var BottomSheetProvider = ({
|
|
|
78690
79218
|
}
|
|
78691
79219
|
}
|
|
78692
79220
|
),
|
|
78693
|
-
/* @__PURE__ */
|
|
79221
|
+
/* @__PURE__ */ jsx360("div", { className: "relative w-full max-w-4xl px-4 pb-4 sm:px-8", children: /* @__PURE__ */ jsxs231(
|
|
78694
79222
|
"section",
|
|
78695
79223
|
{
|
|
78696
79224
|
role: "dialog",
|
|
78697
79225
|
"aria-modal": "true",
|
|
78698
|
-
className:
|
|
79226
|
+
className: classNames150(
|
|
78699
79227
|
"pointer-events-auto ml-auto flex w-full flex-col rounded-t-3xl border border-slate-200 bg-white shadow-2xl transition-transform duration-300 dark:border-slate-700 dark:bg-slate-900",
|
|
78700
79228
|
sheet.className,
|
|
78701
79229
|
isVisible ? "translate-y-0" : "translate-y-full"
|
|
78702
79230
|
),
|
|
78703
79231
|
style: { minHeight: "25vh", maxHeight: "85vh" },
|
|
78704
79232
|
children: [
|
|
78705
|
-
/* @__PURE__ */
|
|
78706
|
-
/* @__PURE__ */
|
|
78707
|
-
sheet.title && /* @__PURE__ */
|
|
78708
|
-
sheet.description && /* @__PURE__ */
|
|
79233
|
+
/* @__PURE__ */ jsxs231("header", { className: "flex items-start justify-between gap-3 border-b border-slate-200 px-6 py-4 dark:border-slate-800", children: [
|
|
79234
|
+
/* @__PURE__ */ jsxs231("div", { className: "space-y-1", children: [
|
|
79235
|
+
sheet.title && /* @__PURE__ */ jsx360("div", { className: "text-base font-semibold text-slate-900 dark:text-slate-100", children: sheet.title }),
|
|
79236
|
+
sheet.description && /* @__PURE__ */ jsx360("p", { className: "text-sm text-slate-500 dark:text-slate-300", children: sheet.description })
|
|
78709
79237
|
] }),
|
|
78710
|
-
(sheet.showCloseButton ?? true) && /* @__PURE__ */
|
|
79238
|
+
(sheet.showCloseButton ?? true) && /* @__PURE__ */ jsx360(
|
|
78711
79239
|
IconButton_default,
|
|
78712
79240
|
{
|
|
78713
79241
|
icon: "Close",
|
|
@@ -78719,15 +79247,15 @@ var BottomSheetProvider = ({
|
|
|
78719
79247
|
}
|
|
78720
79248
|
)
|
|
78721
79249
|
] }),
|
|
78722
|
-
/* @__PURE__ */
|
|
78723
|
-
sheet.actions && /* @__PURE__ */
|
|
79250
|
+
/* @__PURE__ */ jsx360("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: renderSlot(sheet.content, controls) ?? /* @__PURE__ */ jsx360("p", { className: "text-sm text-slate-500", children: "No content provided." }) }),
|
|
79251
|
+
sheet.actions && /* @__PURE__ */ jsx360("div", { className: "flex flex-wrap items-center justify-end gap-3 border-t border-slate-200 px-6 py-4 dark:border-slate-800", children: renderSlot(sheet.actions, controls) })
|
|
78724
79252
|
]
|
|
78725
79253
|
}
|
|
78726
79254
|
) })
|
|
78727
79255
|
] }),
|
|
78728
79256
|
document.body
|
|
78729
79257
|
) : null;
|
|
78730
|
-
return /* @__PURE__ */
|
|
79258
|
+
return /* @__PURE__ */ jsxs231(BottomSheetContext.Provider, { value: contextValue, children: [
|
|
78731
79259
|
children,
|
|
78732
79260
|
overlayNode
|
|
78733
79261
|
] });
|
|
@@ -79367,8 +79895,8 @@ var SYSTEM_VARIABLES = [
|
|
|
79367
79895
|
];
|
|
79368
79896
|
|
|
79369
79897
|
// src/components/MetricBar.tsx
|
|
79370
|
-
import
|
|
79371
|
-
import { jsx as
|
|
79898
|
+
import classNames151 from "classnames";
|
|
79899
|
+
import { jsx as jsx361 } from "react/jsx-runtime";
|
|
79372
79900
|
var MetricBar = ({
|
|
79373
79901
|
label,
|
|
79374
79902
|
value,
|
|
@@ -79378,7 +79906,7 @@ var MetricBar = ({
|
|
|
79378
79906
|
size = "sm",
|
|
79379
79907
|
className,
|
|
79380
79908
|
...rest
|
|
79381
|
-
}) => /* @__PURE__ */
|
|
79909
|
+
}) => /* @__PURE__ */ jsx361(
|
|
79382
79910
|
Progress_default,
|
|
79383
79911
|
{
|
|
79384
79912
|
...rest,
|
|
@@ -79388,13 +79916,13 @@ var MetricBar = ({
|
|
|
79388
79916
|
formatValue: value !== void 0 ? () => String(value) : void 0,
|
|
79389
79917
|
size,
|
|
79390
79918
|
color: tone ?? color2 ?? "blue",
|
|
79391
|
-
className:
|
|
79919
|
+
className: classNames151("w-full", className)
|
|
79392
79920
|
}
|
|
79393
79921
|
);
|
|
79394
79922
|
MetricBar.displayName = "MetricBar";
|
|
79395
79923
|
|
|
79396
79924
|
// src/components/NetworkGraph/NetworkGraph.tsx
|
|
79397
|
-
import { useEffect as
|
|
79925
|
+
import { useEffect as useEffect91, useId as useId55, useMemo as useMemo76, useRef as useRef94, useState as useState113 } from "react";
|
|
79398
79926
|
|
|
79399
79927
|
// src/components/NetworkGraph/model.ts
|
|
79400
79928
|
var CELL = 64;
|
|
@@ -79538,16 +80066,16 @@ function findNetworkPath(edges, source, target) {
|
|
|
79538
80066
|
}
|
|
79539
80067
|
|
|
79540
80068
|
// src/components/NetworkGraph/useNetworkCanvas.ts
|
|
79541
|
-
import { useCallback as useCallback59, useEffect as
|
|
80069
|
+
import { useCallback as useCallback59, useEffect as useEffect90, useRef as useRef93, useState as useState112 } from "react";
|
|
79542
80070
|
function useNetworkCanvas(options) {
|
|
79543
|
-
const canvasRef =
|
|
79544
|
-
const view =
|
|
79545
|
-
const size =
|
|
79546
|
-
const latest =
|
|
79547
|
-
const frame =
|
|
79548
|
-
const [zoom, setZoom] =
|
|
79549
|
-
const colors3 =
|
|
79550
|
-
const textColor =
|
|
80071
|
+
const canvasRef = useRef93(null);
|
|
80072
|
+
const view = useRef93({ x: 0, y: 0, zoom: 1 });
|
|
80073
|
+
const size = useRef93({ width: 1, height: 1 });
|
|
80074
|
+
const latest = useRef93(options);
|
|
80075
|
+
const frame = useRef93(null);
|
|
80076
|
+
const [zoom, setZoom] = useState112(1);
|
|
80077
|
+
const colors3 = useRef93(/* @__PURE__ */ new Map());
|
|
80078
|
+
const textColor = useRef93("#737373");
|
|
79551
80079
|
const draw = useCallback59(() => {
|
|
79552
80080
|
const canvas = canvasRef.current;
|
|
79553
80081
|
const ctx = canvas?.getContext("2d");
|
|
@@ -79688,14 +80216,14 @@ function useNetworkCanvas(options) {
|
|
|
79688
80216
|
},
|
|
79689
80217
|
[update]
|
|
79690
80218
|
);
|
|
79691
|
-
|
|
80219
|
+
useEffect90(() => {
|
|
79692
80220
|
latest.current = options;
|
|
79693
80221
|
requestDraw();
|
|
79694
80222
|
}, [options, requestDraw]);
|
|
79695
|
-
|
|
80223
|
+
useEffect90(() => {
|
|
79696
80224
|
fit();
|
|
79697
80225
|
}, [options.model, fit]);
|
|
79698
|
-
|
|
80226
|
+
useEffect90(() => {
|
|
79699
80227
|
const canvas = canvasRef.current;
|
|
79700
80228
|
if (!canvas) return;
|
|
79701
80229
|
const measure = () => {
|
|
@@ -79748,7 +80276,7 @@ function useNetworkCanvas(options) {
|
|
|
79748
80276
|
}
|
|
79749
80277
|
|
|
79750
80278
|
// src/components/NetworkGraph/NetworkGraph.tsx
|
|
79751
|
-
import { jsx as
|
|
80279
|
+
import { jsx as jsx362, jsxs as jsxs232 } from "react/jsx-runtime";
|
|
79752
80280
|
var NO_COMMUNITIES = [];
|
|
79753
80281
|
var NO_HIGHLIGHTS = [];
|
|
79754
80282
|
function NetworkGraph({
|
|
@@ -79780,11 +80308,11 @@ function NetworkGraph({
|
|
|
79780
80308
|
}) {
|
|
79781
80309
|
const tone = getSurfaceAccentColor(surfaceTone);
|
|
79782
80310
|
const t = useKitT();
|
|
79783
|
-
const helpId =
|
|
79784
|
-
const layoutRef =
|
|
79785
|
-
const [hasLegendSpace, setHasLegendSpace] =
|
|
80311
|
+
const helpId = useId55();
|
|
80312
|
+
const layoutRef = useRef94(null);
|
|
80313
|
+
const [hasLegendSpace, setHasLegendSpace] = useState113(true);
|
|
79786
80314
|
const legendOnRight = legendPosition === "right" || legendPosition === "auto" && hasLegendSpace;
|
|
79787
|
-
|
|
80315
|
+
useEffect91(() => {
|
|
79788
80316
|
const element = layoutRef.current;
|
|
79789
80317
|
if (!element || legendPosition !== "auto") return;
|
|
79790
80318
|
const measure = () => setHasLegendSpace(element.getBoundingClientRect().width >= 600);
|
|
@@ -79797,12 +80325,12 @@ function NetworkGraph({
|
|
|
79797
80325
|
() => buildNetwork(nodes, edges, communities),
|
|
79798
80326
|
[nodes, edges, communities]
|
|
79799
80327
|
);
|
|
79800
|
-
const [internalSelected, setInternalSelected] =
|
|
80328
|
+
const [internalSelected, setInternalSelected] = useState113(
|
|
79801
80329
|
defaultSelectedNodeId
|
|
79802
80330
|
);
|
|
79803
|
-
const [hidden, setHidden] =
|
|
79804
|
-
const [focused, setFocused] =
|
|
79805
|
-
const [query, setQuery] =
|
|
80331
|
+
const [hidden, setHidden] = useState113(() => /* @__PURE__ */ new Set());
|
|
80332
|
+
const [focused, setFocused] = useState113(null);
|
|
80333
|
+
const [query, setQuery] = useState113("");
|
|
79806
80334
|
const enabled = useMemo76(
|
|
79807
80335
|
() => new Set(
|
|
79808
80336
|
visibleCommunityIds ?? model.groups.filter((g) => !hidden.has(g.id)).map((g) => g.id)
|
|
@@ -79844,7 +80372,7 @@ function NetworkGraph({
|
|
|
79844
80372
|
onViewportChange
|
|
79845
80373
|
});
|
|
79846
80374
|
const locked = disabled || loading;
|
|
79847
|
-
const drag =
|
|
80375
|
+
const drag = useRef94(null);
|
|
79848
80376
|
const select = (id) => {
|
|
79849
80377
|
if (locked) return;
|
|
79850
80378
|
if (selectedNodeId === void 0) setInternalSelected(id);
|
|
@@ -79860,7 +80388,7 @@ function NetworkGraph({
|
|
|
79860
80388
|
);
|
|
79861
80389
|
onVisibleCommunitiesChange?.(ids);
|
|
79862
80390
|
};
|
|
79863
|
-
|
|
80391
|
+
useEffect91(() => {
|
|
79864
80392
|
const element = canvas.canvasRef.current;
|
|
79865
80393
|
if (!element || locked) return;
|
|
79866
80394
|
const wheel = (event) => {
|
|
@@ -79915,7 +80443,7 @@ function NetworkGraph({
|
|
|
79915
80443
|
}, [visibleNodes, query]);
|
|
79916
80444
|
const graphHeight = Number.isFinite(height) ? Math.max(160, height) : 480;
|
|
79917
80445
|
const resolvedLegendTone = legendTone === "auto" ? surfaceTone : legendTone;
|
|
79918
|
-
const legendContent = /* @__PURE__ */
|
|
80446
|
+
const legendContent = /* @__PURE__ */ jsxs232(
|
|
79919
80447
|
"fieldset",
|
|
79920
80448
|
{
|
|
79921
80449
|
disabled: locked,
|
|
@@ -79924,8 +80452,8 @@ function NetworkGraph({
|
|
|
79924
80452
|
maxHeight: legendPanel ? Math.max(96, graphHeight - 64) : graphHeight
|
|
79925
80453
|
},
|
|
79926
80454
|
children: [
|
|
79927
|
-
/* @__PURE__ */
|
|
79928
|
-
/* @__PURE__ */
|
|
80455
|
+
/* @__PURE__ */ jsx362("legend", { className: "mb-3 text-xs font-semibold uppercase tracking-widest", children: t("kit.networkGraph.communities") }),
|
|
80456
|
+
/* @__PURE__ */ jsx362(
|
|
79929
80457
|
Checkbox_default,
|
|
79930
80458
|
{
|
|
79931
80459
|
size: "sm",
|
|
@@ -79936,8 +80464,8 @@ function NetworkGraph({
|
|
|
79936
80464
|
onChange: (event) => filter(event.target.checked ? model.groups.map((g) => g.id) : [])
|
|
79937
80465
|
}
|
|
79938
80466
|
),
|
|
79939
|
-
model.groups.map((group) => /* @__PURE__ */
|
|
79940
|
-
/* @__PURE__ */
|
|
80467
|
+
model.groups.map((group) => /* @__PURE__ */ jsxs232("div", { className: "flex items-center justify-between gap-2", children: [
|
|
80468
|
+
/* @__PURE__ */ jsx362(
|
|
79941
80469
|
Checkbox_default,
|
|
79942
80470
|
{
|
|
79943
80471
|
size: "sm",
|
|
@@ -79949,12 +80477,12 @@ function NetworkGraph({
|
|
|
79949
80477
|
)
|
|
79950
80478
|
}
|
|
79951
80479
|
),
|
|
79952
|
-
/* @__PURE__ */
|
|
80480
|
+
/* @__PURE__ */ jsx362("span", { className: "text-xs tabular-nums opacity-60", children: counts.get(group.id) ?? 0 })
|
|
79953
80481
|
] }, group.id))
|
|
79954
80482
|
]
|
|
79955
80483
|
}
|
|
79956
80484
|
);
|
|
79957
|
-
return /* @__PURE__ */
|
|
80485
|
+
return /* @__PURE__ */ jsx362(
|
|
79958
80486
|
Panel_default,
|
|
79959
80487
|
{
|
|
79960
80488
|
...panelProps,
|
|
@@ -79965,7 +80493,7 @@ function NetworkGraph({
|
|
|
79965
80493
|
loading,
|
|
79966
80494
|
clickable: false,
|
|
79967
80495
|
scrollable: false,
|
|
79968
|
-
children: /* @__PURE__ */
|
|
80496
|
+
children: /* @__PURE__ */ jsxs232(
|
|
79969
80497
|
"div",
|
|
79970
80498
|
{
|
|
79971
80499
|
className: "flex min-w-0 flex-col gap-3",
|
|
@@ -79973,7 +80501,7 @@ function NetworkGraph({
|
|
|
79973
80501
|
"aria-label": ariaLabel ?? t("kit.networkGraph.name"),
|
|
79974
80502
|
"aria-disabled": locked || void 0,
|
|
79975
80503
|
children: [
|
|
79976
|
-
showControls && /* @__PURE__ */
|
|
80504
|
+
showControls && /* @__PURE__ */ jsx362("div", { className: "flex flex-wrap items-center gap-2", children: /* @__PURE__ */ jsx362("div", { className: "min-w-40 flex-1", children: /* @__PURE__ */ jsx362(
|
|
79977
80505
|
Combobox_default,
|
|
79978
80506
|
{
|
|
79979
80507
|
size: "sm",
|
|
@@ -79995,7 +80523,7 @@ function NetworkGraph({
|
|
|
79995
80523
|
}
|
|
79996
80524
|
}
|
|
79997
80525
|
) }) }),
|
|
79998
|
-
/* @__PURE__ */
|
|
80526
|
+
/* @__PURE__ */ jsxs232(
|
|
79999
80527
|
"div",
|
|
80000
80528
|
{
|
|
80001
80529
|
ref: layoutRef,
|
|
@@ -80003,13 +80531,13 @@ function NetworkGraph({
|
|
|
80003
80531
|
style: { flexDirection: legendOnRight ? "row" : "column" },
|
|
80004
80532
|
"data-legend-position": legendOnRight ? "right" : "bottom",
|
|
80005
80533
|
children: [
|
|
80006
|
-
/* @__PURE__ */
|
|
80534
|
+
/* @__PURE__ */ jsxs232(
|
|
80007
80535
|
"div",
|
|
80008
80536
|
{
|
|
80009
80537
|
className: "relative min-w-0 flex-1",
|
|
80010
80538
|
style: { height: graphHeight, minHeight: graphHeight },
|
|
80011
80539
|
children: [
|
|
80012
|
-
/* @__PURE__ */
|
|
80540
|
+
/* @__PURE__ */ jsx362(
|
|
80013
80541
|
"canvas",
|
|
80014
80542
|
{
|
|
80015
80543
|
ref: canvas.canvasRef,
|
|
@@ -80078,11 +80606,11 @@ function NetworkGraph({
|
|
|
80078
80606
|
}
|
|
80079
80607
|
}
|
|
80080
80608
|
),
|
|
80081
|
-
showControls && /* @__PURE__ */
|
|
80082
|
-
/* @__PURE__ */
|
|
80609
|
+
showControls && /* @__PURE__ */ jsxs232("div", { className: "absolute bottom-3 right-3 z-10 flex items-center gap-0.5 rounded-lg border border-neutral-200 bg-white/90 p-1 shadow-sm backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90", children: [
|
|
80610
|
+
/* @__PURE__ */ jsx362(
|
|
80083
80611
|
IconButton_default,
|
|
80084
80612
|
{
|
|
80085
|
-
icon: /* @__PURE__ */
|
|
80613
|
+
icon: /* @__PURE__ */ jsxs232(
|
|
80086
80614
|
"svg",
|
|
80087
80615
|
{
|
|
80088
80616
|
viewBox: "0 0 24 24",
|
|
@@ -80093,10 +80621,10 @@ function NetworkGraph({
|
|
|
80093
80621
|
strokeLinejoin: "round",
|
|
80094
80622
|
"aria-hidden": "true",
|
|
80095
80623
|
children: [
|
|
80096
|
-
/* @__PURE__ */
|
|
80097
|
-
/* @__PURE__ */
|
|
80098
|
-
/* @__PURE__ */
|
|
80099
|
-
/* @__PURE__ */
|
|
80624
|
+
/* @__PURE__ */ jsx362("path", { d: "M4 9V5a1 1 0 0 1 1-1h4" }),
|
|
80625
|
+
/* @__PURE__ */ jsx362("path", { d: "M15 4h4a1 1 0 0 1 1 1v4" }),
|
|
80626
|
+
/* @__PURE__ */ jsx362("path", { d: "M20 15v4a1 1 0 0 1-1 1h-4" }),
|
|
80627
|
+
/* @__PURE__ */ jsx362("path", { d: "M9 20H5a1 1 0 0 1-1-1v-4" })
|
|
80100
80628
|
]
|
|
80101
80629
|
}
|
|
80102
80630
|
),
|
|
@@ -80109,10 +80637,10 @@ function NetworkGraph({
|
|
|
80109
80637
|
onClick: canvas.fit
|
|
80110
80638
|
}
|
|
80111
80639
|
),
|
|
80112
|
-
/* @__PURE__ */
|
|
80640
|
+
/* @__PURE__ */ jsx362(
|
|
80113
80641
|
IconButton_default,
|
|
80114
80642
|
{
|
|
80115
|
-
icon: /* @__PURE__ */
|
|
80643
|
+
icon: /* @__PURE__ */ jsx362(
|
|
80116
80644
|
"svg",
|
|
80117
80645
|
{
|
|
80118
80646
|
viewBox: "0 0 24 24",
|
|
@@ -80121,7 +80649,7 @@ function NetworkGraph({
|
|
|
80121
80649
|
strokeWidth: 2,
|
|
80122
80650
|
strokeLinecap: "round",
|
|
80123
80651
|
"aria-hidden": "true",
|
|
80124
|
-
children: /* @__PURE__ */
|
|
80652
|
+
children: /* @__PURE__ */ jsx362("path", { d: "M6 12h12" })
|
|
80125
80653
|
}
|
|
80126
80654
|
),
|
|
80127
80655
|
size: "xs",
|
|
@@ -80133,7 +80661,7 @@ function NetworkGraph({
|
|
|
80133
80661
|
onClick: () => canvas.zoomBy(0.8)
|
|
80134
80662
|
}
|
|
80135
80663
|
),
|
|
80136
|
-
/* @__PURE__ */
|
|
80664
|
+
/* @__PURE__ */ jsxs232(
|
|
80137
80665
|
"span",
|
|
80138
80666
|
{
|
|
80139
80667
|
className: "min-w-[3.5ch] px-1 text-center text-[11px] tabular-nums text-neutral-500 dark:text-neutral-400",
|
|
@@ -80144,7 +80672,7 @@ function NetworkGraph({
|
|
|
80144
80672
|
]
|
|
80145
80673
|
}
|
|
80146
80674
|
),
|
|
80147
|
-
/* @__PURE__ */
|
|
80675
|
+
/* @__PURE__ */ jsx362(
|
|
80148
80676
|
IconButton_default,
|
|
80149
80677
|
{
|
|
80150
80678
|
icon: "Add",
|
|
@@ -80157,7 +80685,7 @@ function NetworkGraph({
|
|
|
80157
80685
|
onClick: () => canvas.zoomBy(1.25)
|
|
80158
80686
|
}
|
|
80159
80687
|
),
|
|
80160
|
-
/* @__PURE__ */
|
|
80688
|
+
/* @__PURE__ */ jsx362(
|
|
80161
80689
|
IconButton_default,
|
|
80162
80690
|
{
|
|
80163
80691
|
icon: "Reset",
|
|
@@ -80175,18 +80703,18 @@ function NetworkGraph({
|
|
|
80175
80703
|
}
|
|
80176
80704
|
)
|
|
80177
80705
|
] }),
|
|
80178
|
-
!visibleNodes.length && /* @__PURE__ */
|
|
80706
|
+
!visibleNodes.length && /* @__PURE__ */ jsx362("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center text-sm", children: emptyMessage ?? t("kit.networkGraph.empty") })
|
|
80179
80707
|
]
|
|
80180
80708
|
}
|
|
80181
80709
|
),
|
|
80182
|
-
showCommunities && model.groups.length > 0 && /* @__PURE__ */
|
|
80710
|
+
showCommunities && model.groups.length > 0 && /* @__PURE__ */ jsx362(
|
|
80183
80711
|
"div",
|
|
80184
80712
|
{
|
|
80185
80713
|
className: "min-w-0 shrink-0",
|
|
80186
80714
|
style: {
|
|
80187
80715
|
width: legendOnRight ? legendPanel ? 224 : 192 : "100%"
|
|
80188
80716
|
},
|
|
80189
|
-
children: legendPanel ? /* @__PURE__ */
|
|
80717
|
+
children: legendPanel ? /* @__PURE__ */ jsx362(
|
|
80190
80718
|
Panel_default,
|
|
80191
80719
|
{
|
|
80192
80720
|
variant: legendVariant === "auto" ? variant : legendVariant,
|
|
@@ -80205,8 +80733,8 @@ function NetworkGraph({
|
|
|
80205
80733
|
]
|
|
80206
80734
|
}
|
|
80207
80735
|
),
|
|
80208
|
-
/* @__PURE__ */
|
|
80209
|
-
/* @__PURE__ */
|
|
80736
|
+
/* @__PURE__ */ jsx362("p", { id: helpId, className: "text-xs opacity-70", children: t("kit.networkGraph.instructions") }),
|
|
80737
|
+
/* @__PURE__ */ jsx362(
|
|
80210
80738
|
"p",
|
|
80211
80739
|
{
|
|
80212
80740
|
role: "status",
|
|
@@ -80353,6 +80881,7 @@ export {
|
|
|
80353
80881
|
FR_KIT_CATALOG,
|
|
80354
80882
|
FUNNEL_MAX_STAGES,
|
|
80355
80883
|
FileUpload,
|
|
80884
|
+
FilterBar,
|
|
80356
80885
|
FormField_default as FormField,
|
|
80357
80886
|
FormLayout_default as FormLayout,
|
|
80358
80887
|
FormSection_default as FormSection,
|