@eqtylab/equality 5.3.3 → 5.4.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,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
+ ## 5.4.0 - 2026-11-09
6
+
7
+ ### Added
8
+
9
+ - `--eq-nav-offset`, a length, pins `NavRail` and `NavPanel` that far below the top of the viewport,
10
+ such as under a sticky header. It defaults to `0px`. Set it on the element around the sidebar.
11
+
12
+ ### Changed
13
+
14
+ - `DropdownMenu`, `Select` and `Command` items light grey on hover and keyboard focus, like a Nav
15
+ row, where they turned purple with purple text, and they no longer lift with a shadow. Danger and
16
+ warning items keep their own colours.
17
+ - A `CommandItem` lights when it is selected, from the keyboard or the pointer, where it lit only
18
+ under the pointer, so arrowing through a list showed nothing.
19
+ - A linked `Table` row draws keyboard focus in the focus-ring colour, like every other control,
20
+ where it used the paler brand purple.
21
+
22
+ ### Fixed
23
+
24
+ - A `NavSwitcher` in a `NavPanel` beside a `NavRail` centres on the rail's first item, where it sat
25
+ 4px high with a mouse or trackpad.
26
+ - A focused linked `Table` row draws one focus line, where the row's link drew the browser's own
27
+ outline just outside it as well.
28
+
29
+ ## 5.3.4 - 2026-11-06
30
+
31
+ ### Fixed
32
+
33
+ - `Nav` rows and rail items keep their height, padding and text size in a site built against the
34
+ published package, where they shrank to bare text. Only production builds of sites using
35
+ `@eqtylab/equality/theme-config.css` were affected; dev servers looked right.
36
+
5
37
  ## 5.3.3 - 2026-11-05
6
38
 
7
39
  ### Changed
@@ -185,73 +185,8 @@
185
185
  &[data-disabled="true"] {
186
186
  opacity: 50%;
187
187
  }
188
- &:hover {
189
- @media (hover: hover) {
190
- &:not(*:disabled) {
191
- color: var(--color-lilac-700, color(display-p3 0.2927 0.172 0.4505)) !important;
192
- }
193
- }
194
- }
195
- &:focus {
196
- color: var(--color-lilac-700, color(display-p3 0.2927 0.172 0.4505)) !important;
197
- }
198
- &:hover {
199
- @media (hover: hover) {
200
- &:not(*:disabled) {
201
- background-color: color-mix(in srgb, color(display-p3 0.7319 0.6108 0.8873) 50%, transparent) !important;
202
- @supports (color: color-mix(in lab, red, red)) {
203
- background-color: color-mix(in oklab, var(--color-lilac-300, color(display-p3 0.7319 0.6108 0.8873)) 50%, transparent) !important;
204
- }
205
- }
206
- }
207
- }
208
- &:focus {
209
- background-color: color-mix(in srgb, color(display-p3 0.7319 0.6108 0.8873) 50%, transparent) !important;
210
- @supports (color: color-mix(in lab, red, red)) {
211
- background-color: color-mix(in oklab, var(--color-lilac-300, color(display-p3 0.7319 0.6108 0.8873)) 50%, transparent) !important;
212
- }
213
- }
214
- &:hover {
215
- @media (hover: hover) {
216
- &:not(*:disabled) {
217
- --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
218
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
219
- }
220
- }
221
- }
222
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
223
- &:hover {
224
- @media (hover: hover) {
225
- &:not(*:disabled) {
226
- background-color: color-mix(in srgb, color(display-p3 0.4045 0.2306 0.6077) 50%, transparent) !important;
227
- @supports (color: color-mix(in lab, red, red)) {
228
- background-color: color-mix(in oklab, var(--color-lilac-600, color(display-p3 0.4045 0.2306 0.6077)) 50%, transparent) !important;
229
- }
230
- }
231
- }
232
- }
233
- }
234
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
235
- &:focus {
236
- background-color: color-mix(in srgb, color(display-p3 0.4045 0.2306 0.6077) 50%, transparent) !important;
237
- @supports (color: color-mix(in lab, red, red)) {
238
- background-color: color-mix(in oklab, var(--color-lilac-600, color(display-p3 0.4045 0.2306 0.6077)) 50%, transparent) !important;
239
- }
240
- }
241
- }
242
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
243
- &:hover {
244
- @media (hover: hover) {
245
- &:not(*:disabled) {
246
- color: var(--color-lilac-100, color(display-p3 0.9492 0.917 0.9935)) !important;
247
- }
248
- }
249
- }
250
- }
251
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
252
- &:focus {
253
- color: var(--color-lilac-100, color(display-p3 0.9492 0.917 0.9935)) !important;
254
- }
188
+ &[data-selected="true"] {
189
+ background-color: var(--color-list-item-hover);
255
190
  }
