@plexui/styles 0.1.46 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +54 -1
  2. package/dist/es/components/Alert/Alert.module.css +75 -37
  3. package/dist/es/components/Button/Button.module.css +36 -28
  4. package/dist/es/components/ButtonGroup/ButtonGroup.module.css +15 -3
  5. package/dist/es/components/ColorPicker/ColorPicker.module.css +42 -70
  6. package/dist/es/components/ContextMenu/ContextMenu.module.css +1 -1
  7. package/dist/es/components/DatePicker/Calendar.module.css +16 -14
  8. package/dist/es/components/DateRangePicker/Calendar.module.css +16 -68
  9. package/dist/es/components/Dialog/Dialog.module.css +98 -59
  10. package/dist/es/components/Field/Field.module.css +56 -22
  11. package/dist/es/components/Input/Input.module.css +100 -18
  12. package/dist/es/components/Menu/Menu.module.css +30 -34
  13. package/dist/es/components/Page/Page.module.css +38 -0
  14. package/dist/es/components/Popover/Popover.module.css +10 -11
  15. package/dist/es/components/ProgressSteps/ProgressSteps.module.css +17 -0
  16. package/dist/es/components/RadioGroup/RadioGroup.module.css +7 -3
  17. package/dist/es/components/Select/Select.module.css +300 -38
  18. package/dist/es/components/SelectControl/SelectControl.module.css +34 -10
  19. package/dist/es/components/Sidebar/Sidebar.module.css +4 -2
  20. package/dist/es/components/Slider/Slider.module.css +46 -2
  21. package/dist/es/components/Sortable/Sortable.module.css +3 -2
  22. package/dist/es/components/StatsCard/StatsCard.module.css +269 -0
  23. package/dist/es/components/Stepper/Stepper.module.css +7 -4
  24. package/dist/es/components/SwipeActions/SwipeActions.module.css +32 -17
  25. package/dist/es/components/Switch/Switch.module.css +6 -5
  26. package/dist/es/components/TabBar/TabBar.module.css +128 -12
  27. package/dist/es/components/Tabs/Tabs.module.css +238 -43
  28. package/dist/es/components/Toast/Toast.module.css +4 -3
  29. package/dist/es/components/Toolbar/Toolbar.module.css +92 -58
  30. package/dist/es/styles/mobile-materials.css +65 -24
  31. package/dist/es/styles/touch.css +321 -121
  32. package/dist/es/styles/variables-components.css +236 -124
  33. package/package.json +1 -1
  34. package/dist/es/components/StatCard/StatCard.module.css +0 -234
@@ -571,11 +571,12 @@
571
571
  --dialog-panel-radius: var(--dialog-alert-radius);
572
572
  }
573
573
 
574
- /* iOS 27 alerts (kit iOS 27, Alerts 65:57149, Side-by-Side): glass, fields and actions 14 from the edge, the
575
- title 22 from the top and from the sides, the message 10 under the title, both 17/22 (the title semibold),
576
- 24 from the text to a field or the actions, a field block of 52px rows, 19 under it to the actions, 8
577
- between two actions. The colors follow native frames (mobile-materials.css): the message is the secondary
578
- label, as in Files (owner 08.11); native iOS 26 frames (iOS2 IMG_5532, IMG_5533) also set it at 15/20. */
574
+ /* The alert of iOS 27.2 (UIAlertController .alert on an iPhone 17, measures/alerts.md): 320 wide, glass, the
575
+ actions 16 from the edge and a field 15, the text 31 from the sides. The title is 17/22 semibold, its baseline
576
+ 38.33 from the top; the message 15/20 in the secondary label (native dark is dimmer, mobile-materials.css),
577
+ its first baseline 25.67 under the title's.
578
+ The actions stand 24.17 under the last baseline, 48 tall and 8 apart; a field 48 tall stands 20.17 under
579
+ the message and 20 over the actions. The colors follow native frames (mobile-materials.css). */
579
580
  .Content[data-mobile-variant="alert"] .Panel {
580
581
  gap: 10px;
581
582
  padding: var(--dialog-alert-padding);
@@ -590,8 +591,18 @@
590
591
  }
591
592
 
