@eqtylab/equality 5.6.0 → 6.0.0-next.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 CHANGED
@@ -2,6 +2,69 @@
2
2
 
3
3
  Notable changes to Equality are recorded here, following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
4
4
 
5
+ ## 6.0.0 - 2026-11-19
6
+
7
+ Controls and rows move to one scale: 28, 36 and 44. The default control drops from 40 to 36, and
8
+ menu rows grow from 32 to 36. If your app copied a 40px height from Equality to line something up
9
+ with a control, search for it: it now sits 4px taller than the control beside it.
10
+
11
+ ### Changed
12
+
13
+ | Part | Height | Text | Side padding |
14
+ | ------------------------------------------------------------------------- | ---------- | -------- | ------------ |
15
+ | `Button` `md` | 40 to 36 | 14 | 12 |
16
+ | `Button` `lg` | 44 | 14 to 16 | 32 to 16 |
17
+ | `Button` `sm` | 28 | 12 | 8 |
18
+ | `IconButton` `md` | 40 to 36 | | |
19
+ | `IconButton` `xs`, `sm`, `lg` | 24, 28, 44 | | |
20
+ | `SegmentedControls` `md` | 40 to 36 | 14 | 12 |
21
+ | `SegmentedControls` `lg` | 44 | 14 to 16 | 16 |
22
+ | `Input`, `SearchBar`, `Select` trigger | 40 to 36 | 14 | 8, 8, 12 |
23
+ | `Tabs` list | 40 to 36 | 18 | 12 |
24
+ | `Table` header | 40 to 36 | 14 | |
25
+ | `Table` row | 36 | 14 | 16 |
26
+ | `Timeline` `md` marker | 40 to 36 | | |
27
+ | `Nav` rail item | 40 to 36 | | |
28
+ | `NavSwitcher` and the `Nav` panel title | 32 to 36 | 14 | 8 |
29
+ | `NavList` row | 36 | 14 | 8 |
30
+ | `DropdownMenu`, `RadioDropdown`, `SortSelector` and `FilterDropdown` rows | 32 to 36 | 14 | 8 |
31
+ | `Select` option | 32 to 36 | 14 | 8 |
32
+ | `Command` row | 32 to 36 | 14 | 8 |
33
+ | `Command` row in a `CommandDialog` | 44 to 36 | 14 | 8 |
34
+ | `DisplayField` | 38 to 36 | 14 | 12 |
35
+ | `DateRangePicker` day | 40 to 36 | 14 | |
36
+
37
+ - Large `Button` side padding halves, from 32 to 16. This is the largest single move.
38
+ - The gap between an icon and its text grows from 6 to 8 on every `md` and `lg` `Button`, link
39
+ buttons included, and on `md` and `lg` segments.
40
+ - A row that wraps keeps its padding and grows; 36 is its minimum.
41
+ - `Command`'s input bar stays 36. The field inside it now fits: it was 40, or 48 in a
42
+ `CommandDialog`, and overflowed the bar.
43
+ - `Tabs` triggers fill the list's height. `Input` centres its text without vertical padding.
44
+ - The `Nav` switcher is as tall as the rail's first item, so the panel header no longer nudges it
45
+ down to line the two up.
46
+
47
+ ### Added
48
+
49
+ - Control size decisions: `--eq-control-xs-height`, `-sm-height`, `-md-height` and `-lg-height`;
50
+ a font size, line height and gap for `sm`, `md` and `lg`; and
51
+ `--eq-control-padding-x-condensed`, `-normal` and `-spacious`. A control or row you build
52
+ yourself reads these, such as `h-(--eq-control-md-height)`, so it follows the scale.
53
+
54
+ ### Deprecated
55
+
56
+ - `--eq-list-item-height`. Use `--eq-control-md-height`.
57
+ - `--eq-list-item-padding-x`. Use `--eq-control-padding-x-condensed`.
58
+ - `--eq-list-item-gap`. Use `--eq-control-md-gap`.
59
+ - `--eq-list-item-font-size`. Use `--eq-control-md-font-size`.
60
+
61
+ Each keeps its value until a later major release removes it, but nothing in Equality reads it any
62
+ more, so a site's override of one no longer takes effect. Override the name that replaces it.
63
+
64
+ ### Removed
65
+
66
+ - `--eq-control-height`. Use `--eq-control-md-height`, which the `Nav` rail now reads.
67
+
5
68
  ## 5.6.0 - 2026-11-18
6
69
 
7
70
  ### Added
