bits-ui 1.4.2 → 1.4.3

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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",