@eqtylab/equality 4.5.0 → 4.5.1

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  Notable changes to Equality are recorded here, following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
4
4
 
5
+ ## 4.5.1 - 2026-09-25
6
+
7
+ ### Fixed
8
+
9
+ - The search box in a searchable `Select` or `DropdownMenu` stays at the top of the list while
10
+ it scrolls. In a `Select` it scrolled away with the options, and in a `DropdownMenu` it was
11
+ never pinned.
12
+ - <kbd>↓</kbd> on the last option of a searchable `Select` or `DropdownMenu` scrolls the list back
13
+ to the top as it returns to the search box. The list stayed scrolled to the bottom.
14
+
15
+ ## 4.5.0 - 2026-09-25
16
+
17
+ ### Added
18
+
19
+ - Segmented controls now have `sm`, `md`, and `lg` `size` variants
20
+
5
21
  ## 4.4.2 - 2026-09-25
6
22
 
7
23
  ### Fixed
@@ -373,6 +373,9 @@
373
373
  }
374
374
  }
375
375
  .dropdown-menu-search {
376
+ position: sticky;
377
+ top: calc(0.25rem * 0);
378
+ z-index: 10;
376
379
  display: flex;
377
380
  align-items: center;
378
381
  justify-content: center;
@@ -382,7 +385,9 @@
382
385
  margin-bottom: calc(0.25rem * 1);
383
386
  border-bottom-style: var(--tw-border-style);
384
387
  border-bottom-width: 1px;
388
+ top: calc(0.25rem * -1);
385
389
  border-color: var(--color-border-overlay, color(display-p3 0.8011 0.807 0.814));
390
+ background-color: var(--color-background-overlay, color(display-p3 0.9946 0.9998 0.9999));
386
391
  }
387
392
  .dropdown-menu-search-input {
388
393
  min-width: calc(0.25rem * 0);
package/dist/index.cjs CHANGED
@@ -1956,6 +1956,12 @@ function handleListKeyDown(state, event, { searchSelector, itemSelector }) {
1956
1956
  const edgeItem = event.key === "ArrowUp" ? items[0] : items[items.length - 1];
1957
1957
  if (edgeItem && edgeItem === target?.closest(itemSelector)) {
1958
1958
  event.preventDefault();
1959
+ if (event.key === "ArrowDown") {
1960
+ for (let el = target; el; el = el.parentElement) {
1961
+ el.scrollTop = 0;
1962
+ if (el === event.currentTarget) break;
1963
+ }
1964
+ }
1959
1965
  state.requestFocus();
1960
1966
  return;
1961
1967
  }