592
593
  .Content[data-mobile-variant="alert"] .Header {
593
- gap: var(--dialog-alert-header-gap, 10px);
594
- padding: var(--dialog-alert-header-padding, 8px 8px 14px);
594
+ gap: var(--dialog-alert-header-gap, 5.67px);
595
+ padding: var(--dialog-alert-header-padding, 5px 15px 5.5px);
596
+ }
597
+
598
+ /* A title alone stands centered, as native sets one without a message ("Unable to Connect", 27.2). */
599
+ .Content[data-mobile-variant="alert"] .Header:not(:has(.Description)) {
600
+ text-align: center;
601
+ }
602
+
603
+ /* The actions under the text stand 4 lower than a field does: 19.5 from the text's line box, 15.5 for a field. */
604
+ .Content[data-mobile-variant="alert"] .Header + .Footer {
605
+ margin-top: 4px;
595
606
  }
596
607
 
597
608
  .Content[data-mobile-variant="alert"] .Header > :first-child {
@@ -610,8 +621,8 @@
610
621
 
611
622
  .Content[data-mobile-variant="alert"] .Description {
612
623
  color: var(--dialog-alert-message-color, var(--color-text));
613
- font-size: var(--dialog-alert-message-size, 17px);
614
- line-height: var(--dialog-alert-message-leading, 22px);
624
+ font-size: var(--dialog-alert-message-size, 15px);
625
+ line-height: var(--dialog-alert-message-leading, 20px);
615
626
  }
616
627
 
617
628
  /* The message of an iOS alert is plain text: a code or a name in it reads as the rest of the message. A link
@@ -629,11 +640,12 @@
629
640
  text-decoration: none;
630
641
  }
631
642
 
632
- /* A text field fills the alert as its actions do: a 52px row with 26px corners, 19 above the actions. */
643
+ /* A text field fills the alert as its actions do: a 48px capsule 20 above the actions. Native draws it 290
644
+ wide over actions of 288, a point further out on each side. */
633
645
  .Content[data-mobile-variant="alert"] .Body {
634
- --control-size-3xl: var(--dialog-alert-field-height, 52px);
635
- margin-inline: 0;
636
- padding: 0 0 9px;
646
+ --control-size-3xl: var(--dialog-alert-field-height, 48px);
647
+ margin-inline: -1px;
648
+ padding: 0 0 10px;
637
649
  --dialog-steps-gutter: 0px;
638
650
  }
639
651
 
@@ -655,13 +667,14 @@
655
667
  overflow-wrap: anywhere;
656
668
  }
657
669
 
658
- .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]),
670
+ /* Two actions stand side by side; three or more stack, as native lays them out ("Unsaved Changes", 27.2). */
671
+ .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))),
659
672
  .Content .Footer[data-mobile-layout="inline"] {
660
673
  flex-flow: row wrap;
661
674
  gap: 10px 16px;
662
675
  }
663
676
 
664
- .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > *, .Content .Footer[data-mobile-layout="inline"] > * {
677
+ .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) > *, .Content .Footer[data-mobile-layout="inline"] > * {
665
678
  flex: 1 0 auto;
666
679
  width: auto;
667
680
  min-width: calc(50% - 8px);
@@ -673,10 +686,17 @@
673
686
  overflow-wrap: anywhere;
674
687
  }
675
688
 
676
- /* Native alert actions are semibold, and a soft action and a field share the fill of the glass,
677
- about 13% of the label color in both themes (light 202 on 232, dark 73 on 46). */
689
+ /* Native alert actions are medium, the preferred one semibold (stems of 1.84 and 2.07pt at 17pt, against 1.45
690
+ for regular text, 27.2), and a soft action and a field share the fill of the glass, about 13% of the label
691
+ color in both themes (light 202 on 233, dark 60 on 32). The weight is set on the button itself: touch.css
692
+ gives every filled phone button a semibold --button-font-weight outside the layers, where a component's
693
+ value for it cannot reach. */
678
694
  .Content[data-mobile-variant="alert"] .Footer > :where(button, a, [role="link"]) {
679
- --button-font-weight: var(--dialog-alert-action-font-weight, 600);
695
+ font-weight: var(--dialog-alert-action-font-weight, 510);
696
+ }
697
+
698
+ .Content[data-mobile-variant="alert"] .Footer > [data-variant="solid"]:not([data-color="danger"]) {
699
+ font-weight: var(--dialog-alert-preferred-font-weight, 590);
680
700
  }