@@ -1,8 +1,8 @@
1
1
  /*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
2
2
  .button {
3
3
  border-radius: var(--radius-md, 0.375rem);
4
- font-size: 0.875rem;
5
- line-height: var(--tw-leading, calc(1.25 / 0.875));
4
+ font-size: var(--eq-control-md-font-size);
5
+ line-height: var(--tw-leading,var(--eq-control-md-line-height));
6
6
  --tw-font-weight: 500;
7
7
  font-weight: 500;
8
8
  white-space: nowrap;
@@ -19,7 +19,7 @@
19
19
  display: flex;
20
20
  align-items: center;
21
21
  justify-content: center;
22
- gap: calc(0.25rem * 1.5);
22
+ gap: var(--eq-control-md-gap);
23
23
  cursor: pointer;
24
24
  &:disabled {
25
25
  cursor: not-allowed;
@@ -334,24 +334,29 @@
334
334
  }
335
335
  }
336
336
  .size--sm {
337
- font-size: 0.75rem;
338
- line-height: var(--tw-leading, calc(1 / 0.75));
337
+ gap: var(--eq-control-sm-gap);
338
+ font-size: var(--eq-control-sm-font-size);
339
+ line-height: var(--tw-leading,var(--eq-control-sm-line-height));
339
340
  }
340
341
  .size--sm:not(.button--link) {
341
- height: calc(0.25rem * 7);
342
+ height: var(--eq-control-sm-height);
342
343
  border-radius: var(--radius-md, 0.375rem);
343
- padding-inline: calc(calc(0.25rem * 2) + var(--button-edge-inset,0px));
344
+ padding-inline: calc(var(--eq-control-padding-x-condensed) + var(--button-edge-inset,0px));
344
345
  }
345
346
  .size--md:not(.button--link) {
346
- height: calc(0.25rem * 10);
347
+ height: var(--eq-control-md-height);
347
348
  border-radius: var(--radius-md, 0.375rem);
348
- padding-inline: calc(calc(0.25rem * 3) + var(--button-edge-inset,0px));
349
- padding-block: calc(0.25rem * 2);
349
+ padding-inline: calc(var(--eq-control-padding-x-normal) + var(--button-edge-inset,0px));
350
+ }
351
+ .size--lg {
352
+ gap: var(--eq-control-lg-gap);
353
+ font-size: var(--eq-control-lg-font-size);
354
+ line-height: var(--tw-leading,var(--eq-control-lg-line-height));
350
355
  }
351
356
  .size--lg:not(.button--link) {
352
- height: calc(0.25rem * 11);
357
+ height: var(--eq-control-lg-height);
353
358
  border-radius: var(--radius-md, 0.375rem);
354
- padding-inline: calc(calc(0.25rem * 8) + var(--button-edge-inset,0px));
359
+ padding-inline: calc(var(--eq-control-padding-x-spacious) + var(--button-edge-inset,0px));
355
360
  }
356
361
  @property --tw-font-weight {
357
362
  syntax: "*";
@@ -28,20 +28,6 @@
28
28
  padding: calc(0.25rem * 0);
29
29
  }
30
30
  .command-dialog-content-inner {
31
- &[data-slot="command-input-wrapper"] {
32
- :is(& *) {
33
- height: calc(0.25rem * 12);
34
- }
35
- }
36
- & [cmdk-input] {
37
- height: calc(0.25rem * 12);
38
- }
39
- & [cmdk-item] {
40
- padding-inline: calc(0.25rem * 2);
41
- }
42
- & [cmdk-item] {
43
- padding-block: calc(0.25rem * 3);
44
- }
45
31
  & [cmdk-item] svg {
46
32
  width: calc(0.25rem * 5);
47
33
  height: calc(0.25rem * 5);
@@ -71,7 +57,7 @@
71
57
  border-bottom-style: var(--tw-border-style);
72
58
  border-bottom-width: 1px;
73
59
  border-color: var(--color-border-overlay, color(display-p3 0.8011 0.807 0.814));
74
- height: calc(0.25rem * 9);
60
+ height: var(--eq-control-md-height);
75
61
  padding-inline: calc(0.25rem * 3);
76
62
  display: flex;
77
63
  align-items: center;
@@ -103,9 +89,9 @@
103
89
  outline-offset: 2px;
104
90
  }
105
91
  display: flex;
106
- height: calc(0.25rem * 10);
92
+ height: 100%;
107
93
  width: 100%;
108
- padding-block: calc(0.25rem * 3);
94
+ padding-block: calc(0.25rem * 0);
109
95
  &:disabled {
110
96
  cursor: not-allowed;
111
97
  }
@@ -160,14 +146,15 @@
160
146
  outline: 2px solid transparent;
161
147
  outline-offset: 2px;
162
148
  }
163
- font-size: 0.875rem;
164
- line-height: var(--tw-leading, calc(1.25 / 0.875));
149
+ font-size: var(--eq-control-md-font-size);
150
+ line-height: var(--tw-leading,var(--eq-control-md-line-height));
165
151
  display: flex;
166
152
  align-items: center;
167
153
  gap: calc(0.25rem * 2);
168
154
  position: relative;
169
- padding-inline: calc(0.25rem * 2);
170
- padding-block: calc(0.25rem * 1.5);
155
+ min-height: var(--eq-control-md-height);
156
+ padding-inline: var(--eq-control-padding-x-condensed);
157
+ padding-block: calc((var(--eq-control-md-height) - var(--eq-control-md-line-height)) / 2);
171
158
  cursor: pointer;
172
159
  -webkit-user-select: none;
173
160
  user-select: none;
@@ -1,7 +1,7 @@
1
1
  /*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
2
2
  .display-field {
3
- font-size: 0.875rem;
4
- line-height: var(--tw-leading, calc(1.25 / 0.875));
3
+ font-size: var(--eq-control-md-font-size);
4
+ line-height: var(--tw-leading,var(--eq-control-md-line-height));
5
5
  text-overflow: clip;
6
6
  color: var(--color-text-primary, color(display-p3 0 0 0));
7
7
  }
@@ -12,7 +12,7 @@
12
12
  border-color: var(--color-border, color(display-p3 0.7432 0.7432 0.7432));
13
13
  background-color: var(--color-popover-background, color(display-p3 0.9738 0.9799 0.9872));
14
14
  display: flex;
15
- height: calc(0.25rem * 9.5);
15
+ height: var(--eq-control-md-height);
16
16
  width: 100%;
17
17
  overflow: clip;
18
18
  --tw-ring-offset-color: var(--color-background, color(display-p3 1 1 1));
@@ -51,8 +51,8 @@
51
51
  align-items: center;
52
52
  gap: calc(0.25rem * 1);
53
53
  padding-inline: calc(0.25rem * 2);
54
- font-size: 0.875rem;
55
- line-height: var(--tw-leading, calc(1.25 / 0.875));
54
+ font-size: var(--eq-control-md-font-size);
55
+ line-height: var(--tw-leading,var(--eq-control-md-line-height));
56
56
  --tw-font-weight: 500;
57
57
  font-weight: 500;
58
58
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
@@ -65,8 +65,10 @@
65
65
  display: block;
66
66
  width: 100%;
67
67
  overflow-y: clip;
68
+ align-content: center;
69
+ align-self: stretch;
68
70
  padding-inline: calc(0.25rem * 3);
69
- padding-block: calc(0.25rem * 2);
71
+ padding-block: calc(0.25rem * 0);
70
72
  font-family: var(--font-mono);
71
73
  }
72
74
  .actions {
@@ -55,9 +55,10 @@
55
55
  }
56
56
  .dropdown-menu-trigger,
57
57
  .dropdown-menu-item {
58
- padding-inline: calc(0.25rem * 2);
59
- padding-block: calc(0.25rem * 1.5);
60
- gap: calc(0.25rem * 2);
58
+ min-height: var(--eq-control-md-height);
59
+ padding-inline: var(--eq-control-padding-x-condensed);
60
+ padding-block: calc((var(--eq-control-md-height) - var(--eq-control-md-line-height)) / 2);
61
+ gap: var(--eq-control-md-gap);
61
62
  & svg {
62
63
  pointer-events: none;
63
64
  }
@@ -71,8 +72,9 @@
71
72
  }
72
73
  .dropdown-menu-checkbox-item,
73
74
  .dropdown-menu-radio-item {
74
- padding-block: calc(0.25rem * 1.5);
75
- padding-right: calc(0.25rem * 2);
75
+ min-height: var(--eq-control-md-height);
76
+ padding-block: calc((var(--eq-control-md-height) - var(--eq-control-md-line-height)) / 2);
77
+ padding-right: var(--eq-control-padding-x-condensed);
76
78
  padding-left: calc(0.25rem * 8);
77
79
  }
78
80
  .dropdown-menu-trigger,
@@ -252,18 +254,18 @@
252
254
  justify-content: center;
253
255
  }
254
256
  .dropdown-menu-item-indicator-checkbox {
255
- top: calc(0.25rem * 2.25);
256
257
  width: calc(0.25rem * 3.5);
257
258
  height: calc(0.25rem * 3.5);
259
+ top: calc((var(--eq-control-md-height) - calc(0.25rem * 3.5)) / 2);
258
260
  border-radius: 0.25rem;
259
261
  border-style: var(--tw-border-style);
260
262
  border-width: 1px;
261
263
  border-color: var(--color-text-secondary, color(display-p3 0.1792 0.1792 0.1792));
262
264
  }
263
265
  .dropdown-menu-item-indicator-radio {
264
- top: calc(0.25rem * 1.5);
265
266
  height: calc(0.25rem * 5);
266
267
  width: calc(0.25rem * 4);
268
+ top: calc((var(--eq-control-md-height) - calc(0.25rem * 5)) / 2);
267
269
  }
268
270
  .dropdown-menu-checkbox-item[data-state='checked'] .dropdown-menu-item-indicator-checkbox {
269
271
  border-color: var(--color-button-primary-border, color(display-p3 0.5242 0.2903 0.7705));
@@ -37,23 +37,23 @@
37
37
  display: flex;
38
38
  }
39
39
  .size--xs {
40
- width: calc(0.25rem * 6);
41
- height: calc(0.25rem * 6);
40
+ width: var(--eq-control-xs-height);
41
+ height: var(--eq-control-xs-height);
42
42
  border-radius: var(--radius-md, 0.375rem);
43
43
  }
44
44
  .size--sm {
45
- width: calc(0.25rem * 7);
46
- height: calc(0.25rem * 7);
45
+ width: var(--eq-control-sm-height);
46
+ height: var(--eq-control-sm-height);
47
47
  border-radius: var(--radius-md, 0.375rem);
48
48
  }
49
49
  .size--md {
50
- width: calc(0.25rem * 10);
51
- height: calc(0.25rem * 10);
50
+ width: var(--eq-control-md-height);
51
+ height: var(--eq-control-md-height);
52
52
  border-radius: var(--radius-md, 0.375rem);
53
53
  }
54
54
  .size--lg {
55
- width: calc(0.25rem * 11);
56
- height: calc(0.25rem * 11);
55
+ width: var(--eq-control-lg-height);
56
+ height: var(--eq-control-lg-height);
57
57
  border-radius: var(--radius-md, 0.375rem);
58
58
  }
59
59
  .icon-btn--primary {
@@ -10,9 +10,10 @@
10
10
  border-width: 1px;
11
11
  border-color: var(--color-border, color(display-p3 0.7432 0.7432 0.7432));
12
12
  background-color: var(--color-background, color(display-p3 1 1 1));
13
- padding: calc(0.25rem * 2);
13
+ padding-inline: var(--eq-control-padding-x-condensed);
14
+ padding-block: calc(0.25rem * 0);
14
15
  display: flex;
15
- height: calc(0.25rem * 10);
16
+ height: var(--eq-control-md-height);
16
17
  width: 100%;
17
18
  border-radius: var(--radius-md, 0.375rem);
18
19
  color: var(--color-text-primary, color(display-p3 0 0 0));
@@ -23,8 +24,8 @@
23
24
  line-height: var(--tw-leading, calc(1.5 / 1));
24
25
  text-overflow: ellipsis;
25
26
  @media (width >= 48rem) {
26
- font-size: 0.875rem;
27
- line-height: var(--tw-leading, calc(1.25 / 0.875));
27
+ font-size: var(--eq-control-md-font-size);
28
+ line-height: var(--tw-leading,var(--eq-control-md-line-height));
28
29
  }
29
30
  &::file-selector-button {
30
31
  --tw-font-weight: 500;
@@ -78,12 +79,13 @@
78
79
  border-color: var(--color-border, color(display-p3 0.7432 0.7432 0.7432));
79
80
  background-color: var(--color-background, color(display-p3 1 1 1));
80
81
  display: flex;
81
- height: calc(0.25rem * 10);
82
+ height: var(--eq-control-md-height);
82
83
  width: 100%;
83
84
  align-items: center;
84
- gap: calc(0.25rem * 2);
85
+ gap: var(--eq-control-md-gap);
85
86
  border-radius: var(--radius-md, 0.375rem);
86
- padding: calc(0.25rem * 2);
87
+ padding-inline: var(--eq-control-padding-x-condensed);
88
+ padding-block: calc(0.25rem * 0);
87
89
  &:has(*:is(:disabled)) {
88
90
  cursor: not-allowed;
89
91
  }
@@ -139,8 +141,8 @@
139
141
  line-height: var(--tw-leading, calc(1.5 / 1));
140
142
  text-overflow: ellipsis;
141
143
  @media (width >= 48rem) {
142
- font-size: 0.875rem;
143
- line-height: var(--tw-leading, calc(1.25 / 0.875));
144
+ font-size: var(--eq-control-md-font-size);
145
+ line-height: var(--tw-leading,var(--eq-control-md-line-height));
144
146
  }
145
147
  &::file-selector-button {
146
148
  --tw-font-weight: 500;
@@ -14,7 +14,7 @@
14
14
  display: flex;
15
15
  align-items: center;
16
16
  gap: calc(0.25rem * 2);
17
- padding-inline: var(--eq-list-item-padding-x);
17
+ padding-inline: var(--eq-control-padding-x-condensed);
18
18
  padding-top: calc(var(--eq-list-group-gap) - var(--eq-list-gap));
19
19
  font-size: var(--eq-list-label-font-size);
20
20
  --tw-font-weight: 500;
@@ -48,7 +48,7 @@
48
48
  )
49
49
  > li
50
50
  .nav-list-items[data-depth='1']:not(.nav-list-expandable-items) {
51
- margin-left: calc(var(--eq-list-item-icon-size) + var(--eq-list-item-gap));
51
+ margin-left: calc(var(--eq-list-item-icon-size) + var(--eq-control-md-gap));
52
52
  }
53
53
  .nav-list-separator {
54
54
  margin: calc(0.25rem * 0);
@@ -67,21 +67,21 @@
67
67
  }
68
68
  .nav-list-item {
69
69
  display: flex;
70
- height: var(--eq-list-item-height);
70
+ height: var(--eq-control-md-height);
71
71
  min-height: var(--eq-touch-target);
72
72
  width: 100%;
73
73
  min-width: calc(0.25rem * 0);
74
74
  align-items: center;
75
- gap: var(--eq-list-item-gap);
75
+ gap: var(--eq-control-md-gap);
76
76
  border-radius: var(--radius-md, 0.375rem);
77
77
  border-style: var(--tw-border-style);
78
78
  border-width: 1px;
79
79
  border-color: transparent;
80
80
  background-color: transparent;
81
- padding-inline: var(--eq-list-item-padding-x);
81
+ padding-inline: var(--eq-control-padding-x-condensed);
82
82
  text-align: left;
83
83
  text-decoration-line: none;
84
- font-size: var(--eq-list-item-font-size);
84
+ font-size: var(--eq-control-md-font-size);
85
85
  color: var(--color-text-secondary, color(display-p3 0.1792 0.1792 0.1792));
86
86
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
87
87
  transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
@@ -213,7 +213,7 @@
213
213
  > :is([data-slot='nav-list-item'], [data-slot='nav-list-expandable-trigger'])
214
214
  > .nav-list-item-prefix
215
215
  ) {
216
- --nav-list-child-indent: calc(var(--eq-list-item-icon-size) + var(--eq-list-item-gap));
216
+ --nav-list-child-indent: calc(var(--eq-list-item-icon-size) + var(--eq-control-md-gap));
217
217
  }
218
218
  .nav-list-items.nav-list-expandable-items {
219
219
  margin-left: calc(0.25rem * 0);
@@ -221,21 +221,22 @@
221
221
  border-left-width: 0px;
222
222
  }
223
223
  .nav-list-expandable-items > li > .nav-list-item {
224
- padding-left: calc(var(--eq-list-item-padding-x) + var(--nav-list-child-indent));
224
+ padding-left: calc(var(--eq-control-padding-x-condensed) + var(--nav-list-child-indent));
225
225
  }
226
226
  .nav-list-expandable-items .nav-list-items.nav-list-expandable-items {
227
227
  border-left-style: var(--tw-border-style);
228
228
  border-left-width: 1px;
229
229
  border-color: var(--color-border-raised, color(display-p3 0.7383 0.7441 0.751));
230
230
  margin-left: calc(
231
- var(--eq-list-item-padding-x) + var(--nav-list-child-indent) + var(--eq-list-item-icon-size) / 2
231
+ var(--eq-control-padding-x-condensed) + var(--nav-list-child-indent) +
232
+ var(--eq-list-item-icon-size) / 2
232
233
  );
233
234
  }
234
235
  .nav-list-expandable-items .nav-list-expandable-items .nav-list-items.nav-list-expandable-items {
235
- margin-left: calc(var(--eq-list-item-padding-x) + var(--eq-list-item-icon-size) / 2);
236
+ margin-left: calc(var(--eq-control-padding-x-condensed) + var(--eq-list-item-icon-size) / 2);
236
237
  }
237
238
  .nav-list-expandable-items .nav-list-expandable-items > li > .nav-list-item {
238
- padding-left: var(--eq-list-item-padding-x);
239
+ padding-left: var(--eq-control-padding-x-condensed);
239
240
  }
240
241
  .nav-list-items[data-depth='0'] > .nav-list-expandable > .nav-list-expandable-trigger {
241
242
  --tw-font-weight: 500;
@@ -50,8 +50,8 @@
50
50
  }
51
51
  .nav-rail-item {
52
52
  display: flex;
53
- width: var(--eq-control-height);
54
- height: var(--eq-control-height);
53
+ width: var(--eq-control-md-height);
54
+ height: var(--eq-control-md-height);
55
55
  min-height: var(--eq-touch-target);
56
56
  min-width: var(--eq-touch-target);
57
57
  align-items: center;
@@ -87,13 +87,15 @@
87
87
  text-overflow: ellipsis;
88
88
  white-space: nowrap;
89
89
  padding-inline: calc(0.25rem * 2);
90
- padding-top: calc(0.25rem * 5.5);
91
- padding-bottom: calc(0.25rem * 1.5);
90
+ padding-block: calc((var(--eq-control-md-height) - var(--eq-control-md-line-height)) / 2);
92
91
  font-size: 0.875rem;
93
92
  line-height: var(--tw-leading, calc(1.25 / 0.875));
94
93
  --tw-font-weight: 600;
95
94
  font-weight: 600;
96
95
  color: var(--color-text-primary, color(display-p3 0 0 0));
96
+ padding-top: calc(
97
+ calc(0.25rem * 4) + (var(--eq-control-md-height) - var(--eq-control-md-line-height)) / 2
98
+ );
97
99
  background-color: inherit;
98
100
  }
99
101
  .nav-panel-header:has(> .nav-switcher-heading) {
@@ -102,20 +104,10 @@
102
104
  padding-top: calc(0.25rem * 4);
103
105
  padding-bottom: calc(0.25rem * 0);
104
106
  }
105
- .nav-rail + .nav-panel .nav-panel-header:has(> .nav-switcher-heading) {
106
- padding-top: calc(
107
- calc(0.25rem * 4) +
108
- (
109
- max(var(--eq-control-height), var(--eq-touch-target)) -
110
- max(calc(0.25rem * 8), var(--eq-touch-target))
111
- ) /
112
- 2
113
- );
114
- }
115
107
  .nav-switcher-heading {
116
108
  margin: calc(0.25rem * 0);
117
109
  display: flex;
118
- height: calc(0.25rem * 8);
110
+ height: var(--eq-control-md-height);
119
111
  min-height: var(--eq-touch-target);
120
112
  min-width: calc(0.25rem * 0);
121
113
  align-items: center;
@@ -152,7 +144,7 @@
152
144
  }
153
145
  .nav-switcher-heading .nav-switcher {
154
146
  display: flex;
155
- height: calc(0.25rem * 8);
147
+ height: var(--eq-control-md-height);
156
148
  min-height: var(--eq-touch-target);
157
149
  width: 100%;
158
150
  min-width: calc(0.25rem * 0);
@@ -22,11 +22,11 @@
22
22
  white-space: nowrap;
23
23
  }
24
24
  .items-per-page-trigger.items-per-page-trigger {
25
- font-size: 0.75rem;
26
- line-height: var(--tw-leading, calc(1 / 0.75));
27
- height: calc(0.25rem * 7);
25
+ font-size: var(--eq-control-sm-font-size);
26
+ line-height: var(--tw-leading,var(--eq-control-sm-line-height));
27
+ height: var(--eq-control-sm-height);
28
28
  width: auto;
29
- padding-inline: calc(0.25rem * 2);
29
+ padding-inline: var(--eq-control-padding-x-condensed);
30
30
  padding-block: calc(0.25rem * 0);
31
31
  }
32
32
  .items-per-page-trigger.items-per-page-trigger:focus-visible {
@@ -33,11 +33,11 @@
33
33
  z-index: 10;
34
34
  display: flex;
35
35
  align-items: center;
36
- gap: calc(0.25rem * 1.5);
36
+ gap: var(--eq-control-md-gap);
37
37
  height: 100%;
38
- padding-inline: calc(0.25rem * 3);
39
- font-size: 0.875rem;
40
- line-height: var(--tw-leading, calc(1.25 / 0.875));
38
+ padding-inline: var(--eq-control-padding-x-normal);
39
+ font-size: var(--eq-control-md-font-size);
40
+ line-height: var(--tw-leading,var(--eq-control-md-line-height));
41
41
  --tw-font-weight: 500;
42
42
  font-weight: 500;
43
43
  white-space: nowrap;
@@ -106,24 +106,30 @@
106
106
  padding-inline: calc(0.25rem * 0);
107
107
  }
108
108
  .size--sm {
109
- height: calc(0.25rem * 7);
109
+ height: var(--eq-control-sm-height);
110
110
  }
111
111
  .size--sm .segment {
112
- padding-inline: calc(0.25rem * 2);
113
- font-size: 0.75rem;
114
- line-height: var(--tw-leading, calc(1 / 0.75));
112
+ gap: var(--eq-control-sm-gap);
113
+ padding-inline: var(--eq-control-padding-x-condensed);
114
+ font-size: var(--eq-control-sm-font-size);
115
+ line-height: var(--tw-leading,var(--eq-control-sm-line-height));
115
116
  }
116
117
  .size--sm .segment--icon-only {
118
+ gap: calc(0.25rem * 0);
117
119
  padding-inline: calc(0.25rem * 0);
118
120
  }
119
121
  .size--md {
120
- height: calc(0.25rem * 10);
122
+ height: var(--eq-control-md-height);
121
123
  }
122
124
  .size--lg {
123
- height: calc(0.25rem * 11);
125
+ height: var(--eq-control-lg-height);
126
+ }
127
+ .size--lg .segment {
128
+ font-size: var(--eq-control-lg-font-size);
129
+ line-height: var(--tw-leading,var(--eq-control-lg-line-height));
124
130
  }
125
131
  .size--lg .segment:not(.segment--icon-only) {
126
- padding-inline: calc(0.25rem * 4);
132
+ padding-inline: var(--eq-control-padding-x-spacious);
127
133
  }
128
134
  .variant--primary {
129
135
  --segment-active-fill: var(--color-button-primary-fill);
@@ -3,11 +3,10 @@
3
3
  --mix-color: var(--color-border);
4
4
  --hover-darken: 12%;
5
5
  --hover-lighten: 12%;
6
- font-size: 0.875rem;
7
- line-height: var(--tw-leading, calc(1.25 / 0.875));
8
- padding-inline: calc(0.25rem * 3);
9
- padding-block: calc(0.25rem * 2);
10
- height: calc(0.25rem * 10);
6
+ font-size: var(--eq-control-md-font-size);
7
+ line-height: var(--tw-leading,var(--eq-control-md-line-height));
8
+ padding-inline: var(--eq-control-padding-x-normal);
9
+ height: var(--eq-control-md-height);
11
10
  width: 100%;
12
11
  border-radius: var(--radius-md, 0.375rem);
13
12
  border-style: var(--tw-border-style);
@@ -17,7 +16,7 @@
17
16
  display: flex;
18
17
  align-items: center;
19
18
  justify-content: space-between;
20
- gap: calc(0.25rem * 2);
19
+ gap: var(--eq-control-md-gap);
21
20
  --tw-ring-offset-color: var(--color-background, color(display-p3 1 1 1));
22
21
  &:focus-visible {
23
22
  --tw-ring-color: var(--color-focus-ring, color(display-p3 0.5242 0.2903 0.7705));
@@ -225,11 +224,11 @@
225
224
  &:focus {
226
225
  background-color: var(--color-list-item-hover) !important;
227
226
  }
228
- padding-block: calc(0.25rem * 1.5);
229
- padding-right: calc(0.25rem * 2);
230
- padding-left: calc(0.25rem * 2);
227
+ min-height: var(--eq-control-md-height);
228
+ padding-inline: var(--eq-control-padding-x-condensed);
229
+ padding-block: calc((var(--eq-control-md-height) - var(--eq-control-md-line-height)) / 2);
231
230
  position: relative;
232
- gap: calc(0.25rem * 2);
231
+ gap: var(--eq-control-md-gap);
233
232
  }
234
233
  .select-item-indicator {
235
234
  display: flex;
@@ -61,7 +61,7 @@
61
61
  grid-column: 1 / -1;
62
62
  }
63
63
  .table-head {
64
- height: calc(0.25rem * 10);
64
+ height: var(--eq-control-md-height);
65
65
  align-content: center;
66
66
  text-align: left;
67
67
  --tw-font-weight: 500;
@@ -88,8 +88,9 @@
88
88
  gap: calc(0.25rem * 4);
89
89
  grid-template-columns: subgrid;
90
90
  grid-column: 1 / -1;
91
+ min-height: var(--eq-control-md-height);
91
92
  padding-inline: calc(0.25rem * 4);
92
- padding-block: calc(0.25rem * 2);
93
+ padding-block: calc((var(--eq-control-md-height) - var(--eq-control-md-line-height)) / 2);
93
94
  }
94
95
  .table-body .table-row:nth-child(even) {
95
96
  background-color: color-mix(in srgb, color(display-p3 0 0 0) 3%, transparent);
@@ -1,8 +1,7 @@
1
1
  /*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
2
2
  .tabs-list {
3
3
  color: var(--color-text-secondary, color(display-p3 0.1792 0.1792 0.1792));
4
- height: auto;
5
- min-height: calc(0.25rem * 10);
4
+ height: var(--eq-control-md-height);
6
5
  display: flex;
7
6
  align-items: center;
8
7
  }
@@ -21,8 +20,9 @@
21
20
  @media (prefers-reduced-motion: reduce) {
22
21
  transition-property: none;
23
22
  }
24
- padding-inline: calc(0.25rem * 3);
25
- padding-block: calc(0.25rem * 1.5);
23
+ align-self: stretch;
24
+ padding-inline: var(--eq-control-padding-x-normal);
25
+ padding-block: calc(0.25rem * 0);
26
26
  font-size: 1.125rem;
27
27
  line-height: var(--tw-leading, calc(1.75 / 1.125));
28
28
  --tw-font-weight: 500;
@@ -40,8 +40,8 @@
40
40
  }
41
41
  .tabs-trigger--filled {
42
42
  width: 100%;
43
- padding-inline: calc(0.25rem * 3);
44
- padding-block: calc(0.25rem * 1.5);
43
+ padding-inline: var(--eq-control-padding-x-normal);
44
+ padding-block: calc(0.25rem * 0);
45
45
  color: var(--color-text-secondary, color(display-p3 0.1792 0.1792 0.1792));
46
46
  &::before {
47
47
  content: '';
@@ -7,12 +7,12 @@
7
7
  ========================================================= */
