@eqtylab/equality 4.14.1 → 5.0.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.
@@ -0,0 +1,193 @@
1
+ /*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
2
+ .nav-list {
3
+ display: flex;
4
+ flex-direction: column;
5
+ background-color: inherit;
6
+ }
7
+ .nav-list-group {
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: var(--eq-list-label-gap);
11
+ padding-top: var(--eq-list-group-gap);
12
+ }
13
+ .nav-list-group--unlabelled {
14
+ padding-top: calc(0.25rem * 0);
15
+ }
16
+ .nav-list-group-label {
17
+ display: flex;
18
+ align-items: center;
19
+ gap: calc(0.25rem * 2);
20
+ padding-inline: var(--eq-list-item-padding-x);
21
+ font-size: var(--eq-list-label-font-size);
22
+ --tw-font-weight: 500;
23
+ font-weight: 500;
24
+ color: var(--color-text-secondary, color(display-p3 0.1792 0.1792 0.1792));
25
+ }
26
+ .nav-list-group-label::after {
27
+ content: '';
28
+ height: 1px;
29
+ flex: 1;
30
+ background-color: var(--color-border-raised, color(display-p3 0.7383 0.7441 0.751));
31
+ }
32
+ .nav-list-items {
33
+ margin: calc(0.25rem * 0);
34
+ display: flex;
35
+ list-style-type: none;
36
+ flex-direction: column;
37
+ gap: var(--eq-list-gap);
38
+ padding: calc(0.25rem * 0);
39
+ }
40
+ .nav-list-items[data-depth='1'] {
41
+ margin-left: var(--eq-list-indent);
42
+ border-left-style: var(--tw-border-style);
43
+ border-left-width: 1px;
44
+ border-color: var(--color-border-raised, color(display-p3 0.7383 0.7441 0.751));
45
+ }
46
+ .nav-list-items:has(> li > [data-slot='nav-list-item'] > .nav-list-item-prefix)
47
+ > li
48
+ .nav-list-items[data-depth='1'] {
49
+ margin-left: calc(var(--eq-list-item-icon-size) + var(--eq-list-item-gap));
50
+ }
51
+ .nav-list-separator {
52
+ margin: calc(0.25rem * 0);
53
+ margin-top: var(--eq-list-group-gap);
54
+ height: calc(0.25rem * 0);
55
+ flex-shrink: 0;
56
+ border-style: var(--tw-border-style);
57
+ border-width: 0px;
58
+ border-top-style: var(--tw-border-style);
59
+ border-top-width: 1px;
60
+ border-color: var(--color-border-raised, color(display-p3 0.7383 0.7441 0.751));
61
+ }
62
+ .nav-list-separator:first-child,
63
+ .nav-list-separator:last-child {
64
+ display: none;
65
+ }
66
+ .nav-list-item {
67
+ display: flex;
68
+ height: var(--eq-list-item-height);
69
+ min-height: var(--eq-touch-target);
70
+ width: 100%;
71
+ min-width: calc(0.25rem * 0);
72
+ align-items: center;
73
+ gap: var(--eq-list-item-gap);
74
+ border-radius: var(--radius-md, 0.375rem);
75
+ border-style: var(--tw-border-style);
76
+ border-width: 1px;
77
+ border-color: transparent;
78
+ background-color: transparent;
79
+ padding-inline: var(--eq-list-item-padding-x);
80
+ text-align: left;
81
+ text-decoration-line: none;
82
+ font-size: var(--eq-list-item-font-size);
83
+ color: var(--color-text-secondary, color(display-p3 0.1792 0.1792 0.1792));
84
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
85
+ transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
86
+ transition-duration: var(--tw-duration, 150ms);
87
+ --tw-duration: 150ms;
88
+ transition-duration: 150ms;
89
+ @media (prefers-reduced-motion: reduce) {
90
+ transition-property: none;
91
+ }
92
+ }
93
+ .nav-list-item-prefix {
94
+ display: flex;
95
+ width: var(--eq-list-item-icon-size);
96
+ height: var(--eq-list-item-icon-size);
97
+ flex-shrink: 0;
98
+ align-items: center;
99
+ justify-content: center;
100
+ }
101
+ .nav-list-item-prefix svg,
102
+ .nav-list-item-suffix svg,
103
+ .nav-list-item-caret svg {
104
+ width: var(--eq-list-item-icon-size);
105
+ height: var(--eq-list-item-icon-size);
106
+ }
107
+ .nav-list-item-label {
108
+ min-width: calc(0.25rem * 0);
109
+ flex: 1;
110
+ overflow: hidden;
111
+ text-overflow: ellipsis;
112
+ white-space: nowrap;
113
+ }
114
+ .nav-list-item-suffix,
115
+ .nav-list-item-caret {
116
+ display: flex;
117
+ flex-shrink: 0;
118
+ align-items: center;
119
+ }
120
+ .nav-list-item:hover {
121
+ background-color: var(--color-list-item-hover);
122
+ color: var(--color-text-primary, color(display-p3 0 0 0));
123
+ }
124
+ .nav-list-item[aria-current='page'],
125
+ .nav-list-item[data-current='page'] {
126
+ background-color: var(--color-list-item-current);
127
+ --tw-font-weight: 500;
128
+ font-weight: 500;
129
+ color: var(--color-text-primary, color(display-p3 0 0 0));
130
+ }
131
+ .nav-list-item:focus-visible {
132
+ outline: 2px solid var(--color-focus-ring);
133
+ outline-offset: 2px;
134
+ }
135
+ .nav-drill {
136
+ margin-inline: calc(0.25rem * -1);
137
+ display: grid;
138
+ padding-inline: calc(0.25rem * 1);
139
+ overflow-x: clip;
140
+ background-color: inherit;
141
+ }
142
+ .nav-drill-level {
143
+ display: flex;
144
+ min-width: calc(0.25rem * 0);
145
+ flex-direction: column;
146
+ grid-area: 1 / 1;
147
+ z-index: 1;
148
+ background-color: inherit;
149
+ }
150
+ .nav-drill-ghost {
151
+ display: grid;
152
+ grid-area: 1 / 1;
153
+ z-index: 0;
154
+ overflow: clip;
155
+ background-color: inherit;
156
+ }
157
+ .nav-drill-ghost[data-motion='back'] {
158
+ z-index: 2;
159
+ }
160
+ .nav-list-item--back {
161
+ margin-top: calc(0.25rem * 0.5);
162
+ --tw-font-weight: 400;
163
+ font-weight: 400;
164
+ color: var(--color-text-secondary, color(display-p3 0.1792 0.1792 0.1792));
165
+ }
166
+ .nav-list-item--back .nav-list-item-prefix {
167
+ color: var(--color-text-tertiary, color(display-p3 0.5021 0.5021 0.5021));
168
+ }
169
+ .nav-drill-rule {
170
+ margin: calc(0.25rem * 0);
171
+ margin-top: calc(0.25rem * 2);
172
+ margin-bottom: calc(0.25rem * 1);
173
+ height: calc(0.25rem * 0);
174
+ flex-shrink: 0;
175
+ border-style: var(--tw-border-style);
176
+ border-width: 0px;
177
+ border-top-style: var(--tw-border-style);
178
+ border-top-width: 1px;
179
+ border-color: var(--color-border-raised, color(display-p3 0.7383 0.7441 0.751));
180
+ }
181
+ @property --tw-font-weight {
182
+ syntax: "*";
183
+ inherits: false;
184
+ }
185
+ @property --tw-border-style {
186
+ syntax: "*";
187
+ inherits: false;
188
+ initial-value: solid;
189
+ }
190
+ @property --tw-duration {
191
+ syntax: "*";
192
+ inherits: false;
193
+ }
@@ -0,0 +1,262 @@
1
+ /*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
2
+ .nav-rail,
3
+ .nav-panel {
4
+ display: flex;
5
+ flex-shrink: 0;
6
+ flex-direction: column;
7
+ border-right-style: var(--tw-border-style);
8
+ border-right-width: 1px;
9
+ border-color: var(--color-border-raised, color(display-p3 0.7383 0.7441 0.751));
10
+ background-color: var(--color-background-raised, color(display-p3 0.9554 0.9616 0.9688));
11
+ contain: size;
12
+ }
13
+ .nav-rail {
14
+ width: 72px;
15
+ }
16
+ .nav-panel {
17
+ width: 200px;
18
+ }
19
+ .nav-scroller {
20
+ position: sticky;
21
+ top: calc(0.25rem * 0);
22
+ display: flex;
23
+ flex-direction: column;
24
+ overflow-y: auto;
25
+ max-height: min(100dvh, 100%);
26
+ background-color: inherit;
27
+ }
28
+ .nav-rail .nav-scroller {
29
+ align-items: center;
30
+ padding-block: calc(0.25rem * 4);
31
+ }
32
+ .nav-panel .nav-scroller {
33
+ padding-inline: calc(0.25rem * 2);
34
+ padding-block: calc(0.25rem * 4);
35
+ }
36
+ .nav-scroller:has([data-slot='nav-drill-back']:not([inert] *)) > .nav-panel-header {
37
+ padding-bottom: calc(0.25rem * 0);
38
+ }
39
+ .nav-rail-list {
40
+ margin: calc(0.25rem * 0);
41
+ display: flex;
42
+ list-style-type: none;
43
+ flex-direction: column;
44
+ align-items: center;
45
+ gap: calc(0.25rem * 2);
46
+ padding: calc(0.25rem * 0);
47
+ }
48
+ .nav-rail-item {
49
+ display: flex;
50
+ width: var(--eq-control-height);
51
+ height: var(--eq-control-height);
52
+ min-height: var(--eq-touch-target);
53
+ min-width: var(--eq-touch-target);
54
+ align-items: center;
55
+ justify-content: center;
56
+ border-radius: var(--radius-md, 0.375rem);
57
+ border-style: var(--tw-border-style);
58
+ border-width: 1px;
59
+ border-color: transparent;
60
+ color: var(--color-text-primary, color(display-p3 0 0 0));
61
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
62
+ transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
63
+ transition-duration: var(--tw-duration, 150ms);
64
+ --tw-duration: 150ms;
65
+ transition-duration: 150ms;
66
+ @media (prefers-reduced-motion: reduce) {
67
+ transition-property: none;
68
+ }
69
+ }
70
+ .nav-rail-item svg {
71
+ width: calc(0.25rem * 5);
72
+ height: calc(0.25rem * 5);
73
+ }
74
+ .nav-panel-header {
75
+ position: relative;
76
+ z-index: 3;
77
+ margin: calc(0.25rem * 0);
78
+ overflow: hidden;
79
+ text-overflow: ellipsis;
80
+ white-space: nowrap;
81
+ padding-inline: calc(0.25rem * 2);
82
+ padding-bottom: calc(0.25rem * 2);
83
+ font-size: 0.875rem;
84
+ line-height: var(--tw-leading, calc(1.25 / 0.875));
85
+ --tw-font-weight: 600;
86
+ font-weight: 600;
87
+ color: var(--color-text-primary, color(display-p3 0 0 0));
88
+ }
89
+ .nav-panel-header:has(> .nav-switcher-heading) {
90
+ overflow: visible;
91
+ padding-inline: calc(0.25rem * 0);
92
+ padding-bottom: calc(0.25rem * 0);
93
+ }
94
+ .nav-switcher-heading {
95
+ margin: calc(0.25rem * 0);
96
+ display: flex;
97
+ height: calc(0.25rem * 8);
98
+ min-height: var(--eq-touch-target);
99
+ min-width: calc(0.25rem * 0);
100
+ align-items: center;
101
+ font-size: 0.875rem;
102
+ line-height: var(--tw-leading, calc(1.25 / 0.875));
103
+ --tw-font-weight: 600;
104
+ font-weight: 600;
105
+ color: var(--color-text-primary, color(display-p3 0 0 0));
106
+ }
107
+ .nav-switcher-plain {
108
+ min-width: calc(0.25rem * 0);
109
+ overflow: hidden;
110
+ text-overflow: ellipsis;
111
+ white-space: nowrap;
112
+ padding-inline: calc(0.25rem * 2);
113
+ }
114
+ .nav-switcher-placeholder {
115
+ padding-inline: calc(0.25rem * 2);
116
+ }
117
+ .nav-switcher-skeleton {
118
+ height: calc(0.25rem * 5);
119
+ width: calc(0.25rem * 32);
120
+ }
121
+ .nav-switcher-loading-label {
122
+ position: absolute;
123
+ width: 1px;
124
+ height: 1px;
125
+ padding: 0;
126
+ margin: -1px;
127
+ overflow: hidden;
128
+ clip-path: inset(50%);
129
+ white-space: nowrap;
130
+ border-width: 0;
131
+ }
132
+ .nav-switcher-heading .nav-switcher {
133
+ display: flex;
134
+ height: calc(0.25rem * 8);
135
+ min-height: var(--eq-touch-target);
136
+ width: 100%;
137
+ min-width: calc(0.25rem * 0);
138
+ align-items: center;
139
+ gap: calc(0.25rem * 2);
140
+ border-radius: var(--radius-md, 0.375rem);
141
+ border-style: var(--tw-border-style);
142
+ border-width: 1px;
143
+ border-color: transparent;
144
+ padding-inline: calc(0.25rem * 2);
145
+ background-color: transparent;
146
+ text-align: left;
147
+ font-size: 0.875rem;
148
+ line-height: var(--tw-leading, calc(1.25 / 0.875));
149
+ --tw-font-weight: 600;
150
+ font-weight: 600;
151
+ color: var(--color-text-primary, color(display-p3 0 0 0));
152
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
153
+ transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
154
+ transition-duration: var(--tw-duration, 150ms);
155
+ --tw-duration: 150ms;
156
+ transition-duration: 150ms;
157
+ @media (prefers-reduced-motion: reduce) {
158
+ transition-property: none;
159
+ }
160
+ }
161
+ .nav-switcher-heading .nav-switcher-label {
162
+ display: block;
163
+ min-width: calc(0.25rem * 0);
164
+ overflow: hidden;
165
+ text-overflow: ellipsis;
166
+ white-space: nowrap;
167
+ }
168
+ .nav-switcher-name {
169
+ padding-block: 0.05em;
170
+ font-size: 0.875rem;
171
+ line-height: var(--tw-leading, calc(1.25 / 0.875));
172
+ --tw-font-weight: 600;
173
+ font-weight: 600;
174
+ background-image: linear-gradient(
175
+ to right,
176
+ var(--color-text-primary),
177
+ var(--color-text-secondary)
178
+ );
179
+ background-clip: text;
180
+ -webkit-background-clip: text;
181
+ color: transparent;
182
+ -webkit-text-fill-color: transparent;
183
+ @media (forced-colors: active) {
184
+ background-image: none;
185
+ color: CanvasText;
186
+ -webkit-text-fill-color: currentColor;
187
+ }
188
+ }
189
+ .nav-switcher-icon {
190
+ margin-left: auto;
191
+ width: calc(0.25rem * 4);
192
+ height: calc(0.25rem * 4);
193
+ flex-shrink: 0;
194
+ color: var(--color-text-tertiary, color(display-p3 0.5021 0.5021 0.5021));
195
+ }
196
+ .nav-switcher > :global(.lucide-chevron-down) {
197
+ display: none;
198
+ }
199
+ .nav-switcher-heading .nav-switcher:hover:not(:disabled) {
200
+ border-color: transparent;
201
+ background-color: var(--color-list-item-hover);
202
+ }
203
+ .nav-switcher-heading .nav-switcher[data-state='open']:not(:disabled) {
204
+ border-color: var(--color-brand-primary, color(display-p3 0.7319 0.6108 0.8873));
205
+ background-color: var(--color-background, color(display-p3 1 1 1));
206
+ }
207
+ .nav-switcher-heading .nav-switcher:focus-visible {
208
+ box-shadow: none;
209
+ outline: 2px solid var(--color-focus-ring);
210
+ outline-offset: 2px;
211
+ }
212
+ .nav-switcher-list {
213
+ width: 14rem;
214
+ }
215
+ .nav-switcher-option {
216
+ display: block;
217
+ overflow: hidden;
218
+ text-overflow: ellipsis;
219
+ white-space: nowrap;
220
+ }
221
+ .nav-switcher-footer {
222
+ position: sticky;
223
+ bottom: calc(0.25rem * -1);
224
+ padding-bottom: calc(0.25rem * 1);
225
+ background: var(--color-background-overlay);
226
+ }
227
+ .nav-switcher-list:has(.nav-switcher-footer) {
228
+ scroll-padding-bottom: 2.5rem;
229
+ }
230
+ .nav-switcher-list .nav-switcher-action {
231
+ justify-content: center;
232
+ }
233
+ .nav-switcher-action > span:empty {
234
+ display: none;
235
+ }
236
+ .nav-rail-item:hover {
237
+ background-color: var(--color-list-item-hover);
238
+ color: var(--color-text-primary, color(display-p3 0 0 0));
239
+ }
240
+ .nav-rail-item[aria-current='page'] {
241
+ background-color: var(--color-list-item-current);
242
+ --tw-font-weight: 500;
243
+ font-weight: 500;
244
+ color: var(--color-text-primary, color(display-p3 0 0 0));
245
+ }
246
+ .nav-rail-item:focus-visible {
247
+ outline: 2px solid var(--color-focus-ring);
248
+ outline-offset: 2px;
249
+ }
250
+ @property --tw-border-style {
251
+ syntax: "*";
252
+ inherits: false;
253
+ initial-value: solid;
254
+ }
255
+ @property --tw-duration {
256
+ syntax: "*";
257
+ inherits: false;
258
+ }
259
+ @property --tw-font-weight {
260
+ syntax: "*";
261
+ inherits: false;
262
+ }
@@ -87,3 +87,8 @@
87
87
  }
88
88
  }
89
89
  }
90
+
91
+ @theme inline reference {
92
+ --color-list-item-current: var(--color-list-item-current);
93
+ --color-list-item-hover: var(--color-list-item-hover);
94
+ }
@@ -0,0 +1,42 @@
1
+ /* =========================================================
2
+ SCOPED DECISIONS — GENERATED FILE, DO NOT EDIT
3
+
4
+ Generated from `theme-decisions.css` by
5
+ `src/scripts/build-decisions.js`. Edit that file instead, then run
6
+ `pnpm build:decisions`.
7
+ ========================================================= */
8
+
9
+ .root {
10
+ /* list-item: one selectable row (NavListItem; later DropdownMenuItem, SelectItem, CommandItem) */
11
+ --eq-list-item-height: calc(var(--spacing) * 9); /* 36 */
12
+ --eq-list-item-padding-x: calc(var(--spacing) * 2); /* 8 */
13
+ --eq-list-item-gap: calc(var(--spacing) * 2); /* 8, icon to text */
14
+ --eq-list-item-icon-size: calc(var(--spacing) * 4); /* 16 */
15
+ --eq-list-item-font-size: var(--text-sm); /* 14 */
16
+ /* list: the rows together */
17
+ --eq-list-gap: calc(var(--spacing) * 0.5); /* 2, between items */
18
+ --eq-list-group-gap: calc(var(--spacing) * 3); /* 12, above a group label */
19
+ --eq-list-label-gap: calc(var(--spacing) * 1); /* 4, label to its first item */
20
+ --eq-list-label-font-size: var(--text-xs); /* 12 */
21
+ --eq-list-indent: calc(var(--spacing) * 3); /* 12, child indent when items have no icons */
22
+ /* control: a stand-alone element */
23
+ --eq-control-height: calc(var(--spacing) * 10); /* 40: rail item; later Button, Input */
24
+ /* touch: the minimum tap target */
25
+ --eq-touch-target: 0px;
26
+
27
+ /* The current fill must stay stronger than the hover fill: Studio checks the pair with APCA */
28
+ --color-list-item-current: color-mix(in oklch, var(--color-text-primary) 10%, transparent);
29
+ --color-list-item-hover: color-mix(in oklch, var(--color-text-primary) 6%, transparent);
30
+ }
31
+
32
+ [data-equality-theme='dark'] .root {
33
+ --color-list-item-current: color-mix(in oklch, var(--color-text-primary) 14%, transparent);
34
+ --color-list-item-hover: color-mix(in oklch, var(--color-text-primary) 8%, transparent);
35
+ }
36
+
37
+ /* Touch is not a size. */
38
+ @media (pointer: coarse) {
39
+ .root {
40
+ --eq-touch-target: 2.75rem; /* 44, WCAG 2.5.8 */
41
+ }
42
+ }
@@ -0,0 +1,40 @@
1
+ /* Never declare @theme { --spacing } here: it rewrites every utility to var(--spacing, …) and
2
+ changes every component's compiled CSS. */
3
+
4
+ /* DECISIONS: Equality's names, --eq-{thing}-{property}. Parts read only these: h-(--eq-list-item-height).
5
+ theme-decisions-scoped.css is generated from this file: run `pnpm build:decisions` after
6
+ changing it, or tests/theme-css.test.ts fails. */
7
+ html {
8
+ /* list-item: one selectable row (NavListItem; later DropdownMenuItem, SelectItem, CommandItem) */
9
+ --eq-list-item-height: calc(var(--spacing) * 9); /* 36 */
10
+ --eq-list-item-padding-x: calc(var(--spacing) * 2); /* 8 */
11
+ --eq-list-item-gap: calc(var(--spacing) * 2); /* 8, icon to text */
12
+ --eq-list-item-icon-size: calc(var(--spacing) * 4); /* 16 */
13
+ --eq-list-item-font-size: var(--text-sm); /* 14 */
14
+ /* list: the rows together */
15
+ --eq-list-gap: calc(var(--spacing) * 0.5); /* 2, between items */
16
+ --eq-list-group-gap: calc(var(--spacing) * 3); /* 12, above a group label */
17
+ --eq-list-label-gap: calc(var(--spacing) * 1); /* 4, label to its first item */
18
+ --eq-list-label-font-size: var(--text-xs); /* 12 */
19
+ --eq-list-indent: calc(var(--spacing) * 3); /* 12, child indent when items have no icons */
20
+ /* control: a stand-alone element */
21
+ --eq-control-height: calc(var(--spacing) * 10); /* 40: rail item; later Button, Input */
22
+ /* touch: the minimum tap target */
23
+ --eq-touch-target: 0px;
24
+
25
+ /* The current fill must stay stronger than the hover fill: Studio checks the pair with APCA */
26
+ --color-list-item-current: color-mix(in oklch, var(--color-text-primary) 10%, transparent);
27
+ --color-list-item-hover: color-mix(in oklch, var(--color-text-primary) 6%, transparent);
28
+ }
29
+
30
+ html[data-equality-theme='dark'] {
31
+ --color-list-item-current: color-mix(in oklch, var(--color-text-primary) 14%, transparent);
32
+ --color-list-item-hover: color-mix(in oklch, var(--color-text-primary) 8%, transparent);
33
+ }
34
+
35
+ /* Touch is not a size. */
36
+ @media (pointer: coarse) {
37
+ html {
38
+ --eq-touch-target: 2.75rem; /* 44, WCAG 2.5.8 */
39
+ }
40
+ }
@@ -10,5 +10,6 @@
10
10
  @import './tokens.css';