681
701
 
682
702
  .Content[data-mobile-variant="alert"] .Footer > [data-variant="soft"]:where([data-color="primary"], [data-color="secondary"]) {
@@ -697,12 +717,15 @@
697
717
  --input-soft-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
698
718
  }
699
719
 
700
- .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) {
701
- -moz-column-gap: var(--dialog-alert-action-gap, 8px);
702
- column-gap: var(--dialog-alert-action-gap, 8px);
720
+ .Content[data-mobile-variant="alert"] .Footer {
721
+ gap: var(--dialog-alert-action-gap, 8px);
703
722
  }
704
723
 
705
- .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > * {
724
+ .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) {
725
+ gap: var(--dialog-alert-action-gap, 8px);
726
+ }
727
+
728
+ .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) > * {
706
729
  min-width: calc(50% - var(--dialog-alert-action-gap, 8px) / 2);
707
730
  }
708
731
 
@@ -727,8 +750,8 @@
727
750
  overflow: hidden;
728
751
  }
729
752
 
730
- /* The header of a phone Sheet is its Toolbar (Dialog.Header renders one): the grabber, the row of controls and
731
- the title are the Toolbar's. Its heading holds what the header holds besides its actions, as wide as the
753
+ /* The header of a phone Sheet is its Toolbar (Dialog.Header renders one): the row of controls and the title
754
+ are the Toolbar's. Its heading holds what the header holds besides its actions, as wide as the
732
755
  row leaves it. */
733
756
  .BarHeading > * {
734
757
  max-width: 100%;
@@ -762,17 +785,14 @@
762
785
 
763
786
  /* The glass of a sheet's bar: Close, the header actions and a control in the header, such as a segmented
764
787
  control. Native iOS 26 sheets (Calendar, IMG_5433 light, iOS2 IMG_5522 dark) light the glass along both
765
- edges, about 7 levels at the top fading within 2pt and again over the last 6pt at the bottom, rather
766
- than darkening its top. In light the capsule also has a hairline outline (196 to 227 on a 242 sheet)
788
+ edges, about 7 levels at the top fading within 2pt and again over the last 6pt at the bottom; that fall is
789
+ not drawn, the glass stays flat with its rim (mobile-materials.css, owner 10.11: no gradients). In light the capsule also has a hairline outline (196 to 227 on a 242 sheet)
767
790
  and a soft shadow at rest, 3 levels just under it and gone within 12pt; dark glass has neither.
768
791
  The rim of light runs along the top and the bottom and fades out at the sides, where the outline is
769
792
  darker instead: the disabled checkmark of Calendar (IMG_5433, 08.11) is white at 0.67pt top and
770
793
  bottom, about 230 on the diagonals and none at the sides, with an outline of 194 top and bottom and
771
794
  155 at the sides. A rim on the top-left and bottom-right corners lit one diagonal only and made a
772
795
  round button read as an oval (owner, 08.11). */
773
- .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
774
- --mobile-glass-sheen: linear-gradient(light-dark(rgb(255 255 255 / 45%), rgb(255 255 255 / 6%)), transparent 6px, transparent calc(100% - 8px), light-dark(rgb(255 255 255 / 45%), rgb(255 255 255 / 4%)));
775
- }
776
796
  .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton), :where([data-theme="light"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
777
797
  --mobile-glass-shadow: 0 4px 12px rgb(0 0 0 / 2%), 0 0 0 0.5px rgb(0 0 0 / 12%), 1.25px 0 0 -0.75px rgb(0 0 0 / 16%), -1.25px 0 0 -0.75px rgb(0 0 0 / 16%), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
778
798
  }
@@ -1010,11 +1030,12 @@
1010
1030
  --dialog-panel-radius: var(--dialog-alert-radius);
1011
1031
  }
1012
1032
 
