@eqtylab/equality 4.9.0 → 4.10.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 +32 -0
- package/dist/badge.module.module.css.module.css +80 -1
- package/dist/date-range-picker.module.module.css.module.css +136 -18
- package/dist/dropdown-menu.module.module.css.module.css +6 -0
- package/dist/icon-button.module.module.css.module.css +2 -2
- package/dist/index.cjs +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/progress-indicator.module.module.css.module.css +8 -2
- package/dist/radio-group.module.module.css.module.css +2 -2
- package/dist/theme.module.module.css.module.css +2 -0
- package/dist/toast-components.module.module.css.module.css +2 -74
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,38 @@
|
|
|
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.1 - 2026-10-02
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- `DateRangePicker` days in a selected range use a lilac tint, the one `IconButton` and the
|
|
10
|
+
`navigation` button use on hover, instead of the primary badge colours. The badge purple is
|
|
11
|
+
a different hue from the lilac of the selected days beside them.
|
|
12
|
+
- The active step's marker in a `ProgressIndicator` uses a lilac tint instead of the primary
|
|
13
|
+
badge colours, so it matches the lilac track it sits on and stays as soft as the other markers.
|
|
14
|
+
|
|
15
|
+
## 4.10.0 - 2026-10-02
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- `DateRangePicker` day cells are no longer a grid of bordered boxes. Selected days use the
|
|
20
|
+
primary button colours, days in range use the primary badge tint, and hover is the lilac tint
|
|
21
|
+
used by `IconButton`. Selected days in dark mode had white text on light lilac at 2.3:1; they
|
|
22
|
+
now meet WCAG AA, hovered or not.
|
|
23
|
+
- A checked radio or checkbox item in a `DropdownMenu`, and so in `RadioDropdown` and
|
|
24
|
+
`FilterDropdown`, uses the primary fill a checked `Checkbox` uses instead of black and white.
|
|
25
|
+
- A checked `RadioGroupItem`'s dot is back to 10px. 4.8.0 shrank it to 8px when the radio
|
|
26
|
+
became primary-filled, which made the white dot read as too small.
|
|
27
|
+
- Medium and large `IconButton`s have the same 6px corner radius as `Button` (they were 8.5px
|
|
28
|
+
and 9.5px), so icon-only buttons line up with labelled ones in a header.
|
|
29
|
+
- `ToastAction` is built on `Button` instead of a copy of its styles, so it always matches
|
|
30
|
+
`Button`.
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- A `DateRangePicker` trigger with a range selected no longer picks up every class name from
|
|
35
|
+
the picker's stylesheet, unhashed, as stray classes.
|
|
36
|
+
|
|
5
37
|
## 4.9.0 - 2026-10-01
|
|
6
38
|
|
|
7
39
|
### 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,35 +85,93 @@
|
|
|
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
|
|
102
|
-
background-color: var(--
|
|
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--
|
|
106
|
-
--
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
127
|
+
.calendar-grid .calendar-day-btn--in-range {
|
|
128
|
+
--mix-color: color-mix(in srgb, color(display-p3 0.6266 0.4562 0.8302) 25%, transparent);
|
|
129
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
130
|
+
--mix-color: color-mix(in oklch, var(--color-lilac-400) 25%, transparent);
|
|
131
|
+
}
|
|
132
|
+
--calendar-day-hover-fill: color-mix(in srgb, color(display-p3 0.6266 0.4562 0.8302) 40%, transparent);
|
|
133
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
134
|
+
--calendar-day-hover-fill: color-mix(in oklch, var(--color-lilac-400) 40%, transparent);
|
|
135
|
+
}
|
|
136
|
+
color: var(--color-lilac-800, color(display-p3 0.1898 0.115 0.3008));
|
|
137
|
+
&:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
|
|
138
|
+
color: var(--color-lilac-200, color(display-p3 0.8396 0.7634 0.9416));
|
|
139
|
+
}
|
|
140
|
+
&:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
|
|
141
|
+
--mix-color: color-mix(in srgb, color(display-p3 0.5242 0.2903 0.7705) 25%, transparent);
|
|
142
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
143
|
+
--mix-color: color-mix(in oklch, var(--color-lilac-500) 25%, transparent);
|
|
144
|
+
}
|
|
145
|
+
--calendar-day-hover-fill: color-mix(in srgb, color(display-p3 0.5242 0.2903 0.7705) 40%, transparent);
|
|
146
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
147
|
+
--calendar-day-hover-fill: color-mix(in oklch, var(--color-lilac-500) 40%, transparent);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
111
150
|
}
|
|
112
|
-
.calendar-day-btn--
|
|
113
|
-
|
|
151
|
+
.calendar-grid .calendar-day-btn--selected {
|
|
152
|
+
--mix-color: var(--color-button-primary-fill);
|
|
153
|
+
--calendar-day-hover-fill: var(--mix-color);
|
|
114
154
|
@supports (color: color-mix(in lab, red, red)) {
|
|
115
|
-
|
|
155
|
+
--calendar-day-hover-fill: color-mix(in oklch, var(--mix-color), black 16%);
|
|
116
156
|
}
|
|
157
|
+
color: var(--color-button-primary-text, color(display-p3 1 1 1));
|
|
158
|
+
border-color: var(--mix-color);
|
|
159
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
160
|
+
border-color: color-mix(in oklch,var(--mix-color),black 12%);
|
|
161
|
+
}
|
|
162
|
+
--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));
|
|
163
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
164
|
+
&:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
|
|
165
|
+
--calendar-day-hover-fill: var(--mix-color);
|
|
166
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
167
|
+
--calendar-day-hover-fill: color-mix(in oklch, var(--mix-color), white 6%);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
.calendar-grid .calendar-day-btn--today {
|
|
172
|
+
--tw-font-weight: 600;
|
|
173
|
+
font-weight: 600;
|
|
174
|
+
border-color: var(--color-brand-primary, color(display-p3 0.7319 0.6108 0.8873));
|
|
117
175
|
}
|
|
118
176
|
@property --tw-translate-x {
|
|
119
177
|
syntax: "*";
|
|
@@ -139,8 +197,68 @@
|
|
|
139
197
|
syntax: "*";
|
|
140
198
|
inherits: false;
|
|
141
199
|
}
|
|
142
|
-
@property --tw-
|
|
200
|
+
@property --tw-shadow {
|
|
201
|
+
syntax: "*";
|
|
202
|
+
inherits: false;
|
|
203
|
+
initial-value: 0 0 #0000;
|
|
204
|
+
}
|
|
205
|
+
@property --tw-shadow-color {
|
|
206
|
+
syntax: "*";
|
|
207
|
+
inherits: false;
|
|
208
|
+
}
|
|
209
|
+
@property --tw-shadow-alpha {
|
|
210
|
+
syntax: "<percentage>";
|
|
211
|
+
inherits: false;
|
|
212
|
+
initial-value: 100%;
|
|
213
|
+
}
|
|
214
|
+
@property --tw-inset-shadow {
|
|
215
|
+
syntax: "*";
|
|
216
|
+
inherits: false;
|
|
217
|
+
initial-value: 0 0 #0000;
|
|
218
|
+
}
|
|
219
|
+
@property --tw-inset-shadow-color {
|
|
220
|
+
syntax: "*";
|
|
221
|
+
inherits: false;
|
|
222
|
+
}
|
|
223
|
+
@property --tw-inset-shadow-alpha {
|
|
224
|
+
syntax: "<percentage>";
|
|
225
|
+
inherits: false;
|
|
226
|
+
initial-value: 100%;
|
|
227
|
+
}
|
|
228
|
+
@property --tw-ring-color {
|
|
229
|
+
syntax: "*";
|
|
230
|
+
inherits: false;
|
|
231
|
+
}
|
|
232
|
+
@property --tw-ring-shadow {
|
|
233
|
+
syntax: "*";
|
|
234
|
+
inherits: false;
|
|
235
|
+
initial-value: 0 0 #0000;
|
|
236
|
+
}
|
|
237
|
+
@property --tw-inset-ring-color {
|
|
238
|
+
syntax: "*";
|
|
239
|
+
inherits: false;
|
|
240
|
+
}
|
|
241
|
+
@property --tw-inset-ring-shadow {
|
|
242
|
+
syntax: "*";
|
|
243
|
+
inherits: false;
|
|
244
|
+
initial-value: 0 0 #0000;
|
|
245
|
+
}
|
|
246
|
+
@property --tw-ring-inset {
|
|
247
|
+
syntax: "*";
|
|
248
|
+
inherits: false;
|
|
249
|
+
}
|
|
250
|
+
@property --tw-ring-offset-width {
|
|
251
|
+
syntax: "<length>";
|
|
252
|
+
inherits: false;
|
|
253
|
+
initial-value: 0px;
|
|
254
|
+
}
|
|
255
|
+
@property --tw-ring-offset-color {
|
|
256
|
+
syntax: "*";
|
|
257
|
+
inherits: false;
|
|
258
|
+
initial-value: #fff;
|
|
259
|
+
}
|
|
260
|
+
@property --tw-ring-offset-shadow {
|
|
143
261
|
syntax: "*";
|
|
144
262
|
inherits: false;
|
|
145
|
-
initial-value:
|
|
263
|
+
initial-value: 0 0 #0000;
|
|
146
264
|
}
|
|
@@ -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:
|
|
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:
|
|
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
|
|
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(
|
|
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,
|