@eqtylab/equality 3.2.6 → 3.3.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.
@@ -87,6 +87,25 @@
87
87
  }
88
88
  }
89
89
  }
90
+ .button--warning {
91
+ --mix-color: var(--color-button-warning-fill);
92
+ background-color: var(--mix-color);
93
+ border-style: var(--tw-border-style);
94
+ border-width: 1px;
95
+ border-color: var(--color-button-warning-border, color(display-p3 0.6345 0.463 0.1863));
96
+ color: var(--color-button-warning-text, color(display-p3 1 1 1));
97
+ text-decoration-line: none;
98
+ &:hover {
99
+ @media (hover: hover) {
100
+ &:not(*:disabled) {
101
+ background-color: var(--mix-color);
102
+ @supports (color: color-mix(in lab, red, red)) {
103
+ background-color: color-mix(in oklch, var(--mix-color), black var(--hover-darken, 20%));
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
90
109
  .button--secondary {
91
110
  --mix-color: var(--color-button-secondary-fill);
92
111
  background-color: var(--mix-color);
@@ -173,7 +173,7 @@
173
173
  }
174
174
  }
175
175
  .dropdown-menu-item-danger {
176
- color: var(--color-text-danger, color(display-p3 0.5698 0.1873 0.1674)) !important;
176
+ color: var(--color-text-danger, color(display-p3 0.7365 0.2216 0.2026)) !important;
177
177
  &:hover {
178
178
  @media (hover: hover) {
179
179
  &:not(*:disabled) {
@@ -235,6 +235,72 @@
235
235
  }
236
236
  }
237
237
  }
238
+ .dropdown-menu-item-warning {
239
+ color: var(--color-yellow-700, color(display-p3 0.4487 0.322 0.1436)) !important;
240
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
241
+ color: var(--color-text-warning, color(display-p3 0.8263 0.6154 0.2247)) !important;
242
+ }
243
+ &:hover {
244
+ @media (hover: hover) {
245
+ &:not(*:disabled) {
246
+ color: var(--color-yellow-800, color(display-p3 0.2723 0.1933 0.09642)) !important;
247
+ }
248
+ }
249
+ }
250
+ &:focus {
251
+ color: var(--color-yellow-800, color(display-p3 0.2723 0.1933 0.09642)) !important;
252
+ }
253
+ &:hover {
254
+ @media (hover: hover) {
255
+ &:not(*:disabled) {
256
+ background-color: color-mix(in srgb, color(display-p3 0.8984 0.7748 0.5691) 50%, transparent) !important;
257
+ @supports (color: color-mix(in lab, red, red)) {
258
+ background-color: color-mix(in oklab, var(--color-yellow-300, color(display-p3 0.8984 0.7748 0.5691)) 50%, transparent) !important;
259
+ }
260
+ }
261
+ }
262
+ }
263
+ &:focus {
264
+ background-color: color-mix(in srgb, color(display-p3 0.8984 0.7748 0.5691) 50%, transparent) !important;
265
+ @supports (color: color-mix(in lab, red, red)) {
266
+ background-color: color-mix(in oklab, var(--color-yellow-300, color(display-p3 0.8984 0.7748 0.5691)) 50%, transparent) !important;
267
+ }
268
+ }
269
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
270
+ &:hover {
271
+ @media (hover: hover) {
272
+ &:not(*:disabled) {
273
+ background-color: color-mix(in srgb, color(display-p3 0.6345 0.463 0.1863) 50%, transparent) !important;
274
+ @supports (color: color-mix(in lab, red, red)) {
275
+ background-color: color-mix(in oklab, var(--color-yellow-600, color(display-p3 0.6345 0.463 0.1863)) 50%, transparent) !important;
276
+ }
277
+ }
278
+ }
279
+ }
280
+ }
281
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
282
+ &:focus {
283
+ background-color: color-mix(in srgb, color(display-p3 0.6345 0.463 0.1863) 50%, transparent) !important;
284
+ @supports (color: color-mix(in lab, red, red)) {
285
+ background-color: color-mix(in oklab, var(--color-yellow-600, color(display-p3 0.6345 0.463 0.1863)) 50%, transparent) !important;
286
+ }
287
+ }
288
+ }
289
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
290
+ &:hover {
291
+ @media (hover: hover) {
292
+ &:not(*:disabled) {
293
+ color: var(--color-yellow-200, color(display-p3 0.9327 0.8528 0.7204)) !important;
294
+ }
295
+ }
296
+ }
297
+ }
298
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
299
+ &:focus {
300
+ color: var(--color-yellow-200, color(display-p3 0.9327 0.8528 0.7204)) !important;
301
+ }
302
+ }
303
+ }
238
304
  .dropdown-menu-item-indicator-checkbox,