1013
- /* iOS 27 alerts (kit iOS 27, Alerts 65:57149, Side-by-Side): glass, fields and actions 14 from the edge, the
1014
- title 22 from the top and from the sides, the message 10 under the title, both 17/22 (the title semibold),
1015
- 24 from the text to a field or the actions, a field block of 52px rows, 19 under it to the actions, 8
1016
- between two actions. The colors follow native frames (mobile-materials.css): the message is the secondary
1017
- label, as in Files (owner 08.11); native iOS 26 frames (iOS2 IMG_5532, IMG_5533) also set it at 15/20. */
1033
+ /* The alert of iOS 27.2 (UIAlertController .alert on an iPhone 17, measures/alerts.md): 320 wide, glass, the
1034
+ actions 16 from the edge and a field 15, the text 31 from the sides. The title is 17/22 semibold, its baseline
1035
+ 38.33 from the top; the message 15/20 in the secondary label (native dark is dimmer, mobile-materials.css),
1036
+ its first baseline 25.67 under the title's.
1037
+ The actions stand 24.17 under the last baseline, 48 tall and 8 apart; a field 48 tall stands 20.17 under
1038
+ the message and 20 over the actions. The colors follow native frames (mobile-materials.css). */
1018
1039
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Panel {
1019
1040
  gap: 10px;
1020
1041
  padding: var(--dialog-alert-padding);
@@ -1029,8 +1050,18 @@
1029
1050
  }
1030
1051
 
1031
1052
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Header {
1032
- gap: var(--dialog-alert-header-gap, 10px);
1033
- padding: var(--dialog-alert-header-padding, 8px 8px 14px);
1053
+ gap: var(--dialog-alert-header-gap, 5.67px);
1054
+ padding: var(--dialog-alert-header-padding, 5px 15px 5.5px);
1055
+ }
1056
+
1057
+ /* A title alone stands centered, as native sets one without a message ("Unable to Connect", 27.2). */
1058
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Header:not(:has(.Description)) {
1059
+ text-align: center;
1060
+ }
1061
+
1062
+ /* The actions under the text stand 4 lower than a field does: 19.5 from the text's line box, 15.5 for a field. */
1063
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Header + .Footer {
1064
+ margin-top: 4px;
1034
1065
  }
1035
1066
 
1036
1067
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Header > :first-child {
@@ -1049,8 +1080,8 @@
1049
1080
 
1050
1081
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Description {
1051
1082
  color: var(--dialog-alert-message-color, var(--color-text));
1052
- font-size: var(--dialog-alert-message-size, 17px);
1053
- line-height: var(--dialog-alert-message-leading, 22px);
1083
+ font-size: var(--dialog-alert-message-size, 15px);
1084
+ line-height: var(--dialog-alert-message-leading, 20px);
1054
1085
  }
1055
1086
 
1056
1087
  /* The message of an iOS alert is plain text: a code or a name in it reads as the rest of the message. A link
@@ -1068,11 +1099,12 @@
1068
1099
  text-decoration: none;
1069
1100
  }
1070
1101
 
1071
- /* A text field fills the alert as its actions do: a 52px row with 26px corners, 19 above the actions. */
1102
+ /* A text field fills the alert as its actions do: a 48px capsule 20 above the actions. Native draws it 290
1103
+ wide over actions of 288, a point further out on each side. */
1072
1104
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Body {
1073
- --control-size-3xl: var(--dialog-alert-field-height, 52px);
1074
- margin-inline: 0;
1075
- padding: 0 0 9px;
1105
+ --control-size-3xl: var(--dialog-alert-field-height, 48px);
1106
+ margin-inline: -1px;
1107
+ padding: 0 0 10px;
1076
1108
  --dialog-steps-gutter: 0px;
1077
1109
  }
1078
1110
 
@@ -1094,13 +1126,13 @@
1094
1126
  overflow-wrap: anywhere;
1095
1127
  }
1096
1128
 
1097
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]),
1098
- :where([data-plex-layout="phone"]) .Content .Footer[data-mobile-layout="inline"] {
1129
+ /* Two actions stand side by side; three or more stack, as native lays them out ("Unsaved Changes", 27.2). */
1130
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))), :where([data-plex-layout="phone"]) .Content .Footer[data-mobile-layout="inline"] {
1099
1131
  flex-flow: row wrap;
1100
1132
  gap: 10px 16px;
1101
1133
  }
