@plexui/styles 0.1.33 → 0.1.35

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 (80) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +26 -1
  2. package/dist/es/components/Alert/Alert.module.css +213 -1
  3. package/dist/es/components/Badge/Badge.module.css +37 -0
  4. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +63 -0
  5. package/dist/es/components/Button/Button.module.css +123 -22
  6. package/dist/es/components/Button/NavigationButton.module.css +17 -0
  7. package/dist/es/components/ButtonGroup/ButtonGroup.module.css +227 -20
  8. package/dist/es/components/Card/Card.module.css +31 -6
  9. package/dist/es/components/Checkbox/Checkbox.module.css +26 -72
  10. package/dist/es/components/CodeBlock/CodeBlock.module.css +34 -1
  11. package/dist/es/components/ColorPicker/ColorPicker.module.css +414 -0
  12. package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
  13. package/dist/es/components/DataTable/DataTable.module.css +4 -0
  14. package/dist/es/components/DatePicker/Calendar.module.css +279 -6
  15. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
  16. package/dist/es/components/DateRangePicker/Calendar.module.css +226 -4
  17. package/dist/es/components/DateRangePicker/Trigger.module.css +45 -2
  18. package/dist/es/components/Dialog/Dialog.module.css +871 -89
  19. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +52 -0
  20. package/dist/es/components/Field/Field.module.css +574 -24
  21. package/dist/es/components/FieldGroup/FieldGroup.module.css +188 -3
  22. package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
  23. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +40 -1
  24. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +28 -1
  25. package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
  26. package/dist/es/components/Indicator/LoadingIndicator.module.css +14 -7
  27. package/dist/es/components/Input/Input.module.css +198 -1
  28. package/dist/es/components/InputGroup/InputGroup.module.css +4 -0
  29. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
  30. package/dist/es/components/Menu/Menu.module.css +544 -34
  31. package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
  32. package/dist/es/components/Page/Page.module.css +391 -31
  33. package/dist/es/components/PageControl/PageControl.module.css +81 -0
  34. package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
  35. package/dist/es/components/Popover/Popover.module.css +17 -1
  36. package/dist/es/components/Select/Select.module.css +201 -9
  37. package/dist/es/components/SelectControl/SelectControl.module.css +151 -4
  38. package/dist/es/components/Sidebar/Sidebar.module.css +624 -71
  39. package/dist/es/components/Slider/Slider.module.css +132 -45
  40. package/dist/es/components/Sortable/Sortable.module.css +7 -3
  41. package/dist/es/components/Stepper/Stepper.module.css +98 -0
  42. package/dist/es/components/SwipeActions/SwipeActions.module.css +166 -0
  43. package/dist/es/components/Switch/Switch.module.css +59 -4
  44. package/dist/es/components/TabBar/TabBar.module.css +478 -0
  45. package/dist/es/components/Tabs/Tabs.module.css +315 -3
  46. package/dist/es/components/TagInput/TagInput.module.css +50 -9
  47. package/dist/es/components/Textarea/Textarea.module.css +6 -0
  48. package/dist/es/components/Tip/Tip.module.css +456 -0
  49. package/dist/es/components/Toast/Toast.module.css +197 -9
  50. package/dist/es/components/Toolbar/Toolbar.module.css +850 -21
  51. package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
  52. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  53. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  54. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  55. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  56. package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
  57. package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  58. package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
  59. package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
  60. package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  61. package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
  62. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  63. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  64. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  65. package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
  66. package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
  67. package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
  68. package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
  69. package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
  70. package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  71. package/dist/es/styles/katex-fonts/LICENSE +21 -0
  72. package/dist/es/styles/katex.min.css +666 -730
  73. package/dist/es/styles/mobile-materials.css +145 -14
  74. package/dist/es/styles/mobile-surfaces.css +82 -32
  75. package/dist/es/styles/touch.css +940 -92
  76. package/dist/es/styles/variables-components.css +356 -17
  77. package/package.json +1 -1
  78. package/postcss/parseLightDark.mjs +20 -2
  79. package/postcss/phoneLayoutScope.mjs +134 -0
  80. package/postcss.config.mjs +3 -0
@@ -29,8 +29,9 @@
29
29
  width: var(--field-horizontal-label-width);
30
30
  padding-top: var(--field-label-horizontal-offset);
31
31
  }.Field:where([data-orientation="horizontal"]) .Content {
32
- flex-shrink: 0;
32
+ flex: var(--field-horizontal-control-flex, 0 0 auto);
33
33
  width: var(--field-horizontal-control-width);
34
+ min-width: 0;
34
35
  }/* =============================================
35
36
  Sizes — shared properties (grouped)
36
37
  ============================================= */.Field:where([data-size="3xs"]),
@@ -214,6 +215,14 @@
214
215
  grid-column: 1;
215
216
  grid-row: auto;
216
217
  justify-self: stretch;
