@eqtylab/equality 4.9.0 → 4.10.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 CHANGED
@@ -2,6 +2,28 @@
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.10.0 - 2026-10-02
6
+
7
+ ### Changed
8
+
9
+ - `DateRangePicker` day cells are no longer a grid of bordered boxes. Selected days use the
10
+ primary button colours, days in range use the primary badge tint, and hover is the lilac tint
11
+ used by `IconButton`. Selected days in dark mode had white text on light lilac at 2.3:1; they
12
+ now meet WCAG AA, hovered or not.
13
+ - A checked radio or checkbox item in a `DropdownMenu`, and so in `RadioDropdown` and
14
+ `FilterDropdown`, uses the primary fill a checked `Checkbox` uses instead of black and white.
15
+ - A checked `RadioGroupItem`'s dot is back to 10px. 4.8.0 shrank it to 8px when the radio
16
+ became primary-filled, which made the white dot read as too small.
17
+ - Medium and large `IconButton`s have the same 6px corner radius as `Button` (they were 8.5px
18
+ and 9.5px), so icon-only buttons line up with labelled ones in a header.
19
+ - `ToastAction` is built on `Button` instead of a copy of its styles, so it always matches
20
+ `Button`.
21
+
22
+ ### Fixed
23
+
24
+ - A `DateRangePicker` trigger with a range selected no longer picks up every class name from
25
+ the picker's stylesheet, unhashed, as stray classes.
26
+
5
27
  ## 4.9.0 - 2026-10-01
6
28
 
7
29
  ### Changed
@@ -68,10 +68,24 @@
68
68
  width: calc(0.25rem * 3);
69
69
  height: calc(0.25rem * 3);
70
70
  }
71
+ --tw-shadow: 0 0 #0000;
72
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
73
+ &:active {
74
+ &:not(*:disabled) {
75
+ --tw-shadow: 0 0 #0000;
76
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
77
+ }
78
+ }
79
+ &:active {
80
+ &:not(*:disabled) {
81
+ --tw-inset-shadow: 0 0 #0000;
82
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
83
+ }
84
+ }
71
85
  background-color: var(--badge-bg-color);
72
86
  color: var(--badge-fg-color);
73
87
  }
74
- .badge .closable-btn:hover {
88
+ .badge .closable-btn:hover:not(:disabled) {
75
89
  background-color: var(--badge-fg-color);
76
90
  color: var(--badge-bg-color);
77
91
  }
@@ -126,3 +140,68 @@
126
140
  syntax: "*";
127
141
  inherits: false;
128
142
  }
143
+ @property --tw-shadow {
144
+ syntax: "*";
145
+ inherits: false;
146
+ initial-value: 0 0 #0000;
147
+ }
148
+ @property --tw-shadow-color {
149
+ syntax: "*";
150
+ inherits: false;
151
+ }
152
+ @property --tw-shadow-alpha {
153
+ syntax: "<percentage>";
154
+ inherits: false;
155
+ initial-value: 100%;
156
+ }
157
+ @property --tw-inset-shadow {
158
+ syntax: "*";
159
+ inherits: false;
160
+ initial-value: 0 0 #0000;
161
+ }
162
+ @property --tw-inset-shadow-color {
163
+ syntax: "*";
164
+ inherits: false;
165
+ }
166
+ @property --tw-inset-shadow-alpha {
167
+ syntax: "<percentage>";
168
+ inherits: false;
169
+ initial-value: 100%;
170
+ }
171
+ @property --tw-ring-color {
172
+ syntax: "*";
173
+ inherits: false;
174
+ }
175
+ @property --tw-ring-shadow {
176
+ syntax: "*";
177
+ inherits: false;
178
+ initial-value: 0 0 #0000;
179
+ }
180
+ @property --tw-inset-ring-color {
181
+ syntax: "*";
182
+ inherits: false;
183
+ }
184
+ @property --tw-inset-ring-shadow {
185
+ syntax: "*";
186
+ inherits: false;
187
+ initial-value: 0 0 #0000;
188
+ }
189
+ @property --tw-ring-inset {
190
+ syntax: "*";
191
+ inherits: false;
192
+ }
193
+ @property --tw-ring-offset-width {
194
+ syntax: "<length>";
195
+ inherits: false;
196
+ initial-value: 0px;
197
+ }
198
+ @property --tw-ring-offset-color {
199
+ syntax: "*";
200
+ inherits: false;
201
+ initial-value: #fff;
202
+ }
203
+ @property --tw-ring-offset-shadow {
204
+ syntax: "*";
205
+ inherits: false;
206
+ initial-value: 0 0 #0000;
207
+ }
@@ -85,36 +85,82 @@
85
85
  grid-template-columns: repeat(7, minmax(0, 1fr));
86
86
  gap: calc(0.25rem * 1);
87
87
  }