256
191
  }
257
192
  .command-shortcut {
@@ -269,68 +204,3 @@
269
204
  syntax: "*";
270
205
  inherits: false;
271
206
  }
272
- @property --tw-shadow {
273
- syntax: "*";
274
- inherits: false;
275
- initial-value: 0 0 #0000;
276
- }
277
- @property --tw-shadow-color {
278
- syntax: "*";
279
- inherits: false;
280
- }
281
- @property --tw-shadow-alpha {
282
- syntax: "<percentage>";
283
- inherits: false;
284
- initial-value: 100%;
285
- }
286
- @property --tw-inset-shadow {
287
- syntax: "*";
288
- inherits: false;
289
- initial-value: 0 0 #0000;
290
- }
291
- @property --tw-inset-shadow-color {
292
- syntax: "*";
293
- inherits: false;
294
- }
295
- @property --tw-inset-shadow-alpha {
296
- syntax: "<percentage>";
297
- inherits: false;
298
- initial-value: 100%;
299
- }
300
- @property --tw-ring-color {
301
- syntax: "*";
302
- inherits: false;
303
- }
304
- @property --tw-ring-shadow {
305
- syntax: "*";
306
- inherits: false;
307
- initial-value: 0 0 #0000;
308
- }
309
- @property --tw-inset-ring-color {
310
- syntax: "*";
311
- inherits: false;
312
- }
313
- @property --tw-inset-ring-shadow {
314
- syntax: "*";
315
- inherits: false;
316
- initial-value: 0 0 #0000;
317
- }
318
- @property --tw-ring-inset {
319
- syntax: "*";
320
- inherits: false;
321
- }
322
- @property --tw-ring-offset-width {
323
- syntax: "<length>";
324
- inherits: false;
325
- initial-value: 0px;
326
- }
327
- @property --tw-ring-offset-color {
328
- syntax: "*";
329
- inherits: false;
330
- initial-value: #fff;
331
- }
332
- @property --tw-ring-offset-shadow {
333
- syntax: "*";
334
- inherits: false;
335
- initial-value: 0 0 #0000;
336
- }
@@ -106,70 +106,12 @@
106
106
  &:hover {
107
107
  @media (hover: hover) {
108
108
  &:not(*:disabled) {
109
- color: var(--color-lilac-700, color(display-p3 0.2927 0.172 0.4505)) !important;
109
+ background-color: var(--color-list-item-hover) !important;
110
110
  }
111
111
  }
112
112
  }
