@eqtylab/equality 4.10.2 → 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 +34 -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 +6 -7
- 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;
|
|
@@ -124,15 +124,14 @@
|
|
|
124
124
|
line-height: var(--tw-leading, calc(1.25 / 0.875));
|
|
125
125
|
}
|
|
126
126
|
.toast--danger .toast-action {
|
|
127
|
-
|
|
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));
|
|
128
130
|
}
|
|
129
131
|
.toast--danger:hover .toast-action:not(:disabled) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
color: var(--color-
|
|
133
|
-
}
|
|
134
|
-
.toast--danger:focus .toast-action {
|
|
135
|
-
--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));
|
|
136
135
|
}
|
|
137
136
|
.toast-close {
|
|
138
137
|
color: inherit;
|