239
305
  .dropdown-menu-item-indicator-radio {
240
306
  position: absolute;
@@ -82,6 +82,9 @@
82
82
  --color-button-tertiary-border: color(display-p3 0.7432 0.7432 0.7432);
83
83
  --color-button-tertiary-fill: color(display-p3 1 1 1);
84
84
  --color-button-tertiary-text: color(display-p3 0 0 0);
85
+ --color-button-warning-border: color(display-p3 0.6345 0.463 0.1863);
86
+ --color-button-warning-fill: color(display-p3 0.8263 0.6154 0.2247);
87
+ --color-button-warning-text: color(display-p3 1 1 1);
85
88
  --color-card-background: color(display-p3 1 1 1);
86
89
  --color-card-border: color(display-p3 0.8698 0.8698 0.8698);
87
90
  --color-cyan-100: color(display-p3 0.8736 0.9466 0.9942);
@@ -245,11 +248,12 @@
245
248
  --color-teal-700: color(display-p3 0.1475 0.2946 0.2434);
246
249
  --color-teal-800: color(display-p3 0.09443 0.1941 0.159);
247
250
  --color-teal-900: color(display-p3 0.04463 0.1013 0.08089);
248
- --color-text-danger: color(display-p3 0.5698 0.1873 0.1674);
251
+ --color-text-danger: color(display-p3 0.7365 0.2216 0.2026);
249
252
  --color-text-link: color(display-p3 0.4045 0.2306 0.6077);
250
253
  --color-text-primary: color(display-p3 0 0 0);
251
254
  --color-text-secondary: color(display-p3 0.1792 0.1792 0.1792);
252
255
  --color-text-tertiary: color(display-p3 0.5021 0.5021 0.5021);
256
+ --color-text-warning: color(display-p3 0.8263 0.6154 0.2247);
253
257
  --color-white: color(display-p3 1 1 1);
254
258
  --color-yellow-100: color(display-p3 0.966 0.9299 0.8701);
255
259
  --color-yellow-200: color(display-p3 0.9327 0.8528 0.7204);
@@ -309,15 +313,17 @@
309
313
  --dark-color-border-top: color(display-p3 0.3328 0.3328 0.3426);
310
314
  --dark-color-border: color(display-p3 0.1792 0.1792 0.1792);
311
315
  --dark-color-button-danger-border: color(display-p3 0.7365 0.2216 0.2026);
312
- --dark-color-button-danger-fill: color(display-p3 0.8114 0.4167 0.3761);
313
- --dark-color-button-primary-border: color(display-p3 0.6266 0.4562 0.8302);
314
- --dark-color-button-primary-fill: color(display-p3 0.6266 0.4562 0.8302);
316
+ --dark-color-button-danger-fill: color(display-p3 0.7365 0.2216 0.2026);
317
+ --dark-color-button-primary-border: color(display-p3 0.5242 0.2903 0.7705);
318
+ --dark-color-button-primary-fill: color(display-p3 0.5242 0.2903 0.7705);
315
319
  --dark-color-button-secondary-border: color(display-p3 1 1 1);
316
320
  --dark-color-button-secondary-fill: color(display-p3 1 1 1);
317
321
  --dark-color-button-secondary-text: color(display-p3 0 0 0);
318
322
  --dark-color-button-tertiary-border: color(display-p3 0.2806 0.2806 0.2806);
319
323
  --dark-color-button-tertiary-fill: color(display-p3 0 0 0);
320
324
  --dark-color-button-tertiary-text: color(display-p3 1 1 1);
325
+ --dark-color-button-warning-border: color(display-p3 0.8263 0.6154 0.2247);
326
+ --dark-color-button-warning-fill: color(display-p3 0.8263 0.6154 0.2247);
321
327
  --dark-color-card-background: color(display-p3 0.0861 0.0861 0.0861);
322
328
  --dark-color-card-border: color(display-p3 0.1792 0.1792 0.1792);
323
329
  --dark-color-focus-ring: color(display-p3 0.7319 0.6108 0.8873);
@@ -368,9 +374,10 @@
368
374
  --dark-color-resource-text-token: color(display-p3 0.8033 0.8266 0.7044);
369
375
  --dark-color-resource-text-tool: color(display-p3 0.9358 0.751 0.7228);
370
376
  --dark-color-resource-text-unknown: color(display-p3 0.8698 0.8698 0.8698);
371
- --dark-color-text-danger: color(display-p3 0.8779 0.5865 0.5474);
372
- --dark-color-text-link: color(display-p3 0.7319 0.6108 0.8873);
377
+ --dark-color-text-danger: color(display-p3 0.8114 0.4167 0.3761);
378
+ --dark-color-text-link: color(display-p3 0.6266 0.4562 0.8302);
373
379
  --dark-color-text-primary: color(display-p3 1 1 1);
374
380
  --dark-color-text-secondary: color(display-p3 0.7432 0.7432 0.7432);
375
381
  --dark-color-text-tertiary: color(display-p3 0.5021 0.5021 0.5021);
382
+ --dark-color-text-warning: color(display-p3 0.863 0.6958 0.4108);
376
383
  }