113
113
  &:focus {
114
- color: var(--color-lilac-700, color(display-p3 0.2927 0.172 0.4505)) !important;
115
- }
116
- &:hover {
117
- @media (hover: hover) {
118
- &:not(*:disabled) {
119
- background-color: color-mix(in srgb, color(display-p3 0.7319 0.6108 0.8873) 50%, transparent) !important;
120
- @supports (color: color-mix(in lab, red, red)) {
121
- background-color: color-mix(in oklab, var(--color-lilac-300, color(display-p3 0.7319 0.6108 0.8873)) 50%, transparent) !important;
122
- }
123
- }
124
- }
125
- }
126
- &:focus {
127
- background-color: color-mix(in srgb, color(display-p3 0.7319 0.6108 0.8873) 50%, transparent) !important;
128
- @supports (color: color-mix(in lab, red, red)) {
129
- background-color: color-mix(in oklab, var(--color-lilac-300, color(display-p3 0.7319 0.6108 0.8873)) 50%, transparent) !important;
130
- }
131
- }
132
- &:hover {
133
- @media (hover: hover) {
134
- &:not(*:disabled) {
135
- --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
136
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
137
- }
138
- }
139
- }
140
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
141
- &:hover {
142
- @media (hover: hover) {
143
- &:not(*:disabled) {
144
- background-color: color-mix(in srgb, color(display-p3 0.4045 0.2306 0.6077) 50%, transparent) !important;
145
- @supports (color: color-mix(in lab, red, red)) {
146
- background-color: color-mix(in oklab, var(--color-lilac-600, color(display-p3 0.4045 0.2306 0.6077)) 50%, transparent) !important;
147
- }
148
- }
149
- }
150
- }
151
- }
152
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
153
- &:focus {
154
- background-color: color-mix(in srgb, color(display-p3 0.4045 0.2306 0.6077) 50%, transparent) !important;
155
- @supports (color: color-mix(in lab, red, red)) {
156
- background-color: color-mix(in oklab, var(--color-lilac-600, color(display-p3 0.4045 0.2306 0.6077)) 50%, transparent) !important;
157
- }
158
- }
159
- }
160
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
161
- &:hover {
162
- @media (hover: hover) {
163
- &:not(*:disabled) {
164
- color: var(--color-lilac-100, color(display-p3 0.9492 0.917 0.9935)) !important;
165
- }
166
- }
167
- }
168
- }
169
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
170
- &:focus {
171
- color: var(--color-lilac-100, color(display-p3 0.9492 0.917 0.9935)) !important;
172
- }
114
+ background-color: var(--color-list-item-hover) !important;
173
115
  }
174
116
  }
175
117
  .dropdown-menu-item-danger {
@@ -442,6 +384,10 @@
442
384
  inherits: false;
443
385
  initial-value: solid;
444
386
  }
387
+ @property --tw-font-weight {
388
+ syntax: "*";
389
+ inherits: false;
390
+ }
445
391
  @property --tw-shadow {
446
392
  syntax: "*";
447
393
  inherits: false;
@@ -507,10 +453,6 @@
507
453
  inherits: false;
508
454
  initial-value: 0 0 #0000;
509
455
  }
