@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.
@@ -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: var(--color-button-tertiary-border, color(display-p3 0.7432 0.7432 0.7432));
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: var(--segment-transition-duration);
43
- transition-duration: var(--segment-transition-duration);
44
- --tw-ease: var(--segment-transition-easing);
45
- transition-timing-function: var(--segment-transition-easing);
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: var(--segment-transition-duration);
68
- transition-duration: var(--segment-transition-duration);
69
- --tw-ease: var(--segment-transition-easing);
70
- transition-timing-function: var(--segment-transition-easing);
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: var(--segment-transition-duration);
159
- transition-duration: var(--segment-transition-duration);
160
- --tw-ease: var(--segment-transition-easing);
161
- transition-timing-function: var(--segment-transition-easing);
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
- background-color: var(--segment-active-fill);
174
- box-shadow: 0 1px 2px rgb(0 0 0 / 0.2),
175
- inset 0 1px 0px rgb(255 255 255 / 0.25);
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: var(--segment-transition-duration);
182
- transition-duration: var(--segment-transition-duration);
183
- --tw-ease: var(--segment-transition-easing);
184
- transition-timing-function: var(--segment-transition-easing);
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
  }
@@ -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
- border-color: var(--color-greyscale-400, color(display-p3 0.6205 0.6205 0.6205));
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
- border-color: var(--color-red-400, color(display-p3 0.8114 0.4167 0.3761));
131
- background-color: var(--color-red-800, color(display-p3 0.2625 0.1106 0.09605));
132
- color: var(--color-red-400, color(display-p3 0.8114 0.4167 0.3761));
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;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "git+https://github.com/eqtylab/equality.git",
8
8
  "directory": "packages/ui"
9
9
  },
10
- "version": "4.10.2",
10
+ "version": "4.11.0",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
13
13
  "component library",