8
8
 
9
9
  .root {
10
- /* list-item: one selectable row (NavListItem; later DropdownMenuItem, SelectItem, CommandItem) */
11
- --eq-list-item-height: --spacing(9); /* 36 */
12
- --eq-list-item-padding-x: --spacing(2); /* 8 */
13
- --eq-list-item-gap: --spacing(2); /* 8, icon to text */
10
+ /* list-item: one selectable row */
11
+ --eq-list-item-height: --spacing(9); /* 36. Deprecated: use --eq-control-md-height */
12
+ --eq-list-item-padding-x: --spacing(2); /* 8. Deprecated: use --eq-control-padding-x-condensed */
13
+ --eq-list-item-gap: --spacing(2); /* 8, icon to text. Deprecated: use --eq-control-md-gap */
14
14
  --eq-list-item-icon-size: --spacing(4); /* 16 */
15
- --eq-list-item-font-size: --theme(--text-sm); /* 14 */
15
+ --eq-list-item-font-size: --theme(--text-sm); /* 14. Deprecated: use --eq-control-md-font-size */
16
16
  --eq-list-item-muted-color: var(--color-text-tertiary);
17
17
  /* list: the rows together */
18
18
  --eq-list-gap: --spacing(0.5); /* 2, between items */
@@ -33,7 +33,23 @@
33
33
  var(--color-text-secondary)
34
34
  );