88
- .calendar-day-btn {
88
+ .calendar-grid .calendar-day-btn {
89
+ --mix-color: transparent;
90
+ --calendar-day-hover-fill: color-mix(in srgb, color(display-p3 0.6266 0.4562 0.8302) 25%, transparent);
91
+ @supports (color: color-mix(in lab, red, red)) {
92
+ --calendar-day-hover-fill: color-mix(in oklch, var(--color-lilac-400) 25%, transparent);
93
+ }
89
94
  font-size: 0.875rem;
90
95
  line-height: var(--tw-leading, calc(1.25 / 0.875));
91
96
  --tw-font-weight: 400;
92
97
  font-weight: 400;
93
- transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
94
- transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
95
- transition-duration: var(--tw-duration, 150ms);
96
98
  width: calc(0.25rem * 9);
97
99
  height: calc(0.25rem * 9);
98
100
  border-radius: var(--radius-md, 0.375rem);
99
101
  padding: calc(0.25rem * 0);
102
+ border-color: transparent;
103
+ --tw-shadow: 0 0 #0000;
104
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
105
+ &:active {
106
+ &:not(*:disabled) {
107
+ --tw-shadow: 0 0 #0000;
108
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
109
+ }
110
+ }
111
+ &:active {
112
+ &:not(*:disabled) {
113
+ --tw-inset-shadow: 0 0 #0000;
114
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
115
+ }
116
+ }
117
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
118
+ --calendar-day-hover-fill: color-mix(in srgb, color(display-p3 0.5242 0.2903 0.7705) 25%, transparent);
119
+ @supports (color: color-mix(in lab, red, red)) {
120
+ --calendar-day-hover-fill: color-mix(in oklch, var(--color-lilac-500) 25%, transparent);
121
+ }
122
+ }
100
123
  }