218
+ }/* A row with a hidden label (`hideLabel`) holds its value alone, from the row's edge. A frameless
219
+ value, a ghost field, has its first line centered in the row's height, as an iOS cell that shows
220
+ only its placeholder or value; more lines grow the row downwards. With a description or an error
221
+ under the value the row keeps the insets of a row with text under its label, so hiding the label
222
+ moves nothing. */.Field:where([data-row][data-label-hidden][data-orientation="vertical"]) {
223
+ padding-block: var(--field-row-padding-block);
224
+ }.Field:where([data-row][data-label-hidden][data-orientation="vertical"]):has(> .Content > .Control > [data-variant="ghost"] > :is(input, textarea)):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control))) {
225
+ padding-block: calc((var(--field-row-min-height) - var(--field-row-label-line-height)) / 2);
217
226
  }/* A control that fills the row, such as a list of tags: it starts after the label
218
227
  and ends at the row's edge, on one line for all the rows of a group. A list can
219
228
  wrap: the label and the action stay on its first line. */.Field:where([data-row][data-fill]:not([data-orientation="vertical"])) {
@@ -239,6 +248,9 @@
239
248
  display: flex;
240
249
  grid-column: 3;
241
250
  grid-row: 1;
251
+ }/* Set on the buttons too: a phone gives a filled button its own weight (touch.css), which the inherited value
252
+ would not outweigh. */.Action :where(button, a, [role="link"]) {
253
+ --button-font-weight: var(--field-row-action-font-weight);
242
254
  }/* A framed field in a row: its width cannot follow what is typed, so it has one,
243
255
  wider for words than for a number. A ghost has the row for its frame, a Select
244
256
  follows its value, and fields set out by a wrapper of their own size themselves. */.Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(
@@ -275,6 +287,9 @@
275
287
  box-shadow: none;
276
288
  }.Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="ghost"] > input {
277
289
  text-align: end;
290
+ }/* A start text in a row is a prefix of the value, such as https:// or a currency: the value follows it with no gap
291
+ ("$0.00"), as iOS writes a prefix. An icon keeps the gap, and so does a trailing adornment. */.Field:where([data-row]) .Control > [data-variant="ghost"] > :first-child:not(input, textarea, svg, :has(svg)) + :is(input, textarea) {
292
+ margin-inline-start: calc(-1 * var(--input-gap));
278
293
  }/* A FieldGroup with `columns`: every value starts at one column, as in an iOS form of
279
294
  typed details. A field keeps its width, a ghost takes the rest of the line, a switch
280
295
  and an action stay at the end. */[data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Action))),
@@ -294,14 +309,14 @@
294
309
  }[data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="ghost"] > input {
295
310
  text-align: start;
296
311
  }@media (min-width: 768px) {
297
- [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Action) {
312
+ [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Action):not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
298
313
  --field-row-gap: 16px;
299
314
 
300
315
  grid-template-columns: var(--field-row-column-width) minmax(0, 1fr) auto;
301
316
  }
302
317
  }/* On a phone a list takes the width of its own line under the label and the action.
303
- The row is the frame of every field, as on iOS: the framed fields of the web read
304
- as the ghost above, with nothing for the author to change. */@media (max-width: 767px) {
318
+ The row is the frame of every field, as on iOS: the framed and the filled (soft) fields
319
+ of the web read as the ghost above, with nothing for the author to change. */@media (max-width: 767px) {
305
320
  .Field:where([data-row]) {
306
321
  --field-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
307
322
  --field-row-above-color: var(--mobile-label-secondary, var(--color-text-tertiary));
@@ -319,6 +334,37 @@
319
334
  cursor: pointer;
320
335
  }
321
336
 
337
+ /* The same rows, with their control disabled, read as disabled: the row is that control's
338
+ target, as a disabled row action of the kit is gray (Lists, Row - Button, Value=Disabled
339
+ 550:49735), and an item's own label dims with it outside a row. Without this, an option
340
+ that is neither selected nor available looked like any other row. A row whose control
341
+ still has an enabled option (a segmented control with one disabled segment) stays as it
342
+ is. The label takes the tertiary label and the description the quaternary one, as a
343
+ disabled menu item does on a phone (touch.css). */
344
+ .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):is([disabled], [data-disabled], [aria-disabled="true"])):not(:has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))),
345
+ .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"]):is([disabled], [data-disabled], [aria-disabled="true"])) {
346
+ --field-description-color: var(--mobile-label-quaternary, var(--color-text-disabled));
347
+ }
348
+
349
+ .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):is([disabled], [data-disabled], [aria-disabled="true"])):not(:has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))) > .LabelGroup .Label, .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"]):is([disabled], [data-disabled], [aria-disabled="true"])) > .LabelGroup .Label {
350
+ color: var(--mobile-label-tertiary, var(--color-text-disabled));
351
+ }
352
+
353
+ /* A disabled text field in a row reads as disabled as a whole, as an unavailable row of iOS Settings
354
+ is gray: its label dims with its value. (A Select's hidden form input does not count.) */
355
+ .Field:where([data-row]):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [aria-hidden="true"]), textarea):disabled) {
356
+ --field-description-color: var(--mobile-label-quaternary, var(--color-text-disabled));
357
+ }
358
+
359
+ .Field:where([data-row]):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [aria-hidden="true"]), textarea):disabled) > .LabelGroup .Label {
360
+ color: var(--mobile-label-tertiary, var(--color-text-disabled));
361
+ }
362
+
363
+ /* Every text field of a phone row is frameless, so a row with a hidden label centers its first line */
364
+ .Field:where([data-row][data-label-hidden][data-orientation="vertical"]):has(> .Content > .Control > [data-variant] > :is(input, textarea)):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control))) {
365
+ padding-block: calc((var(--field-row-min-height) - var(--field-row-label-line-height)) / 2);
366
+ }
367
+
322
368
  /* Mobile choice rows keep keyboard focus and activation without a drawn ring. */