35
35
  /* control: a stand-alone element */
36
- --eq-control-height: --spacing(10); /* 40: rail item; later Button, Input */
36
+ --eq-control-xs-height: --spacing(6); /* 24 */
37
+ --eq-control-sm-height: --spacing(7); /* 28 */
38
+ --eq-control-md-height: --spacing(9); /* 36 */
39
+ --eq-control-lg-height: --spacing(11); /* 44 */
40
+ /* Font size and line height change together: line heights are lengths, not ratios of the size. */
41
+ --eq-control-sm-font-size: --theme(--text-xs); /* 12 */
42
+ --eq-control-sm-line-height: --spacing(4); /* 16 */
43
+ --eq-control-md-font-size: --theme(--text-sm); /* 14 */
44
+ --eq-control-md-line-height: --spacing(5); /* 20 */
45
+ --eq-control-lg-font-size: --theme(--text-base); /* 16 */
46
+ --eq-control-lg-line-height: --spacing(6); /* 24 */
47
+ --eq-control-padding-x-condensed: --spacing(2); /* 8 */
48
+ --eq-control-padding-x-normal: --spacing(3); /* 12 */
49
+ --eq-control-padding-x-spacious: --spacing(4); /* 16 */
50
+ --eq-control-sm-gap: --spacing(1.5); /* 6, icon to text */
51
+ --eq-control-md-gap: --spacing(2); /* 8, icon to text */
52
+ --eq-control-lg-gap: --spacing(2); /* 8, icon to text */
37
53
  /* touch: the minimum tap target */
