@sia.soul/sia-react-ui 0.1.88 → 0.1.90

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.
@@ -3,7 +3,7 @@ import {
3
3
  Icon,
4
4
  Input,
5
5
  Modal
6
- } from "./chunk-U2WPN6TD.js";
6
+ } from "./chunk-G5K72R4O.js";
7
7
  import {
8
8
  Button
9
9
  } from "./chunk-SJFT5OSX.js";
@@ -838,7 +838,8 @@ function Tree({
838
838
  selectable = true,
839
839
  showLine = false,
840
840
  showIcon = false,
841
- blockNode = false,
841
+ blockNode = true,
842
+ highlightSelectedAncestors = false,
842
843
  indentSize = 20,
843
844
  switcherWidth = 24,
844
845
  stickyAncestors = false,
@@ -1028,7 +1029,7 @@ function Tree({
1028
1029
  function renderNode(node, depth, options = {}) {
1029
1030
  const open = expandedKeySet.has(node.key);
1030
1031
  const isSelected = selected.includes(node.key);
1031
- const isSelectedAncestor = selectedAncestorKeys.has(node.key);
1032
+ const isSelectedAncestor = highlightSelectedAncestors && selectedAncestorKeys.has(node.key);
1032
1033
  const isChecked = checkState.checked.has(node.key);
1033
1034
  const isHalfChecked = checkState.halfChecked.has(node.key);
1034
1035
  const hasChildren = Boolean(node.children?.length || node.isLeaf === false);
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Popover,
3
3
  Tooltip
4
- } from "./chunk-RR7HW5HO.js";
4
+ } from "./chunk-7BJPQCRG.js";
5
5
  import {
6
6
  Dropdown,
7
7
  Icon,
8
8
  useOverlayLifecycle
9
- } from "./chunk-U2WPN6TD.js";
9
+ } from "./chunk-G5K72R4O.js";
10
10
  import {
11
11
  Button,
12
12
  TextArea