@streamscloud/kit 0.33.0 → 0.34.0

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.
@@ -82,7 +82,11 @@ $effect(() => {
82
82
  MultiselectTree — sync, grouped multi-value picker with cascade + tri-state behavior and an
83
83
  optional create-with-parent section. Tree of one level: parent groups (each a
84
84
  `SelectOptionGroup<T>`) with child options; cascade-aware toggle on group headers; tri-state
85
- checkbox visual when `selectionMode='children-include-parent'`. Selection is visible inside
85
+ checkbox visual when `selectionMode='children-include-parent'`.
86
+
87
+ `groupHeader='value'` + `selectionMode='children-only'` turns the parent into an ordinary
88
+ independent checkbox instead: clicking it picks the group's own `value` and never touches the
89
+ children, and the header's checkbox is binary rather than tri-state. Selection is visible inside
86
90
  the popover (checkbox rows) AND as chips inside the trigger by default; pass an empty
87
91
  `selectionSnippet` to hide the chip row entirely, or a custom one to render a count badge
88
92
  or any summary instead.
@@ -36,10 +36,13 @@ declare function $$render<T>(): {
36
36
  /**
37
37
  * Group-header behavior:
38
38
  * - `'static'` — non-interactive label.
39
+ * - `'value'` — clicking the header picks the group's own `value` and nothing else; the header is an ordinary
40
+ * binary checkbox, independent of its children. Requires a `value` on the group, otherwise the header stays
41
+ * inert. Pair with `selectionMode='children-only'` for a fully independent parent.
39
42
  * - `'toggle-all'` (default) — clicking the header toggles every child option at once; tri-state checkbox when `selectionMode='children-include-parent'`.
40
43
  * @default 'toggle-all'
41
44
  */
42
- groupHeader?: "static" | "toggle-all";
45
+ groupHeader?: "static" | "value" | "toggle-all";
43
46
  /**
44
47
  * Cascade between group.value and children:
45
48
  * - `'children-only'` (default) — picking a child adds only the child; group's own `value` stays independent.
@@ -118,7 +121,11 @@ interface $$IsomorphicComponent {
118
121
  * MultiselectTree — sync, grouped multi-value picker with cascade + tri-state behavior and an
119
122
  * optional create-with-parent section. Tree of one level: parent groups (each a
120
123
  * `SelectOptionGroup<T>`) with child options; cascade-aware toggle on group headers; tri-state
121
- * checkbox visual when `selectionMode='children-include-parent'`. Selection is visible inside
124
+ * checkbox visual when `selectionMode='children-include-parent'`.
125
+ *
126
+ * `groupHeader='value'` + `selectionMode='children-only'` turns the parent into an ordinary
127
+ * independent checkbox instead: clicking it picks the group's own `value` and never touches the
128
+ * children, and the header's checkbox is binary rather than tri-state. Selection is visible inside
122
129
  * the popover (checkbox rows) AND as chips inside the trigger by default; pass an empty
123
130
  * `selectionSnippet` to hide the chip row entirely, or a custom one to render a count badge
124
131
  * or any summary instead.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/kit",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",