@eqtylab/equality 4.10.2 → 4.12.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,22 +1,29 @@
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));
8
- display: flex;
9
- border-radius: var(--radius-md, 0.375rem);
10
- width: max-content;
11
- overflow: hidden;
12
- background-color: var(--color-button-tertiary-fill, color(display-p3 1 1 1));
13
- position: relative;
14
- --tw-shadow: inset 0 1px 2px var(--tw-shadow-color, rgb(0 0 0/0.08));
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
+ }
15
+ --tw-inset-shadow: inset 0 1px 2px var(--tw-inset-shadow-color, rgb(0 0 0 / 0.08));
15
16
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
16
17
  &: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));
18
+ --tw-inset-shadow: inset 0 1px 2px var(--tw-inset-shadow-color, rgb(0 0 0 / 0.35));
18
19
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
19
20
  }
21
+ overflow: hidden;
22
+ border-radius: var(--radius-md, 0.375rem);
23
+ display: flex;
24
+ width: max-content;
25
+ background-color: var(--color-button-tertiary-fill, color(display-p3 1 1 1));
26
+ position: relative;
20
27
  }
21
28
  .segment {
22
29
  border-radius: 0 !important;
@@ -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;
@@ -50,39 +57,44 @@
50
57
  @media (prefers-reduced-motion: reduce) {
51
58
  transition-property: none;
52
59
  }
53
- }
54
- .segment::before,
55
- .segment::after {
56
- content: '';
57
- pointer-events: none;
58
- position: absolute;
59
- }
60
- .segment::before {
61
- inset: 2px;
62
- z-index: calc(10 * -1);
63
- border-radius: 3px;
64
- transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
65
- transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
66
- 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);
71
- @media (prefers-reduced-motion: reduce) {
72
- transition-property: none;
60
+ &::before {
61
+ content: '';
62
+ pointer-events: none;
63
+ position: absolute;
64
+ inset: 2px;
65
+ z-index: -1;
66
+ border-radius: 3px;
67
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
68
+ transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
69
+ transition-duration: var(--tw-duration, 150ms);
70
+ --tw-duration: 250ms;
71
+ transition-duration: 250ms;
72
+ --tw-ease: cubic-bezier(0.32, 0.72, 0, 1);
73
+ transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
74
+ @media (prefers-reduced-motion: reduce) {
75
+ transition-property: none;
76
+ }
73
77
  }
74
- }
75
- .segment--inactive:hover::before {
76
- background-color: color-mix(in srgb, color(display-p3 0 0 0) 8%, transparent);
77
- @supports (color: color-mix(in lab, red, red)) {
78
- background-color: color-mix(in oklab, var(--color-text-primary, color(display-p3 0 0 0)) 8%, transparent);
78
+ &:focus-visible::after {
79
+ content: '';
80
+ pointer-events: none;
81
+ position: absolute;
82
+ inset: calc(0.25rem * 0);
83
+ border-radius: 5px;
84
+ box-shadow: inset 0 0 0 2px var(--color-focus-ring), inset 0 0 0 4px var(--color-background);
79
85
  }
80
86
  }
81
- .segment:focus-visible::after {
82
- inset: calc(0.25rem * 0);
83
- border-radius: 5px;
84
- box-shadow: inset 0 0 0 2px var(--color-focus-ring),
85
- inset 0 0 0 2px var(--color-background);
87
+ .segment--inactive {
88
+ &:hover {
89
+ @media (hover: hover) {
90
+ &::before {
91
+ background-color: color-mix(in srgb, color(display-p3 0 0 0) 8%, transparent);
92
+ @supports (color: color-mix(in lab, red, red)) {
93
+ background-color: color-mix(in oklab, var(--color-text-primary, color(display-p3 0 0 0)) 8%, transparent);
94
+ }
95
+ }
96
+ }
97
+ }
86
98
  }
87
99
  .segment--icon-only {
88
100
  display: flex;
@@ -141,9 +153,15 @@
141
153
  .segment--inactive .segment-icon {
142
154
  color: var(--color-text-secondary, color(display-p3 0.1792 0.1792 0.1792));
143
155
  }
144
- .segment--inactive:hover,
145
- .segment--inactive:hover .segment-icon {
146
- color: var(--color-text-primary, color(display-p3 0 0 0));
156
+ .segment--inactive {
157
+ &:hover {
158
+ @media (hover: hover) {
159
+ &,
160
+ & .segment-icon {
161
+ color: var(--color-text-primary, color(display-p3 0 0 0));
162
+ }
163
+ }
164
+ }
147
165
  }
148
166
  .segment-icon,
149
167
  .segment-suffix {
@@ -155,10 +173,10 @@
155
173
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
156
174
  transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
157
175
  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);
176
+ --tw-duration: 250ms;
177
+ transition-duration: 250ms;
178
+ --tw-ease: cubic-bezier(0.32, 0.72, 0, 1);
179
+ transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
162
180
  @media (prefers-reduced-motion: reduce) {
163
181
  transition-property: none;
164
182
  }
@@ -170,18 +188,26 @@
170
188
  left: 2px;
171
189
  width: calc(var(--indicator-width) - 4px);
172
190
  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);
191
+ --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));
192
+ @supports (color: color-mix(in lab, red, red)) {
193
+ --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));
194
+ }
195
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
196
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
197
+ --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));
198
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
199
+ }
200
+ --mix-color: var(--segment-active-fill);
201
+ background-color: var(--mix-color);
176
202
  }