323
369
  .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):focus-visible {
324
370
  outline: none;
@@ -346,6 +392,20 @@
346
392
  line-height: var(--field-row-label-line-height);
347
393
  }
348
394
 
395
+ /* A value the person cannot edit (a read-only field) is the secondary label, as iOS
396
+ shows the values of a row that only informs, such as Settings, General, About. */
397
+ .Field:where([data-row]) .Control [data-slot="input"] > input[readonly],
398
+ .Field:where([data-row]) .Control [data-slot="input-group-control"][readonly] {
399
+ color: var(--mobile-label-secondary, var(--color-text-secondary));
400
+ }
401
+
402
+ /* A value or placeholder longer than its room ends in an ellipsis while it is not
403
+ being edited, as a text field of an iOS form does. */
404
+ .Field:where([data-row]) .Control [data-slot="input"] > input,
405
+ .Field:where([data-row]) .Control [data-slot="input-group-control"] {
406
+ text-overflow: ellipsis;
407
+ }
408
+
349
409
  /* Keep textarea row measurement consistent with the visible line box. */
350
410
  .Field:where([data-row]) .Control > [data-variant]:has(> textarea) {
351
411
  --textarea-line-height: var(--field-row-label-line-height);
@@ -426,28 +486,32 @@
426
486
  }
427
487
 
428
488
  .Field:where([data-row]:not([data-orientation="vertical"])):has(
429
- .Control > [data-variant="outline"] > input,
430
- .Control > [data-variant="outline"] > textarea
489
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > input,
490
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > textarea
431
491
  ) {
432
492
  grid-template-columns: auto minmax(0, 1fr);
433
493
  }
434
494
 
435
495
  .Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(
436
- > [data-variant="outline"] > input,
437
- > [data-variant="outline"] > textarea
496
+ > :is([data-variant="outline"], [data-variant="soft"]) > input,
497
+ > :is([data-variant="outline"], [data-variant="soft"]) > textarea
438
498
  ) {
439
499
  justify-self: stretch;
440
500
  }
441
501
 
442
- .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="outline"]:is(:has(> input), :has(> textarea)),
443
- .Field:where([data-row]:not([data-orientation="vertical"])) .Control [data-variant="outline"][role="button"] {
502
+ /* Under its label too, a value is the row's text (kit Lists, a value under its title; Contacts' fields):
503
+ the frames and the gutters of the web go, so the value starts where the label does. */
504
+ .Field:where([data-row]) .Control > :is([data-variant="outline"], [data-variant="soft"]):is(:has(> input), :has(> textarea)),
505
+ .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
444
506
  --input-outline-border-color: transparent;
445
507
  --input-outline-border-color-hover: transparent;
446
508
  --input-outline-border-color-focus: transparent;
447
509
  --input-border-color-invalid: transparent;
510
+ --input-soft-background-color: transparent;
511
+ --input-soft-border-color-focus: transparent;
448
512
  }
449
513
 
450
- .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="outline"]:is(:has(> input), :has(> textarea)) {
514
+ .Field:where([data-row]) .Control > :is([data-variant="outline"], [data-variant="soft"]):is(:has(> input), :has(> textarea)) {
451
515
  --input-size: var(--field-row-label-line-height);
452
516
  --input-gutter: 0px;
453
517
  --input-adornment-offset: 0px;
@@ -457,43 +521,112 @@
457
521
  border-radius: 0;
458
522
  }
459
523
 
460
- .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="outline"] > input {
524
+ .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"]) > input {
461
525
  text-align: end;
462
526
  }
463
527
 
528
+ /* A disabled Select or date in a row keeps the row's surface: the disabled frame and fill of a
529
+ standalone control would draw a box around the value */
530
+ .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"][data-disabled] {
531
+ --select-control-background-color: transparent;
532
+ --select-control-border-color: transparent;
533
+ }
534
+
464
535
  /* A Select or a date: its value ends at the row's edge, its mark too, as the row has no pill to sit in */
465
- .Field:where([data-row]:not([data-orientation="vertical"])) .Control [data-variant="outline"][role="button"] {
536
+ .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
466
537
  --dropdown-icon-pill-offset: 0px;
467
538
  }
468
539
 
