@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.
- package/dist/{chunk-RR7HW5HO.js → chunk-7BJPQCRG.js} +4 -3
- package/dist/{chunk-D752QGE6.js → chunk-AG2VFAZR.js} +2 -2
- package/dist/{chunk-U2WPN6TD.js → chunk-G5K72R4O.js} +516 -241
- package/dist/{chunk-QZG6XT65.js → chunk-GLXGN5SO.js} +2 -2
- package/dist/{chunk-CKX3AKMT.js → chunk-OPYA3PMD.js} +1 -1
- package/dist/{core-BU7dVRuz.d.ts → core-BGA9VB0L.d.ts} +10 -5
- package/dist/{core-DGaJTy1i.d.cts → core-OIIkAeiG.d.cts} +10 -5
- package/dist/core.cjs +1133 -858
- package/dist/core.css +1 -0
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +3 -3
- package/dist/index.cjs +3330 -3054
- package/dist/index.css +1 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/rich-text-editor.cjs +768 -493
- package/dist/rich-text-editor.js +2 -2
- package/dist/select-date-range.cjs +928 -653
- package/dist/select-date-range.js +3 -3
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
Icon,
|
|
4
4
|
Input,
|
|
5
5
|
Modal
|
|
6
|
-
} from "./chunk-
|
|
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 =
|
|
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);
|