177
203
  .active-segment-indicator--animated {
178
204
  transition-property: transform,width,background-color;
179
205
  transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
180
206
  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);
207
+ --tw-duration: 250ms;
208
+ transition-duration: 250ms;
209
+ --tw-ease: cubic-bezier(0.32, 0.72, 0, 1);
210
+ transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
185
211
  @media (prefers-reduced-motion: reduce) {
186
212
  transition-property: none;
187
213
  }
@@ -9,10 +9,18 @@
9
9
  .tabs-trigger {
10
10
  position: relative;
11
11
  z-index: 10;
12
+ cursor: pointer;
12
13
  white-space: nowrap;
13
- transition-property: all;
14
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
14
15
  transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
15
16
  transition-duration: var(--tw-duration, 150ms);
17
+ --tw-duration: 250ms;
18
+ transition-duration: 250ms;
19
+ --tw-ease: cubic-bezier(0.32, 0.72, 0, 1);
20
+ transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
21
+ @media (prefers-reduced-motion: reduce) {
22
+ transition-property: none;
23
+ }
16
24
  padding-inline: calc(0.25rem * 3);
17
25
  padding-block: calc(0.25rem * 1.5);
18
26
  font-size: 1.125rem;
@@ -65,6 +73,14 @@
65
73
  outline-style: none;
66
74
  }
67
75
  }
76
+ @property --tw-duration {
77
+ syntax: "*";
78
+ inherits: false;
79
+ }
80
+ @property --tw-ease {
81
+ syntax: "*";
82
+ inherits: false;
83
+ }
68
84
  @property --tw-font-weight {
69
85
  syntax: "*";
70
86
  inherits: false;
@@ -12,17 +12,63 @@
12
12
  border-color: var(--color-border, color(display-p3 0.7432 0.7432 0.7432));
13
13
  }
14
14
  .tabs-list--filled {
15
- background-color: var(--color-background-sunken, color(display-p3 0.8648 0.8708 0.8779));
16
- --tw-inset-shadow: inset 0 1px 1px var(--tw-inset-shadow-color, rgb(0 0 0 / 0.05));
15
+ border-style: var(--tw-border-style);
16
+ border-width: 1px;
17
+ border-color: color-mix(in srgb, color(display-p3 0 0 0) 16%, transparent);
18
+ @supports (color: color-mix(in lab, red, red)) {
19
+ border-color: color-mix(in oklch, var(--color-text-primary) 16%, transparent);
20
+ }
21
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
22
+ border-color: color-mix(in srgb, color(display-p3 0 0 0) 22%, transparent);
23
+ @supports (color: color-mix(in lab, red, red)) {
24
+ border-color: color-mix(in oklch, var(--color-text-primary) 22%, transparent);
25
+ }
26
+ }
27
+ --tw-inset-shadow: inset 0 1px 2px var(--tw-inset-shadow-color, rgb(0 0 0 / 0.08));
17
28
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
29
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
30
+ --tw-inset-shadow: inset 0 1px 2px var(--tw-inset-shadow-color, rgb(0 0 0 / 0.35));
31
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
32
+ }
18
33
  overflow: hidden;
19
34
  border-radius: var(--radius-md, 0.375rem);
