@plexui/styles 0.1.32 → 0.1.33

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.
Files changed (50) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +16 -0
  2. package/dist/es/components/Badge/Badge.module.css +41 -8
  3. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +1 -1
  4. package/dist/es/components/Button/Button.module.css +117 -64
  5. package/dist/es/components/Button/NavigationButton.module.css +27 -0
  6. package/dist/es/components/Card/Card.module.css +5 -3
  7. package/dist/es/components/Checkbox/Checkbox.module.css +80 -41
  8. package/dist/es/components/DataTable/DataTable.module.css +31 -5
  9. package/dist/es/components/DatePicker/Calendar.module.css +267 -3
  10. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +20 -0
  11. package/dist/es/components/DateRangePicker/Calendar.module.css +205 -3
  12. package/dist/es/components/Dialog/Dialog.module.css +214 -49
  13. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +58 -14
  14. package/dist/es/components/Field/Field.module.css +164 -2
  15. package/dist/es/components/FieldError/FieldError.module.css +13 -10
  16. package/dist/es/components/FieldGroup/FieldGroup.module.css +44 -4
  17. package/dist/es/components/FileUpload/FileUpload.module.css +103 -10
  18. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +25 -14
  19. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +20 -14
  20. package/dist/es/components/Indicator/LoadingIndicator.module.css +41 -6
  21. package/dist/es/components/Input/Input.module.css +126 -25
  22. package/dist/es/components/InputGroup/InputGroup.module.css +1 -1
  23. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +27 -147
  24. package/dist/es/components/Menu/Menu.module.css +162 -20
  25. package/dist/es/components/OTPInput/OTPInput.module.css +11 -3
  26. package/dist/es/components/Page/Page.module.css +140 -11
  27. package/dist/es/components/RadioGroup/RadioGroup.module.css +10 -10
  28. package/dist/es/components/Select/Select.module.css +118 -13
  29. package/dist/es/components/SelectControl/SelectControl.module.css +83 -11
  30. package/dist/es/components/ShimmerText/ShimmerText.module.css +7 -0
  31. package/dist/es/components/Sidebar/Sidebar.module.css +74 -18
  32. package/dist/es/components/Skeleton/Skeleton.module.css +4 -0
  33. package/dist/es/components/Slider/Slider.module.css +53 -16
  34. package/dist/es/components/Sortable/Sortable.module.css +13 -4
  35. package/dist/es/components/Switch/Switch.module.css +16 -7
  36. package/dist/es/components/Table/Table.module.css +4 -2
  37. package/dist/es/components/Tabs/Tabs.module.css +39 -6
  38. package/dist/es/components/TagInput/TagInput.module.css +64 -19
  39. package/dist/es/components/TextLink/TextLink.module.css +4 -4
  40. package/dist/es/components/Textarea/Textarea.module.css +1 -1
  41. package/dist/es/components/Toast/Toast.module.css +72 -2
  42. package/dist/es/components/Toolbar/Toolbar.module.css +389 -0
  43. package/dist/es/components/Tooltip/Tooltip.module.css +1 -1
  44. package/dist/es/styles/base.css +1 -1
  45. package/dist/es/styles/mobile-materials.css +27 -0
  46. package/dist/es/styles/mobile-surfaces.css +39 -0
  47. package/dist/es/styles/touch.css +280 -57
  48. package/dist/es/styles/variables-components.css +60 -0
  49. package/package.json +1 -1
  50. package/postcss/mixins.mjs +1 -1
@@ -3,6 +3,8 @@
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  min-width: 0;
6
+ width: 100%;
7
+ max-width: 100%;
6
8
  height: 100%;
7
9
  overflow: hidden;
8
10
  background: var(--page-background);
@@ -22,7 +24,7 @@
22
24
  margin-inline: auto;
