bits-ui 1.0.0-next.36 → 1.0.0-next.38

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.
@@ -56,7 +56,7 @@ declare class PaginationPageState {
56
56
  constructor(props: PaginationPageStateProps, root: PaginationRootState);
57
57
  props: {
58
58
  readonly id: string;
59
- readonly "aria-label": `Page ${string}`;
59
+ readonly "aria-label": `Page ${number}`;
60
60
  readonly "data-value": `${number}`;
61
61
  readonly "data-selected": "" | undefined;
62
62
  readonly "data-pagination-page": "";
@@ -119,7 +119,7 @@ class PaginationPageState {
119
119
  };
120
120
  props = $derived.by(() => ({
121
121
  id: this.#id.current,
122
- "aria-label": `Page ${this.page.current}`,
122
+ "aria-label": `Page ${this.page.current.value}`,
123
123
  "data-value": `${this.page.current.value}`,
124
124
  "data-selected": this.#isSelected ? "" : undefined,
125
125
  [PAGE_ATTR]: "",
@@ -261,6 +261,7 @@ declare class SelectItemState {
261
261
  props: {
262
262
  readonly [x: string]: string | ((e: PointerEvent) => void) | undefined;
263
263
  readonly id: string;
264
+ readonly role: "option";
264
265
  readonly "aria-selected": "true" | undefined;
265
266
  readonly "data-value": string;
266
267
  readonly "data-disabled": "" | undefined;
@@ -767,6 +767,7 @@ class SelectItemState {
767
767
  };
768
768
  props = $derived.by(() => ({
769
769
  id: this.#id.current,
770
+ role: "option",
770
771
  "aria-selected": this.root.includesItem(this.value.current) ? "true" : undefined,
771
772
  "data-value": this.value.current,
772
773
  "data-disabled": getDataDisabled(this.disabled.current),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "1.0.0-next.36",
3
+ "version": "1.0.0-next.38",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",