bits-ui 1.4.2 → 1.4.4

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.
@@ -76,19 +76,10 @@ export class DateRangeFieldRootState {
76
76
  if (prev.start === startValue && prev.end === endValue) {
77
77
  return prev;
78
78
  }
79
- if (isBefore(endValue, startValue)) {
80
- const start = startValue;
81
- const end = endValue;
82
- this.#setStartValue(end);
83
- this.#setEndValue(start);
84
- return { start: endValue, end: startValue };
85
- }
86
- else {
87
- return {
88
- start: startValue,
89
- end: endValue,
90
- };
91
- }
79
+ return {
80
+ start: startValue,
81
+ end: endValue,
82
+ };
92
83
  });
93
84
  }
94
85
  else if (this.opts.value.current &&
@@ -140,12 +131,6 @@ export class DateRangeFieldRootState {
140
131
  const newValue = cb(value);
141
132
  this.opts.value.current = newValue;
142
133
  }
143
- #setStartValue(value) {
144
- this.opts.startValue.current = value;
145
- }
146
- #setEndValue(value) {
147
- this.opts.endValue.current = value;
148
- }
149
134
  props = $derived.by(() => ({
150
135
  id: this.opts.id.current,
151
136
  role: "group",
@@ -94,6 +94,7 @@ declare class DialogTitleState {
94
94
  props: {
95
95
  readonly "data-state": "open" | "closed";
96
96
  readonly id: string;
97
+ readonly role: "heading";
97
98
  readonly "aria-level": 1 | 2 | 3 | 4 | 5 | 6;
98
99
  };
99
100
  }
@@ -157,7 +157,7 @@ class DialogTitleState {
157
157
  }
158
158
  props = $derived.by(() => ({
159
159
  id: this.opts.id.current,
160
- // role: "heading",
160
+ role: "heading",
161
161
  "aria-level": this.opts.level.current,
162
162
  [this.root.attrs.title]: "",
163
163
  ...this.root.sharedProps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",