469
- .Field:where([data-row]:not([data-orientation="vertical"])) .Control :is([data-variant="outline"], [data-variant="ghost"])[role="button"] {
540
+ .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"] {
470
541
  padding-inline: 0;
471
542
  }
472
543
 
473
544
  /* The Field already delegates its non-interactive area to this linked popup.
474
545
  Keep one row surface; the trigger remains its only keyboard stop. */
475
- .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :is([data-variant="outline"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
546
+ .Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
476
547
  --select-control-size: var(--field-row-label-line-height);
477
548
  border-radius: 0;
478
549
  }
479
550
 
480
- .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :is([data-variant="outline"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"])::before {
551
+ .Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"])::before {
481
552
  background-color: transparent;
482
553
  box-shadow: none;
483
554
  transform: none;
484
555
  }
485
556
 
486
- .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :is([data-variant="outline"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"])::after {
557
+ .Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"])::after {
487
558
  outline: none;
488
559
  transform: none;
489
560
  }
490
561
 
491
- .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is([data-variant="outline"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])) {
562
+ .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])) {
492
563
  cursor: pointer;
493
564
  }
494
565
 
495
- /* Trailing units share the accessory tone; the input and the button keep their own disabled states. */
566
+ /* A date in a row is the compact date picker of iOS 26 (kit Date and time - Collapsed 30:53803): a 34px
567
+ capsule with 11px insets on the fill of the calendar's time pill, the date in the primary label and in
568
+ the accent text while its calendar is open. It keeps the 52px row; the row stays its target. */
569
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
570
+ --select-control-size: 34px;
571
+
572
+ margin-block: calc((var(--field-row-label-line-height) - 34px) / 2);
573
+ padding-inline: 11px;
574
+ border-radius: var(--radius-full);
575
+ color: var(--color-text);
576
+ }
577
+
578
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])::before {
579
+ background-color: var(--color-background-secondary-soft-alpha);
580
+ }
581
+
582
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-selected="false"],
583
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-disabled] {
584
+ color: var(--mobile-label-tertiary, var(--color-text-tertiary));
585
+ }
586
+
587
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]:not([data-disabled]) {
588
+ color: var(--link-primary-text-color);
589
+ }
590
+
591
+ /* A date and a time (showTime with a triggerTimeFormat) are two capsules 6px apart, as the kit draws them (Date and
592
+ time - Collapsed 30:53803) and iOS Calendar shows an event's start. Either opens the calendar, whose time
593
+ fields set the time; the trigger stays the row's target and takes the accent while the calendar is open. */
594
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) {
595
+ padding-inline: 0;
596
+ }
597
+
598
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts])::before {
599
+ background-color: transparent;
600
+ }
601
+
602
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-parts] {
603
+ display: flex;
604
+ gap: 6px;
605
+ min-width: 0;
606
+ }
607
+
608
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part] {
609
+ padding: 6px 11px;
610
+ border-radius: var(--radius-full);
611
+ background-color: var(--color-background-secondary-soft-alpha);
612
+ }
613
+
614
+ /* Short of room, the date ends in an ellipsis inside its capsule; the time keeps its width */
615
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part="date"] {
616
+ min-width: 0;
617
+ overflow: hidden;
618
+ text-overflow: ellipsis;
619
+ }
620
+
621
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part="time"] {
622
+ flex-shrink: 0;
623
+ }
624
+
625
+ /* Trailing units share the accessory tone; the input and the button keep their own disabled states.
626
+ An InputGroup's inline addons (a prefix, a unit, an icon, an indicator) take it too, as Input's
627
+ prefix and unit do; the kit's indicator is Labels/Secondary. */
496
628
  .Field:where([data-row]) .Control > [data-slot="input"]:not([data-disabled]) > span:global(.text-secondary):last-child,
629
+ .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"]:not([data-disabled]) > [data-align^="inline"],
497
630
  .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child:not([data-uniform], [disabled], [data-disabled], [aria-disabled="true"]) {
498
631
  color: var(--mobile-accessory-secondary, var(--color-text-secondary));
499
632
  }
@@ -504,10 +637,21 @@
504
637
 
505
638
  /* An InputGroup: its value and its unit end at the row's edge too. A button at the end
506
639
  reads as the row's text, as a Select's value does: no gutter and no fill */
507
- .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"][data-variant="outline"] {
640
+ .Field:where([data-row]) .Control > [data-slot="input-group"]:is([data-variant="outline"], [data-variant="soft"]) {
508
641
  --input-group-gutter: 0px;
509
642
  }
510
643
 