23
25
  }.Footer {
24
26
  flex: none;
25
- padding: 16px var(--page-footer-gutter, var(--page-gutter)) var(--page-footer-padding-bottom, max(16px, env(safe-area-inset-bottom, 0px)));
27
+ padding: var(--page-footer-padding-top, 16px) var(--page-footer-gutter, var(--page-gutter)) var(--page-footer-padding-bottom, max(16px, env(safe-area-inset-bottom, 0px)));
26
28
  background: var(--page-background);
27
29
  }.Header {
28
30
  flex: none;
@@ -49,11 +51,15 @@
49
51
  font-weight: var(--font-weight-semibold);
50
52
  line-height: var(--page-title-line-height);
51
53
  }.Subtitle {
54
+ display: flex;
55
+ align-items: center;
56
+ gap: 8px;
52
57
  margin: 0;
53
58
  color: var(--color-text-secondary);
54
59
  font-size: var(--font-text-sm-size);
55
60
  line-height: var(--font-text-sm-line-height);
56
- }.Actions {
61
+ }.Leading,
62
+ .Actions {
57
63
  display: flex;
58
64
  align-items: center;
59
65
  gap: 8px;
@@ -106,7 +112,7 @@
106
112
  transition: border-color var(--transition-duration-basic);
107
113
  }
108
114
 
109
- .Header[data-scrolled] > .Head {
115
+ .Header[data-scrolled][data-divider] > .Head {
110
116
  border-color: var(--color-border);
111
117
  }
112
118
  }/* One row, the height of Apple's bar. It floats over the page: at rest nothing shows, and content
@@ -114,21 +120,53 @@
114
120
  it would hold the bar's children inside its own backdrop. The first column keeps the place of a
115
121
  sidebar's menu button. */@media (max-width: 767.98px) {
116
122
  .Page {
117
- --page-top: calc(max(10px, env(safe-area-inset-top)) + var(--page-bar-height-phone) + 10px);
123
+ --page-top: var(--page-toolbar-height, var(--page-header-height, calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--page-bar-height-phone) + 10px)));
124
+ --page-bottom: var(--page-toolbar-bottom-height, var(--page-footer-height, 0px));
125
+ --mobile-surface-primary: var(--mobile-surface-plain-primary, var(--color-surface));
126
+ --mobile-surface-secondary: var(--mobile-surface-plain-secondary, var(--color-background-secondary-soft-alpha));
127
+ --mobile-surface-tertiary: var(--mobile-surface-plain-tertiary, var(--color-surface));
128
+ --page-background: var(--mobile-surface-primary);
129
+ --page-footer-padding-top: 12px;
130
+ --page-footer-gutter: 16px;
131
+ --page-footer-padding-bottom: max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
132
+ --field-group-background: var(--mobile-surface-secondary);
133
+ --file-upload-list-background: transparent;
134
+ --file-upload-list-border-width: 1px;
135
+ --mobile-neutral-outline-background: initial;
136
+ --mobile-neutral-outline-hover: initial;
137
+ --mobile-neutral-outline-active: initial;
138
+ --page-bar-veil: color-mix(in srgb, var(--page-background) var(--page-bar-veil-opacity), transparent);
139
+ }
140
+
141
+ .Page[data-surface="grouped"] {
142
+ --mobile-surface-primary: var(--mobile-surface-grouped-primary, var(--color-surface-secondary));
143
+ --mobile-surface-secondary: var(--mobile-surface-grouped-secondary, var(--color-surface));
144
+ --mobile-surface-tertiary: var(--mobile-surface-grouped-tertiary, var(--color-surface-secondary));
145
+ --file-upload-list-background: var(--mobile-surface-secondary);
146
+ --file-upload-list-border-width: 0px;
147
+ --mobile-neutral-outline-background: var(--mobile-surface-secondary);
148
+ --mobile-neutral-outline-hover: color-mix(in srgb, var(--mobile-surface-secondary) 96%, var(--color-text));
149
+ --mobile-neutral-outline-active: color-mix(in srgb, var(--mobile-surface-secondary) 94%, var(--color-text));
150
+ }
151
+
152
+ /* A phone Toolbar takes the place of the bar on its side. */
153
+ .Page:has(> [data-toolbar][data-placement="top"]) > .Header,
154
+ .Page:has(> [data-toolbar][data-placement="bottom"]) > .Footer {
155
+ display: none;
118
156
  }
119
157
 
120
158
  .Header {
121
159
  position: absolute;
122
160
  z-index: 5;
123
161
  inset: 0 0 auto;
124
- padding-block: max(10px, env(safe-area-inset-top)) 10px;
162
+ padding-block: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) 10px;
125
163
  }
126
164
 