@@ -47,15 +47,17 @@
47
47
  --color-border-top: color(display-p3 0.3328 0.3328 0.3426);
48
48
  --color-border: color(display-p3 0.1792 0.1792 0.1792);
49
49
  --color-button-danger-border: color(display-p3 0.7365 0.2216 0.2026);
50
- --color-button-danger-fill: color(display-p3 0.8114 0.4167 0.3761);
51
- --color-button-primary-border: color(display-p3 0.6266 0.4562 0.8302);
52
- --color-button-primary-fill: color(display-p3 0.6266 0.4562 0.8302);
50
+ --color-button-danger-fill: color(display-p3 0.7365 0.2216 0.2026);
51
+ --color-button-primary-border: color(display-p3 0.5242 0.2903 0.7705);
52
+ --color-button-primary-fill: color(display-p3 0.5242 0.2903 0.7705);
53
53
  --color-button-secondary-border: color(display-p3 1 1 1);
54
54
  --color-button-secondary-fill: color(display-p3 1 1 1);
55
55
  --color-button-secondary-text: color(display-p3 0 0 0);
56
56
  --color-button-tertiary-border: color(display-p3 0.2806 0.2806 0.2806);
57
57
  --color-button-tertiary-fill: color(display-p3 0 0 0);
58
58
  --color-button-tertiary-text: color(display-p3 1 1 1);
59
+ --color-button-warning-border: color(display-p3 0.8263 0.6154 0.2247);
60
+ --color-button-warning-fill: color(display-p3 0.8263 0.6154 0.2247);
59
61
  --color-card-background: color(display-p3 0.0861 0.0861 0.0861);
60
62
  --color-card-border: color(display-p3 0.1792 0.1792 0.1792);
61
63
  --color-focus-ring: color(display-p3 0.7319 0.6108 0.8873);
@@ -106,9 +108,10 @@
106
108
  --color-resource-text-token: color(display-p3 0.8033 0.8266 0.7044);
107
109
  --color-resource-text-tool: color(display-p3 0.9358 0.751 0.7228);
108
110
  --color-resource-text-unknown: color(display-p3 0.8698 0.8698 0.8698);
109
- --color-text-danger: color(display-p3 0.8779 0.5865 0.5474);
110
- --color-text-link: color(display-p3 0.7319 0.6108 0.8873);
111
+ --color-text-danger: color(display-p3 0.8114 0.4167 0.3761);
112
+ --color-text-link: color(display-p3 0.6266 0.4562 0.8302);
111
113
  --color-text-primary: color(display-p3 1 1 1);
112
114
  --color-text-secondary: color(display-p3 0.7432 0.7432 0.7432);
113
115
  --color-text-tertiary: color(display-p3 0.5021 0.5021 0.5021);
116
+ --color-text-warning: color(display-p3 0.863 0.6958 0.4108);
114
117
  }
