@eqtylab/equality 2.1.4 → 2.2.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.
@@ -166,7 +166,7 @@
166
166
  &:not(*:disabled) {
167
167
  background-color: var(--mix-color);
168
168
  @supports (color: color-mix(in lab, red, red)) {
169
- background-color: color-mix(in oklch, var(--mix-color), white var(--hover-lighten, 20%));
169
+ background-color: color-mix(in oklch, var(--mix-color), black var(--hover-darken, 20%));
170
170
  }
171
171
  }
172
172
  }
@@ -174,7 +174,27 @@
174
174
  &:focus {
175
175
  background-color: var(--mix-color);
176
176
  @supports (color: color-mix(in lab, red, red)) {
177
- background-color: color-mix(in oklch, var(--mix-color), white var(--hover-lighten, 20%));
177
+ background-color: color-mix(in oklch, var(--mix-color), black var(--hover-darken, 20%));
178
+ }
179
+ }
180
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
181
+ &:hover {
182
+ @media (hover: hover) {
183
+ &:not(*:disabled) {
184
+ background-color: var(--mix-color);
185
+ @supports (color: color-mix(in lab, red, red)) {
186
+ background-color: color-mix(in oklch, var(--mix-color), white var(--hover-lighten, 20%));
187
+ }
188
+ }
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
+ &:focus {
194
+ background-color: var(--mix-color);
195
+ @supports (color: color-mix(in lab, red, red)) {
196
+ background-color: color-mix(in oklch, var(--mix-color), white var(--hover-lighten, 20%));
197
+ }
178
198
  }
179
199
  }
180
200
  &[data-disabled] {
@@ -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 {
@@ -39,7 +39,7 @@
39
39
  @apply text-sm transition-colors;
40
40
  @apply relative rounded-sm;
41
41
  @apply outline-hidden select-none;
42
- @apply hover:not-disabled:bg-mixed-light focus:bg-mixed-light;
42
+ @apply dark:hover:not-disabled:bg-mixed-light dark:focus:bg-mixed-light hover:not-disabled:bg-mixed-dark focus:bg-mixed-dark;
43
43
  @apply data-disabled:pointer-events-none data-disabled:opacity-50;
44
44
  }
45
45
 
@@ -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.4",
5
+ "version": "2.2.0",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
8
8
  "component library",