@eqtylab/equality 4.1.0 → 4.3.0
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 +53 -0
- package/dist/dropdown-menu.module.module.css.module.css +3 -3
- package/dist/filter-dropdown.module.module.css.module.css +13 -0
- package/dist/global-theme-config.css +0 -1
- package/dist/index.cjs +447 -197
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -4
- package/dist/index.d.ts +25 -4
- package/dist/index.js +446 -198
- package/dist/index.js.map +1 -1
- package/dist/select.module.module.css.module.css +75 -0
- package/dist/theme-utilities.css +19 -0
- package/dist/theme.module.css +0 -1
- package/dist/theme.module.module.css.module.css +222 -51
- package/package.json +10 -3
- package/dist/theme-components.css +0 -27
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Notable changes to Equality are recorded here, following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
4
|
+
|
|
5
|
+
## 4.3.0 - 2026-09-24
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `SelectSearch` and `SelectEmpty`, bringing `DropdownMenu`'s opt-in, in-place search to
|
|
10
|
+
`Select`. `SelectItem` matches on its `textValue`, falling back to its rendered text.
|
|
11
|
+
The search box is shown and focused when the select opens; `alwaysVisible={false}`
|
|
12
|
+
reveals it on the first keystroke instead.
|
|
13
|
+
- `dropdown-search`, `dropdown-search-input` and `dropdown-empty` utility classes, alongside
|
|
14
|
+
`dropdown-content` and `dropdown-item`.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- A searchable `FilterDropdown` or `RadioDropdown` now shows its search box, focused, as
|
|
19
|
+
soon as the menu opens, instead of waiting for the first keystroke. The search box
|
|
20
|
+
replaces the menu heading and takes `label` as its accessible name.
|
|
21
|
+
- In a searchable `FilterDropdown`, "Clear all" moves to a footer pinned to the bottom of
|
|
22
|
+
the menu. Without search, it stays in the "Filters" heading.
|
|
23
|
+
- Enter in `DropdownMenuSearch` now activates the first matching item while a query is
|
|
24
|
+
active, and so does a searchable `FilterDropdown` or `RadioDropdown`.
|
|
25
|
+
- `DropdownMenuSearch` keeps `role="searchbox"`, its `aria-controls` and its internal
|
|
26
|
+
data attribute, and `DropdownMenuEmpty` keeps its live-region role, even when the same
|
|
27
|
+
props are passed in.
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- `FilterDropdown`'s "Clear all" is now a menu item, so keyboard and screen reader users
|
|
32
|
+
can reach it. It was a plain button, which a menu's arrow-key navigation skips.
|
|
33
|
+
- Reopening a `DropdownMenu` through a controlled `open` prop, without `onOpenChange`, now
|
|
34
|
+
clears the previous search.
|
|
35
|
+
- A ref passed to `DropdownMenuSearch` is no longer detached and reattached on every
|
|
36
|
+
keystroke.
|
|
37
|
+
|
|
38
|
+
## 4.2.0 - 2026-09-22
|
|
39
|
+
|
|
40
|
+
Scrollable areas are now browser-native. Equality no longer ships a synthetic scrollbar or a scrollbar-restyling utility.
|
|
41
|
+
|
|
42
|
+
### Removed
|
|
43
|
+
|
|
44
|
+
- The `styled-vertical-scrollbar` and `styled-horizontal-scrollbar` utility
|
|
45
|
+
classes, and the `theme-components.css` file.
|
|
46
|
+
|
|
47
|
+
### Deprecated
|
|
48
|
+
|
|
49
|
+
- `ScrollArea` and `ScrollBar`. Use a native scrollable element instead — set an overflow and a height on your own container and leave the scrollbar unstyled.
|
|
50
|
+
|
|
51
|
+
### Changed
|
|
52
|
+
|
|
53
|
+
- Dialogs and Sheets now scroll with native scrollbars.
|
|
@@ -395,9 +395,9 @@
|
|
|
395
395
|
font-size: 0.875rem;
|
|
396
396
|
line-height: var(--tw-leading, calc(1.25 / 0.875));
|
|
397
397
|
color: var(--color-text-primary, color(display-p3 0 0 0));
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
398
|
+
&::placeholder {
|
|
399
|
+
color: var(--color-text-secondary, color(display-p3 0.1792 0.1792 0.1792));
|
|
400
|
+
}
|
|
401
401
|
}
|
|
402
402
|
.dropdown-menu-empty {
|
|
403
403
|
padding-inline: calc(0.25rem * 2);
|
|
@@ -16,6 +16,19 @@
|
|
|
16
16
|
.chevron-icon {
|
|
17
17
|
color: var(--color-text-secondary, color(display-p3 0.1792 0.1792 0.1792));
|
|
18
18
|
}
|
|
19
|
+
.clear-all-footer {
|
|
20
|
+
position: sticky;
|
|
21
|
+
bottom: calc(0.25rem * -1);
|
|
22
|
+
padding-bottom: calc(0.25rem * 1);
|
|
23
|
+
background-color: var(--color-background-overlay, color(display-p3 0.9946 0.9998 0.9999));
|
|
24
|
+
}
|
|
25
|
+
.clear-all {
|
|
26
|
+
justify-content: center;
|
|
27
|
+
}
|
|
28
|
+
.filters-header .clear-all-inline {
|
|
29
|
+
padding-inline: calc(0.25rem * 1);
|
|
30
|
+
padding-block: calc(0.25rem * 0);
|
|
31
|
+
}
|
|
19
32
|
.dropdown-menu-content {
|
|
20
33
|
max-height: calc(0.25rem * 80);
|
|
21
34
|
width: calc(0.25rem * 56);
|