127
165
  .Header::before {
128
166
  position: absolute;
129
167
  z-index: -1;
130
168
  inset: 0;
131
- border-bottom: 0.5px solid var(--page-bar-line);
169
+ border-bottom: 0.5px solid transparent;
132
170
  background: var(--page-bar-veil);
133
171
  backdrop-filter: blur(20px) saturate(180%);
134
172
  content: "";
@@ -137,20 +175,40 @@
137
175
  transition: opacity var(--transition-duration-basic);
138
176
  }
139
177
 
178
+ .Header[data-background="solid"]::before {
179
+ background: var(--page-background);
180
+ backdrop-filter: none;
181
+ opacity: 1;
182
+ }
183
+
140
184
  .Header[data-scrolled]::before {
141
185
  opacity: 1;
142
186
  }
143
187
 
188
+ /* The bar's glass buttons cast a shadow only over content scrolled under them. */
189
+ .Header[data-scrolled] {
190
+ --mobile-glass-shadow: var(--mobile-glass-shadow-raised);
191
+ }
192
+
193
+ .Header[data-scrolled][data-divider]::before {
194
+ border-bottom-color: var(--page-bar-line);
195
+ }
196
+
144
197
  .Bar {
145
198
  display: grid;
146
- grid-template-columns: minmax(52px, 1fr) minmax(0, max-content) minmax(max-content, 1fr);
199
+ grid-template-columns: var(--page-bar-side-width, 44px) minmax(0, 1fr) var(--page-bar-side-width, 44px);
147
200
  gap: 0;
148
201
  min-height: var(--page-bar-height-phone);
149
202
  }
150
203
 
151
- .Bar > :first-child {
204
+ .Bar > .Heading,
205
+ .Bar > .Title {
152
206
  grid-column: 2;
207
+ grid-row: 1;
153
208
  align-self: center;
209
+ min-width: 0;
210
+ /* SF text ink sits 2px below the geometric center in Apple's 44px bar. */
211
+ transform: translateY(2px);
154
212
  }
155
213
 
156
214
  .Heading {
@@ -159,11 +217,16 @@
159
217
  min-width: 0;
160
218
  }
161
219
 
220
+ .Heading:has(> .Subtitle > *) {
221
+ gap: 2px;
222
+ }
223
+
162
224
  .Title {
163
225
  display: block;
164
226
  min-height: 0;
165
227
  overflow: hidden;
166
228
  font-size: 17px;
229
+ font-weight: 590;
167
230
  line-height: 22px;
168
231
  text-align: center;
169
232
  text-overflow: ellipsis;
@@ -171,24 +234,90 @@
171
234
  }
172
235
 
173
236
  .Subtitle {
237
+ flex-wrap: wrap;
238
+ justify-content: center;
239
+ row-gap: 4px;
174
240
  max-width: 100%;
175
241
  overflow: hidden;
176
242
  font-size: 13px;
177
243
  line-height: 18px;
178
244
  text-overflow: ellipsis;
179
- white-space: nowrap;
245
+ white-space: normal;
246
+ }
247
+
248
+ .Leading,
249
+ .Actions {
250
+ width: -moz-max-content;
251
+ width: max-content;
252
+ }
253
+
254
+ .Leading {
255
+ grid-column: 1;
256
+ grid-row: 1;
257
+ justify-self: start;
258
+ min-width: 0;
259
+ }
260
+
261
+ .Leading > :is(button, a),
262
+ .Actions > :is(button, a) {
263
+ --button-size: 44px;
264
+ --button-font-size: 17px;
265
+ --button-line-height: 22px;
266
+ --button-radius: var(--radius-full);
267
+ }
268
+
269
+ .Leading > :is(button, a):not([data-navigation-action]),
270
+ .Actions > :is(button, a):not([data-navigation-action]) {
271
+ --button-icon-size: 17px;
272
+ }
273
+
274
+ :is(.Leading, .Actions) > :where(button, a)[data-uniform]:where(:not([data-disabled], [data-mobile-material="flat"])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
275
+ --button-mobile-material-background: var(--mobile-glass-background);
276
+ --button-mobile-material-sheen: var(--mobile-glass-sheen);
277
+ --button-mobile-material-shadow: var(--mobile-glass-shadow);
278
+ --button-mobile-material-backdrop-filter: var(--mobile-glass-backdrop-filter);
279
+ --button-mobile-material-opacity: 1;
280
+ --button-mobile-material-scale: 1;
281
+ --button-mobile-material-hover: var(--mobile-glass-background-hover);
282
+ --button-mobile-material-active: var(--mobile-glass-background-active);
180
283
  }
181
284
 
182
285
  .Actions {
183
286
  grid-column: 3;
287
+ grid-row: 1;
184
288
  justify-content: flex-end;
185
- min-width: 52px;
289
+ justify-self: end;
290
+ min-width: 0;
186
291
  padding-left: 8px;
187
292
  }
188
293
 
294
+ .Footer {
295
+ position: relative;
296
+ z-index: 5;
297
+ background: var(--page-bar-veil);
298
+ backdrop-filter: blur(20px) saturate(180%);
299
+ }
300
+
301
+ .Footer[data-background="solid"] {
302
+ background: var(--page-background);
303
+ backdrop-filter: none;
304
+ }
305
+
189
306
  .Content {
307
+ scrollbar-width: none;
308
+ }
309
+
310
+ .Content::-webkit-scrollbar {
311
+ display: none;
312
+ }
313
+
314
+ .Content {
315
+
316
+ margin-bottom: calc(-1 * var(--page-bottom));
317
+ padding-bottom: calc(var(--page-content-padding-bottom) + var(--page-bottom));
318
+ scroll-padding-bottom: calc(var(--page-content-padding-bottom) + var(--page-bottom));
190
319
  padding-top: calc(var(--page-top) + var(--page-content-padding-top));
191
320
  scroll-padding-top: calc(var(--page-top) + var(--page-content-padding-top));
192
- }
321
+ }
193
322
  }
