@eqtylab/equality 5.3.4 → 5.4.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.
@@ -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.1",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
13
13
  "component library",