@eqtylab/equality 4.6.0 → 4.8.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 +21 -0
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/radio-group.module.module.css.module.css +11 -2
- package/dist/switch.module.module.css.module.css +53 -37
- package/dist/textarea.module.module.css.module.css +1 -2
- package/dist/theme.module.module.css.module.css +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
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.8.0 - 2026-10-01
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- `Switch`'s off track is a lighter grey in both themes and clears 3:1 against the page in each,
|
|
10
|
+
as WCAG 1.4.11 asks of a control's state. In dark mode it was 2.07:1. An off `danger` switch is
|
|
11
|
+
grey like any other off switch rather than dark red, so it no longer reads as on. Hover darkens
|
|
12
|
+
the track in light mode and lightens it in dark mode, and the track and thumb move with the
|
|
13
|
+
same 250ms easing as `SegmentedControls` and respect reduced motion.
|
|
14
|
+
- A checked `RadioGroupItem` uses the primary fill a checked `Checkbox` uses, instead of a black
|
|
15
|
+
dot.
|
|
16
|
+
- `Textarea` has the same 8px padding as `Input`, so their text lines up in a form.
|
|
17
|
+
|
|
18
|
+
## 4.7.0 - 2026-09-28
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- `SegmentedControls` accepts `aria-label` and `aria-labelledby`, and renders as a `group`, so a
|
|
23
|
+
screen reader announces what the segments choose between. Consumers had to wrap it in their
|
|
24
|
+
own labelled `div` to get this.
|
|
25
|
+
|
|
5
26
|
## 4.6.0 - 2026-09-25
|
|
6
27
|
|
|
7
28
|
### Added
|
package/dist/index.cjs
CHANGED
|
@@ -3938,6 +3938,8 @@ var SegmentedControls = ({
|
|
|
3938
3938
|
onValueChange,
|
|
3939
3939
|
display = "both",
|
|
3940
3940
|
size = "md",
|
|
3941
|
+
"aria-label": ariaLabel,
|
|
3942
|
+
"aria-labelledby": ariaLabelledBy,
|
|
3941
3943
|
className
|
|
3942
3944
|
}) => {
|
|
3943
3945
|
const allHaveIcons = options.every((option) => option.icon != null);
|
|
@@ -3975,6 +3977,9 @@ var SegmentedControls = ({
|
|
|
3975
3977
|
"div",
|
|
3976
3978
|
{
|
|
3977
3979
|
ref: containerRef,
|
|
3980
|
+
role: "group",
|
|
3981
|
+
"aria-label": ariaLabel,
|
|
3982
|
+
"aria-labelledby": ariaLabelledBy,
|
|
3978
3983
|
className: cn(
|
|
3979
3984
|
styles49__default.default["segmented-controls"],
|
|
3980
3985
|
styles49__default.default[`size--${size}`],
|