11
11
 
12
12
  @import './theme-base.css';
13
+ @import './theme-decisions-scoped.css';
13
14
  @import './theme-preflight-scoped.css' layer(base);
14
15
  @import './theme-utilities.css';
@@ -6,6 +6,9 @@
6
6
  --font-mono: 'IBM Plex Mono', monospace;
7
7
  --color-amber-100: color(display-p3 0.9767 0.9238 0.8764);
8
8
  --color-blue-500: color(display-p3 0.2366 0.3261 0.7513);
9
+ --spacing: 0.25rem;
10
+ --text-xs: 0.75rem;
11
+ --text-sm: 0.875rem;
9
12
  --radius-md: 0.375rem;
10
13
  --color-mixed-light: var(--mix-color);
11
14
  @supports (color: color-mix(in lab, red, red)) {
@@ -375,6 +378,9 @@
375
378
  .shrink {
376
379
  flex-shrink: 1;
377
380
  }
381
+ .grow {
382
+ flex-grow: 1;
383
+ }
378
384
  .transform {
379
385
  transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
380
386
  }
@@ -399,6 +405,12 @@
399
405
  border-style: var(--tw-border-style);
400
406
  border-width: 1px;
401
407
  }
408
+ .bg-list-item-current {
409
+ background-color: var(--color-list-item-current);
410
+ }
411
+ .bg-list-item-hover {
412
+ background-color: var(--color-list-item-hover);
413
+ }
402
414
  .dropdown-empty {
403
415
  padding-inline: calc(0.25rem * 2);
404
416
  padding-block: calc(0.25rem * 1.5);
@@ -925,6 +937,43 @@
925
937
  --color-text-tertiary: color(display-p3 0.5021 0.5021 0.5021);
926
938
  --color-text-warning: color(display-p3 0.863 0.6958 0.4108);
927
939
  }
