@plexui/styles 0.1.32 → 0.1.34

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 (81) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +30 -0
  2. package/dist/es/components/Alert/Alert.module.css +112 -1
  3. package/dist/es/components/Badge/Badge.module.css +41 -8
  4. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +35 -1
  5. package/dist/es/components/Button/Button.module.css +178 -77
  6. package/dist/es/components/Button/NavigationButton.module.css +27 -0
  7. package/dist/es/components/Card/Card.module.css +27 -9
  8. package/dist/es/components/Checkbox/Checkbox.module.css +83 -90
  9. package/dist/es/components/CodeBlock/CodeBlock.module.css +20 -0
  10. package/dist/es/components/ColorPicker/ColorPicker.module.css +396 -0
  11. package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
  12. package/dist/es/components/DataTable/DataTable.module.css +35 -5
  13. package/dist/es/components/DatePicker/Calendar.module.css +280 -3
  14. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +20 -0
  15. package/dist/es/components/DateRangePicker/Calendar.module.css +223 -3
  16. package/dist/es/components/DateRangePicker/Trigger.module.css +29 -1
  17. package/dist/es/components/Dialog/Dialog.module.css +386 -86
  18. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +89 -14
  19. package/dist/es/components/Field/Field.module.css +346 -19
  20. package/dist/es/components/FieldError/FieldError.module.css +13 -10
  21. package/dist/es/components/FieldGroup/FieldGroup.module.css +103 -4
  22. package/dist/es/components/FileUpload/FileUpload.module.css +103 -10
  23. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +46 -14
  24. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +36 -14
  25. package/dist/es/components/Indicator/LoadingIndicator.module.css +48 -6
  26. package/dist/es/components/Input/Input.module.css +195 -25
  27. package/dist/es/components/InputGroup/InputGroup.module.css +5 -1
  28. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +27 -147
  29. package/dist/es/components/Menu/Menu.module.css +425 -33
  30. package/dist/es/components/OTPInput/OTPInput.module.css +11 -3
  31. package/dist/es/components/Page/Page.module.css +217 -20
  32. package/dist/es/components/PageControl/PageControl.module.css +81 -0
  33. package/dist/es/components/Popover/Popover.module.css +10 -1
  34. package/dist/es/components/RadioGroup/RadioGroup.module.css +10 -10
  35. package/dist/es/components/Select/Select.module.css +162 -13
  36. package/dist/es/components/SelectControl/SelectControl.module.css +118 -11
  37. package/dist/es/components/ShimmerText/ShimmerText.module.css +7 -0
  38. package/dist/es/components/Sidebar/Sidebar.module.css +347 -72
  39. package/dist/es/components/Skeleton/Skeleton.module.css +4 -0
  40. package/dist/es/components/Slider/Slider.module.css +96 -52
  41. package/dist/es/components/Sortable/Sortable.module.css +20 -7
  42. package/dist/es/components/Stepper/Stepper.module.css +98 -0
  43. package/dist/es/components/Switch/Switch.module.css +16 -7
  44. package/dist/es/components/TabBar/TabBar.module.css +233 -0
  45. package/dist/es/components/Table/Table.module.css +4 -2
  46. package/dist/es/components/Tabs/Tabs.module.css +186 -6
  47. package/dist/es/components/TagInput/TagInput.module.css +64 -19
  48. package/dist/es/components/TextLink/TextLink.module.css +4 -4
  49. package/dist/es/components/Textarea/Textarea.module.css +1 -1
  50. package/dist/es/components/Toast/Toast.module.css +120 -5
  51. package/dist/es/components/Toolbar/Toolbar.module.css +579 -0
  52. package/dist/es/components/Tooltip/Tooltip.module.css +1 -1
  53. package/dist/es/styles/base.css +1 -1
  54. package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
  55. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  56. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  57. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  58. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  59. package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
  60. package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  61. package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
  62. package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
  63. package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  64. package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
  65. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  66. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  67. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  68. package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
  69. package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
  70. package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
  71. package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
  72. package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
  73. package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  74. package/dist/es/styles/katex-fonts/LICENSE +21 -0
  75. package/dist/es/styles/katex.min.css +666 -730
  76. package/dist/es/styles/mobile-materials.css +69 -0
  77. package/dist/es/styles/mobile-surfaces.css +46 -0
  78. package/dist/es/styles/touch.css +524 -63
  79. package/dist/es/styles/variables-components.css +286 -7
  80. package/package.json +1 -1
  81. package/postcss/mixins.mjs +1 -1
@@ -9,16 +9,16 @@
9
9
  z-index: 50;
10
10
  overflow: auto;
11
11
  width: var(--menu-width, auto);
12
- min-width: var(--menu-min-width, 300px);
12
+ min-width: var(--menu-min-width, var(--menu-default-min-width, 300px));
13
13
  max-width: var(--radix-dropdown-menu-content-available-width);