644
+ /* A leading text or text addon is a prefix of the value (https://, $): the value follows it with no gap, as iOS
645
+ writes "$0.00". An icon or a button keeps the gap, and so does a trailing unit. (`:has()` cannot nest, so the
646
+ addon is matched by its only child, an InputGroup.Text.) */
647
+ .Field:where([data-row]) .Control > [data-slot="input"] > :first-child:not(input, textarea, svg, :has(svg)) + input {
648
+ margin-inline-start: calc(-1 * var(--input-gap));
649
+ }
650
+
651
+ .Field:where([data-row]) .Control > [data-slot="input-group"]:has(> [data-align="inline-start"] > [data-slot="input-group-text"]:only-child) > [data-slot="input-group-control"] {
652
+ padding-inline-start: 0;
653
+ }
654
+
511
655
  .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child {
512
656
  --button-gutter: 0px;
513
657
  --button-background-color: transparent;
@@ -541,8 +685,8 @@
541
685
  /* With `columns` the value starts at the column and takes the rest of the row: a unit,
542
686
  a Select's mark and an icon end at its edge, as on iOS */
543
687
  [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Action))):has(
544
- .Control > [data-variant="outline"] > input,
545
- .Control > [data-variant="outline"] > textarea
688
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > input,
689
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > textarea
546
690
  ) {
547
691
  grid-template-columns: var(--field-row-column-width) minmax(0, 1fr);
548
692
  }
@@ -555,12 +699,418 @@
555
699
  justify-self: stretch;
556
700
  }
557
701
 