940
+ .root {
941
+ --eq-list-item-height: calc(var(--spacing) * 9);
942
+ --eq-list-item-padding-x: calc(var(--spacing) * 2);
943
+ --eq-list-item-gap: calc(var(--spacing) * 2);
944
+ --eq-list-item-icon-size: calc(var(--spacing) * 4);
945
+ --eq-list-item-font-size: var(--text-sm);
946
+ --eq-list-gap: calc(var(--spacing) * 0.5);
947
+ --eq-list-group-gap: calc(var(--spacing) * 3);
948
+ --eq-list-label-gap: calc(var(--spacing) * 1);
949
+ --eq-list-label-font-size: var(--text-xs);
950
+ --eq-list-indent: calc(var(--spacing) * 3);
951
+ --eq-control-height: calc(var(--spacing) * 10);
952
+ --eq-touch-target: 0px;
953
+ --color-list-item-current: color-mix(in srgb, color(display-p3 0 0 0) 10%, transparent);
954
+ @supports (color: color-mix(in lab, red, red)) {
955
+ --color-list-item-current: color-mix(in oklch, var(--color-text-primary) 10%, transparent);
956
+ }
957
+ --color-list-item-hover: color-mix(in srgb, color(display-p3 0 0 0) 6%, transparent);
958
+ @supports (color: color-mix(in lab, red, red)) {
959
+ --color-list-item-hover: color-mix(in oklch, var(--color-text-primary) 6%, transparent);
960
+ }
961
+ }
962
+ [data-equality-theme='dark'] .root {
963
+ --color-list-item-current: color-mix(in srgb, color(display-p3 0 0 0) 14%, transparent);
964
+ @supports (color: color-mix(in lab, red, red)) {
965
+ --color-list-item-current: color-mix(in oklch, var(--color-text-primary) 14%, transparent);
966
+ }
967
+ --color-list-item-hover: color-mix(in srgb, color(display-p3 0 0 0) 8%, transparent);
968
+ @supports (color: color-mix(in lab, red, red)) {
969
+ --color-list-item-hover: color-mix(in oklch, var(--color-text-primary) 8%, transparent);
970
+ }
971
+ }
972
+ @media (pointer: coarse) {
973
+ .root {
974
+ --eq-touch-target: 2.75rem;
975
+ }
976
+ }
928
977
  @layer base {
929
978
  [data-equality-root], [data-equality-root] *, [data-equality-root] ::after, [data-equality-root] ::before, [data-equality-root] ::backdrop, [data-equality-root] ::file-selector-button {
930
979
  box-sizing: border-box;
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.14.1",
10
+ "version": "5.0.0",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
13
13
  "component library",
@@ -61,7 +61,6 @@
61
61
  "@radix-ui/react-popover": "^1.1.3",
62
62
  "@radix-ui/react-progress": "^1.1.1",
63
63
  "@radix-ui/react-radio-group": "^1.3.8",
64
- "@radix-ui/react-scroll-area": "^1.2.1",
65
64
  "@radix-ui/react-select": "^2.1.2",
66
65
  "@radix-ui/react-separator": "^1.1.0",
67
66
  "@radix-ui/react-slot": "^1.1.1",
@@ -78,8 +77,7 @@
78
77
  "react-hook-form": "^7.63.0",
79
78
  "react-truncate-inside": "^1.0.3",
80
79
  "tailwind-merge": "^2.5.4",
81
- "tw-animate-css": "^1.4.0",
82
- "vaul": "^1.1.2"
80
+ "tw-animate-css": "^1.4.0"
83
81
  },
84
82
  "peerDependencies": {
85
83
  "react": "^18.2.0 || ^19.0.0",
@@ -111,8 +109,9 @@
111
109
  "build": "pnpm run build:tokens && pnpm run build:lib",
112
110
  "build:tokens": "node src/scripts/build-tokens.js && prettier --write ../tokens/equality-tokens.json",
113
111
  "build:preflight": "node src/scripts/build-preflight.js && prettier --write src/theme/theme-preflight-global.css",
112
+ "build:decisions": "node src/scripts/build-decisions.js && prettier --write src/theme/theme-decisions-scoped.css",
114
113
  "check:grammars": "node src/scripts/check-grammars.js",
115
- "build:lib": "pnpm run build:preflight && pnpm run check:grammars && tsup --config tsup.config.ts && node src/scripts/document-props.js && cp src/theme/*.css dist/ && mkdir -p dist/generated && cp src/theme/generated/*.css dist/generated/",
114
+ "build:lib": "pnpm run build:preflight && pnpm run build:decisions && pnpm run check:grammars && tsup --config tsup.config.ts && node src/scripts/document-props.js && cp src/theme/*.css dist/ && mkdir -p dist/generated && cp src/theme/generated/*.css dist/generated/",
116
115
  "watch": "tsup --config tsup.config.ts --watch",
117
116
  "test": "vitest run",
118
117
  "watch:tokens": "chokidar '../tokens/equality-tokens.json' --debounce 300 --initial=false -c 'pnpm run build:tokens'",