14
14
  max-height: min(
15
15
  var(--radix-dropdown-menu-content-available-height),
16
16
  var(--menu-max-height, 1200px)
17
17
  );
18
- padding: var(--menu-gutter);
18
+ padding: var(--menu-gutter) var(--menu-padding-inline, var(--menu-gutter));
19
19
  border-radius: var(--menu-radius);
20
20
  background: var(--color-surface-elevated);
21
- box-shadow: var(--shadow), var(--shadow-hairline);
21
+ box-shadow: var(--menu-shadow, var(--shadow), var(--shadow-hairline));
22
22
  color: var(--color-text);
23
23
  font-size: var(--menu-font-size);
24
24
  line-height: var(--menu-line-height);
@@ -74,6 +74,13 @@
74
74
  /* Same "item + subtitle" pattern as the pressable item below. */
75
75
  .MenuItemContent:has(.ItemDescription) {
76
76
  font-weight: var(--font-weight-semibold);
77
+ }
78
+
79
+ /* A described row keeps the icons before its label beside the two lines, as a pressable row does */
80
+ .MenuItemContent:has(> .ItemLeading) {
81
+ display: flex;
82
+ align-items: center;
83
+ gap: var(--menu-item-gap);
77
84
  }.MenuItem {
78
85
  position: relative;
79
86
  display: block;
@@ -90,8 +97,10 @@
90
97
 
91
98
  /* An item with a description keeps its label semibold in every state, so
92
99
  consumers never have to remember a className for the "item + subtitle"
93
- pattern. The description's own rule keeps the second line normal. */
94
- .MenuItem:has(.ItemDescription) {
100
+ pattern. The description's own rule keeps the second line normal. The
101
+ line under a radio item or a submenu row is its value (Newest to Oldest,
102
+ Manual), not a subtitle: their labels stay regular among their neighbours. */
103
+ .MenuItem:not(.RadioItem, .SubMenuItem):has(.ItemDescription) {
95
104
  font-weight: var(--font-weight-semibold);
96
105
  }
97
106
 
@@ -99,7 +108,7 @@
99
108
  outline: none;
100
109
  }
101
110
 
102
- @media (hover: hover) and (pointer: fine) {.MenuItem:hover {
111
+ @media (hover: hover) and (pointer: fine) {.MenuItem:hover:where(:not(:root[data-input="touch"] *)) {
103
112
  /* Prevent links from changing colors */
104
113
  color: var(--color-text);
105
114
  }
@@ -113,23 +122,25 @@
113
122
  background: var(--menu-item-background-color);
114
123
  content: "";
115
124
  opacity: 0;
116
- transform: scale(var(--scale, 0.98));
125
+ transform: scale(var(--menu-item-press-scale, var(--scale, 0.98)));
117
126
  transition-duration: var(--transition-duration-basic);
118
127
  transition-property: opacity, background-color, transform;
119
128
  transition-timing-function: var(--cubic-enter);
120
129
  will-change: opacity, transform;
121
130
  }
122
131
  .MenuItem[data-state="open"]::before, .MenuItem[data-highlighted]::before {
123
- opacity: 1;
132
+ opacity: var(--menu-item-highlight-opacity, 1);
124
133
  transform: scale(1);
125
134
  }
126
135
 
127
- .MenuItem[data-state="open"]:has(.ItemActions:hover)::before, .MenuItem[data-highlighted]:has(.ItemActions:hover)::before {
128
- opacity: 0.4;
136
+ @media (hover: hover) and (pointer: fine) {
137
+ .MenuItem[data-state="open"]:has(.ItemActions:hover:where(:not(:root[data-input="touch"] *)))::before, .MenuItem[data-highlighted]:has(.ItemActions:hover:where(:not(:root[data-input="touch"] *)))::before {
138
+ opacity: 0.4;
139
+ }
129
140
  }
130
141
 
131
- .MenuItem[data-state="open"]:not(:has(.ItemActions:hover)):active::before, .MenuItem[data-highlighted]:not(:has(.ItemActions:hover)):active::before {
132
- transform: scale(var(--scale, 0.98));
142
+ .MenuItem[data-state="open"]:not(:has(.ItemActions:active)):active::before, .MenuItem[data-highlighted]:not(:has(.ItemActions:active)):active::before {
143
+ transform: scale(var(--menu-item-press-scale, var(--scale, 0.98)));
133
144
  }
134
145
 
135
146
  .MenuItem[data-state="open"] .ItemActions, .MenuItem[data-highlighted] .ItemActions {
@@ -149,7 +160,7 @@
149
160
  color: var(--color-text-danger-ghost);
150
161
  }
151
162
 
152
- @media (hover: hover) and (pointer: fine) {.MenuItem[data-danger]:hover {
163
+ @media (hover: hover) and (pointer: fine) {.MenuItem[data-danger]:hover:where(:not(:root[data-input="touch"] *)) {
153
164
  color: var(--color-text-danger-ghost-hover);
154
165
  }
155
166
  }/* Two-line item: label over description, the same anatomy a Select option
@@ -169,6 +180,10 @@
169
180
  justify-content: inherit;
170
181
  gap: inherit;
171
182
  }.ItemActions {
183
+ /* An action keeps its xs face on a phone, where a uniform xs button is otherwise the kit's 28px circle (touch.css). */
184
+ --button-uniform-size-xs: var(--control-size-xs);
185
+ --button-icon-size-xs: var(--control-icon-size-sm);
186
+
172
187
  /* Prevent adding height to the MenuItem, and horizontally center */
173
188
  display: flex;
174
189
  align-items: center;
@@ -179,6 +194,26 @@
179
194
  transition-duration: var(--transition-duration-basic);
180
195
  transition-property: opacity;
181
196
  transition-timing-function: var(--cubic-enter);
197
+ }/* Secondary actions must be discoverable on touch without highlighting a row. */@media (hover: none), (pointer: coarse) {
198
+ .ItemActions {
199
+ opacity: 1;
200
+ }
201
+ }:where(:root[data-input="touch"]) .ItemActions {
202
+ opacity: 1;
203
+ }/* On a phone an action takes the 44px target of iOS around its face; the negative margin keeps the
204
+ row's layout and the glyph where they were. */@media (max-width: 767px) {
205
+ .ItemActions > button {
206
+ min-width: 44px;
207
+ min-height: 44px;
208
+ margin: calc((var(--button-size) - 44px) / 2);
209
+ }
210
+
211
+ .ItemActions > button::before,
212
+ .ItemActions > button::after {
213
+ width: var(--button-size);
214
+ height: var(--button-size);
215
+ margin: auto;
216
+ }
182
217
  }.Separator {
183
218
  height: 1px;
184
219
  margin: var(--menu-separator-gutter);
@@ -193,9 +228,81 @@
193
228
  -webkit-user-select: none;
194
229
  -moz-user-select: none;
195
230
  user-select: none;
231
+ }/* A header names what the menu acts on, above its items: the picture, name and kind of a file in Files (iOS-menu
232
+ IMG_5690), with a round action at its end, or the picture and name of a board in Freeform (IMG_5676). It sits on
233
+ the rows' inline padding on a desktop; the phone sizes are in touch.css. */.MenuHeader {
234
+ display: flex;
235
+ align-items: center;
236
+ gap: var(--menu-header-gap, calc(var(--spacing) * 2));
237
+ padding: var(--menu-header-padding, var(--menu-item-padding));
238
+ -webkit-user-select: none;
239
+ -moz-user-select: none;
240
+ user-select: none;
241
+ }
242
+
243
+ /* Files leaves more room under a header that no separator closes, before the first item (IMG_5690) */
244
+ .MenuHeader:not(:has(+ .Separator)) {
245
+ margin-bottom: var(--menu-header-list-gap, 0px);
246
+ }.MenuHeaderMedia {
247
+ display: flex;
248
+ flex: none;
249
+ align-items: center;
250
+ justify-content: center;
251
+ width: var(--menu-header-media-size, var(--control-size-md));
252
+ height: var(--menu-header-media-size, var(--control-size-md));
253
+ }
254
+
255
+ .MenuHeaderMedia > :is(img, svg) {
256
+ width: 100%;
257
+ height: 100%;
258
+ }
259
+
260
+ /* A thumbnail has the small rounded corners of a Freeform board's (IMG_5676) */
261
+ .MenuHeaderMedia > img {
262
+ border-radius: var(--menu-header-media-radius, var(--radius-sm));
263
+ -o-object-fit: cover;
264
+ object-fit: cover;
265
+ }.MenuHeaderText {
266
+ display: flex;
267
+ flex: 1;
268
+ min-width: 0;
269
+ flex-direction: column;
270
+ }.MenuHeaderTitle {
271
+ overflow: hidden;
272
+ font-size: var(--menu-header-title-font-size, var(--menu-font-size));
273
+ font-weight: var(--font-weight-semibold);
274
+ line-height: var(--menu-header-title-line-height, var(--menu-line-height));
275
+ text-overflow: ellipsis;
276
+ white-space: nowrap;
277
+ }.MenuHeaderDescription {
278
+ overflow: hidden;
279
+ color: var(--menu-description-color, var(--color-text-secondary));
280
+ font-size: var(--menu-header-description-font-size, var(--font-text-xs-size));
281
+ line-height: var(--menu-header-description-line-height, var(--font-text-xs-line-height));
282
+ text-overflow: ellipsis;
283
+ white-space: nowrap;
284
+ }.MenuHeaderAction {
285
+ flex: none;
286
+ }/* On a phone the action takes the 44px target of iOS around its 34px face, as an item's action does; the negative
287
+ margin keeps the face 16px from the panel's edge, centered on the picture (IMG_5690). */@media (max-width: 767px) {
288
+ /* Under the header, so the face's size outranks Button's own surface rule whatever order the sheets load in. */
289
+ .MenuHeader .MenuHeaderAction {
290
+ min-width: 44px;
291
+ min-height: 44px;
292
+ margin: calc((var(--button-size) - 44px) / 2);
293
+ }
294
+
295
+ .MenuHeader .MenuHeaderAction::before,
296
+ .MenuHeader .MenuHeaderAction::after {
297
+ width: var(--button-size);
298
+ height: var(--button-size);
299
+ margin: auto;
300
+ }
196
301
  }.SubMenuItem {
197
302
  justify-content: space-between;
198
303
  }.SubTriggerIcon {
304
+ /* The chevron takes the free space, so a label stays beside its icon rather than between it and the chevron */
305
+ margin-inline-start: auto;
199
306
  /* slight visual offset of svg canvas */
200
307
  margin-right: -2px;
201
308
  opacity: 0.75;
@@ -276,6 +383,12 @@
276
383
  order: 1;
277
384
  }
278
385
 
386
+ /* Beside only an icon and a label its margin, not space-between, pushes it to the end, so the icon and the label
387
+ stay together at the start; a row with more elements keeps space-between, which an ml-auto child relies on. */
388
+ :where([data-indicator-position="end"]) .PressableInner:where(:not(:has(> :not(svg, .RadioIndicator, .CheckboxIndicator)))) > .RadioIndicator {
389
+ margin-inline-start: auto;
390
+ }
391
+
279
392
  [data-highlighted] .RadioIndicator {
280
393
  box-shadow: 0 0 0 1px var(--radio-group-indicator-border-color-hover) inset;
281
394
  }
@@ -328,6 +441,12 @@
328
441
  order: 1;
329
442
  }
330
443
 
444
+ /* Beside only an icon and a label its margin, not space-between, pushes it to the end, so the icon and the label
445
+ stay together at the start; a row with more elements keeps space-between, which an ml-auto child relies on. */
446
+ :where([data-indicator-position="end"]) .PressableInner:where(:not(:has(> :not(svg, .RadioIndicator, .CheckboxIndicator)))) > .CheckboxIndicator {
447
+ margin-inline-start: auto;
448
+ }
449
+
331
450
  [data-indicator-variant="solid"] .CheckboxIndicator {
332
451
  border-radius: var(--radius-full);
333
452
  box-shadow: 0 0 0 1px var(--radio-group-indicator-border-color) inset;
@@ -349,27 +468,38 @@
349
468
  [data-entering] .CheckboxCircle::before,
350
469
  [data-entering] .CheckboxCircle::after {
351
470
  animation-duration: 0s;
352
- }.MenuList[data-layout="horizontal"] {
353
- --h-icon-size: 20px;
354
- --h-padding: calc(var(--spacing) * 2);
355
- --h-gap: calc(var(--spacing) * 1);
356
-
357
- display: flex;
471
+ }/* A horizontal list, or a horizontal radio group at the top of a list: the mode switch of an iOS menu, one mode of several
472
+ with the chosen one on a fill (iOS-menu IMG_5665 and IMG_5666, Added and Captured over the rows of Photos; iOS 27 kit
473
+ Menu 492:52296, Control Group; Apps 2.4 Menu 40125:198566, Quick Actions). */:is(.MenuList, .RadioGroup)[data-layout="horizontal"] {
474
+ --h-icon-size: var(--menu-horizontal-icon-size, 20px);
475
+ --h-padding: var(--menu-horizontal-item-padding, calc(var(--spacing) * 2));
476
+ --h-gap: var(--menu-horizontal-item-gap, calc(var(--spacing) * 1));
477
+
478
+ display: var(--menu-horizontal-display, flex);
358
479
  flex-direction: row;
359
- min-width: auto;
480
+ /* Flex cannot size every action to the widest one; grid columns can, and a label
481
+ never wraps inside its fixed-height action (phone, through touch.css). */
482
+ grid-auto-flow: column;
483
+ grid-auto-columns: minmax(max-content, 1fr);
484
+ min-width: var(--menu-horizontal-min-width, auto);
485
+ gap: var(--menu-horizontal-gap, normal);
486
+ padding-inline: var(--menu-horizontal-padding-inline, var(--menu-gutter));
360
487
  }
361
488
 
362
- .MenuList[data-layout="horizontal"][data-size="sm"] {
363
- --h-icon-size: 16px;
364
- --h-padding: calc(var(--spacing) * 1.5);
489
+ :is(.MenuList, .RadioGroup)[data-layout="horizontal"][data-size="sm"] {
490
+ --h-icon-size: var(--menu-horizontal-icon-size, 16px);
491
+ --h-padding: var(--menu-horizontal-item-padding, calc(var(--spacing) * 1.5));
365
492
  }
366
493
 
367
- .MenuList[data-layout="horizontal"][data-size="lg"] {
368
- --h-icon-size: 24px;
369
- --h-padding: calc(var(--spacing) * 2.5);
494
+ :is(.MenuList, .RadioGroup)[data-layout="horizontal"][data-size="lg"] {
495
+ --h-icon-size: var(--menu-horizontal-icon-size, 24px);
496
+ --h-padding: var(--menu-horizontal-item-padding, calc(var(--spacing) * 2.5));
370
497
  }
371
498
 
372
- .MenuList[data-layout="horizontal"] .MenuItem {
499
+ :is(.MenuList, .RadioGroup)[data-layout="horizontal"] .MenuItem {
500
+ --menu-item-radius: var(--menu-horizontal-item-radius, calc(var(--menu-radius) - var(--menu-gutter)));
501
+ display: var(--menu-horizontal-item-display, block);
502
+ height: var(--menu-horizontal-item-height, auto);
373
503
  flex: 1 0 auto;
374
504
  flex-direction: column;
375
505
  align-items: center;
@@ -381,19 +511,20 @@
381
511
  line-height: 1;
382
512
  }
383
513
 
384
- .MenuList[data-layout="horizontal"] .PressableInner {
514
+ :is(.MenuList, .RadioGroup)[data-layout="horizontal"] .PressableInner {
385
515
  flex-direction: column;
386
516
  align-items: center;
387
517
  gap: var(--h-gap);
388
- font-size: var(--font-text-2xs-size);
389
- line-height: var(--font-text-2xs-line-height);
518
+ font-size: var(--menu-horizontal-label-size, var(--font-text-2xs-size));
519
+ font-weight: var(--menu-horizontal-label-weight, inherit);
520
+ line-height: var(--menu-horizontal-label-leading, var(--font-text-2xs-line-height));
390
521
  }
391
522
 
392
- .MenuList[data-layout="horizontal"] .PressableInner > svg {
523
+ :is(.MenuList, .RadioGroup)[data-layout="horizontal"] .PressableInner > svg {
393
524
  font-size: var(--h-icon-size);
394
525
  }
395
526
 
396
- .MenuList[data-layout="horizontal"] .MenuItemContent {
527
+ :is(.MenuList, .RadioGroup)[data-layout="horizontal"] .MenuItemContent {
397
528
  flex-direction: column;
398
529
  align-items: center;
399
530
  gap: var(--h-gap);
@@ -401,10 +532,271 @@
401
532
  text-align: center;
402
533
  }
403
534
 
404
- .MenuList[data-layout="horizontal"] .Separator {
535
+ /* Under the label of a tile, not pushed to an edge by the margin of a list row. */
536
+ :is(.MenuList, .RadioGroup)[data-layout="horizontal"] :is(.RadioIndicator, .CheckboxIndicator) {
537
+ margin-inline-start: 0;
538
+ }
539
+
540
+ :is(.MenuList, .RadioGroup)[data-layout="horizontal"] .Separator {
541
+ display: var(--menu-horizontal-separator-display, block);
405
542
  width: 1px;
406
543
  height: auto;
407
544
  align-self: stretch;
408
545
  margin: calc(var(--spacing) * 1) 0;
546
+ }/* A group's options reach the horizontal gutter of the menu, not the inset of its rows: 10pt from the panel's edges in
547
+ the kit and Apps 2.4, where the rows are 16pt in. */.RadioGroup[data-layout="horizontal"] {
548
+ min-width: 0;
549
+ margin-inline: calc(var(--menu-horizontal-padding-inline, var(--menu-gutter)) - var(--menu-padding-inline, var(--menu-gutter)));
550
+ padding-inline: 0;
551
+ }
552
+
553
+ /* The chosen mode stands on a fill, as Photos marks Added or Captured and the kit its first action; the fill tells the
554
+ choice, so no radio indicator is drawn. On a desktop it is 15%, apart from a highlight (8%, 10% in dark); on a phone
555
+ touch.css makes it the 12% of the device (IMG_5666: 222 on the 253 panel across the tile, darker only at its
556
+ leading edge, where the glass shades it; the kit's tertiary fill is 12% too). */
557
+ .RadioGroup[data-layout="horizontal"] .RadioItem[data-state="checked"] {
558
+ border-radius: var(--menu-item-radius);
559
+ background: var(--menu-horizontal-selected-background, var(--alpha-15));
560
+ }
561
+
562
+ .RadioGroup[data-layout="horizontal"] .RadioItem .RadioIndicator {
563
+ display: none;
564
+ }/* The shared check icon stays hidden for desktop radio indicators. */.SelectionCheck {
565
+ width: 16px;
566
+ height: 16px;
567
+ }.RadioIndicator .SelectionCheck {
568
+ display: none;
569
+ }/* iPhone menu items share label/subtitle and selection geometry. */@media (max-width: 767px) {
570
+ .MenuList {
571
+ background: var(--menu-mobile-background, var(--color-surface-elevated));
572
+ }
573
+
574
+ :where([data-theme="dark"]) .MenuList {
575
+ backdrop-filter: var(--menu-mobile-backdrop-filter, none);
576
+ }
577
+
578
+ /* No tracking of its own: the system font tracks the labels. Nine labels of native iOS 26 menus
579
+ (iOS2 IMG_5524, 5525, 17/400) measure within 2px at @3x without it and 7 to 16px short with -0.43px. */
580
+ .MenuList:not([data-layout="horizontal"]) :is(.MenuItem, .MenuItemContent):not(:where(.RadioGroup[data-layout="horizontal"] *)) {
581
+ letter-spacing: var(--menu-letter-spacing, normal);
582
+ overflow-wrap: anywhere;
583
+ }
584
+
585
+ /* A row is 42pt, as native iOS 26 menus space them (iOS-menu IMG_5676 and IMG_5690: labels 125 to 127px apart at
586
+ @3x; the iOS 27 kit draws 40), with a full-row pressed surface. */
587
+ .MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *)) {
588
+ display: grid;
589
+ grid-template-columns: minmax(0, 1fr);
590
+ align-content: center;
591
+ min-height: 42px;
592
+ padding-block: 0;
593
+ }
594
+
595
+ /* A row's press is its own (the capsule, a tile's fill): Safari's gray tap rectangle would stack on it */
596
+ .MenuItem {
597
+ -webkit-tap-highlight-color: transparent;
598
+ }
599
+
600
+ /* The pressed surface is the capsule iOS 26 draws under the finger (Files, the owner's shots of 08.11, @3x: 535 to
601
+ 1224 in a 504 to 1255 panel, the whole 42pt row): 10pt from the panel's edges, not the row's 16, and round at its
602
+ ends (the menu's corner less the gutter, 24px, comes to a half circle on a row). iOS lights it under the finger and
603
+ darkens it away from it, 7 to 8% black on average (Files: 252 under the finger, 217 to 228 at the far end on the
604
+ 255 panel); one even fill of that strength, as the owner proposed (08.11), --menu-press-background in touch.css. Every
605
+ row presses the same gray, a destructive one too. Without touch.css it is the highlight color. */
606
+ .MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *))::before {
607
+ position: absolute;
608
+ inset-block: 0;
609
+ inset-inline: calc(var(--menu-gutter) - var(--menu-padding-inline, var(--menu-gutter)));
610
+ background: var(--menu-press-background, var(--menu-item-background-color));
611
+ }
612
+
613
+ /* It shows the moment the finger lands and fades when it lifts. */
614
+ .MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *)):not(:has(.ItemActions:active)):active::before {
615
+ opacity: 1;
616
+ transform: scale(var(--menu-item-press-scale, var(--scale, 0.98)));
617
+ transition-duration: 0s;
618
+ }
619
+
620
+ .MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *)) > .PressableInner {
621
+ grid-area: 1 / 1;
622
+ min-width: 0;
623
+ padding-block: 10px;
624
+ }
625
+
626
+ .MenuList:not([data-layout="horizontal"]) .MenuItem:has(.ItemDescription),
627
+ .MenuList:not([data-layout="horizontal"]) .MenuItemContent:has(.ItemDescription) {
628
+ font-weight: var(--font-weight-normal);
409
629
  }
630
+
631
+ .MenuList:not([data-layout="horizontal"]) .ItemLeading {
632
+ gap: 2px;
633
+ }
634
+
635
+ .MenuList:not([data-layout="horizontal"]) .ItemDescription {
636
+ font-size: 13px;
637
+ line-height: 18px;
638
+ letter-spacing: normal;
639
+ color: var(--menu-description-color, var(--color-text-secondary));
640
+ }
641
+
642
+ /* The native text subtitle is one line; rich description slots retain their layout. */
643
+ .MenuList:not([data-layout="horizontal"]) .ItemDescription:not(:has(*)) {
644
+ overflow: hidden;
645
+ text-overflow: ellipsis;
646
+ white-space: nowrap;
647
+ }
648
+
649
+ .MenuList:not([data-layout="horizontal"]) .MenuItem[data-disabled] {
650
+ color: var(--menu-disabled-label-color, var(--color-text-tertiary));
651
+ opacity: 1;
652
+ }
653
+
654
+ .MenuList:not([data-layout="horizontal"]) .MenuItem[data-disabled] .ItemDescription {
655
+ color: var(--menu-disabled-description-color, var(--color-text-tertiary));
656
+ }
657
+
658
+ .MenuList:not([data-layout="horizontal"]) .MenuItem[data-disabled] :is(.RadioIndicator, .CheckboxIndicator) {
659
+ color: var(--color-text);
660
+ }
661
+
662
+ /* The checkmark column of native iOS 26 menus (iOS-menu IMG_5666 Photos, IMG_5687 and IMG_5688 Files, the owner's
663
+ Files shots of 08.11, at @3x): 10.3 to 10.7pt of ink centred 28pt from the panel's edge, labels from 43.5pt. A row's
664
+ content starts 22px in, so the column is 13px and the label follows 8.5px after it (touch.css tokens). The iOS 27
665
+ kit draws a 15pt checkmark centred at 34 and labels from 52; the device wins. */
666
+ .MenuList:not([data-layout="horizontal"]) :is(.RadioItem, .CheckboxItem) {
667
+ gap: var(--menu-check-gap, 8.5px);
668
+ }
669
+
670
+ .MenuList:not([data-layout="horizontal"]) :is(.RadioIndicator, .CheckboxIndicator) {
671
+ width: var(--menu-check-column, 13px);
672
+ height: 22px;
673
+ /* A 22px selection slot beside the 20px label line. */
674
+ border-radius: 0;
675
+ box-shadow: none;
676
+ }
677
+
678
+ /* A menu with a checkmark column keeps it on every row: a row without a checkmark and a section title start at the
679
+ label column too (IMG_5666: View Options, Report a Concern and Filter:; Files: Select, New Folder, Name, Kind). */
680
+ .MenuList:not([data-layout="horizontal"]):has(:is(.RadioItem, .CheckboxItem):not(:where(.RadioGroup[data-layout="horizontal"] *))) .MenuItem:not(.RadioItem, .CheckboxItem, [data-submenu-collapse]):not(:where(.RadioGroup[data-layout="horizontal"] *)), .MenuList:not([data-layout="horizontal"]):has(:is(.RadioItem, .CheckboxItem):not(:where(.RadioGroup[data-layout="horizontal"] *))) .MenuItemContent, .MenuList:not([data-layout="horizontal"]):has(:is(.RadioItem, .CheckboxItem):not(:where(.RadioGroup[data-layout="horizontal"] *))) .MenuLabel {
681
+ padding-inline-start: var(--menu-check-label-inset, calc(8px + 13px + 8.5px));
682
+ }
683
+
684
+ .MenuList:not([data-layout="horizontal"]) .RadioIndicatorActive::before,
685
+ .MenuList:not([data-layout="horizontal"]) .RadioIndicatorActive::after {
686
+ display: none;
687
+ }
688
+
689
+ .MenuList:not([data-layout="horizontal"]) .CheckboxCircle {
690
+ width: var(--menu-check-column, 13px);
691
+ height: 22px;
692
+ border-radius: 0;
693
+ background: none;
694
+ color: inherit;
695
+ animation: none;
696
+ }
697
+
698
+ /* iOS 26 kit Menu Items (Menu has Selection): the checkmark leads the row, so the desktop end
699
+ position moves to the start on a phone. */
700
+ .MenuList:not([data-layout="horizontal"]) .CheckboxItem[data-indicator-position="end"],
701
+ .MenuList:not([data-layout="horizontal"]) [data-indicator-position="end"] .RadioItem {
702
+ justify-content: flex-start;
703
+ }
704
+
705
+ .MenuList:not([data-layout="horizontal"]) [data-indicator-position="end"] :is(.RadioIndicator, .RadioIndicatorActive, .CheckboxIndicator) {
706
+ order: -1;
707
+ margin-inline-start: 0;
708
+ }
709
+
710
+ /* The native checkmark: 10.3 to 10.7pt of ink (IMG_5666, 5687, 5688); the 18px Check icon draws 10.6 by 9.9, centred
711
+ in its column with the overflow on both sides. */
712
+ .MenuList:not([data-layout="horizontal"]) .SelectionCheck {
713
+ display: block;
714
+ flex-shrink: 0;
715
+ width: var(--menu-check-size, 18px);
716
+ height: var(--menu-check-size, 18px);
717
+ color: inherit;
718
+ }
719
+ }/* Phone submenu geometry is solved against the whole viewport/footer boundary.
720
+ Retain the primitive's collection and focus behavior, not its side-space width. */@media (max-width: 767px) {
721
+ .MenuList[data-submenu]:not([data-submenu-positioned]) {
722
+ visibility: hidden;
723
+ }
724
+
725
+ .MenuList[data-submenu-phone] {
726
+ width: var(--menu-phone-width, -moz-max-content);
727
+ width: var(--menu-phone-width, max-content);
728
+ min-width: min(var(--menu-phone-min-width, var(--menu-default-min-width, 238px)), var(--menu-phone-max-width));
729
+ max-width: var(--menu-phone-max-width);
730
+ max-height: min(var(--menu-max-height, 1200px), var(--menu-phone-max-height));
731
+ }
732
+
733
+ /* A submenu row ends in a chevron of the label's color, 6 by 10pt with its end 28pt in from the panel's
734
+ (iOS-menu IMG_5676, View Options: 17 by 31px at @3x, black): the 8 by 14 units of ChevronRight at 18px. */
735
+ .MenuList:not([data-layout="horizontal"]) .SubTriggerIcon {
736
+ width: 18px;
737
+ height: 18px;
738
+ opacity: 1;
739
+ }
740
+
741
+ .SubMenuItem[data-state="open"] > .PressableInner > .SubTriggerIcon {
742
+ transform: rotate(90deg);
743
+ }
744
+
745
+ /* iOS 26 submenus (iOS-menu IMG_5677, IMG_5678, IMG_5682): the row that opened one heads it in Semibold, with a
746
+ separator under it (Menu.tsx SubContent). */
747
+ .MenuList[data-submenu-phone] > [data-submenu-collapse] {
748
+ font-weight: var(--font-weight-semibold);
749
+ }
750
+
751
+ /* A submenu that starts with its own separator keeps only the one under its heading row */
752
+ [data-submenu-collapse] + .Separator + .Separator {
753
+ display: none;
754
+ }
755
+
756
+ /* While a submenu stands over it the parent steps back, as in IMG_5677 against IMG_5676: its rows at half strength
757
+ (the label's ink 10 shows as 131 on the 254 panel) and the panel 0.968 of its size from its top (12px narrower on
758
+ each side of a 753px panel, the top in place). The placement marks it (menuSubmenuPlacement.ts) and keeps the mark
759
+ while the whole menu leaves. The origin returns only once the panel is back to full size. */
760
+ .MenuList {
761
+ transition: scale var(--motion-enter) var(--cubic-enter), transform-origin 0s linear var(--motion-enter);
762
+ }
763
+
764
+ .MenuList > * {
765
+ transition: opacity var(--motion-enter) var(--cubic-enter);
766
+ }
767
+
768
+ .MenuList[data-submenu-over] {
769
+ scale: 0.968;
770
+ transform-origin: 50% 0;
771
+ transition: scale var(--motion-enter) var(--cubic-enter), transform-origin 0s;
772
+ }
773
+
774
+ .MenuList[data-submenu-over] > * {
775
+ opacity: 0.5;
776
+ }
777
+
778
+ /* A submenu grows out of the row that opened it, in step with the parent stepping back: from the middle of its top,
779
+ where its heading row covers that row, over the parent's --motion-enter and on its curve. The desktop's quick
780
+ submenu (100ms, from its corner beside the row) came in at a different time from the parent, from the corner. */
781
+ .MenuList[data-submenu-phone] {
782
+ transform-origin: 50% 0;
783
+ }
784
+
785
+ .Menu[data-entering-active] .MenuList[data-submenu-phone],
786
+ .Menu[data-entering][data-interrupted] .MenuList[data-submenu-phone] {
787
+ transition-duration: var(--motion-enter);
788
+ }
789
+
790
+ .Menu[data-exiting-active] .MenuList[data-submenu-phone],
791
+ .Menu[data-exiting][data-interrupted] .MenuList[data-submenu-phone] {
792
+ transition-duration: var(--motion-exit);
793
+ }
794
+
795
+ /* Opening and closing keep their own timing. The rule above lists a delay for the origin, and the open and close
796
+ rules name only their properties and durations, so without this the scale of a menu coming in or going out
797
+ started a whole --motion-enter late, after its fade. */
798
+ .Menu:is([data-entering], [data-exiting]) .MenuList {
799
+ transition-delay: 0s;
800
+ }
801
+ }
410
802
  }
@@ -24,8 +24,10 @@
24
24
  justify-content: center;
25
25
  cursor: text;
26
26
  transition: border-color var(--floating-input-transition-duration) ease-in-out;
27
- }.Cell:hover:not([data-disabled]) {
28
- border-color: var(--floating-input-border-color-hover);
27
+ }@media (hover: hover) and (pointer: fine) {
28
+ .Cell:hover:where(:not(:root[data-input="touch"] *)):not([data-disabled]) {
29
+ border-color: var(--floating-input-border-color-hover);
30
+ }
29
31
  }.CellFocused {
30
32
  border-color: var(--floating-input-border-color-focus);
31
33
  }.Cell[data-invalid] {
@@ -61,7 +63,13 @@
61
63
  }.CellFilled .DotPlaceholder {
62
64
  display: none;
63
65
  }.ErrorMessage {
64
- margin-top: var(--field-error-margin-top);
66
+ margin-top: var(--mobile-field-error-offset, var(--field-error-margin-top));
67
+ }@media (max-width: 767px) {
68
+ .ErrorMessage {
69
+ --mobile-field-error-icon-display: none;
70
+ --field-error-text-align: center;
71
+ --field-error-content-justify: center;
72
+ }
65
73
  }@media (prefers-reduced-motion: reduce) {
66
74
  .Cell {
67
75
  transition: none;