@eqtylab/equality 5.5.3 → 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.
@@ -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: '';
@@ -42,6 +42,20 @@
42
42
  opacity: 50%;
43
43
  }
44
44
  }
45
+ .textarea--bare {
46
+ border-radius: 0;
47
+ border-style: var(--tw-border-style);
48
+ border-width: 0px;
49
+ background-color: transparent;
50
+ &:focus-visible {
51
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
52
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
53
+ }
54
+ &:focus-visible {
55
+ --tw-ring-offset-width: 0px;
56
+ --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
57
+ }
58
+ }
45
59
  @property --tw-border-style {
46
60
  syntax: "*";
47
61
  inherits: false;
@@ -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
  }
@@ -324,6 +327,9 @@
324
327
  color: var(--color-text-secondary);
325
328
  }
326
329
  }
330
+ .flex-1 {
331
+ flex: 1;
332
+ }
327
333
  .shrink {
328
334
  flex-shrink: 1;
329
335
  }
@@ -924,7 +930,22 @@
924
930
  var(--color-text-primary),
925
931
  var(--color-text-secondary)
926
932
  );
927
- --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);
928
949
  --eq-touch-target: 0px;
929
950
  --color-list-item-current: color-mix(in srgb, color(display-p3 0 0 0) 10%, transparent);
930
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.5.3",
10
+ "version": "6.0.0-next.0",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
13
13
  "component library",