bits-ui 1.0.0-next.30 → 1.0.0-next.31

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.
@@ -141,6 +141,7 @@ class LinkPreviewContentState {
141
141
  this.root.contentNode = node;
142
142
  this.root.contentId = node?.id;
143
143
  },
144
+ deps: () => this.root.open.current,
144
145
  });
145
146
  $effect(() => {
146
147
  if (!this.root.open.current)
@@ -11,6 +11,7 @@ declare class ToggleRootState {
11
11
  constructor(props: ToggleRootStateProps);
12
12
  props: {
13
13
  readonly "data-toggle-root": "";
14
+ readonly id: string;
14
15
  readonly "data-disabled": "" | undefined;
15
16
  readonly "aria-pressed": "true" | "false";
16
17
  readonly "data-state": "off" | "on";
@@ -29,6 +29,7 @@ class ToggleRootState {
29
29
  };
30
30
  props = $derived.by(() => ({
31
31
  [ROOT_ATTR]: "",
32
+ id: this.#id.current,
32
33
  "data-disabled": getDataDisabled(this.#disabled.current),
33
34
  "aria-pressed": getAriaPressed(this.pressed.current),
34
35
  "data-state": getToggleDataState(this.pressed.current),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "1.0.0-next.30",
3
+ "version": "1.0.0-next.31",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",