1102
1134
 
1103
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > *, :where([data-plex-layout="phone"]) .Content .Footer[data-mobile-layout="inline"] > * {
1135
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) > *, :where([data-plex-layout="phone"]) .Content .Footer[data-mobile-layout="inline"] > * {
1104
1136
  flex: 1 0 auto;
1105
1137
  width: auto;
1106
1138
  min-width: calc(50% - 8px);
@@ -1112,10 +1144,17 @@
1112
1144
  overflow-wrap: anywhere;
1113
1145
  }
1114
1146
 
1115
- /* Native alert actions are semibold, and a soft action and a field share the fill of the glass,
1116
- about 13% of the label color in both themes (light 202 on 232, dark 73 on 46). */
1147
+ /* Native alert actions are medium, the preferred one semibold (stems of 1.84 and 2.07pt at 17pt, against 1.45
1148
+ for regular text, 27.2), and a soft action and a field share the fill of the glass, about 13% of the label
1149
+ color in both themes (light 202 on 233, dark 60 on 32). The weight is set on the button itself: touch.css
1150
+ gives every filled phone button a semibold --button-font-weight outside the layers, where a component's
1151
+ value for it cannot reach. */
1117
1152
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer > :where(button, a, [role="link"]) {
1118
- --button-font-weight: var(--dialog-alert-action-font-weight, 600);
1153
+ font-weight: var(--dialog-alert-action-font-weight, 510);
1154
+ }
1155
+
1156
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer > [data-variant="solid"]:not([data-color="danger"]) {
1157
+ font-weight: var(--dialog-alert-preferred-font-weight, 590);
1119
1158
  }
1120
1159
 
1121
1160
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer > [data-variant="soft"]:where([data-color="primary"], [data-color="secondary"]) {
@@ -1136,12 +1175,15 @@
1136
1175
  --input-soft-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
1137
1176
  }
1138
1177
 
1139
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) {
1140
- -moz-column-gap: var(--dialog-alert-action-gap, 8px);
1141
- column-gap: var(--dialog-alert-action-gap, 8px);
1178
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer {
1179
+ gap: var(--dialog-alert-action-gap, 8px);
1142
1180
  }
1143
1181
 
1144
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > * {
1182
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) {
1183
+ gap: var(--dialog-alert-action-gap, 8px);
1184
+ }
1185
+
1186
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) > * {
1145
1187
  min-width: calc(50% - var(--dialog-alert-action-gap, 8px) / 2);
1146
1188
  }
1147
1189
 
@@ -1166,8 +1208,8 @@
1166
1208
  overflow: hidden;
1167
1209
  }
1168
1210
 
1169
- /* The header of a phone Sheet is its Toolbar (Dialog.Header renders one): the grabber, the row of controls and
1170
- the title are the Toolbar's. Its heading holds what the header holds besides its actions, as wide as the
1211
+ /* The header of a phone Sheet is its Toolbar (Dialog.Header renders one): the row of controls and the title
1212
+ are the Toolbar's. Its heading holds what the header holds besides its actions, as wide as the
1171
1213
  row leaves it. */