510
- @property --tw-font-weight {
511
- syntax: "*";
512
- inherits: false;
513
- }
514
456
  @keyframes enter {
515
457
  from {
516
458
  opacity: var(--tw-enter-opacity,1);
@@ -1,4 +1,9 @@
1
1
  /*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
2
+ @property --eq-nav-offset {
3
+ syntax: '<length>';
4
+ inherits: true;
5
+ initial-value: 0px;
6
+ }
2
7
  .nav-rail,
3
8
  .nav-panel {
4
9
  display: flex;
@@ -18,11 +23,11 @@
18
23
  }
19
24
  .nav-scroller {
20
25
  position: sticky;
21
- top: calc(0.25rem * 0);
22
26
  display: flex;
23
27
  flex-direction: column;
24
28
  overflow-y: auto;
25
- max-height: min(100dvh, 100%);
29
+ top: var(--eq-nav-offset);
30
+ max-height: min(calc(100dvh - var(--eq-nav-offset)), 100%);
26
31
  background-color: inherit;
27
32
  }
28
33
  .nav-rail .nav-scroller {
@@ -88,6 +93,15 @@
88
93
  overflow: visible;
89
94
  padding: calc(0.25rem * 0);
90
95
  }
96
+ .nav-rail + .nav-panel .nav-panel-header:has(> .nav-switcher-heading) {
97
+ padding-top: calc(
98
+ (
99
+ max(var(--eq-control-height), var(--eq-touch-target)) -
100
+ max(calc(0.25rem * 8), var(--eq-touch-target))
101
+ ) /
102
+ 2
103
+ );
104
+ }
91
105
  .nav-switcher-heading {
92
106
  margin: calc(0.25rem * 0);
93
107
  display: flex;
@@ -192,70 +192,12 @@
192
192
  &:hover {
193
193
  @media (hover: hover) {
194
194
  &:not(*:disabled) {
195
- color: var(--color-lilac-700, color(display-p3 0.2927 0.172 0.4505)) !important;
195
+ background-color: var(--color-list-item-hover) !important;
196
196
  }
197
197
  }
198
198
  }
199
199
  &:focus {
200
- color: var(--color-lilac-700, color(display-p3 0.2927 0.172 0.4505)) !important;
201
- }
202
- &:hover {
203
- @media (hover: hover) {
204
- &:not(*:disabled) {
205
- background-color: color-mix(in srgb, color(display-p3 0.7319 0.6108 0.8873) 50%, transparent) !important;
206
- @supports (color: color-mix(in lab, red, red)) {
207
- background-color: color-mix(in oklab, var(--color-lilac-300, color(display-p3 0.7319 0.6108 0.8873)) 50%, transparent) !important;
208
- }
209
- }
210
- }
211
- }
212
- &:focus {
213
- background-color: color-mix(in srgb, color(display-p3 0.7319 0.6108 0.8873) 50%, transparent) !important;
214
- @supports (color: color-mix(in lab, red, red)) {
215
- background-color: color-mix(in oklab, var(--color-lilac-300, color(display-p3 0.7319 0.6108 0.8873)) 50%, transparent) !important;
216
- }
217
- }
218
- &:hover {
219
- @media (hover: hover) {
220
- &:not(*:disabled) {
221
- --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
222
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
223
- }
224
- }
225
- }
226
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
227
- &:hover {
228
- @media (hover: hover) {
229
- &:not(*:disabled) {
230
- background-color: color-mix(in srgb, color(display-p3 0.4045 0.2306 0.6077) 50%, transparent) !important;
231
- @supports (color: color-mix(in lab, red, red)) {
232
- background-color: color-mix(in oklab, var(--color-lilac-600, color(display-p3 0.4045 0.2306 0.6077)) 50%, transparent) !important;
233
- }
234
- }
235
- }
236
- }
237
- }
238
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
239
- &:focus {
240
- background-color: color-mix(in srgb, color(display-p3 0.4045 0.2306 0.6077) 50%, transparent) !important;
241
- @supports (color: color-mix(in lab, red, red)) {
242
- background-color: color-mix(in oklab, var(--color-lilac-600, color(display-p3 0.4045 0.2306 0.6077)) 50%, transparent) !important;
243
- }
244
- }
245
- }
246
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
247
- &:hover {
248
- @media (hover: hover) {
249
- &:not(*:disabled) {
250
- color: var(--color-lilac-100, color(display-p3 0.9492 0.917 0.9935)) !important;
251
- }
252
- }
253
- }
254
- }
255
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
256
- &:focus {
257
- color: var(--color-lilac-100, color(display-p3 0.9492 0.917 0.9935)) !important;
258
- }
200
+ background-color: var(--color-list-item-hover) !important;
259
201
  }
260
202
  padding-block: calc(0.25rem * 1.5);
261
203
  padding-right: calc(0.25rem * 2);
@@ -115,6 +115,8 @@
115
115
  position: absolute;
116
116
  inset: calc(0.25rem * 0);
117
117
  z-index: 10;
118
+ --tw-outline-style: none;
119
+ outline-style: none;
118
120
  }
119
121
  .table-row-link-label {
120
122
  position: absolute;
@@ -135,7 +137,7 @@
135
137
  outline-style: var(--tw-outline-style);
136
138
  outline-width: 2px;
137
139
  outline-offset: -2px;
138
- outline-color: var(--color-brand-primary, color(display-p3 0.7319 0.6108 0.8873));
140
+ outline-color: var(--color-focus-ring, color(display-p3 0.5242 0.2903 0.7705));
139
141
  }
140
142
  .table-body .table-row--clickable[data-state='selected'] {
141
143
  background-color: var(--color-list-item-current);
@@ -8,18 +8,18 @@
8
8
 
9
9
  .root {
10
10
  /* list-item: one selectable row (NavListItem; later DropdownMenuItem, SelectItem, CommandItem) */
11
- --eq-list-item-height: calc(var(--spacing) * 9); /* 36 */
12
- --eq-list-item-padding-x: calc(var(--spacing) * 2); /* 8 */
13
- --eq-list-item-gap: calc(var(--spacing) * 2); /* 8, icon to text */
14
- --eq-list-item-icon-size: calc(var(--spacing) * 4); /* 16 */
15
- --eq-list-item-font-size: var(--text-sm); /* 14 */
11
+ --eq-list-item-height: --spacing(9); /* 36 */
12
+ --eq-list-item-padding-x: --spacing(2); /* 8 */
13
+ --eq-list-item-gap: --spacing(2); /* 8, icon to text */
14
+ --eq-list-item-icon-size: --spacing(4); /* 16 */
15
+ --eq-list-item-font-size: --theme(--text-sm); /* 14 */
16
16
  --eq-list-item-muted-color: var(--color-text-tertiary);
17
17
  /* list: the rows together */
18
- --eq-list-gap: calc(var(--spacing) * 0.5); /* 2, between items */
19
- --eq-list-group-gap: calc(var(--spacing) * 3); /* 12, above a group label */
20
- --eq-list-label-gap: calc(var(--spacing) * 1); /* 4, label to its first item */
21
- --eq-list-label-font-size: var(--text-xs); /* 12 */
22
- --eq-list-indent: calc(var(--spacing) * 3); /* 12, child indent when items have no icons */
18
+ --eq-list-gap: --spacing(0.5); /* 2, between items */
19
+ --eq-list-group-gap: --spacing(3); /* 12, above a group label */
20
+ --eq-list-label-gap: --spacing(1); /* 4, label to its first item */
21
+ --eq-list-label-font-size: --theme(--text-xs); /* 12 */
22
+ --eq-list-indent: --spacing(3); /* 12, child indent when items have no icons */
23
23
  /* nav-motion: a drill-in and a folder opening share one motion. NavDrill reads these in
24
24
  JavaScript, folder groups in CSS */
25
25
  --eq-nav-motion-duration: 300ms;
@@ -33,7 +33,7 @@
33
33
  var(--color-text-secondary)
34
34
  );
35
35
  /* control: a stand-alone element */
36
- --eq-control-height: calc(var(--spacing) * 10); /* 40: rail item; later Button, Input */
36
+ --eq-control-height: --spacing(10); /* 40: rail item; later Button, Input */
37
37
  /* touch: the minimum tap target */
38
38
  --eq-touch-target: 0px;
39
39
 
@@ -1,23 +1,24 @@
1
1
  /* Never declare @theme { --spacing } here: it rewrites every utility to var(--spacing, …) and
2
2
  changes every component's compiled CSS. */
3
+ /* Never read var(--spacing) or var(--text-*) here: the theme is inline, so consumer builds leave them undefined. */
3
4
 
4
5
  /* DECISIONS: Equality's names, --eq-{thing}-{property}. Parts read only these: h-(--eq-list-item-height).
5
6
  theme-decisions-scoped.css is generated from this file: run `pnpm build:decisions` after
6
7
  changing it, or tests/theme-css.test.ts fails. */
7
8
  html {
8
9
  /* list-item: one selectable row (NavListItem; later DropdownMenuItem, SelectItem, CommandItem) */
9
- --eq-list-item-height: calc(var(--spacing) * 9); /* 36 */
10
- --eq-list-item-padding-x: calc(var(--spacing) * 2); /* 8 */
11
- --eq-list-item-gap: calc(var(--spacing) * 2); /* 8, icon to text */
12
- --eq-list-item-icon-size: calc(var(--spacing) * 4); /* 16 */
13
- --eq-list-item-font-size: var(--text-sm); /* 14 */
10
+ --eq-list-item-height: --spacing(9); /* 36 */
11
+ --eq-list-item-padding-x: --spacing(2); /* 8 */
12
+ --eq-list-item-gap: --spacing(2); /* 8, icon to text */
13
+ --eq-list-item-icon-size: --spacing(4); /* 16 */
14
+ --eq-list-item-font-size: --theme(--text-sm); /* 14 */
14
15
  --eq-list-item-muted-color: var(--color-text-tertiary);
15
16
  /* list: the rows together */
16
- --eq-list-gap: calc(var(--spacing) * 0.5); /* 2, between items */
17
- --eq-list-group-gap: calc(var(--spacing) * 3); /* 12, above a group label */
18
- --eq-list-label-gap: calc(var(--spacing) * 1); /* 4, label to its first item */
19
- --eq-list-label-font-size: var(--text-xs); /* 12 */
20
- --eq-list-indent: calc(var(--spacing) * 3); /* 12, child indent when items have no icons */
17
+ --eq-list-gap: --spacing(0.5); /* 2, between items */
18
+ --eq-list-group-gap: --spacing(3); /* 12, above a group label */
19
+ --eq-list-label-gap: --spacing(1); /* 4, label to its first item */
20
+ --eq-list-label-font-size: --theme(--text-xs); /* 12 */
21
+ --eq-list-indent: --spacing(3); /* 12, child indent when items have no icons */
21
22
  /* nav-motion: a drill-in and a folder opening share one motion. NavDrill reads these in
22
23
  JavaScript, folder groups in CSS */
23
24
  --eq-nav-motion-duration: 300ms;
@@ -31,7 +32,7 @@ html {
31
32
  var(--color-text-secondary)
32
33
  );
33
34
  /* control: a stand-alone element */
34
- --eq-control-height: calc(var(--spacing) * 10); /* 40: rail item; later Button, Input */
35
+ --eq-control-height: --spacing(10); /* 40: rail item; later Button, Input */
35
36
  /* touch: the minimum tap target */
36
37
  --eq-touch-target: 0px;
37
38
 
@@ -72,11 +72,7 @@
72
72
  }
73
73
 
74
74
  @utility dropdown-item-hover {
75
- @apply hover:not-disabled:text-lilac-700! focus:text-lilac-700!;
76
- @apply hover:not-disabled:bg-lilac-300/50! focus:bg-lilac-300/50!;
77
- @apply hover:not-disabled:shadow-sm;
78
- @apply dark:hover:not-disabled:bg-lilac-600/50! dark:focus:bg-lilac-600/50!;
79
- @apply dark:hover:not-disabled:text-lilac-100! dark:focus:text-lilac-100!;
75
+ @apply hover:not-disabled:bg-list-item-hover! focus:bg-list-item-hover!;
80
76
  }
81
77
 
82
78
  @utility dropdown-item {
@@ -7,8 +7,6 @@
7
7
  --color-amber-100: color(display-p3 0.9767 0.9238 0.8764);
8
8
  --color-blue-500: color(display-p3 0.2366 0.3261 0.7513);
9
9
  --spacing: 0.25rem;
10
- --text-xs: 0.75rem;
11
- --text-sm: 0.875rem;
12
10
  --radius-md: 0.375rem;
13
11
  --color-mixed-light: var(--mix-color);
14
12
  @supports (color: color-mix(in lab, red, red)) {
@@ -70,12 +68,8 @@
70
68
  --color-focus-ring: color(display-p3 0.5242 0.2903 0.7705);
71
69
  --color-greyscale-500: color(display-p3 0.5021 0.5021 0.5021);
72
70
  --color-greyscale-600: color(display-p3 0.3886 0.3886 0.3886);
73
- --color-lilac-100: color(display-p3 0.9492 0.917 0.9935);
74
- --color-lilac-300: color(display-p3 0.7319 0.6108 0.8873);
75
71
  --color-lilac-400: color(display-p3 0.6266 0.4562 0.8302);
76
72
  --color-lilac-500: color(display-p3 0.5242 0.2903 0.7705);
77
- --color-lilac-600: color(display-p3 0.4045 0.2306 0.6077);
78
- --color-lilac-700: color(display-p3 0.2927 0.172 0.4505);
79
73
  --color-resource-background-agent: color(display-p3 0.7135 0.8482 0.7942);
80
74
  --color-resource-background-benchmark-result: color(display-p3 0.8859 0.7455 0.9086);
81
75
  --color-resource-background-benchmark: color(display-p3 0.8859 0.7455 0.9086);
@@ -158,70 +152,12 @@
158
152
  &:hover {
159
153
  @media (hover: hover) {
160
154
  &:not(*:disabled) {
161
- color: var(--color-lilac-700) !important;
155
+ background-color: var(--color-list-item-hover) !important;
162
156
  }
163
157
  }
164
158
  }
165
159
  &:focus {
166
- color: var(--color-lilac-700) !important;
167
- }
168
- &:hover {
169
- @media (hover: hover) {
170
- &:not(*:disabled) {
171
- background-color: color-mix(in srgb, color(display-p3 0.7319 0.6108 0.8873) 50%, transparent) !important;
172
- @supports (color: color-mix(in lab, red, red)) {
173
- background-color: color-mix(in oklab, var(--color-lilac-300) 50%, transparent) !important;
174
- }
175
- }
176
- }
177
- }
178
- &:focus {
179
- background-color: color-mix(in srgb, color(display-p3 0.7319 0.6108 0.8873) 50%, transparent) !important;
180
- @supports (color: color-mix(in lab, red, red)) {
181
- background-color: color-mix(in oklab, var(--color-lilac-300) 50%, transparent) !important;
182
- }
183
- }
184
- &:hover {
185
- @media (hover: hover) {
186
- &:not(*:disabled) {
187
- --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
188
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
189
- }
190
- }
191
- }
192
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
193
- &:hover {
194
- @media (hover: hover) {
195
- &:not(*:disabled) {
196
- background-color: color-mix(in srgb, color(display-p3 0.4045 0.2306 0.6077) 50%, transparent) !important;
197
- @supports (color: color-mix(in lab, red, red)) {
198
- background-color: color-mix(in oklab, var(--color-lilac-600) 50%, transparent) !important;
199
- }
200
- }
201
- }
202
- }
203
- }
204
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
205
- &:focus {
206
- background-color: color-mix(in srgb, color(display-p3 0.4045 0.2306 0.6077) 50%, transparent) !important;
207
- @supports (color: color-mix(in lab, red, red)) {
208
- background-color: color-mix(in oklab, var(--color-lilac-600) 50%, transparent) !important;
209
- }
210
- }
211
- }
212
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
213
- &:hover {
214
- @media (hover: hover) {
215
- &:not(*:disabled) {
216
- color: var(--color-lilac-100) !important;
217
- }
218
- }
219
- }
220
- }
221
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
222
- &:focus {
223
- color: var(--color-lilac-100) !important;
224
- }
160
+ background-color: var(--color-list-item-hover) !important;
225
161
  }
