@eqtylab/equality 2.1.5 → 2.2.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.
@@ -143,7 +143,6 @@
143
143
  padding-block: calc(0.25rem * 1.5);
144
144
  }
145
145
  .select-item {
146
- --mix-color: var(--color-background);
147
146
  cursor: pointer;
148
147
  display: flex;
149
148
  align-items: center;
@@ -161,27 +160,79 @@
161
160
  }
162
161
  -webkit-user-select: none;
163
162
  user-select: none;
163
+ &[data-disabled] {
164
+ pointer-events: none;
165
+ }
166
+ &[data-disabled] {
167
+ opacity: 50%;
168
+ }
169
+ &:hover {
170
+ @media (hover: hover) {
171
+ &:not(*:disabled) {
172
+ color: var(--color-lilac-700) !important;
173
+ }
174
+ }
175
+ }
176
+ &:focus {
177
+ color: var(--color-lilac-700) !important;
178
+ }
164
179
  &:hover {
165
180
  @media (hover: hover) {
166
181
  &:not(*:disabled) {
167
- background-color: var(--mix-color);
182
+ background-color: var(--color-lilac-300) !important;
168
183
  @supports (color: color-mix(in lab, red, red)) {
169
- background-color: color-mix(in oklch, var(--mix-color), white var(--hover-lighten, 20%));
184
+ background-color: color-mix(in oklab, var(--color-lilac-300) 50%, transparent) !important;
170
185
  }
171
186
  }
172
187
  }
173
188
  }
174
189
  &:focus {
175
- background-color: var(--mix-color);
190
+ background-color: var(--color-lilac-300) !important;
176
191
  @supports (color: color-mix(in lab, red, red)) {
177
- background-color: color-mix(in oklch, var(--mix-color), white var(--hover-lighten, 20%));
192
+ background-color: color-mix(in oklab, var(--color-lilac-300) 50%, transparent) !important;
178
193
  }
179
194
  }
180
- &[data-disabled] {
181
- pointer-events: none;
195
+ &:hover {
196
+ @media (hover: hover) {
197
+ &:not(*:disabled) {
198
+ --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));
199
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
200
+ }
201
+ }
182
202
  }
183
- &[data-disabled] {
184
- opacity: 50%;
203
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
204
+ &:hover {
205
+ @media (hover: hover) {
206
+ &:not(*:disabled) {
207
+ background-color: var(--color-lilac-600) !important;
208
+ @supports (color: color-mix(in lab, red, red)) {
209
+ background-color: color-mix(in oklab, var(--color-lilac-600) 50%, transparent) !important;
210
+ }
211
+ }
212
+ }
213
+ }
214
+ }
215
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
216
+ &:focus {
217
+ background-color: var(--color-lilac-600) !important;
218
+ @supports (color: color-mix(in lab, red, red)) {
219
+ background-color: color-mix(in oklab, var(--color-lilac-600) 50%, transparent) !important;
220
+ }
221
+ }
222
+ }
223
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
224
+ &:hover {
225
+ @media (hover: hover) {
226
+ &:not(*:disabled) {
227
+ color: var(--color-lilac-100) !important;
228
+ }
229
+ }
230
+ }
231
+ }
232
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
233
+ &:focus {
234
+ color: var(--color-lilac-100) !important;
235
+ }
185
236
  }
186
237
  padding-block: calc(0.25rem * 1.5);
187
238
  padding-right: calc(0.25rem * 2);