38
54
  --eq-touch-target: 0px;
39
55
 
@@ -2,16 +2,16 @@
2
2
  changes every component's compiled CSS. */
3
3
  /* Never read var(--spacing) or var(--text-*) here: the theme is inline, so consumer builds leave them undefined. */
4
4
 
5
- /* DECISIONS: Equality's names, --eq-{thing}-{property}. Parts read only these: h-(--eq-list-item-height).
5
+ /* DECISIONS: Equality's names, --eq-{thing}-{property}. Parts read only these: h-(--eq-control-md-height).
6
6
  theme-decisions-scoped.css is generated from this file: run `pnpm build:decisions` after
7
7
  changing it, or tests/theme-css.test.ts fails. */
8
8
  html {
9
- /* list-item: one selectable row (NavListItem; later DropdownMenuItem, SelectItem, CommandItem) */
10
- --eq-list-item-height: --spacing(9); /* 36 */
11
- --eq-list-item-padding-x: --spacing(2); /* 8 */
12
- --eq-list-item-gap: --spacing(2); /* 8, icon to text */
9
+ /* list-item: one selectable row */
10
+ --eq-list-item-height: --spacing(9); /* 36. Deprecated: use --eq-control-md-height */
11
+ --eq-list-item-padding-x: --spacing(2); /* 8. Deprecated: use --eq-control-padding-x-condensed */
12
+ --eq-list-item-gap: --spacing(2); /* 8, icon to text. Deprecated: use --eq-control-md-gap */
13
13
  --eq-list-item-icon-size: --spacing(4); /* 16 */
14
- --eq-list-item-font-size: --theme(--text-sm); /* 14 */
14
+ --eq-list-item-font-size: --theme(--text-sm); /* 14. Deprecated: use --eq-control-md-font-size */
15
15
  --eq-list-item-muted-color: var(--color-text-tertiary);
16
16
  /* list: the rows together */
17
17
  --eq-list-gap: --spacing(0.5); /* 2, between items */
@@ -32,7 +32,23 @@ html {
32
32
  var(--color-text-secondary)
33
33
  );
34
34
  /* control: a stand-alone element */
35
- --eq-control-height: --spacing(10); /* 40: rail item; later Button, Input */
35
+ --eq-control-xs-height: --spacing(6); /* 24 */
36
+ --eq-control-sm-height: --spacing(7); /* 28 */
37
+ --eq-control-md-height: --spacing(9); /* 36 */
38
+ --eq-control-lg-height: --spacing(11); /* 44 */
39
+ /* Font size and line height change together: line heights are lengths, not ratios of the size. */
40
+ --eq-control-sm-font-size: --theme(--text-xs); /* 12 */
41
+ --eq-control-sm-line-height: --spacing(4); /* 16 */
42
+ --eq-control-md-font-size: --theme(--text-sm); /* 14 */
43
+ --eq-control-md-line-height: --spacing(5); /* 20 */
44
+ --eq-control-lg-font-size: --theme(--text-base); /* 16 */
45
+ --eq-control-lg-line-height: --spacing(6); /* 24 */
46
+ --eq-control-padding-x-condensed: --spacing(2); /* 8 */
47
+ --eq-control-padding-x-normal: --spacing(3); /* 12 */
48
+ --eq-control-padding-x-spacious: --spacing(4); /* 16 */
49
+ --eq-control-sm-gap: --spacing(1.5); /* 6, icon to text */
50
+ --eq-control-md-gap: --spacing(2); /* 8, icon to text */
51
+ --eq-control-lg-gap: --spacing(2); /* 8, icon to text */
36
52
  /* touch: the minimum tap target */
37
53
  --eq-touch-target: 0px;
38
54
 
@@ -6,6 +6,10 @@
6
6
  @apply focus-visible:outline-none;
7
7
  }