194
323
  }
@@ -9,7 +9,7 @@
9
9
  }.RadioLabel {
10
10
  display: inline-flex;
11
11
  flex-direction: row;
12
- align-items: flex-start;
12
+ align-items: var(--radio-group-label-align, flex-start);
13
13
  gap: var(--radio-group-item-gap);
14
14
  cursor: pointer;
15
15
  font-size: var(--radio-group-item-font-size);
@@ -37,10 +37,10 @@
37
37
  display: flex;
38
38
  width: 100%;
39
39
  }.RadioDescription {
40
- padding-inline-start: calc(var(--radio-group-indicator-size) + var(--radio-group-item-gap));
40
+ padding-inline-start: calc(var(--radio-group-target-size, var(--radio-group-indicator-size)) + var(--radio-group-item-gap));
41
41
  color: var(--color-text-secondary);
42
- font-size: var(--font-text-xs-size);
43
- line-height: var(--font-text-xs-line-height);
42
+ font-size: var(--radio-group-description-font-size, var(--font-text-xs-size));
43
+ line-height: var(--radio-group-description-line-height, var(--font-text-xs-line-height));
44
44
  }
45
45
 
46
46
  .RadioItemGroup[data-orientation="right"] .RadioDescription {
@@ -55,7 +55,7 @@
55
55
  align-items: center;
56
56
  justify-content: center;
57
57
  flex-shrink: 0;
58
- height: var(--radio-group-item-line-height);
58
+ height: var(--radio-group-target-size, var(--radio-group-item-line-height));
59
59
  }
60
60
 
61
61
  /* Radix pushes the inputs off screen in a weird way that
@@ -76,8 +76,8 @@
76
76
  align-items: center;
77
77
  justify-content: center;
78
78
  flex-shrink: 0;
79
- width: var(--radio-group-indicator-size);
80
- height: var(--radio-group-indicator-size);
79
+ width: var(--radio-group-target-size, var(--radio-group-indicator-size));
80
+ height: var(--radio-group-target-size, var(--radio-group-indicator-size));
81
81
  padding: 0;
82
82
  border: none;
83
83
  border-radius: var(--radius-full);
@@ -88,7 +88,7 @@
88
88
  transition-property: box-shadow;
89
89
  transition-timing-function: var(--transition-ease-basic);
90
90
  }
91
- @media (hover: hover) and (pointer: fine) {.RadioItem:where(:not([data-disabled])):hover {
91
+ @media (hover: hover) and (pointer: fine) {.RadioItem:where(:not([data-disabled])):hover:where(:not(:root[data-input="touch"] *)) {
92
92
  box-shadow: var(--radio-group-ring, 0 0 0 1px var(--radio-group-indicator-border-color-hover) inset);
93
93
  }
94
94
  }
@@ -155,11 +155,11 @@
155
155
  100% {
156
156
  opacity: 1;
157
157
  }
158
- }/* The touch stylesheet reveals this only in grouped Field rows. */.Checkmark {
158
+ }/* The touch stylesheet uses the same single-selection mark inside and outside Field rows. */.Checkmark {
159
159
  display: var(--radio-group-checkmark-display, none);
160
160
  grid-area: 1 / 1;
161
161
  width: 22px;
162
162
  height: 22px;
163
- color: var(--color-text);
163
+ color: var(--radio-group-checkmark-color, var(--color-text));
164
164
  }