@@ -1,6 +1,8 @@
1
1
  /*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
2
2
  .table {
3
3
  width: 100%;
4
+ }
5
+ .table:has(.table-header--sticky-container) {
4
6
  overflow: auto;
5
7
  }
6
8
  .table-inner {
@@ -20,11 +22,16 @@
20
22
  grid-template-columns: subgrid;
21
23
  grid-column: 1 / -1;
22
24
  }
23
- .table-header--sticky {
25
+ .table-header--sticky-container {
24
26
  position: sticky;
25
27
  top: calc(0.25rem * 0);
26
28
  z-index: 10;
27
29
  }
30
+ .table-header--sticky-page {
31
+ position: sticky;
32
+ z-index: 10;
33
+ top: var(--table-sticky-top, 0);
34
+ }
28
35
  .table-body {
29
36
  & tr:last-child {
30
37
  border-style: var(--tw-border-style);
@@ -82,8 +89,8 @@
82
89
  }
83
90
  .table-row--clickable:not([data-state='selected']) {
84
91
  --mix-color: var(--color-brand-primary);
85
- --hover-darken: 50%;
86
- --hover-lighten: 50%;
92
+ --hover-darken: 55%;
93
+ --hover-lighten: 55%;
87
94
  cursor: pointer;
88
95
  }
89
96
  .table-row--clickable:not([data-state='selected']):hover:not(
@@ -113,7 +120,6 @@
113
120
  z-index: 20;
114
121
  }
115
122
  .table-row--linked:has(.table-row-link:focus-visible) {
116
- outline-width: 1px;
117
123
  outline-style: var(--tw-outline-style);
118
124
  outline-width: 2px;
119
125
  outline-offset: -2px;
@@ -138,10 +144,10 @@
138
144
  color: var(--color-text-secondary);
139
145
  }
140
146
  .table-border {
147
+ overflow: clip;
148
+ border-radius: var(--radius-md, 0.375rem);
141
149
  border-style: var(--tw-border-style);
142
150
  border-width: 1px;
143
- overflow: hidden;
144
- border-radius: var(--radius-md, 0.375rem);
145
151
  }
146
152
  .table--sunken .table-header,
147
153
  .table--sunken .table-footer {
@@ -32,15 +32,22 @@
32
32
  @apply data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95;
33
33
  }
34
34
 
35
+ @utility dropdown-item-hover {
36
+ @apply hover:not-disabled:text-lilac-700! focus:text-lilac-700!;
37
+ @apply hover:not-disabled:bg-lilac-300/50! focus:bg-lilac-300/50!;
38
+ @apply hover:not-disabled:shadow-sm;
39
+ @apply dark:hover:not-disabled:bg-lilac-600/50! dark:focus:bg-lilac-600/50!;
40
+ @apply dark:hover:not-disabled:text-lilac-100! dark:focus:text-lilac-100!;
41
+ }
42
+
35
43
  @utility dropdown-item {
36
- --mix-color: var(--color-background);
37
44
  @apply cursor-pointer;
38
45
  @apply flex items-center;
39
46
  @apply text-sm transition-colors;
40
47
  @apply relative rounded-sm;
41
48
  @apply outline-hidden select-none;
42
- @apply hover:not-disabled:bg-mixed-light focus:bg-mixed-light;
43
49
  @apply data-disabled:pointer-events-none data-disabled:opacity-50;
50
+ @apply dropdown-item-hover;
44
51
  }
45
52
 
46
53
  @utility animate-popup-overlay {
@@ -267,6 +267,7 @@
267
267
  --color-resource-token: var(--color-resource-token);
268
268
  --color-resource-tool: var(--color-resource-tool);
269
269
  --color-resource-unknown: var(--color-resource-unknown);
270
+ --color-text-danger: var(--color-text-danger);
270
271
  --color-text-link: var(--color-text-link);
271
272
  --color-text-primary: var(--color-text-primary);
272
273
  --color-text-secondary: var(--color-text-secondary);
@@ -707,6 +708,7 @@
707
708
  --color-teal-700: color(display-p3 0.1475 0.2946 0.2434);
708
709
  --color-teal-800: color(display-p3 0.09443 0.1941 0.159);
709
710
  --color-teal-900: color(display-p3 0.04463 0.1013 0.08089);
711
+ --color-text-danger: color(display-p3 0.5698 0.1873 0.1674);
710
712
  --color-text-link: color(display-p3 0.4045 0.2306 0.6077);
711
713
  --color-text-primary: color(display-p3 0 0 0);
712
714
  --color-text-secondary: color(display-p3 0.1792 0.1792 0.1792);
@@ -830,6 +832,7 @@
830
832
  --color-resource-text-token: color(display-p3 0.8033 0.8266 0.7044);
831
833
  --color-resource-text-tool: color(display-p3 0.9358 0.751 0.7228);
832
834
  --color-resource-text-unknown: color(display-p3 0.8698 0.8698 0.8698);
835
+ --color-text-danger: color(display-p3 0.8779 0.5865 0.5474);
833
836
  --color-text-link: color(display-p3 0.7319 0.6108 0.8873);
834
837
  --color-text-primary: color(display-p3 1 1 1);
835
838
  --color-text-secondary: color(display-p3 0.7432 0.7432 0.7432);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@eqtylab/equality",
3
3
  "description": "EQTYLab's component and token-based design system",
4
4
  "homepage": "https://equality.eqtylab.io/",
5
- "version": "2.1.5",
5
+ "version": "2.2.1",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
8
8
  "component library",