@eqtylab/equality 5.3.4 → 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,30 @@
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
+
5
29
  ## 5.3.4 - 2026-11-06
6
30
 
7
31
  ### Fixed
@@ -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);
package/dist/index.d.cts CHANGED
@@ -132,7 +132,7 @@ declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<Ale
132
132
  * [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
133
133
  */
134
134
  declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
135
- variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
135
+ variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
136
136
  size?: "sm" | "md" | "lg" | null | undefined;
137
137
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
138
138
  prefix?: React$1.ReactNode;
@@ -151,7 +151,7 @@ declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<Ale
151
151
  * [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
152
152
  */
153
153
  declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
154
- variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
154
+ variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
155
155
  size?: "sm" | "md" | "lg" | null | undefined;
156
156
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
157
157
  prefix?: React$1.ReactNode;
@@ -452,7 +452,7 @@ declare const BgGradient: ({ theme, placement, }: {
452
452
  }) => react_jsx_runtime.JSX.Element;
453
453
 
454
454
  declare const buttonVariants: (props?: ({
455
- variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
455
+ variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
456
456
  size?: "sm" | "md" | "lg" | null | undefined;
457
457
  } & class_variance_authority_types.ClassProp) | undefined) => string;
458
458
  type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
package/dist/index.d.ts CHANGED
@@ -132,7 +132,7 @@ declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<Ale
132
132
  * [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
133
133
  */
134
134
  declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
135
- variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
135
+ variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
136
136
  size?: "sm" | "md" | "lg" | null | undefined;
137
137
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
138
138
  prefix?: React$1.ReactNode;
@@ -151,7 +151,7 @@ declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<Ale
151
151
  * [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
152
152
  */
153
153
  declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
154
- variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
154
+ variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
155
155
  size?: "sm" | "md" | "lg" | null | undefined;
156
156
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
157
157
  prefix?: React$1.ReactNode;
@@ -452,7 +452,7 @@ declare const BgGradient: ({ theme, placement, }: {
452
452
  }) => react_jsx_runtime.JSX.Element;
453
453
 
454
454
  declare const buttonVariants: (props?: ({
455
- variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
455
+ variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
456
456
  size?: "sm" | "md" | "lg" | null | undefined;
457
457
  } & class_variance_authority_types.ClassProp) | undefined) => string;
458
458
  type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
@@ -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);
@@ -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 {
@@ -68,12 +68,8 @@
68
68
  --color-focus-ring: color(display-p3 0.5242 0.2903 0.7705);
69
69
  --color-greyscale-500: color(display-p3 0.5021 0.5021 0.5021);
70
70
  --color-greyscale-600: color(display-p3 0.3886 0.3886 0.3886);
71
- --color-lilac-100: color(display-p3 0.9492 0.917 0.9935);
72
- --color-lilac-300: color(display-p3 0.7319 0.6108 0.8873);
73
71
  --color-lilac-400: color(display-p3 0.6266 0.4562 0.8302);
74
72
  --color-lilac-500: color(display-p3 0.5242 0.2903 0.7705);
75
- --color-lilac-600: color(display-p3 0.4045 0.2306 0.6077);
76
- --color-lilac-700: color(display-p3 0.2927 0.172 0.4505);
77
73
  --color-resource-background-agent: color(display-p3 0.7135 0.8482 0.7942);
78
74
  --color-resource-background-benchmark-result: color(display-p3 0.8859 0.7455 0.9086);
79
75
  --color-resource-background-benchmark: color(display-p3 0.8859 0.7455 0.9086);
@@ -156,70 +152,12 @@
156
152
  &:hover {
157
153
  @media (hover: hover) {
158
154
  &:not(*:disabled) {
159
- color: var(--color-lilac-700) !important;
155
+ background-color: var(--color-list-item-hover) !important;
160
156
  }
161
157
  }
162
158
  }
163
159
  &:focus {
164
- color: var(--color-lilac-700) !important;
165
- }
166
- &:hover {
167
- @media (hover: hover) {
168
- &:not(*:disabled) {
169
- background-color: color-mix(in srgb, color(display-p3 0.7319 0.6108 0.8873) 50%, transparent) !important;
170
- @supports (color: color-mix(in lab, red, red)) {
171
- background-color: color-mix(in oklab, var(--color-lilac-300) 50%, transparent) !important;
172
- }
173
- }
174
- }
175
- }
176
- &:focus {
177
- background-color: color-mix(in srgb, color(display-p3 0.7319 0.6108 0.8873) 50%, transparent) !important;
178
- @supports (color: color-mix(in lab, red, red)) {
179
- background-color: color-mix(in oklab, var(--color-lilac-300) 50%, transparent) !important;
180
- }
181
- }
182
- &:hover {
183
- @media (hover: hover) {
184
- &:not(*:disabled) {
185
- --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));
186
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
187
- }
188
- }
189
- }
190
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
191
- &:hover {
192
- @media (hover: hover) {
193
- &:not(*:disabled) {
194
- background-color: color-mix(in srgb, color(display-p3 0.4045 0.2306 0.6077) 50%, transparent) !important;
195
- @supports (color: color-mix(in lab, red, red)) {
196
- background-color: color-mix(in oklab, var(--color-lilac-600) 50%, transparent) !important;
197
- }
198
- }
199
- }
200
- }
201
- }
202
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
203
- &:focus {
204
- background-color: color-mix(in srgb, color(display-p3 0.4045 0.2306 0.6077) 50%, transparent) !important;
205
- @supports (color: color-mix(in lab, red, red)) {
206
- background-color: color-mix(in oklab, var(--color-lilac-600) 50%, transparent) !important;
207
- }
208
- }
209
- }
210
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
211
- &:hover {
212
- @media (hover: hover) {
213
- &:not(*:disabled) {
214
- color: var(--color-lilac-100) !important;
215
- }
216
- }
217
- }
218
- }
219
- &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
220
- &:focus {
221
- color: var(--color-lilac-100) !important;
222
- }
160
+ background-color: var(--color-list-item-hover) !important;
223
161
  }
224
162
  }
225
163
  .visible {
@@ -425,6 +363,24 @@
425
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));
426
364
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
427
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
+ }
428
384
  .ring {
429
385
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
430
386
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -1134,6 +1090,31 @@
1134
1090
  display: none !important;
1135
1091
  }
1136
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
+ }
1137
1118
  @property --tw-shadow {
1138
1119
  syntax: "*";
1139
1120
  inherits: false;
@@ -1199,31 +1180,6 @@
1199
1180
  inherits: false;
1200
1181
  initial-value: 0 0 #0000;
1201
1182
  }
1202
- @property --tw-border-style {
1203
- syntax: "*";
1204
- inherits: false;
1205
- initial-value: solid;
1206
- }
1207
- @property --tw-rotate-x {
1208
- syntax: "*";
1209
- inherits: false;
1210
- }
1211
- @property --tw-rotate-y {
1212
- syntax: "*";
1213
- inherits: false;
1214
- }
1215
- @property --tw-rotate-z {
1216
- syntax: "*";
1217
- inherits: false;
1218
- }
1219
- @property --tw-skew-x {
1220
- syntax: "*";
1221
- inherits: false;
1222
- }
1223
- @property --tw-skew-y {
1224
- syntax: "*";
1225
- inherits: false;
1226
- }
1227
1183
  @property --tw-outline-style {
1228
1184
  syntax: "*";
1229
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.4",
10
+ "version": "5.4.0",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
13
13
  "component library",