@eqtylab/equality 2.2.0 → 2.2.2

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,29 +160,53 @@
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), black var(--hover-darken, 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), black var(--hover-darken, 20%));
192
+ background-color: color-mix(in oklab, var(--color-lilac-300) 50%, transparent) !important;
193
+ }
194
+ }
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
+ }
178
201
  }
179
202
  }
180
203
  &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
181
204
  &:hover {
182
205
  @media (hover: hover) {
183
206
  &:not(*:disabled) {
184
- background-color: var(--mix-color);
207
+ background-color: var(--color-lilac-600) !important;
185
208
  @supports (color: color-mix(in lab, red, red)) {
186
- background-color: color-mix(in oklch, var(--mix-color), white var(--hover-lighten, 20%));
209
+ background-color: color-mix(in oklab, var(--color-lilac-600) 50%, transparent) !important;
187
210
  }
188
211
  }
189
212
  }
@@ -191,17 +214,25 @@
191
214
  }
192
215
  &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
193
216
  &:focus {
194
- background-color: var(--mix-color);
217
+ background-color: var(--color-lilac-600) !important;
195
218
  @supports (color: color-mix(in lab, red, red)) {
196
- background-color: color-mix(in oklch, var(--mix-color), white var(--hover-lighten, 20%));
219
+ background-color: color-mix(in oklab, var(--color-lilac-600) 50%, transparent) !important;
197
220
  }
198
221
  }
199
222
  }
200
- &[data-disabled] {
201
- pointer-events: none;
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
+ }
202
231
  }
203
- &[data-disabled] {
204
- opacity: 50%;
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
+ }
205
236
  }
206
237
  padding-block: calc(0.25rem * 1.5);
207
238
  padding-right: calc(0.25rem * 2);
@@ -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 dark:hover:not-disabled:bg-mixed-light dark:focus:bg-mixed-light hover:not-disabled:bg-mixed-dark focus:bg-mixed-dark;
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 {
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.2.0",
5
+ "version": "2.2.2",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
8
8
  "component library",