226
162
  }
227
163
  .visible {
@@ -427,6 +363,24 @@
427
363
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
428
364
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
429
365
  }
366
+ .focus-ring {
367
+ --tw-ring-offset-color: var(--color-background);
368
+ &:focus-visible {
369
+ --tw-ring-color: var(--color-focus-ring);
370
+ }
371
+ &:focus-visible {
372
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
373
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
374
+ }
375
+ &:focus-visible {
376
+ --tw-ring-offset-width: 2px;
377
+ --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
378
+ }
379
+ &:focus-visible {
380
+ --tw-outline-style: none;
381
+ outline-style: none;
382
+ }
383
+ }
430
384
  .ring {
431
385
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
432
386
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -939,17 +893,17 @@
939
893
  --color-text-warning: color(display-p3 0.863 0.6958 0.4108);
940
894
  }
941
895
  .root {
942
- --eq-list-item-height: calc(var(--spacing) * 9);
943
- --eq-list-item-padding-x: calc(var(--spacing) * 2);
944
- --eq-list-item-gap: calc(var(--spacing) * 2);
945
- --eq-list-item-icon-size: calc(var(--spacing) * 4);
946
- --eq-list-item-font-size: var(--text-sm);
896
+ --eq-list-item-height: calc(0.25rem * 9);
897
+ --eq-list-item-padding-x: calc(0.25rem * 2);
898
+ --eq-list-item-gap: calc(0.25rem * 2);
899
+ --eq-list-item-icon-size: calc(0.25rem * 4);
900
+ --eq-list-item-font-size: 0.875rem;
947
901
  --eq-list-item-muted-color: var(--color-text-tertiary);
948
- --eq-list-gap: calc(var(--spacing) * 0.5);
949
- --eq-list-group-gap: calc(var(--spacing) * 3);
950
- --eq-list-label-gap: calc(var(--spacing) * 1);
951
- --eq-list-label-font-size: var(--text-xs);
952
- --eq-list-indent: calc(var(--spacing) * 3);
902
+ --eq-list-gap: calc(0.25rem * 0.5);
903
+ --eq-list-group-gap: calc(0.25rem * 3);
904
+ --eq-list-label-gap: calc(0.25rem * 1);
905
+ --eq-list-label-font-size: 0.75rem;
906
+ --eq-list-indent: calc(0.25rem * 3);
953
907
  --eq-nav-motion-duration: 300ms;
954
908
  --eq-nav-motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
955
909
  --eq-nav-motion-nudge: 12px;
@@ -958,7 +912,7 @@
958
912
  var(--color-text-primary),
959
913
  var(--color-text-secondary)
960
914
  );