1172
1214
  :where([data-plex-layout="phone"]) .BarHeading > * {
1173
1215
  max-width: 100%;
@@ -1201,17 +1243,14 @@
1201
1243
 
1202
1244
  /* The glass of a sheet's bar: Close, the header actions and a control in the header, such as a segmented
1203
1245
  control. Native iOS 26 sheets (Calendar, IMG_5433 light, iOS2 IMG_5522 dark) light the glass along both
1204
- edges, about 7 levels at the top fading within 2pt and again over the last 6pt at the bottom, rather
1205
- than darkening its top. In light the capsule also has a hairline outline (196 to 227 on a 242 sheet)
1246
+ edges, about 7 levels at the top fading within 2pt and again over the last 6pt at the bottom; that fall is
1247
+ not drawn, the glass stays flat with its rim (mobile-materials.css, owner 10.11: no gradients). In light the capsule also has a hairline outline (196 to 227 on a 242 sheet)
1206
1248
  and a soft shadow at rest, 3 levels just under it and gone within 12pt; dark glass has neither.
1207
1249
  The rim of light runs along the top and the bottom and fades out at the sides, where the outline is
1208
1250
  darker instead: the disabled checkmark of Calendar (IMG_5433, 08.11) is white at 0.67pt top and
1209
1251
  bottom, about 230 on the diagonals and none at the sides, with an outline of 194 top and bottom and
1210
1252
  155 at the sides. A rim on the top-left and bottom-right corners lit one diagonal only and made a
1211
1253
  round button read as an oval (owner, 08.11). */
1212
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
1213
- --mobile-glass-sheen: linear-gradient(light-dark(rgb(255 255 255 / 45%), rgb(255 255 255 / 6%)), transparent 6px, transparent calc(100% - 8px), light-dark(rgb(255 255 255 / 45%), rgb(255 255 255 / 4%)));
1214
- }
1215
1254
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton), :where([data-theme="light"]) :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
1216
1255
  --mobile-glass-shadow: 0 4px 12px rgb(0 0 0 / 2%), 0 0 0 0.5px rgb(0 0 0 / 12%), 1.25px 0 0 -0.75px rgb(0 0 0 / 16%), -1.25px 0 0 -0.75px rgb(0 0 0 / 16%), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
1217
1256
  }
@@ -542,9 +542,16 @@
542
542
  }
543
543
 
544
544
  /* The Field already delegates its non-interactive area to this linked popup.
545
- Keep one row surface; the trigger remains its only keyboard stop. */
545
+ Keep one row surface; the trigger remains its only keyboard stop. Its box is 34px, centred in the row without
546
+ moving it, as the pop-up button of an iOS picker is: a phone list opens over it, 9pt below the 52pt row's top
547
+ (ref-app pickers, block 8: 26px at @3x; Select.tsx). */
546
548
  .Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
547
- --select-control-size: var(--field-row-label-line-height);
549
+ --select-control-size: 34px;
550
+
551
+ /* A clear button does not grow it: its 44px target reaches past the box (SelectControl.module.css), so a list
552
+ that stays open after a pick stands where it opened (owner 10.11: the list jumped after the first choice) */
553
+ min-height: 0;
554
+ margin-block: calc((var(--field-row-label-line-height) - 34px) / 2);
548
555
  border-radius: 0;
549
556
  }
550
557
 
@@ -563,14 +570,16 @@
563
570
  cursor: pointer;
564
571
  }
565
572
 
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. */
573
+ /* A date in a row is the compact date picker of iOS 27.2: a 34px capsule with 12px insets on the fill of the
574
+ calendar's time pill, the date in the primary label and in the accent text while its calendar is open
575
+ (Calendar's new event on an iPhone 17: 34.3pt, the text 12pt in from either end; UIKit's own capsule 36pt
576
+ with the same insets; the iOS 26 kit drew 11px). It keeps the 52px row; the row stays its target. A
577
+ disabled date draws no capsule, as UIKit's disabled compact picker does, and stays dimmed. */
569
578
  .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
570
579
  --select-control-size: 34px;
571
580
 
572
581
  margin-block: calc((var(--field-row-label-line-height) - 34px) / 2);
573
- padding-inline: 11px;
582
+ padding-inline: 12px;
574
583
  border-radius: var(--radius-full);
575
584
  color: var(--color-text);
576
585
  }
@@ -584,13 +593,17 @@
584
593
  color: var(--mobile-label-tertiary, var(--color-text-tertiary));
585
594
  }
586
595
 
596
+ .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]::before {
597
+ background-color: transparent;
598
+ }
599
+
587
600
  .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
601
  color: var(--link-primary-text-color);
589
602
  }
590
603
 
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. */
604
+ /* A date and a time (showTime with a triggerTimeFormat) are two capsules 8px apart, as Calendar on iOS 27.2 shows
605
+ an event's start (8pt; UIKit's own pair 4pt, the iOS 26 kit 6px). Either opens the calendar, whose time fields
606
+ set the time; the trigger stays the row's target and takes the accent while the calendar is open. */
594
607
  .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
608
  padding-inline: 0;
596
609
  }
@@ -601,16 +614,20 @@
601
614
 
