@inf-monkeys-tech/monkeys-design 2.0.5 → 2.0.7

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.
@@ -7580,6 +7580,7 @@ function DataExplorerViewTree({
7580
7580
  onSelectNode?.(node, context);
7581
7581
  },
7582
7582
  onKeyDown: (event) => {
7583
+ if (event.target !== event.currentTarget) return;
7583
7584
  if (!isSelectable) return;
7584
7585
  if (event.key !== "Enter" && event.key !== " ") return;
7585
7586
  event.preventDefault();
@@ -7706,7 +7707,7 @@ function DataExplorerViewTree({
7706
7707
  "div",
7707
7708
  {
7708
7709
  className: cn2(theme.slots.treeRoot, classNames?.root, className),
7709
- role: hasAnyNodes ? "tree" : void 0,
7710
+ role: hasAnyNodes || resolvedGroups.some((group) => !group.hideHeader) ? "tree" : void 0,
7710
7711
  children: resolvedGroups.map((group) => {
7711
7712
  const groupExpanded = group.hideHeader || group.collapsible === false || resolvedExpandedGroupIds.has(group.id);
7712
7713
  const groupNodeCount = group.nodes?.length ?? 0;
@@ -7723,6 +7724,10 @@ function DataExplorerViewTree({
7723
7724
  !group.hideHeader ? /* @__PURE__ */ jsxRuntime.jsxs(
7724
7725
  "div",
7725
7726
  {
7727
+ role: "treeitem",
7728
+ "aria-label": typeof group.label === "string" ? group.label : void 0,
7729
+ "aria-selected": group.selectable ? groupSelected : void 0,
7730
+ "aria-expanded": groupCollapsible ? groupExpanded : void 0,
7726
7731
  className: cn2(
7727
7732
  theme.slots.treeGroupHeader,
7728
7733
  theme.slots.treeGroupHeaderButton,
@@ -7807,6 +7812,7 @@ function DataExplorerViewTree({
7807
7812
  groupExpanded ? /* @__PURE__ */ jsxRuntime.jsx(
7808
7813
  "div",
7809
7814
  {
7815
+ role: "group",
7810
7816
  className: cn2(
7811
7817
  theme.slots.treeGroupContent,
7812
7818
  classNames?.groupContent,