961
- --eq-control-height: calc(var(--spacing) * 10);
915
+ --eq-control-height: calc(0.25rem * 10);
962
916
  --eq-touch-target: 0px;
963
917
  --color-list-item-current: color-mix(in srgb, color(display-p3 0 0 0) 10%, transparent);
964
918
  @supports (color: color-mix(in lab, red, red)) {
@@ -1136,6 +1090,31 @@
1136
1090
  display: none !important;
1137
1091
  }
1138
1092
  }
1093
+ @property --tw-border-style {
1094
+ syntax: "*";
1095
+ inherits: false;
1096
+ initial-value: solid;
1097
+ }
1098
+ @property --tw-rotate-x {
1099
+ syntax: "*";
1100
+ inherits: false;
1101
+ }
1102
+ @property --tw-rotate-y {
1103
+ syntax: "*";
1104
+ inherits: false;
1105
+ }
1106
+ @property --tw-rotate-z {
1107
+ syntax: "*";
1108
+ inherits: false;
1109
+ }
1110
+ @property --tw-skew-x {
1111
+ syntax: "*";
1112
+ inherits: false;
1113
+ }
1114
+ @property --tw-skew-y {
1115
+ syntax: "*";
1116
+ inherits: false;
1117
+ }
1139
1118
  @property --tw-shadow {
1140
1119
  syntax: "*";
1141
1120
  inherits: false;
@@ -1201,31 +1180,6 @@
1201
1180
  inherits: false;
1202
1181
  initial-value: 0 0 #0000;
1203
1182
  }
1204
- @property --tw-border-style {
1205
- syntax: "*";
1206
- inherits: false;
1207
- initial-value: solid;
1208
- }
1209
- @property --tw-rotate-x {
1210
- syntax: "*";
1211
- inherits: false;
1212
- }
1213
- @property --tw-rotate-y {
1214
- syntax: "*";
1215
- inherits: false;
1216
- }
1217
- @property --tw-rotate-z {
1218
- syntax: "*";
1219
- inherits: false;
1220
- }
1221
- @property --tw-skew-x {
1222
- syntax: "*";
1223
- inherits: false;
1224
- }
1225
- @property --tw-skew-y {
1226
- syntax: "*";
1227
- inherits: false;
1228
- }
1229
1183
  @property --tw-outline-style {
1230
1184
  syntax: "*";
1231
1185
  inherits: false;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "git+https://github.com/eqtylab/equality.git",
8
8
  "directory": "packages/ui"
9
9
  },
10
- "version": "5.3.3",
10
+ "version": "5.4.0",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
13
13
  "component library",