165
165
  }
@@ -16,7 +16,7 @@
16
16
  max-width: var(--select-list-max-width, none);
17
17
  border-radius: var(--menu-radius);
18
18
  background: var(--color-surface-elevated);
19
- box-shadow: var(--shadow), var(--shadow-hairline);
19
+ box-shadow: var(--menu-shadow, var(--shadow), var(--shadow-hairline));
20
20
  font-size: var(--menu-font-size);
21
21
  line-height: var(--menu-line-height);
22
22
  /* The transform-origin computed from the content and arrow positions/offsets */
@@ -71,7 +71,7 @@
71
71
  ============================================= */.OptionsList {
72
72
  overflow: auto;
73
73
  flex: 1;
74
- padding: var(--menu-gutter);
74
+ padding: var(--menu-gutter) var(--menu-padding-inline, var(--menu-gutter));
75
75
  }
76
76
 
77
77
  /* Focused without search: the highlighted option shows where the keys go */
@@ -94,7 +94,7 @@
94
94
  background: var(--menu-item-background-color);
95
95
  content: "";
96
96
  opacity: 0;
97
- transform: scale(var(--scale, 0.98));
97
+ transform: scale(var(--menu-item-press-scale, var(--scale, 0.98)));
98
98
  transition-duration: var(--transition-duration-basic);
99
99
  transition-property: opacity, background-color, transform;
100
100
  transition-timing-function: var(--cubic-enter);
@@ -114,12 +114,12 @@
114
114
  font-weight: var(--font-weight-semibold);
115
115
  }
116
116
  .Option[data-highlight]::before {
117
- opacity: 1;
117
+ opacity: var(--menu-item-highlight-opacity, 1);
118
118
  transform: scale(1);
119
119
  }
120
120
 
121
121
  .Option[data-highlight]:active::before {
122
- transform: scale(var(--scale, 0.98));
122
+ transform: scale(var(--menu-item-press-scale, var(--scale, 0.98)));
123
123
  }
124
124
 
125
125
  .Option[data-disabled] {
@@ -184,11 +184,11 @@
184
184
  align-items: center;
185
185
  justify-content: flex-start;
186
186
  gap: var(--menu-item-gap);
187
- padding: var(--menu-item-padding);
187
+ padding: var(--menu-label-padding, var(--menu-item-padding));
188
188
  margin-top: calc(var(--spacing) * 2);
189
- font-size: var(--font-text-xs-size);
190
- line-height: var(--font-text-xs-line-height);
191
- font-weight: var(--font-weight-semibold);
189
+ font-size: var(--menu-label-font-size, var(--font-text-xs-size));
190
+ line-height: var(--menu-label-line-height, var(--font-text-xs-line-height));
191
+ font-weight: var(--menu-label-font-weight, var(--font-weight-semibold));
192
192
  color: var(--color-text-secondary);
193
193
  }
194
194
 
@@ -257,7 +257,7 @@ background: var(--gray-25);
257
257
  }
258
258
 
259
259
  @media (hover: hover) and (pointer: fine) {
260
- .Action:hover::before {
260
+ .Action:hover:where(:not(:root[data-input="touch"] *))::before {
261
261
  opacity: 1;
262
262
  transform: scale(1);
263
263
  }
@@ -288,7 +288,7 @@ background: var(--gray-25);
288
288
  gap: var(--menu-item-gap);
289
289
  }.ActionsContainer {
290
290
  position: relative;
291
- padding: var(--menu-gutter);
291
+ padding: var(--menu-gutter) var(--menu-padding-inline, var(--menu-gutter));
292
292
  border-top: 1px solid var(--menu-separator-background-color);
293
293
  }
294
294
 
@@ -314,7 +314,7 @@ background: var(--gray-25);
314
314
  --control-gutter-md: var(--menu-search-gutter, 8px);
315
315
  --control-gutter-lg: var(--menu-search-gutter, 8px);
316
316
  position: relative;
317
- padding: var(--menu-gutter) var(--menu-gutter) 0;
317
+ padding: var(--menu-gutter) var(--menu-padding-inline, var(--menu-gutter)) 0;
318
318
  }/* Override fill for Search icon to apply fill-secondary class correctly *//* Need !important to override fill="currentColor" attribute in SVG path *//* Target SVG with fill prop and its path children */.Search svg[fill],