35
+ background-color: var(--color-background-sunken, color(display-p3 0.8648 0.8708 0.8779));
36
+ }
37
+ .tabs-trigger--filled,
38
+ .tabs-trigger--transparent {
39
+ align-self: stretch;
20
40
  }
21
41
  .tabs-trigger--filled {
22
42
  width: 100%;
23
43
  padding-inline: calc(0.25rem * 3);
24
44
  padding-block: calc(0.25rem * 1.5);
25
45
  color: var(--color-text-secondary, color(display-p3 0.1792 0.1792 0.1792));
46
+ &::before {
47
+ content: '';
48
+ pointer-events: none;
49
+ position: absolute;
50
+ inset: 2px;
51
+ z-index: -1;
52
+ border-radius: 3px;
53
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
54
+ transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
55
+ transition-duration: var(--tw-duration, 150ms);
56
+ --tw-duration: 250ms;
57
+ transition-duration: 250ms;
58
+ --tw-ease: cubic-bezier(0.32, 0.72, 0, 1);
59
+ transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
60
+ @media (prefers-reduced-motion: reduce) {
61
+ transition-property: none;
62
+ }
63
+ }
64
+ &:focus-visible::after {
65
+ content: '';
66
+ pointer-events: none;
67
+ position: absolute;
68
+ inset: calc(0.25rem * 0);
69
+ border-radius: 5px;
70
+ box-shadow: inset 0 0 0 2px var(--color-focus-ring), inset 0 0 0 4px var(--color-background);
71
+ }
26
72
  }
27
73
  .tabs-icon {
28
74
  color: inherit;
@@ -37,6 +83,47 @@
37
83
  color: var(--color-text-primary, color(display-p3 0 0 0));
38
84
  }
39
85
  }
86
+ .tabs-trigger--transparent::before {
87
+ content: '';
88
+ pointer-events: none;
89
+ position: absolute;
90
+ z-index: -1;
91
+ right: calc(0.25rem * 0);
92
+ bottom: calc(0.25rem * 0);
93
+ left: calc(0.25rem * 0);
94
+ height: calc(0.25rem * 0.5);
95
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
96
+ transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
97
+ transition-duration: var(--tw-duration, 150ms);
98
+ --tw-duration: 250ms;
99
+ transition-duration: 250ms;
100
+ --tw-ease: cubic-bezier(0.32, 0.72, 0, 1);
101
+ transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
102
+ @media (prefers-reduced-motion: reduce) {
103
+ transition-property: none;
104
+ }
105
+ }
106
+ .tabs-trigger--filled[data-state='inactive'],
107
+ .tabs-trigger--transparent[data-state='inactive'] {
108
+ &:hover {
109
+ @media (hover: hover) {
110
+ &::before {
111
+ background-color: color-mix(in srgb, color(display-p3 0 0 0) 8%, transparent);
112
+ @supports (color: color-mix(in lab, red, red)) {
113
+ background-color: color-mix(in oklab, var(--color-text-primary, color(display-p3 0 0 0)) 8%, transparent);
114
+ }
115
+ }
116
+ }
117
+ }
118
+ &:hover {
119
+ @media (hover: hover) {
120
+ color: var(--color-text-primary, color(display-p3 0 0 0));
121
+ }
122
+ }
123
+ }
124
+ .tabs-list .tabs-trigger--filled:focus-visible {
125
+ box-shadow: none;
126
+ }
40
127
  .active-tab-indicator {
41
128
  position: absolute;
42
129
  z-index: -1;
@@ -44,9 +131,19 @@
44
131
  background-color: var(--color-button-primary-fill, color(display-p3 0.5242 0.2903 0.7705));
45
132
  }
46
133
  .active-tab-indicator--filled {
47
- inset: calc(0.25rem * 0);
48
- height: 100%;
49
- border-radius: 0.25rem;
134
+ inset: 2px;
135
+ width: auto;
136
+ border-radius: 3px;
137
+ --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));
138
+ @supports (color: color-mix(in lab, red, red)) {
139
+ --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));
140
+ }
141
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
142
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
143
+ --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));
144
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
145
+ }
146
+ --mix-color: var(--color-button-primary-fill);
50
147
  }