101
- .calendar-day-btn--selected {
102
- background-color: var(--color-brand-primary, color(display-p3 0.7319 0.6108 0.8873));
103
- color: var(--color-text-primary, color(display-p3 0 0 0));
124
+ .calendar-grid .calendar-day-btn:hover:not(:disabled) {
125
+ background-color: var(--calendar-day-hover-fill);
104
126
  }
105
- .calendar-day-btn--today {
106
- --tw-font-weight: 600;
107
- font-weight: 600;
108
- border-style: var(--tw-border-style);
109
- border-width: 1px;
110
- border-color: var(--color-brand-primary, color(display-p3 0.7319 0.6108 0.8873));
127
+ .calendar-grid .calendar-day-btn--in-range {
128
+ --mix-color: var(--color-badge-background-primary);
129
+ --calendar-day-hover-fill: var(--mix-color);
130
+ @supports (color: color-mix(in lab, red, red)) {
131
+ --calendar-day-hover-fill: color-mix(
132
+ in oklch,
133
+ var(--mix-color),
134
+ var(--color-badge-text-primary) 12%
135
+ );
136
+ }
137
+ color: var(--color-badge-text-primary, color(display-p3 0.1608 0.1145 0.3417));
111
138
  }
112
- .calendar-day-btn--in-range {
113
- background-color: color-mix(in srgb, color(display-p3 0.7319 0.6108 0.8873) 30%, transparent);
139
+ .calendar-grid .calendar-day-btn--selected {
140
+ --mix-color: var(--color-button-primary-fill);
141
+ --calendar-day-hover-fill: var(--mix-color);
114
142
  @supports (color: color-mix(in lab, red, red)) {
115
- background-color: color-mix(in oklab, var(--color-brand-primary, color(display-p3 0.7319 0.6108 0.8873)) 30%, transparent);
143
+ --calendar-day-hover-fill: color-mix(in oklch, var(--mix-color), black 16%);
144
+ }
145
+ color: var(--color-button-primary-text, color(display-p3 1 1 1));
146
+ border-color: var(--mix-color);
147
+ @supports (color: color-mix(in lab, red, red)) {
148
+ border-color: color-mix(in oklch,var(--mix-color),black 12%);
149
+ }
150
+ --tw-shadow: 0 1px 2px var(--tw-shadow-color, rgb(0 0 0/0.2)), inset 0 1px 0 var(--tw-shadow-color, rgb(255 255 255/0.25));
151
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
152
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
153
+ --calendar-day-hover-fill: var(--mix-color);
154
+ @supports (color: color-mix(in lab, red, red)) {
155
+ --calendar-day-hover-fill: color-mix(in oklch, var(--mix-color), white 6%);
156
+ }
116
157
  }
117
158
  }
159
+ .calendar-grid .calendar-day-btn--today {
160
+ --tw-font-weight: 600;
161
+ font-weight: 600;
162
+ border-color: var(--color-brand-primary, color(display-p3 0.7319 0.6108 0.8873));
163
+ }
118
164
  @property --tw-translate-x {
119
165
  syntax: "*";
120
166
  inherits: false;
@@ -139,8 +185,68 @@
139
185
  syntax: "*";
140
186
  inherits: false;
141
187
  }
142
- @property --tw-border-style {
188
+ @property --tw-shadow {
189
+ syntax: "*";
190
+ inherits: false;
191
+ initial-value: 0 0 #0000;
192
+ }
193
+ @property --tw-shadow-color {
194
+ syntax: "*";
195
+ inherits: false;
196
+ }
197
+ @property --tw-shadow-alpha {
198
+ syntax: "<percentage>";
199
+ inherits: false;
200
+ initial-value: 100%;
201
+ }
202
+ @property --tw-inset-shadow {
203
+ syntax: "*";
204
+ inherits: false;
205
+ initial-value: 0 0 #0000;
206
+ }
207
+ @property --tw-inset-shadow-color {
208
+ syntax: "*";
209
+ inherits: false;
210
+ }
211
+ @property --tw-inset-shadow-alpha {
212
+ syntax: "<percentage>";
213
+ inherits: false;
214
+ initial-value: 100%;
215
+ }
216
+ @property --tw-ring-color {
217
+ syntax: "*";
218
+ inherits: false;
219
+ }
220
+ @property --tw-ring-shadow {
221
+ syntax: "*";
222
+ inherits: false;
223
+ initial-value: 0 0 #0000;
224
+ }
225
+ @property --tw-inset-ring-color {
226
+ syntax: "*";
227
+ inherits: false;
228
+ }
229
+ @property --tw-inset-ring-shadow {
230
+ syntax: "*";
231
+ inherits: false;
232
+ initial-value: 0 0 #0000;
233
+ }
234
+ @property --tw-ring-inset {
235
+ syntax: "*";
236
+ inherits: false;
237
+ }
238
+ @property --tw-ring-offset-width {
239
+ syntax: "<length>";
240
+ inherits: false;
241
+ initial-value: 0px;
242
+ }
243
+ @property --tw-ring-offset-color {
244
+ syntax: "*";
245
+ inherits: false;
246
+ initial-value: #fff;
247
+ }
248
+ @property --tw-ring-offset-shadow {
143
249
  syntax: "*";
144
250
  inherits: false;
145
- initial-value: solid;
251
+ initial-value: 0 0 #0000;
146
252
  }
@@ -320,6 +320,12 @@
320
320
  .dropdown-menu-item-indicator-radio {
321
321
  border-radius: calc(infinity * 1px);
322
322
  }
323
+ .dropdown-menu-checkbox-item[data-state='checked'] .dropdown-menu-item-indicator-checkbox,
324
+ .dropdown-menu-radio-item[data-state='checked'] .dropdown-menu-item-indicator-radio {
325
+ border-color: var(--color-button-primary-border, color(display-p3 0.5242 0.2903 0.7705));
326
+ background-color: var(--color-button-primary-fill, color(display-p3 0.5242 0.2903 0.7705));
327
+ color: var(--color-button-primary-text, color(display-p3 1 1 1));
328
+ }
323
329
  .icon-size {
324
330
  width: calc(0.25rem * 3);
325
331
  height: calc(0.25rem * 3);
@@ -44,12 +44,12 @@
44
44
  .size--md {
45
45
  width: calc(0.25rem * 10);
46
46
  height: calc(0.25rem * 10);
47
- border-radius: 8.5px;
47
+ border-radius: var(--radius-md, 0.375rem);
48
48
  }
49
49
  .size--lg {
50
50
  width: calc(0.25rem * 11);
51
51
  height: calc(0.25rem * 11);
52
- border-radius: 9.5px;
52
+ border-radius: var(--radius-md, 0.375rem);
53
53
  }
54
54
  .icon-btn--primary {
55
55
  color: var(--color-text-primary, color(display-p3 0 0 0));
package/dist/index.cjs CHANGED
@@ -1544,7 +1544,7 @@ var DateRangePicker = ({ dateRange, onSelect, className }) => {
1544
1544
  label: "Clear dates"
1545
1545
  }
1546
1546
  ),
1547
- className: cn(dateRange.from && dateRange.to && styles19__default.default, className),
1547
+ className,
1548
1548
  children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles19__default.default["date-range"], children: formatRange(dateRange) })
1549
1549
  }
1550
1550
  ) }) }),
@@ -4425,7 +4425,18 @@ var ToastContainer = React15__namespace.forwardRef(({ className, variant, style,
4425
4425
  );
4426
4426
  });
4427
4427
  ToastContainer.displayName = ToastPrimitives__namespace.Root.displayName;
4428
- var ToastAction = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Action, { ref, className: cn(styles60__default.default["toast-action"], className), ...props }));
4428
+ var ToastAction = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4429
+ ToastPrimitives__namespace.Action,
4430
+ {
4431
+ ref,
4432
+ className: cn(
4433
+ buttonVariants({ variant: "secondary", size: "sm" }),
4434
+ styles60__default.default["toast-action"],
4435
+ className
4436
+ ),
4437
+ ...props
4438
+ }
4439
+ ));
4429
4440
  ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
4430
4441
  var ToastClose = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4431
4442
  ToastPrimitives__namespace.Close,