8
8
 
9
+ @utility control-row-padding {
10
+ padding-block: calc((var(--eq-control-md-height) - var(--eq-control-md-line-height)) / 2);
11
+ }
12
+
9
13
  @utility control-track {
10
14
  @apply border-control-edge dark:border-control-edge-dark border;
11
15
  @apply inset-shadow-control-sunken dark:inset-shadow-control-sunken-dark;
@@ -295,6 +295,9 @@
295
295
  .table-row {
296
296
  display: table-row;
297
297
  }
298
+ .h-\(--eq-control-md-height\) {
299
+ height: var(--eq-control-md-height);
300
+ }
298
301
  .w-56 {
299
302
  width: calc(0.25rem * 56);
300
303
  }
@@ -927,7 +930,22 @@
927
930
  var(--color-text-primary),
928
931
  var(--color-text-secondary)
929
932
  );
930
- --eq-control-height: calc(0.25rem * 10);
933
+ --eq-control-xs-height: calc(0.25rem * 6);
934
+ --eq-control-sm-height: calc(0.25rem * 7);
935
+ --eq-control-md-height: calc(0.25rem * 9);
936
+ --eq-control-lg-height: calc(0.25rem * 11);
937
+ --eq-control-sm-font-size: 0.75rem;
938
+ --eq-control-sm-line-height: calc(0.25rem * 4);
939
+ --eq-control-md-font-size: 0.875rem;
940
+ --eq-control-md-line-height: calc(0.25rem * 5);
941
+ --eq-control-lg-font-size: 1rem;
942
+ --eq-control-lg-line-height: calc(0.25rem * 6);
943
+ --eq-control-padding-x-condensed: calc(0.25rem * 2);
944
+ --eq-control-padding-x-normal: calc(0.25rem * 3);
945
+ --eq-control-padding-x-spacious: calc(0.25rem * 4);
946
+ --eq-control-sm-gap: calc(0.25rem * 1.5);
947
+ --eq-control-md-gap: calc(0.25rem * 2);
948
+ --eq-control-lg-gap: calc(0.25rem * 2);
931
949
  --eq-touch-target: 0px;
932
950
  --color-list-item-current: color-mix(in srgb, color(display-p3 0 0 0) 10%, transparent);
933
951
  @supports (color: color-mix(in lab, red, red)) {
@@ -34,8 +34,8 @@
34
34
  height: calc(0.25rem * 3);
35
35
  }
36
36
  .timeline--md .timeline-marker {
37
- width: calc(0.25rem * 10);
38
- height: calc(0.25rem * 10);
37
+ width: var(--eq-control-md-height);
38
+ height: var(--eq-control-md-height);
39
39
  }
40
40
  .timeline--md .timeline-marker > * {
41
41
  width: calc(0.25rem * 5);
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": "5.6.0",
10
+ "version": "6.0.0-next.0",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
13
13
  "component library",