558
- [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="outline"] > input {
702
+ [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"]) > input {
559
703
  text-align: start;
560
704
  }
561
705
 
562
- [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="outline"][role="button"] {
706
+ [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
563
707
  width: 100%;
564
708
  }
709
+ }
710
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) {
711
+ --field-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
712
+ --field-row-above-color: var(--mobile-label-secondary, var(--color-text-tertiary));
713
+ --input-placeholder-text-color: var(--mobile-label-tertiary, var(--color-text-tertiary));
714
+ --mobile-field-error-icon-display: block;
715
+ }
716
+
717
+ :where([data-plex-layout="phone"]) .Field:where([data-row]):has(> .Content > [role="alert"]) {
718
+ row-gap: var(--mobile-field-error-offset, var(--field-row-row-gap));
719
+ }
720
+
721
+ /* Choice and popup rows forward non-interactive clicks to their control. */
722
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"])), :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])) {
723
+ cursor: pointer;
724
+ }
725
+
726
+ /* The same rows, with their control disabled, read as disabled: the row is that control's
727
+ target, as a disabled row action of the kit is gray (Lists, Row - Button, Value=Disabled
728
+ 550:49735), and an item's own label dims with it outside a row. Without this, an option
729
+ that is neither selected nor available looked like any other row. A row whose control
730
+ still has an enabled option (a segmented control with one disabled segment) stays as it
731
+ is. The label takes the tertiary label and the description the quaternary one, as a
732
+ disabled menu item does on a phone (touch.css). */
733
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):is([disabled], [data-disabled], [aria-disabled="true"])):not(:has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))), :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"]):is([disabled], [data-disabled], [aria-disabled="true"])) {
734
+ --field-description-color: var(--mobile-label-quaternary, var(--color-text-disabled));
735
+ }
736
+
737
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):is([disabled], [data-disabled], [aria-disabled="true"])):not(:has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))) > .LabelGroup .Label, :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"]):is([disabled], [data-disabled], [aria-disabled="true"])) > .LabelGroup .Label {
738
+ color: var(--mobile-label-tertiary, var(--color-text-disabled));
739
+ }
740
+
741
+ /* A disabled text field in a row reads as disabled as a whole, as an unavailable row of iOS Settings
742
+ is gray: its label dims with its value. (A Select's hidden form input does not count.) */
743
+ :where([data-plex-layout="phone"]) .Field:where([data-row]):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [aria-hidden="true"]), textarea):disabled) {
744
+ --field-description-color: var(--mobile-label-quaternary, var(--color-text-disabled));
745
+ }
746
+
747
+ :where([data-plex-layout="phone"]) .Field:where([data-row]):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [aria-hidden="true"]), textarea):disabled) > .LabelGroup .Label {
748
+ color: var(--mobile-label-tertiary, var(--color-text-disabled));
749
+ }
750
+
751
+ /* Every text field of a phone row is frameless, so a row with a hidden label centers its first line */
752
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-label-hidden][data-orientation="vertical"]):has(> .Content > .Control > [data-variant] > :is(input, textarea)):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control))) {
753
+ padding-block: calc((var(--field-row-min-height) - var(--field-row-label-line-height)) / 2);
754
+ }
755
+
756
+ /* Mobile choice rows keep keyboard focus and activation without a drawn ring. */
757
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):focus-visible {
758
+ outline: none;
759
+ }
760
+
761
+ /* Each extra label line grows a regular row by one line-height. Pad the label,
762
+ not LabelRow, so an adjacent label action keeps its independent target size. */
763
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-fill], [data-orientation="vertical"]):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control)))) > .LabelGroup > .Label, :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-fill], [data-orientation="vertical"]):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control)))) > .LabelGroup > .LabelRow > .Label {
764
+ min-width: 0;
765
+ max-width: 100%;
766
+ padding-block: max(0px, calc((var(--field-row-min-height) - var(--field-row-label-line-height)) / 2 - var(--field-row-padding-block)));
767
+ overflow-wrap: anywhere;
768
+ }
769
+
770
+ /* A grouped row uses one body-text role for every value, including editable
771
+ text and inherited text adornments. Standalone TextFields keep their own typography. */
772
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input"],
773
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input"] > input,
774
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control textarea,
775
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input-group-control"],
776
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-variant][role="button"] {
777
+ font-size: var(--field-row-label-font-size);
778
+ font-weight: var(--font-weight-normal);
779
+ line-height: var(--field-row-label-line-height);
780
+ }
781
+
782
+ /* A value the person cannot edit (a read-only field) is the secondary label, as iOS
783
+ shows the values of a row that only informs, such as Settings, General, About. */
784
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input"] > input[readonly],
785
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input-group-control"][readonly] {
786
+ color: var(--mobile-label-secondary, var(--color-text-secondary));
787
+ }
788
+
789
+ /* A value or placeholder longer than its room ends in an ellipsis while it is not
790
+ being edited, as a text field of an iOS form does. */
791
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input"] > input,
792
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input-group-control"] {
793
+ text-overflow: ellipsis;
794
+ }
795
+
796
+ /* Keep textarea row measurement consistent with the visible line box. */
797
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > [data-variant]:has(> textarea) {
798
+ --textarea-line-height: var(--field-row-label-line-height);
799
+ }
800
+
801
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input-group"] {
802
+ --input-group-line-height: var(--field-row-label-line-height);
803
+ }
804
+
805
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action) {
806
+ grid-template-columns: minmax(0, 1fr) auto;
807
+ }
808
+
809
+ /* The label shares the action's first grid row, independently of list wrapping. */
810
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action) > .LabelGroup {
811
+ align-self: center;
812
+ }
813
+
814
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action) > .LabelGroup > :is(.Label, .LabelRow) {
815
+ padding-block: 0;
816
+ }
817
+
818
+ /* With no list, center the action in a regular row; populated lists keep their wrapping space. */
819
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action):has(.Control:empty, .Control > div:empty:only-child) {
820
+ padding-block: max(0px, calc((var(--field-row-min-height) - var(--field-row-action-layout-size, var(--field-row-action-size))) / 2));
821
+ }
822
+
823
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-fill]:has(> .Action)) .Control {
824
+ grid-column: 1 / -1;
825
+ grid-row: 2;
826
+ }
827
+
828
+ :where([data-plex-layout="phone"]) .Action {
829
+ grid-column: 2;
830
+ }
831
+
832
+ /* Text actions share the row's body role and trailing edge while retaining
833
+ the action's full target. Filled and uniform icon buttons keep their shape. */
834
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"]):has(> .Action > button[data-variant="ghost"]:not([data-uniform]))) {
835
+ --field-row-action-layout-size: max(var(--field-row-action-size), var(--field-row-text-action-size));
836
+ }
837
+
838
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"]):has(> .Action > button[data-variant="ghost"]:not([data-uniform]))) > .Action {
839
+ align-items: center;
840
+ }
841
+
842
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Action > button[data-variant="ghost"]:not([data-uniform]) {
843
+ --button-size: var(--field-row-text-action-size);
844
+ --button-gutter: 0px;
845
+ --button-font-size: var(--field-row-label-font-size);
846
+ --button-line-height: var(--field-row-label-line-height);
847
+ --button-font-weight: var(--field-row-label-font-weight);
848
+ --button-justify-content: flex-end;
849
+ --button-background-color: transparent;
850
+ --button-background-color-active: transparent;
851
+ --button-mobile-material-background: transparent;
852
+ --button-mobile-material-hover: transparent;
853
+ --button-mobile-material-active: transparent;
854
+ --button-mobile-material-shadow: none;
855
+ --button-mobile-material-backdrop-filter: none;
856
+
857
+ min-width: var(--field-row-text-action-size);
858
+ }
859
+
860
+ /* Reserve the indicator's visible width at the row edge. Its centered target
861
+ and focus ring keep their full size, extending into the row's side padding. */
862
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :only-child:not([data-has-label]):has(> [role="checkbox"]):not(:has(> [role="checkbox"] ~ [role="checkbox"], > :not([role="checkbox"], input[type="checkbox"][aria-hidden="true"]))) {
863
+ margin-inline: calc((var(--checkbox-indicator-size) - var(--checkbox-target-size, var(--checkbox-indicator-size))) / 2);
864
+ }
865
+
866
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :only-child > label:only-child:not([data-has-label]) > :only-child:has(> [role="radio"]):not(:has(> [role="radio"] ~ [role="radio"], > :not([role="radio"], input[type="radio"][aria-hidden="true"]))) {
867
+ margin-inline: calc((var(--radio-group-indicator-size) - var(--radio-group-target-size, var(--radio-group-indicator-size))) / 2);
868
+ }
869
+
870
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) {
871
+ --field-row-control-width: auto;
872
+ --field-row-text-width: auto;
873
+ }
874
+
875
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])):has(
876
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > input,
877
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > textarea
878
+ ) {
879
+ grid-template-columns: auto minmax(0, 1fr);
880
+ }
881
+
882
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(
883
+ > :is([data-variant="outline"], [data-variant="soft"]) > input,
884
+ > :is([data-variant="outline"], [data-variant="soft"]) > textarea
885
+ ) {
886
+ justify-self: stretch;
887
+ }
888
+
889
+ /* Under its label too, a value is the row's text (kit Lists, a value under its title; Contacts' fields):
890
+ the frames and the gutters of the web go, so the value starts where the label does. */
891
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > :is([data-variant="outline"], [data-variant="soft"]):is(:has(> input), :has(> textarea)), :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
892
+ --input-outline-border-color: transparent;
893
+ --input-outline-border-color-hover: transparent;
894
+ --input-outline-border-color-focus: transparent;
895
+ --input-border-color-invalid: transparent;
896
+ --input-soft-background-color: transparent;
897
+ --input-soft-border-color-focus: transparent;
898
+ }
899
+
900
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > :is([data-variant="outline"], [data-variant="soft"]):is(:has(> input), :has(> textarea)) {
901
+ --input-size: var(--field-row-label-line-height);
902
+ --input-gutter: 0px;
903
+ --input-adornment-offset: 0px;
904
+ --textarea-gutter-x: 0px;
905
+ --textarea-gutter-y: 0px;
906
+
907
+ border-radius: 0;
908
+ }
909
+
910
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"]) > input {
911
+ text-align: end;
912
+ }
913
+
914
+ /* A disabled Select or date in a row keeps the row's surface: the disabled frame and fill of a
915
+ standalone control would draw a box around the value */
916
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"][data-disabled] {
917
+ --select-control-background-color: transparent;
918
+ --select-control-border-color: transparent;
919
+ }
920
+
921
+ /* A Select or a date: its value ends at the row's edge, its mark too, as the row has no pill to sit in */
922
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
923
+ --dropdown-icon-pill-offset: 0px;
924
+ }
925
+
926
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"] {
927
+ padding-inline: 0;
928
+ }
929
+
930
+ /* The Field already delegates its non-interactive area to this linked popup.
931
+ Keep one row surface; the trigger remains its only keyboard stop. */
932
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
933
+ --select-control-size: var(--field-row-label-line-height);
934
+ border-radius: 0;
935
+ }
936
+
937
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"])::before {
938
+ background-color: transparent;
939
+ box-shadow: none;
940
+ transform: none;
941
+ }
942
+
943
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"])::after {
944
+ outline: none;
945
+ transform: none;
946
+ }
947
+
948
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])) {
949
+ cursor: pointer;
950
+ }
951
+
952
+ /* A date in a row is the compact date picker of iOS 26 (kit Date and time - Collapsed 30:53803): a 34px
953
+ capsule with 11px insets on the fill of the calendar's time pill, the date in the primary label and in
954
+ the accent text while its calendar is open. It keeps the 52px row; the row stays its target. */
955
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
956
+ --select-control-size: 34px;
957
+
958
+ margin-block: calc((var(--field-row-label-line-height) - 34px) / 2);
959
+ padding-inline: 11px;
960
+ border-radius: var(--radius-full);
961
+ color: var(--color-text);
962
+ }
963
+
964
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])::before {
965
+ background-color: var(--color-background-secondary-soft-alpha);
966
+ }
967
+
968
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-selected="false"],
969
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-disabled] {
970
+ color: var(--mobile-label-tertiary, var(--color-text-tertiary));
971
+ }
972
+
973
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]:not([data-disabled]) {
974
+ color: var(--link-primary-text-color);
975
+ }
976
+
977
+ /* A date and a time (showTime with a triggerTimeFormat) are two capsules 6px apart, as the kit draws them (Date and
978
+ time - Collapsed 30:53803) and iOS Calendar shows an event's start. Either opens the calendar, whose time
979
+ fields set the time; the trigger stays the row's target and takes the accent while the calendar is open. */
980
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) {
981
+ padding-inline: 0;
982
+ }
983
+
984
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts])::before {
985
+ background-color: transparent;
986
+ }
987
+
988
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-parts] {
989
+ display: flex;
990
+ gap: 6px;
991
+ min-width: 0;
992
+ }
993
+
994
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part] {
995
+ padding: 6px 11px;
996
+ border-radius: var(--radius-full);
997
+ background-color: var(--color-background-secondary-soft-alpha);
998
+ }
999
+
1000
+ /* Short of room, the date ends in an ellipsis inside its capsule; the time keeps its width */
1001
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part="date"] {
1002
+ min-width: 0;
1003
+ overflow: hidden;
1004
+ text-overflow: ellipsis;
1005
+ }
1006
+
1007
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part="time"] {
1008
+ flex-shrink: 0;
1009
+ }
1010
+
1011
+ /* Trailing units share the accessory tone; the input and the button keep their own disabled states.
1012
+ An InputGroup's inline addons (a prefix, a unit, an icon, an indicator) take it too, as Input's
1013
+ prefix and unit do; the kit's indicator is Labels/Secondary. */
1014
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > [data-slot="input"]:not([data-disabled]) > span:global(.text-secondary):last-child,
1015
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"]:not([data-disabled]) > [data-align^="inline"],
1016
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child:not([data-uniform], [disabled], [data-disabled], [aria-disabled="true"]) {
1017
+ color: var(--mobile-accessory-secondary, var(--color-text-secondary));
1018
+ }
1019
+
1020
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > [data-slot="input"][data-disabled] > span:global(.text-secondary):last-child {
1021
+ color: var(--color-text-disabled);
1022
+ }
1023
+
1024
+ /* An InputGroup: its value and its unit end at the row's edge too. A button at the end
1025
+ reads as the row's text, as a Select's value does: no gutter and no fill */
1026
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > [data-slot="input-group"]:is([data-variant="outline"], [data-variant="soft"]) {
1027
+ --input-group-gutter: 0px;
1028
+ }
1029
+
1030
+ /* A leading text or text addon is a prefix of the value (https://, $): the value follows it with no gap, as iOS
1031
+ writes "$0.00". An icon or a button keeps the gap, and so does a trailing unit. (`:has()` cannot nest, so the
1032
+ addon is matched by its only child, an InputGroup.Text.) */
1033
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > [data-slot="input"] > :first-child:not(input, textarea, svg, :has(svg)) + input {
1034
+ margin-inline-start: calc(-1 * var(--input-gap));
1035
+ }
1036
+
1037
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > [data-slot="input-group"]:has(> [data-align="inline-start"] > [data-slot="input-group-text"]:only-child) > [data-slot="input-group-control"] {
1038
+ padding-inline-start: 0;
1039
+ }
1040
+
1041
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child {
1042
+ --button-gutter: 0px;
1043
+ --button-background-color: transparent;
1044
+ --button-background-color-active: transparent;
1045
+
1046
+ margin-inline-end: 0;
1047
+ }
1048
+
1049
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child:not([data-uniform]) {
1050
+ --button-font-size: var(--field-row-label-font-size);
1051
+ --button-line-height: var(--field-row-label-line-height);
1052
+ --button-font-weight: var(--field-row-label-font-weight);
1053
+
1054
+ font-size: var(--field-row-label-font-size);
1055
+ font-weight: var(--field-row-label-font-weight);
1056
+ line-height: var(--field-row-label-line-height);
1057
+ }
1058
+
1059
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child[data-variant="ghost"]:not([data-uniform]) {
1060
+ --button-size: var(--field-row-text-action-size);
1061
+ --button-justify-content: flex-end;
1062
+ --button-mobile-material-background: transparent;
1063
+ --button-mobile-material-hover: transparent;
1064
+ --button-mobile-material-active: transparent;
1065
+ --button-mobile-material-shadow: none;
1066
+ --button-mobile-material-backdrop-filter: none;
1067
+
1068
+ min-width: var(--field-row-text-action-size);
1069
+ }
1070
+
1071
+ /* With `columns` the value starts at the column and takes the rest of the row: a unit,
1072
+ a Select's mark and an icon end at its edge, as on iOS */
1073
+ :where([data-plex-layout="phone"]) [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Action))):has(
1074
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > input,
1075
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > textarea
1076
+ ) {
1077
+ grid-template-columns: var(--field-row-column-width) minmax(0, 1fr);
1078
+ }
1079
+
1080
+ :where([data-plex-layout="phone"]) [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(
1081
+ > [data-variant]:not([data-variant="ghost"]) > input,
1082
+ > [data-variant]:not([data-variant="ghost"]) > textarea,
1083
+ > [data-variant][role="button"]
1084
+ ) {
1085
+ justify-self: stretch;
1086
+ }
1087
+
1088
+ :where([data-plex-layout="phone"]) [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"]) > input {
1089
+ text-align: start;
1090
+ }
1091
+
1092
+ :where([data-plex-layout="phone"]) [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
1093
+ width: 100%;
1094
+ }/* =============================================
1095
+ Hidden label (hideLabel)
1096
+ The label still names the control for assistive
1097
+ technology. Last in the file, so it outranks the
1098
+ label's own padding in a row.
1099
+ ============================================= */.Field:where([data-label-hidden]) > .LabelGroup:not(:has(> .Description, > .LabelRow)),
1100
+ .Field:where([data-label-hidden]) > .LabelGroup > .Label,
1101
+ .Field:where([data-label-hidden]) > .LabelGroup > .LabelRow > .Label {
1102
+ position: absolute;
1103
+ width: 1px;
1104
+ height: 1px;
1105
+ margin: -1px;
1106
+ padding: 0;
1107
+ border: 0;
1108
+ overflow: hidden;
1109
+ clip-path: inset(50%);
1110
+ white-space: nowrap;
1111
+ }/* Words that describe a field with a hidden label follow the field: above it they would read as its label */.Field:where([data-label-hidden]:not([data-orientation="horizontal"])) > .LabelGroup:has(> .Description) {
1112
+ order: 1;
1113
+ }.Field:where([data-row][data-label-hidden][data-orientation="vertical"]) > .LabelGroup {
1114
+ grid-row: auto;
565
1115
  }
566
1116
  }