319
319
  .Search svg[fill] path {
320
320
  fill: var(--color-text-secondary) !important;
@@ -322,7 +322,7 @@ background: var(--gray-25);
322
322
  .Search svg.fill-secondary path {
323
323
  fill: var(--color-text-secondary) !important;
324
324
  }.SearchEmpty {
325
- padding: var(--menu-gutter);
325
+ padding: var(--menu-gutter) var(--menu-padding-inline, var(--menu-gutter));
326
326
  margin: calc(var(--spacing) * 4) 0;
327
327
  }
328
328
 
@@ -346,5 +346,110 @@ background: var(--gray-25);
346
346
  clip-path: inset(50%);
347
347
  white-space: nowrap;
348
348
  pointer-events: none;
349
+ }/* iPhone menu selection geometry. Search and multiple selection keep their behavior. */@media (max-width: 767px) {
350
+ .Option,
351
+ .Option[data-selected],
352
+ .Option:has(.OptionDescription) {
353
+ font-weight: var(--font-weight-normal);
354
+ }
355
+
356
+ .Option {
357
+ letter-spacing: var(--menu-letter-spacing, -0.43px);
358
+ }
359
+
360
+ .Search,
361
+ .ActionsContainer {
362
+ flex-shrink: 0;
363
+ }
364
+
365
+ .OptionsList {
366
+ min-height: 0;
367
+ }
368
+
369
+ /* Text grows naturally; the pressed surface covers the complete 44px target. */
370
+ .Option:has(> .PressableInner > .OptionLeading) {
371
+ display: grid;
372
+ grid-template-columns: minmax(0, 1fr);
373
+ align-content: center;
374
+ min-height: 44px;
375
+ padding-block: 0;
376
+ }
377
+
378
+ .Option:has(> .PressableInner > .OptionLeading)::before {
379
+ position: absolute;
380
+ inset: 0;
381
+ }
382
+
383
+ .PressableInner:has(> .OptionLeading) {
384
+ grid-area: 1 / 1;
385
+ align-items: center;
386
+ }
387
+
388
+ .OptionLeading {
389
+ gap: 2px;
390
+ padding-block: 10px;
391
+ }
392
+
393
+ .OptionLeading > .OptionInner {
394
+ min-width: 0;
395
+ gap: 8px;
396
+ }
397
+
398
+ .OptionIndicatorSlot {
399
+ justify-content: center;
400
+ width: 24px;
401
+ height: 22px;
402
+ }
403
+
404
+ /* iOS 26 kit Menu Items (Menu has Selection): the checkmark leads every row in a 24px column,
405
+ 6px before the label, so the desktop end position moves to the start on a phone. */
406
+ .PressableInner > .OptionIndicatorSlot[data-position="end"] {
407
+ order: -1;
408
+ margin-left: 0;
409
+ }
410
+
411
+ /* The 17pt checkmark of the kit: about 15 × 14.5px of ink. */
412
+ .OptionCheck {
413
+ width: 26px;
414
+ height: 26px;
415
+ }
416
+
417
+ .OptionDescription {
418
+ font-size: 13px;
419
+ line-height: 18px;
420
+ letter-spacing: normal;
421
+ color: var(--menu-description-color, var(--color-text-secondary));
422
+ }
423
+
424
+ /* Rich descriptions may contain their own controls; only plain subtitles truncate. */
425
+ .OptionDescription:not(:has(*)) {
426
+ display: block;
427
+ overflow: hidden;
428
+ text-overflow: ellipsis;
429
+ white-space: nowrap;
430
+ }
431
+
432
+ .Option[data-disabled] {
433
+ color: var(--menu-disabled-label-color, var(--color-text-tertiary));
434
+ opacity: 1;
435
+ }
436
+
437
+ .Option[data-disabled] .OptionDescription {
438
+ color: var(--menu-disabled-description-color, var(--color-text-tertiary));
439
+ }
440
+
441
+ .Option[data-disabled] .OptionIndicatorSlot {
442
+ color: var(--color-text);
443
+ }
444
+
445
+ .OptionGroupHeading {
446
+ margin-top: 21px;
447
+ color: var(--color-text-tertiary);
448
+ }
449
+
450
+ .OptionGroup:not(:first-child) > .OptionGroupHeading::before {
451
+ top: -11px;
452
+ inset-inline: 8px;
453
+ }
349
454
  }
