@eqtylab/equality 4.10.1 → 4.11.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.
- package/CHANGELOG.md +43 -0
- package/dist/badge.module.module.css.module.css +8 -3
- package/dist/button.module.module.css.module.css +155 -91
- package/dist/date-range-picker.module.module.css.module.css +32 -5
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/segmented-controls.module.module.css.module.css +39 -24
- package/dist/theme-base.css +35 -0
- package/dist/theme.module.module.css.module.css +9 -0
- package/dist/toast-components.module.module.css.module.css +39 -45
- package/package.json +1 -1
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
|
|
2
2
|
.segmented-controls {
|
|
3
|
-
--segment-transition-duration: 250ms;
|
|
4
|
-
--segment-transition-easing: cubic-bezier(0.32, 0.72, 0, 1);
|
|
5
3
|
border-style: var(--tw-border-style);
|
|
6
4
|
border-width: 1px;
|
|
7
|
-
border-color:
|
|
5
|
+
border-color: color-mix(in srgb, color(display-p3 0 0 0) 16%, transparent);
|
|
6
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
7
|
+
border-color: color-mix(in oklch, var(--color-text-primary) 16%, transparent);
|
|
8
|
+
}
|
|
9
|
+
&:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
|
|
10
|
+
border-color: color-mix(in srgb, color(display-p3 0 0 0) 22%, transparent);
|
|
11
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
12
|
+
border-color: color-mix(in oklch, var(--color-text-primary) 22%, transparent);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
8
15
|
display: flex;
|
|
9
16
|
border-radius: var(--radius-md, 0.375rem);
|
|
10
17
|
width: max-content;
|
|
11
18
|
overflow: hidden;
|
|
12
19
|
background-color: var(--color-button-tertiary-fill, color(display-p3 1 1 1));
|
|
13
20
|
position: relative;
|
|
14
|
-
--tw-shadow: inset 0 1px 2px var(--tw-shadow-color, rgb(0 0 0/0.08));
|
|
21
|
+
--tw-inset-shadow: inset 0 1px 2px var(--tw-inset-shadow-color, rgb(0 0 0 / 0.08));
|
|
15
22
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
16
23
|
&:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
|
|
17
|
-
--tw-shadow: inset 0 1px 2px var(--tw-shadow-color, rgb(0 0 0/0.35));
|
|
24
|
+
--tw-inset-shadow: inset 0 1px 2px var(--tw-inset-shadow-color, rgb(0 0 0 / 0.35));
|
|
18
25
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
19
26
|
}
|
|
20
27
|
}
|
|
@@ -39,10 +46,10 @@
|
|
|
39
46
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
40
47
|
transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
|
|
41
48
|
transition-duration: var(--tw-duration, 150ms);
|
|
42
|
-
--tw-duration:
|
|
43
|
-
transition-duration:
|
|
44
|
-
--tw-ease:
|
|
45
|
-
transition-timing-function:
|
|
49
|
+
--tw-duration: 250ms;
|
|
50
|
+
transition-duration: 250ms;
|
|
51
|
+
--tw-ease: cubic-bezier(0.32, 0.72, 0, 1);
|
|
52
|
+
transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
|
|
46
53
|
&:focus-visible {
|
|
47
54
|
--tw-outline-style: none;
|
|
48
55
|
outline-style: none;
|
|
@@ -64,10 +71,10 @@
|
|
|
64
71
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
65
72
|
transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
|
|
66
73
|
transition-duration: var(--tw-duration, 150ms);
|
|
67
|
-
--tw-duration:
|
|
68
|
-
transition-duration:
|
|
69
|
-
--tw-ease:
|
|
70
|
-
transition-timing-function:
|
|
74
|
+
--tw-duration: 250ms;
|
|
75
|
+
transition-duration: 250ms;
|
|
76
|
+
--tw-ease: cubic-bezier(0.32, 0.72, 0, 1);
|
|
77
|
+
transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
|
|
71
78
|
@media (prefers-reduced-motion: reduce) {
|
|
72
79
|
transition-property: none;
|
|
73
80
|
}
|
|
@@ -155,10 +162,10 @@
|
|
|
155
162
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
156
163
|
transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
|
|
157
164
|
transition-duration: var(--tw-duration, 150ms);
|
|
158
|
-
--tw-duration:
|
|
159
|
-
transition-duration:
|
|
160
|
-
--tw-ease:
|
|
161
|
-
transition-timing-function:
|
|
165
|
+
--tw-duration: 250ms;
|
|
166
|
+
transition-duration: 250ms;
|
|
167
|
+
--tw-ease: cubic-bezier(0.32, 0.72, 0, 1);
|
|
168
|
+
transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
|
|
162
169
|
@media (prefers-reduced-motion: reduce) {
|
|
163
170
|
transition-property: none;
|
|
164
171
|
}
|
|
@@ -170,18 +177,26 @@
|
|
|
170
177
|
left: 2px;
|
|
171
178
|
width: calc(var(--indicator-width) - 4px);
|
|
172
179
|
border-radius: 3px;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
180
|
+
--mix-color: var(--segment-active-fill);
|
|
181
|
+
background-color: var(--mix-color);
|
|
182
|
+
--tw-shadow: 0 1px 2px var(--tw-shadow-color, rgb(0 0 0 / 0.18)), 0 2px 6px -2px var(--tw-shadow-color, var(--mix-color, transparent)), inset 0 1px 0 var(--tw-shadow-color, rgb(255 255 255 / 0.25));
|
|
183
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
184
|
+
--tw-shadow: 0 1px 2px var(--tw-shadow-color, rgb(0 0 0 / 0.18)), 0 2px 6px -2px var(--tw-shadow-color, color-mix(in oklch, var(--mix-color, transparent) 25%, transparent)), inset 0 1px 0 var(--tw-shadow-color, rgb(255 255 255 / 0.25));
|
|
185
|
+
}
|
|
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
|
+
&:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
|
|
188
|
+
--tw-shadow: 0 1px 2px var(--tw-shadow-color, rgb(0 0 0 / 0.45)), inset 0 1px 0 var(--tw-shadow-color, rgb(255 255 255 / 0.25));
|
|
189
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
190
|
+
}
|
|
176
191
|
}
|
|
177
192
|
.active-segment-indicator--animated {
|
|
178
193
|
transition-property: transform,width,background-color;
|
|
179
194
|
transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
|
|
180
195
|
transition-duration: var(--tw-duration, 150ms);
|
|
181
|
-
--tw-duration:
|
|
182
|
-
transition-duration:
|
|
183
|
-
--tw-ease:
|
|
184
|
-
transition-timing-function:
|
|
196
|
+
--tw-duration: 250ms;
|
|
197
|
+
transition-duration: 250ms;
|
|
198
|
+
--tw-ease: cubic-bezier(0.32, 0.72, 0, 1);
|
|
199
|
+
transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
|
|
185
200
|
@media (prefers-reduced-motion: reduce) {
|
|
186
201
|
transition-property: none;
|
|
187
202
|
}
|
package/dist/theme-base.css
CHANGED
|
@@ -30,6 +30,41 @@
|
|
|
30
30
|
--color-shadow-raised: rgba(0, 0, 0, 0.05);
|
|
31
31
|
--color-shadow-overlay: rgba(0, 0, 0, 0.1);
|
|
32
32
|
|
|
33
|
+
/* SHADOW — keep in this inline block; --mix-color exists only on each control */
|
|
34
|
+
--shadow-control-raised:
|
|
35
|
+
0 1px 2px rgb(0 0 0 / 0.18),
|
|
36
|
+
0 2px 6px -2px color-mix(in oklch, var(--mix-color, transparent) 25%, transparent),
|
|
37
|
+
inset 0 1px 0 rgb(255 255 255 / 0.25);
|
|
38
|
+
--shadow-control-raised-dark: 0 1px 2px rgb(0 0 0 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.25);
|
|
39
|
+
--shadow-control-raised-soft: 0 1px 2px rgb(0 0 0 / 0.13), 0 2px 6px -2px rgb(0 0 0 / 0.09);
|
|
40
|
+
--shadow-control-raised-soft-dark: 0 1px 2px rgb(0 0 0 / 0.45);
|
|
41
|
+
--shadow-control-pressed: inset 0 1px 2px rgb(0 0 0 / 0.2);
|
|
42
|
+
--inset-shadow-control-sunken: inset 0 1px 2px rgb(0 0 0 / 0.08);
|
|
43
|
+
--inset-shadow-control-sunken-dark: inset 0 1px 2px rgb(0 0 0 / 0.35);
|
|
44
|
+
|
|
45
|
+
/* CONTROL SURFACES */
|
|
46
|
+
--color-control-edge: color-mix(in oklch, var(--color-text-primary) 16%, transparent);
|
|
47
|
+
--color-control-edge-dark: color-mix(in oklch, var(--color-text-primary) 22%, transparent);
|
|
48
|
+
--color-control-edge-top-dark: color-mix(in oklch, var(--color-text-primary) 34%, transparent);
|
|
49
|
+
--background-image-control-sheen: linear-gradient(
|
|
50
|
+
to bottom,
|
|
51
|
+
rgb(255 255 255 / 0.1),
|
|
52
|
+
rgb(255 255 255 / 0) 35%,
|
|
53
|
+
rgb(0 0 0 / 0.06)
|
|
54
|
+
);
|
|
55
|
+
--background-image-control-sheen-soft: linear-gradient(
|
|
56
|
+
to bottom,
|
|
57
|
+
transparent 35%,
|
|
58
|
+
rgb(0 0 0 / 0.04)
|
|
59
|
+
);
|
|
60
|
+
--background-image-control-sheen-soft-dark: linear-gradient(
|
|
61
|
+
to bottom,
|
|
62
|
+
rgb(255 255 255 / 0.06),
|
|
63
|
+
rgb(255 255 255 / 0) 35%,
|
|
64
|
+
rgb(0 0 0 / 0.1)
|
|
65
|
+
);
|
|
66
|
+
--ease-control: cubic-bezier(0.32, 0.72, 0, 1);
|
|
67
|
+
|
|
33
68
|
/* Animation */
|
|
34
69
|
--animate-grow-in: grow-in 800ms ease-in-out backwards;
|
|
35
70
|
--animate-fade-in: fade-in 800ms ease-in-out backwards;
|
|
@@ -405,6 +405,10 @@
|
|
|
405
405
|
--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));
|
|
406
406
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
407
407
|
}
|
|
408
|
+
.outline {
|
|
409
|
+
outline-style: var(--tw-outline-style);
|
|
410
|
+
outline-width: 1px;
|
|
411
|
+
}
|
|
408
412
|
.filter {
|
|
409
413
|
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
410
414
|
}
|
|
@@ -1147,6 +1151,11 @@
|
|
|
1147
1151
|
syntax: "*";
|
|
1148
1152
|
inherits: false;
|
|
1149
1153
|
}
|
|
1154
|
+
@property --tw-outline-style {
|
|
1155
|
+
syntax: "*";
|
|
1156
|
+
inherits: false;
|
|
1157
|
+
initial-value: solid;
|
|
1158
|
+
}
|
|
1150
1159
|
@property --tw-blur {
|
|
1151
1160
|
syntax: "*";
|
|
1152
1161
|
inherits: false;
|
|
@@ -50,34 +50,10 @@
|
|
|
50
50
|
border-radius: var(--radius-md, 0.375rem);
|
|
51
51
|
padding: calc(0.25rem * 4);
|
|
52
52
|
padding-right: calc(0.25rem * 8);
|
|
53
|
-
&[data-state="open"] {
|
|
54
|
-
animation: enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
|
|
55
|
-
}
|
|
56
|
-
&[data-state="open"] {
|
|
57
|
-
--tw-enter-translate-y: calc(1*-100%);
|
|
58
|
-
}
|
|
59
|
-
@media (width >= 40rem) {
|
|
60
|
-
&[data-state="open"] {
|
|
61
|
-
--tw-enter-translate-y: calc(1*100%);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
&[data-state="closed"] {
|
|
65
|
-
animation: exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
|
|
66
|
-
}
|
|
67
|
-
&[data-state="closed"] {
|
|
68
|
-
--tw-exit-opacity: calc(80/100);
|
|
69
|
-
--tw-exit-opacity: .8;
|
|
70
|
-
}
|
|
71
|
-
&[data-state="closed"] {
|
|
72
|
-
--tw-exit-translate-x: calc(1*100%);
|
|
73
|
-
}
|
|
74
53
|
&[data-swipe="end"] {
|
|
75
54
|
--tw-translate-x: var(--radix-toast-swipe-end-x);
|
|
76
55
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
77
56
|
}
|
|
78
|
-
&[data-swipe="end"] {
|
|
79
|
-
animation: exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
|
|
80
|
-
}
|
|
81
57
|
&[data-swipe="move"] {
|
|
82
58
|
--tw-translate-x: var(--radix-toast-swipe-move-x);
|
|
83
59
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -89,6 +65,39 @@
|
|
|
89
65
|
--tw-translate-x: calc(0.25rem * 0);
|
|
90
66
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
91
67
|
}
|
|
68
|
+
--toast-offset: calc(-100% - 1rem);
|
|
69
|
+
@media (width >= 40rem) {
|
|
70
|
+
--toast-offset: calc(100% + 1rem);
|
|
71
|
+
}
|
|
72
|
+
@media (prefers-reduced-motion: reduce) {
|
|
73
|
+
--toast-offset: 0;
|
|
74
|
+
}
|
|
75
|
+
&[data-state='open'] {
|
|
76
|
+
animation: toast-in 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
77
|
+
}
|
|
78
|
+
&[data-state='closed'] {
|
|
79
|
+
animation: toast-out 250ms cubic-bezier(0.4, 0, 1, 1) forwards;
|
|
80
|
+
}
|
|
81
|
+
&[data-swipe='end'] {
|
|
82
|
+
animation: toast-swipe-out 150ms ease-out forwards;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
@keyframes toast-in {
|
|
86
|
+
from {
|
|
87
|
+
opacity: 0;
|
|
88
|
+
transform: translateY(var(--toast-offset));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
@keyframes toast-out {
|
|
92
|
+
to {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
transform: translateY(var(--toast-offset));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
@keyframes toast-swipe-out {
|
|
98
|
+
to {
|
|
99
|
+
opacity: 0;
|
|
100
|
+
}
|
|
92
101
|
}
|
|
93
102
|
.toast--default {
|
|
94
103
|
border-color: var(--color-badge-text-primary, color(display-p3 0.1608 0.1145 0.3417));
|
|
@@ -115,15 +124,14 @@
|
|
|
115
124
|
line-height: var(--tw-leading, calc(1.25 / 0.875));
|
|
116
125
|
}
|
|
117
126
|
.toast--danger .toast-action {
|
|
118
|
-
|
|
127
|
+
--tw-inset-ring-shadow: inset 0 0 0 1px var(--tw-inset-ring-color, currentcolor);
|
|
128
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
129
|
+
--tw-inset-ring-color: var(--color-border, color(display-p3 0.7432 0.7432 0.7432));
|
|
119
130
|
}
|
|
120
131
|
.toast--danger:hover .toast-action:not(:disabled) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
color: var(--color-
|
|
124
|
-
}
|
|
125
|
-
.toast--danger:focus .toast-action {
|
|
126
|
-
--tw-ring-color: var(--color-red-400, color(display-p3 0.8114 0.4167 0.3761));
|
|
132
|
+
background-color: var(--color-button-danger-fill, color(display-p3 0.7365 0.2216 0.2026));
|
|
133
|
+
color: var(--color-button-danger-text, color(display-p3 1 1 1));
|
|
134
|
+
--tw-inset-ring-color: var(--color-button-danger-fill, color(display-p3 0.7365 0.2216 0.2026));
|
|
127
135
|
}
|
|
128
136
|
.toast-close {
|
|
129
137
|
color: inherit;
|
|
@@ -301,17 +309,3 @@
|
|
|
301
309
|
syntax: "*";
|
|
302
310
|
inherits: false;
|
|
303
311
|
}
|
|
304
|
-
@keyframes enter {
|
|
305
|
-
from {
|
|
306
|
-
opacity: var(--tw-enter-opacity,1);
|
|
307
|
-
transform: translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));
|
|
308
|
-
filter: blur(var(--tw-enter-blur,0));
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
@keyframes exit {
|
|
312
|
-
to {
|
|
313
|
-
opacity: var(--tw-exit-opacity,1);
|
|
314
|
-
transform: translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));
|
|
315
|
-
filter: blur(var(--tw-exit-blur,0));
|
|
316
|
-
}
|
|
317
|
-
}
|