@@ -47,15 +47,17 @@ html[data-equality-theme='dark'] {
47
47
  --color-border-top: color(display-p3 0.3328 0.3328 0.3426);
48
48
  --color-border: color(display-p3 0.1792 0.1792 0.1792);
49
49
  --color-button-danger-border: color(display-p3 0.7365 0.2216 0.2026);
50
- --color-button-danger-fill: color(display-p3 0.8114 0.4167 0.3761);
51
- --color-button-primary-border: color(display-p3 0.6266 0.4562 0.8302);
52
- --color-button-primary-fill: color(display-p3 0.6266 0.4562 0.8302);
50
+ --color-button-danger-fill: color(display-p3 0.7365 0.2216 0.2026);
51
+ --color-button-primary-border: color(display-p3 0.5242 0.2903 0.7705);
52
+ --color-button-primary-fill: color(display-p3 0.5242 0.2903 0.7705);
53
53
  --color-button-secondary-border: color(display-p3 1 1 1);
54
54
  --color-button-secondary-fill: color(display-p3 1 1 1);
55
55
  --color-button-secondary-text: color(display-p3 0 0 0);
56
56
  --color-button-tertiary-border: color(display-p3 0.2806 0.2806 0.2806);
57
57
  --color-button-tertiary-fill: color(display-p3 0 0 0);
58
58
  --color-button-tertiary-text: color(display-p3 1 1 1);
59
+ --color-button-warning-border: color(display-p3 0.8263 0.6154 0.2247);
60
+ --color-button-warning-fill: color(display-p3 0.8263 0.6154 0.2247);
59
61
  --color-card-background: color(display-p3 0.0861 0.0861 0.0861);
60
62
  --color-card-border: color(display-p3 0.1792 0.1792 0.1792);
61
63
  --color-focus-ring: color(display-p3 0.7319 0.6108 0.8873);
@@ -106,9 +108,10 @@ html[data-equality-theme='dark'] {
106
108
  --color-resource-text-token: color(display-p3 0.8033 0.8266 0.7044);
107
109
  --color-resource-text-tool: color(display-p3 0.9358 0.751 0.7228);
108
110
  --color-resource-text-unknown: color(display-p3 0.8698 0.8698 0.8698);
109
- --color-text-danger: color(display-p3 0.8779 0.5865 0.5474);
110
- --color-text-link: color(display-p3 0.7319 0.6108 0.8873);
111
+ --color-text-danger: color(display-p3 0.8114 0.4167 0.3761);
112
+ --color-text-link: color(display-p3 0.6266 0.4562 0.8302);
111
113
  --color-text-primary: color(display-p3 1 1 1);
112
114
  --color-text-secondary: color(display-p3 0.7432 0.7432 0.7432);
113
115
  --color-text-tertiary: color(display-p3 0.5021 0.5021 0.5021);
116
+ --color-text-warning: color(display-p3 0.863 0.6958 0.4108);
114
117
  }
@@ -86,6 +86,9 @@ html {
86
86
  --color-button-tertiary-border: color(display-p3 0.7432 0.7432 0.7432);
87
87
  --color-button-tertiary-fill: color(display-p3 1 1 1);
88
88
  --color-button-tertiary-text: color(display-p3 0 0 0);
89
+ --color-button-warning-border: color(display-p3 0.6345 0.463 0.1863);
90
+ --color-button-warning-fill: color(display-p3 0.8263 0.6154 0.2247);
91
+ --color-button-warning-text: color(display-p3 1 1 1);
89
92
  --color-card-background: color(display-p3 1 1 1);
90
93
  --color-card-border: color(display-p3 0.8698 0.8698 0.8698);
91
94
  --color-cyan-100: color(display-p3 0.8736 0.9466 0.9942);
@@ -249,11 +252,12 @@ html {
249
252
  --color-teal-700: color(display-p3 0.1475 0.2946 0.2434);
250
253
  --color-teal-800: color(display-p3 0.09443 0.1941 0.159);
251
254
  --color-teal-900: color(display-p3 0.04463 0.1013 0.08089);
252
- --color-text-danger: color(display-p3 0.5698 0.1873 0.1674);
255
+ --color-text-danger: color(display-p3 0.7365 0.2216 0.2026);
253
256
  --color-text-link: color(display-p3 0.4045 0.2306 0.6077);
254
257
  --color-text-primary: color(display-p3 0 0 0);
255
258
  --color-text-secondary: color(display-p3 0.1792 0.1792 0.1792);
256
259
  --color-text-tertiary: color(display-p3 0.5021 0.5021 0.5021);
260
+ --color-text-warning: color(display-p3 0.8263 0.6154 0.2247);
257
261
  --color-white: color(display-p3 1 1 1);
258
262
  --color-yellow-100: color(display-p3 0.966 0.9299 0.8701);
259
263
  --color-yellow-200: color(display-p3 0.9327 0.8528 0.7204);
@@ -86,6 +86,9 @@
86
86
  --color-button-tertiary-border: color(display-p3 0.7432 0.7432 0.7432);
87
87
  --color-button-tertiary-fill: color(display-p3 1 1 1);
88
88
  --color-button-tertiary-text: color(display-p3 0 0 0);
89
+ --color-button-warning-border: color(display-p3 0.6345 0.463 0.1863);
90
+ --color-button-warning-fill: color(display-p3 0.8263 0.6154 0.2247);
91
+ --color-button-warning-text: color(display-p3 1 1 1);
89
92
  --color-card-background: color(display-p3 1 1 1);
90
93
  --color-card-border: color(display-p3 0.8698 0.8698 0.8698);
91
94
  --color-cyan-100: color(display-p3 0.8736 0.9466 0.9942);
@@ -249,11 +252,12 @@
249
252
  --color-teal-700: color(display-p3 0.1475 0.2946 0.2434);
250
253
  --color-teal-800: color(display-p3 0.09443 0.1941 0.159);
251
254
  --color-teal-900: color(display-p3 0.04463 0.1013 0.08089);
252
- --color-text-danger: color(display-p3 0.5698 0.1873 0.1674);
255
+ --color-text-danger: color(display-p3 0.7365 0.2216 0.2026);
253
256
  --color-text-link: color(display-p3 0.4045 0.2306 0.6077);
254
257
  --color-text-primary: color(display-p3 0 0 0);
255
258
  --color-text-secondary: color(display-p3 0.1792 0.1792 0.1792);
256
259
  --color-text-tertiary: color(display-p3 0.5021 0.5021 0.5021);
260
+ --color-text-warning: color(display-p3 0.8263 0.6154 0.2247);
257
261
  --color-white: color(display-p3 1 1 1);
258
262
  --color-yellow-100: color(display-p3 0.966 0.9299 0.8701);
259
263
  --color-yellow-200: color(display-p3 0.9327 0.8528 0.7204);
@@ -86,6 +86,9 @@
86
86
  --color-button-tertiary-border: color(display-p3 0.7432 0.7432 0.7432);
87
87
  --color-button-tertiary-fill: color(display-p3 1 1 1);
88
88
  --color-button-tertiary-text: color(display-p3 0 0 0);
89
+ --color-button-warning-border: color(display-p3 0.6345 0.463 0.1863);
90
+ --color-button-warning-fill: color(display-p3 0.8263 0.6154 0.2247);
91
+ --color-button-warning-text: color(display-p3 1 1 1);
89
92
  --color-card-background: color(display-p3 1 1 1);
90
93
  --color-card-border: color(display-p3 0.8698 0.8698 0.8698);
91
94
  --color-cyan-100: color(display-p3 0.8736 0.9466 0.9942);
@@ -249,11 +252,12 @@
249
252
  --color-teal-700: color(display-p3 0.1475 0.2946 0.2434);
250
253
  --color-teal-800: color(display-p3 0.09443 0.1941 0.159);
251
254
  --color-teal-900: color(display-p3 0.04463 0.1013 0.08089);
252
- --color-text-danger: color(display-p3 0.5698 0.1873 0.1674);
255
+ --color-text-danger: color(display-p3 0.7365 0.2216 0.2026);
253
256
  --color-text-link: color(display-p3 0.4045 0.2306 0.6077);
254
257
  --color-text-primary: color(display-p3 0 0 0);
255
258
  --color-text-secondary: color(display-p3 0.1792 0.1792 0.1792);
256
259
  --color-text-tertiary: color(display-p3 0.5021 0.5021 0.5021);
260
+ --color-text-warning: color(display-p3 0.8263 0.6154 0.2247);
257
261
  --color-white: color(display-p3 1 1 1);
258
262
  --color-yellow-100: color(display-p3 0.966 0.9299 0.8701);
259
263
  --color-yellow-200: color(display-p3 0.9327 0.8528 0.7204);
package/dist/index.cjs CHANGED
@@ -354,6 +354,7 @@ var buttonVariants = classVarianceAuthority.cva(styles3__default.default["button
354
354
  variant: {
355
355
  primary: styles3__default.default["button--primary"],
356
356
  danger: styles3__default.default["button--danger"],
357
+ warning: styles3__default.default["button--warning"],
357
358
  secondary: styles3__default.default["button--secondary"],
358
359
  tertiary: styles3__default.default["button--tertiary"],
359
360
  link: styles3__default.default["button--link"],
@@ -2145,6 +2146,7 @@ var DropdownMenuItem = React15__namespace.forwardRef(({ className, inset, varian
2145
2146
  className: cn(
2146
2147
  styles22__default.default["dropdown-menu-item"],
2147
2148
  inset && styles22__default.default["dropdown-menu-inset"],
2149
+ variant === "warning" && styles22__default.default["dropdown-menu-item-warning"],
2148
2150
  variant === "danger" && styles22__default.default["dropdown-menu-item-danger"],
2149
2151
  className
2150
2152
  ),