350
455
  }
@@ -75,7 +75,7 @@
75
75
  .SelectControl:focus {
76
76
  outline: none;
77
77
  }
78
- .SelectControl:focus-visible::after {
78
+ .SelectControl:focus-visible:not([data-menu-pointer-focus])::after {
79
79
  outline: 2px solid var(--button-ring-color, var(--color-ring));
80
80
  outline-offset: var(--select-control-ring-offset, 2px);
81
81
  }
@@ -347,11 +347,11 @@
347
347
  transform: scale(var(--scale));
348
348
  }
349
349
  .SelectControl[data-variant="ghost"][aria-expanded="true"]::before, .SelectControl[data-variant="ghost"][data-state="open"]::before {
350
- opacity: 0.6;
350
+ opacity: var(--select-control-ghost-state-opacity, 0.6);
351
351
  transform: scale(1);
352
352
  }
353
353
  @media (hover: hover) and (pointer: fine) {
354
- .SelectControl[data-variant="ghost"]:where(:not([data-disabled])):hover::before {
354
+ .SelectControl[data-variant="ghost"]:where(:not([data-disabled])):hover:where(:not(:root[data-input="touch"] *))::before {
355
355
  opacity: 1;
356
356
  transform: scale(1);
357
357
  }
@@ -359,7 +359,7 @@
359
359
  .SelectControl[data-variant="ghost"]:where(:not([data-disabled])):not(:has(button:active)):active::before {
360
360
  --select-control-background-color: var(--color-background-primary-ghost-active);
361
361
 
362
- opacity: 1;
362
+ opacity: var(--select-control-ghost-state-opacity, 1);
363
363
  transform: scale(var(--scale));
364
364
  }
365
365
 
@@ -375,7 +375,7 @@
375
375
  }
376
376
 
377
377
  @media (hover: hover) and (pointer: fine) {
378
- .SelectControl[data-variant="ghost"]:where(:not([data-disabled]))[data-invalid]:hover::before {
378
+ .SelectControl[data-variant="ghost"]:where(:not([data-disabled]))[data-invalid]:hover:where(:not(:root[data-input="touch"] *))::before {
379
379
  --select-control-background-color: var(--color-background-primary-ghost-hover);
380
380
  }
381
381
  }
@@ -394,7 +394,7 @@
394
394
  --select-control-background-color: var(--color-background-primary-soft-alpha-hover);
395
395
  }
396
396
  @media (hover: hover) and (pointer: fine) {
397
- .SelectControl[data-variant="soft"]:where(:not([data-disabled])):hover::before {
397
+ .SelectControl[data-variant="soft"]:where(:not([data-disabled])):hover:where(:not(:root[data-input="touch"] *))::before {
398
398
  --select-control-background-color: var(--color-background-primary-soft-alpha-hover);
399
399
  }
400
400
  }
@@ -428,7 +428,7 @@
428
428
  .SelectControl[data-variant="outline"][data-state="open"] {
429
429
  --select-control-border-color: var(--input-outline-border-color-hover);
430
430
  }
431
- @media (hover: hover) and (pointer: fine) {.SelectControl[data-variant="outline"]:where(:not([data-disabled])):hover {
431
+ @media (hover: hover) and (pointer: fine) {.SelectControl[data-variant="outline"]:where(:not([data-disabled])):hover:where(:not(:root[data-input="touch"] *)) {
432
432
  --select-control-border-color: var(--input-outline-border-color-hover);
433
433
  }
434
434
  }
@@ -455,8 +455,8 @@
455
455
  Hover
456
456
  ============================================= */
457
457
  @media (hover: hover) and (pointer: fine) {
458
- .SelectControl:not([data-disabled]):hover .Clear,
459
- .SelectControl:not([data-disabled]):hover .DropdownIcon {
458
+ .SelectControl:not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) .Clear,
459
+ .SelectControl:not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) .DropdownIcon {
460
460
  opacity: 1;
461
461
  }
462
462
  }
@@ -519,8 +519,13 @@
519
519
  opacity: 0.75;
520
520
  }
521
521
 
522
+ .Clear[data-uniform] {
523
+ --button-uniform-size: var(--clear-size);
524
+ }
525
+
522
526
  .Clear[data-variant="solid"] {
523
527
  --button-size: var(--clear-iso-size);
528
+ --button-uniform-size: var(--clear-iso-size);
524
529
  --button-icon-size: var(--clear-iso-icon-size);
525
530
  }
526
531
 
@@ -535,8 +540,33 @@
535
540
 
536
541
  :where(.SelectControl[data-pill]) .Clear[data-only-child] {
537
542
  margin-right: var(--clear-iso-pill-offset);
538
- }.DropdownIcon {
543
+ }@media (max-width: 767px) {
544
+ .SelectControl:has(> .IndicatorWrapper > .Clear) {
545
+ min-height: 44px;
546
+ }
547
+
548
+ /* Keep the dropdown's own space. A wider clear slot reduces the text's
549
+ available width instead of extending an invisible target over the icon. */
550
+ .IndicatorWrapper:has(> .Clear) {
551
+ flex-shrink: 0;
552
+ }
553
+
554
+ .Clear {
555
+ min-width: 44px;
556
+ min-height: 44px;
557
+
558
+ /* Button's size token remains the face size, including the solid-only
559
+ variant. The background and ring stay compact inside the touch slot. */
560
+ }
561
+ .Clear::before,
562
+ .Clear::after {
563
+ width: var(--button-size);
564
+ height: var(--button-size);
565
+ margin: auto;
566
+ }
567
+ }.DropdownIcon {
539
568
  position: relative;
569
+ display: inline-flex;
540
570
  width: var(--dropdown-icon-width, 8px);
541
571
  height: var(--dropdown-icon-height, 12px);
542
572
  margin-right: var(--dropdown-icon-offset);
@@ -554,14 +584,56 @@
554
584
 
555
585
  [data-state="open"] .DropdownIcon {
556
586
  opacity: 1;
557
- }.DropdownIconChevron {
587
+ }.DropdownIcon > svg {
588
+ display: block;
589
+ width: 100%;
590
+ height: 100%;
591
+ }.DropdownIcon > .MobileDropdownGlyph {
592
+ display: none;
593
+ }.DropdownIconChevron {
558
594
  width: var(--dropdown-chevron-icon-width, 11px);
559
595
  height: var(--dropdown-chevron-icon-height, 6px);
560
596
  }/* Shares margin offset with dropdown indicator */.LoadingIndicator {
597
+ /* Embedded loading follows the control's text size; standalone touch
598
+ indicators keep their larger default and explicit sizes still win. */
599
+ --indicator-default-size: 1em;
600
+
561
601
  margin-right: var(--dropdown-icon-offset);
562
602
  }
563
603
 
564
604
  :where(.SelectControl[data-pill]) .LoadingIndicator {
565
605
  margin-right: var(--dropdown-icon-pill-offset);
606
+ }/* Standalone native pop-up trigger. Field rows own their control geometry. */@media (max-width: 767px) {
607
+ :where([data-row]) .DropdownIcon:not(.DropdownIconChevron) {
608
+ align-items: center;
609
+ justify-content: center;
610
+ width: 10px;
611
+ height: 22px;
612
+ margin-inline: 0;
613
+ color: var(--mobile-accessory-secondary, var(--color-text-secondary));
614
+ opacity: 1;
566
615
  }
616
+
617
+ :where([data-row]) .DropdownIcon > .DropdownGlyph {
618
+ display: none;
619
+ }
620
+
621
+ :where([data-row]) .DropdownIcon > .MobileDropdownGlyph {
622
+ display: block;
623
+ flex-shrink: 0;
624
+ width: 20px;
625
+ height: 20px;
626
+ }
627
+
628
+ :where([data-row]) :is([disabled], [data-disabled], [aria-disabled="true"]) .DropdownIcon:not(.DropdownIconChevron) {
629
+ color: var(--color-text-disabled);
630
+ }
631
+
632
+ .SelectControl[data-variant="ghost"]:not([data-row] *) {
633
+ --select-control-size: 44px;
634
+ --select-control-gutter: 0px;
635
+ --select-control-gap: 3px;
636
+ line-height: 18px;
637
+ }
638
+ }
567
639
  }