51
148
  .active-tab-indicator--transparent {
52
149
  height: calc(0.25rem * 0.5);
@@ -54,6 +151,28 @@
54
151
  bottom: calc(0.25rem * 0);
55
152
  left: calc(0.25rem * 0);
56
153
  }
154
+ .active-tab-indicator--shared {
155
+ right: auto;
156
+ z-index: auto;
157
+ }
158
+ .active-tab-indicator--filled.active-tab-indicator--shared {
159
+ width: calc(var(--indicator-width) - 4px);
160
+ }
161
+ .active-tab-indicator--transparent.active-tab-indicator--shared {
162
+ width: var(--indicator-width);
163
+ }
164
+ .active-tab-indicator--animated {
165
+ transition-property: transform,width;
166
+ transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
167
+ transition-duration: var(--tw-duration, 150ms);
168
+ --tw-duration: var(--indicator-duration);
169
+ transition-duration: var(--indicator-duration);
170
+ --tw-ease: cubic-bezier(0.32, 0.72, 0, 1);
171
+ transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
172
+ @media (prefers-reduced-motion: reduce) {
173
+ transition-property: none;
174
+ }
175
+ }
57
176
  .content {
58
177
  margin-top: calc(0.25rem * 5);
59
178
  :where(& > :not(:last-child)) {
@@ -138,6 +257,14 @@
138
257
  inherits: false;
139
258
  initial-value: 0 0 #0000;
140
259
  }
260
+ @property --tw-duration {
261
+ syntax: "*";
262
+ inherits: false;
263
+ }
264
+ @property --tw-ease {
265
+ syntax: "*";
266
+ inherits: false;
267
+ }
141
268
  @property --tw-space-y-reverse {
142
269
  syntax: "*";
143
270
  inherits: false;
@@ -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;
@@ -6,6 +6,45 @@
6
6
  @apply focus-visible:outline-none;
7
7
  }
8
8
 
9
+ @utility control-track {
10
+ @apply border-control-edge dark:border-control-edge-dark border;
11
+ @apply inset-shadow-control-sunken dark:inset-shadow-control-sunken-dark;
12
+ @apply overflow-hidden rounded-md;
13
+ }
14
+
15
+ @utility control-segment-fill {
16
+ &::before {
17
+ content: '';
18
+ @apply z-behind pointer-events-none absolute inset-[2px] rounded-[3px];
19
+ @apply ease-control duration-250 transition-colors;
20
+ @apply motion-reduce:transition-none;
21
+ }
22
+ }
23
+
24
+ @utility control-segment-hover {
25
+ @variant hover {
26
+ &::before {
27
+ @apply bg-text-primary/8;
28
+ }
29
+ }
30
+ }
31
+
32
+ /* The inner band keeps the ring visible against the indicator, which shares its colour in light mode */
33
+ @utility control-segment-focus-ring {
34
+ &:focus-visible::after {
35
+ content: '';
36
+ @apply pointer-events-none absolute inset-0 rounded-[5px];
37
+ box-shadow:
38
+ inset 0 0 0 2px var(--color-focus-ring),
39
+ inset 0 0 0 4px var(--color-background);
40
+ }
41
+ }
42
+
43
+ @utility control-segment-indicator {
44
+ @apply rounded-[3px];
45
+ @apply shadow-control-raised dark:shadow-control-raised-dark;
46
+ }
47
+
9
48
  @utility overlay-background {
10
49
  @apply bg-black/80;
11
50
  }
@@ -401,10 +401,21 @@
401
401
  line-height: var(--tw-leading, calc(1 / 0.75));
402
402
  color: var(--color-text-secondary);
403
403
  }
404
+ .underline {
405
+ text-decoration-line: underline;
406
+ }
404
407
  .shadow {
405
408
  --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
409
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
407
410
  }
411
+ .ring {
412
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
413
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
414
+ }
415
+ .outline {
416
+ outline-style: var(--tw-outline-style);
417
+ outline-width: 1px;
418
+ }
408
419
  .filter {
409
420
  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
421
  }
@@ -1147,6 +1158,11 @@
1147
1158
  syntax: "*";
1148
1159
  inherits: false;
1149
1160
  }
1161
+ @property --tw-outline-style {
1162
+ syntax: "*";
1163
+ inherits: false;
1164
+ initial-value: solid;
1165
+ }
1150
1166
  @property --tw-blur {
1151
1167
  syntax: "*";
1152
1168
  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.12.0",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
13
13
  "component library",