bits-ui 1.0.0-next.19 → 1.0.0-next.20

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.
@@ -139,6 +139,7 @@ declare class SelectTriggerState {
139
139
  readonly "aria-haspopup": "listbox";
140
140
  readonly "data-state": "open" | "closed";
141
141
  readonly "data-disabled": "" | undefined;
142
+ readonly "data-placeholder": "" | undefined;
142
143
  readonly onpointerdown: (e: PointerEvent) => void;
143
144
  readonly onkeydown: (e: KeyboardEvent) => void;
144
145
  readonly onclick: (e: MouseEvent) => void;
@@ -592,6 +592,7 @@ class SelectTriggerState {
592
592
  "aria-haspopup": "listbox",
593
593
  "data-state": getDataOpenClosed(this.root.open.current),
594
594
  "data-disabled": getDataDisabled(this.root.disabled.current),
595
+ "data-placeholder": this.root.hasValue ? undefined : "",
595
596
  [this.root.bitsAttrs.trigger]: "",
596
597
  onpointerdown: this.#onpointerdown,
597
598
  onkeydown: this.#onkeydown,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "1.0.0-next.19",
3
+ "version": "1.0.0-next.20",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",