602
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-parts] {
603
616
  display: flex;
604
- gap: 6px;
617
+ gap: 8px;
605
618
  min-width: 0;
606
619
  }
607
620
 
608
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] {
609
- padding: 6px 11px;
622
+ padding: 6px 12px;
610
623
  border-radius: var(--radius-full);
611
624
  background-color: var(--color-background-secondary-soft-alpha);
612
625
  }
613
626
 
627
+ .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-disabled] [data-date-part] {
628
+ background-color: transparent;
629
+ }
630
+
614
631
  /* Short of room, the date ends in an ellipsis inside its capsule; the time keeps its width */
615
632
  .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
633
  min-width: 0;
@@ -928,9 +945,16 @@
928
945
  }
929
946
 
930
947
  /* The Field already delegates its non-interactive area to this linked popup.
931
- Keep one row surface; the trigger remains its only keyboard stop. */
948
+ Keep one row surface; the trigger remains its only keyboard stop. Its box is 34px, centred in the row without
949
+ moving it, as the pop-up button of an iOS picker is: a phone list opens over it, 9pt below the 52pt row's top
950
+ (ref-app pickers, block 8: 26px at @3x; Select.tsx). */
932
951
  :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);
952
+ --select-control-size: 34px;
953
+
954
+ /* A clear button does not grow it: its 44px target reaches past the box (SelectControl.module.css), so a list
955
+ that stays open after a pick stands where it opened (owner 10.11: the list jumped after the first choice) */
956
+ min-height: 0;
957
+ margin-block: calc((var(--field-row-label-line-height) - 34px) / 2);
934
958
  border-radius: 0;
935
959
  }
936
960
 
@@ -949,14 +973,16 @@
949
973
  cursor: pointer;
950
974
  }
951
975
 
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. */
976
+ /* A date in a row is the compact date picker of iOS 27.2: a 34px capsule with 12px insets on the fill of the
977
+ calendar's time pill, the date in the primary label and in the accent text while its calendar is open
978
+ (Calendar's new event on an iPhone 17: 34.3pt, the text 12pt in from either end; UIKit's own capsule 36pt
979
+ with the same insets; the iOS 26 kit drew 11px). It keeps the 52px row; the row stays its target. A
980
+ disabled date draws no capsule, as UIKit's disabled compact picker does, and stays dimmed. */
955
981
  :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
982
  --select-control-size: 34px;
957
983
 
958
984
  margin-block: calc((var(--field-row-label-line-height) - 34px) / 2);
959
- padding-inline: 11px;
985
+ padding-inline: 12px;
960
986
  border-radius: var(--radius-full);
961
987
  color: var(--color-text);
962
988
  }
@@ -970,13 +996,17 @@
970
996
  color: var(--mobile-label-tertiary, var(--color-text-tertiary));
971
997
  }
972
998
 
999
+ :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]::before {
1000
+ background-color: transparent;
1001
+ }
1002
+
973
1003
  :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
1004
  color: var(--link-primary-text-color);
975
1005
  }
976
1006
 
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. */
1007
+ /* A date and a time (showTime with a triggerTimeFormat) are two capsules 8px apart, as Calendar on iOS 27.2 shows
1008
+ an event's start (8pt; UIKit's own pair 4pt, the iOS 26 kit 6px). Either opens the calendar, whose time fields
1009
+ set the time; the trigger stays the row's target and takes the accent while the calendar is open. */
980
1010
  :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
1011
  padding-inline: 0;
982
1012
  }
@@ -987,16 +1017,20 @@
987
1017
 
988
1018
  :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
1019
  display: flex;
990
- gap: 6px;
1020
+ gap: 8px;
991
1021
  min-width: 0;
992
1022
  }
993
1023
 
994
1024
  :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;
1025
+ padding: 6px 12px;
996
1026
  border-radius: var(--radius-full);
997
1027
  background-color: var(--color-background-secondary-soft-alpha);
998
1028
  }
999
1029
 
1030
+ :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-disabled] [data-date-part] {
1031
+ background-color: transparent;
1032
+ }
1033
+
1000
1034
  /* Short of room, the date ends in an ellipsis inside its capsule; the time keeps its width */
1001
1035
  :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
1036
  min-width: 0;