@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
@@ -18,6 +18,12 @@
18
18
  font-size: var(--field-group-title-font-size);
19
19
  line-height: var(--field-group-title-line-height);
20
20
  font-weight: var(--field-group-title-font-weight);
21
+ letter-spacing: var(--field-group-title-letter-spacing, normal);
22
+ }/* headerProminence="increased": the title leads its content, as a section of a page */.FieldGroup[data-header-prominence="increased"] {
23
+ --field-group-title-color: var(--color-text);
24
+ --field-group-title-font-size: var(--font-heading-sm-size);
25
+ --field-group-title-line-height: var(--font-heading-sm-line-height);
26
+ --field-group-title-font-weight: var(--font-heading-sm-weight);
21
27
  }.Description {
22
28
  margin: 0;
23
29
  padding-inline: var(--field-group-title-padding-inline);
@@ -30,6 +36,14 @@
30
36
  border: var(--field-group-border-width) solid var(--color-border);
31
37
  border-radius: var(--field-group-radius);
32
38
  background: var(--field-group-background);
39
+ }/* A swipe row (SwipeActions) clips what it moves to the corners of the card. */.Body > [data-swipe-actions]:first-child,
40
+ .Body > [data-sortable]:first-child > [data-swipe-actions]:first-child {
41
+ border-start-start-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
42
+ border-start-end-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
43
+ }.Body > [data-swipe-actions]:last-child,
44
+ .Body > [data-sortable]:last-child > [data-swipe-actions]:last-child {
45
+ border-end-start-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
46
+ border-end-end-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
33
47
  }/* Desktop separators remain part of the row border. */.Body > [data-row] + [data-row],
34
48
  .Body > [data-sortable] > [data-row] + [data-row] {
35
49
  border-top: 1px solid var(--color-border);
@@ -39,6 +53,54 @@
39
53
  --field-group-title-color: var(--mobile-label-secondary, var(--color-text-secondary));
40
54
  }
41
55
 
56
+ /* The kit's Prominent list header (Lists, Header 517:38042, Type=Prominent): Title 3 Semibold
57
+ 20/25 in the primary label, 10pt above the rows. Its -0.45 tracking is the one the system font
58
+ applies itself at 20pt, so the title keeps normal tracking (system-font-tracking.test.ts). */
59
+ .FieldGroup[data-header-prominence="increased"] {
60
+ --field-group-title-color: var(--color-text);
61
+ --field-group-title-font-size: 20px;
62
+ --field-group-title-line-height: 25px;
63
+ --field-group-title-font-weight: 590;
64
+ --field-group-header-min-height: 45px;
65
+ --field-group-header-padding-bottom: 10px;
66
+ }
67
+
68
+ /* A text action at the end of the header (kit _Header Trailing Accessories, Type=Action 39:67340) is
69
+ tinted text at the list's text inset, on the title's last line as the kit sets it. Its size is the
70
+ native one, body 17/22 (5559 Clear; the kit draws 15/20), as a row's text action. Its target keeps
71
+ 44px without making the header taller. */
72
+ .Header > button[data-variant="ghost"]:not([data-uniform]) {
73
+ --button-size: 44px;
74
+ --button-gutter: 0px;
75
+ --button-font-size: var(--field-row-label-font-size);
76
+ --button-line-height: var(--field-row-label-line-height);
77
+ --button-font-weight: var(--font-weight-normal);
78
+ --button-justify-content: flex-end;
79
+ --button-background-color: transparent;
80
+ --button-background-color-active: transparent;
81
+ --button-mobile-material-background: transparent;
82
+ --button-mobile-material-hover: transparent;
83
+ --button-mobile-material-active: transparent;
84
+ --button-mobile-material-shadow: none;
85
+ --button-mobile-material-backdrop-filter: none;
86
+
87
+ flex-shrink: 0;
88
+ min-width: 44px;
89
+ margin-block: calc((var(--field-row-label-line-height) - 44px) / 2);
90
+ margin-inline-end: var(--field-group-title-padding-inline);
91
+ }
92
+
93
+ /* A link in the footer is tinted text, as iOS writes "Learn more…" under a group (5483, 5489) */
94
+ .Footer a[href] {
95
+ color: var(--link-primary-text-color);
96
+ text-decoration: none;
97
+ }
98
+
99
+ .Header > button[data-variant="ghost"]:not([data-uniform]):is([data-color="primary"], [data-color="secondary"]) {
100
+ --button-text-color: var(--link-primary-text-color);
101
+ --button-text-color-hover: var(--link-primary-text-color);
102
+ }
103
+
42
104
  .Body > [data-row] + [data-row],
43
105
  .Body > [data-sortable] > [data-row] + [data-row] {
44
106
  position: relative;
@@ -48,7 +110,9 @@
48
110
  /* Full-row actions share the cell's bounds. Only their text and accessories
49
111
  sit inside the row padding; the pressed surface must not shrink inward. */
50
112
  .Body > [data-row] > button[data-block][data-variant="ghost"],
51
- .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"] {
113
+ .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"],
114
+ .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"],
115
+ .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"] {
52
116
  --button-mobile-material-scale: 1;
53
117
  }
54
118
 
@@ -67,7 +131,9 @@
67
131
  /* An open popup is not a held press. Keep selection and explicit glass
68
132
  surfaces independent; the trigger remains focusable and expanded. */
69
133
  .Body > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
70
- .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before {
134
+ .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
135
+ .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
136
+ .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before {
71
137
  opacity: 0;
72
138
  }
73
139
 
@@ -83,7 +149,121 @@
83
149
  background: var(--color-border);
84
150
  pointer-events: none;
85
151
  }
86
- }/* Explanations belong below the group, with the list's own text insets. */.Footer {
152
+
153
+ /* A revealed swipe row stands apart from the card as a capsule: no line above it or under it. */
154
+ .Body > [data-swipe-actions][data-revealed]::after,
155
+ .Body > [data-swipe-actions][data-revealed] + [data-row]::after,
156
+ .Body > [data-sortable] > [data-swipe-actions][data-revealed]::after,
157
+ .Body > [data-sortable] > [data-swipe-actions][data-revealed] + [data-row]::after {
158
+ opacity: 0;
159
+ }
160
+ }
161
+ :where([data-plex-layout="phone"]) .FieldGroup {
162
+ --field-group-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
163
+ --field-group-title-color: var(--mobile-label-secondary, var(--color-text-secondary));
164
+ }
165
+
166
+ /* The kit's Prominent list header (Lists, Header 517:38042, Type=Prominent): Title 3 Semibold
167
+ 20/25 in the primary label, 10pt above the rows. Its -0.45 tracking is the one the system font
168
+ applies itself at 20pt, so the title keeps normal tracking (system-font-tracking.test.ts). */
169
+ :where([data-plex-layout="phone"]) .FieldGroup[data-header-prominence="increased"] {
170
+ --field-group-title-color: var(--color-text);
171
+ --field-group-title-font-size: 20px;
172
+ --field-group-title-line-height: 25px;
173
+ --field-group-title-font-weight: 590;
174
+ --field-group-header-min-height: 45px;
175
+ --field-group-header-padding-bottom: 10px;
176
+ }
177
+
178
+ /* A text action at the end of the header (kit _Header Trailing Accessories, Type=Action 39:67340) is
179
+ tinted text at the list's text inset, on the title's last line as the kit sets it. Its size is the
180
+ native one, body 17/22 (5559 Clear; the kit draws 15/20), as a row's text action. Its target keeps
181
+ 44px without making the header taller. */
182
+ :where([data-plex-layout="phone"]) .Header > button[data-variant="ghost"]:not([data-uniform]) {
183
+ --button-size: 44px;
184
+ --button-gutter: 0px;
185
+ --button-font-size: var(--field-row-label-font-size);
186
+ --button-line-height: var(--field-row-label-line-height);
187
+ --button-font-weight: var(--font-weight-normal);
188
+ --button-justify-content: flex-end;
189
+ --button-background-color: transparent;
190
+ --button-background-color-active: transparent;
191
+ --button-mobile-material-background: transparent;
192
+ --button-mobile-material-hover: transparent;
193
+ --button-mobile-material-active: transparent;
194
+ --button-mobile-material-shadow: none;
195
+ --button-mobile-material-backdrop-filter: none;
196
+
197
+ flex-shrink: 0;
198
+ min-width: 44px;
199
+ margin-block: calc((var(--field-row-label-line-height) - 44px) / 2);
200
+ margin-inline-end: var(--field-group-title-padding-inline);
201
+ }
202
+
203
+ /* A link in the footer is tinted text, as iOS writes "Learn more…" under a group (5483, 5489) */
204
+ :where([data-plex-layout="phone"]) .Footer a[href] {
205
+ color: var(--link-primary-text-color);
206
+ text-decoration: none;
207
+ }
208
+
209
+ :where([data-plex-layout="phone"]) .Header > button[data-variant="ghost"]:not([data-uniform]):is([data-color="primary"], [data-color="secondary"]) {
210
+ --button-text-color: var(--link-primary-text-color);
211
+ --button-text-color-hover: var(--link-primary-text-color);
212
+ }
213
+
214
+ :where([data-plex-layout="phone"]) .Body > [data-row] + [data-row],
215
+ :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] + [data-row] {
216
+ position: relative;
217
+ border-top-width: 0;
218
+ }
219
+
220
+ /* Full-row actions share the cell's bounds. Only their text and accessories
221
+ sit inside the row padding; the pressed surface must not shrink inward. */
222
+ :where([data-plex-layout="phone"]) .Body > [data-row] > button[data-block][data-variant="ghost"],
223
+ :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"],
224
+ :where([data-plex-layout="phone"]) .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"],
225
+ :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"] {
226
+ --button-mobile-material-scale: 1;
227
+ }
228
+
229
+ :where([data-plex-layout="phone"]) .Body > [data-row]:first-child > button[data-block][data-variant="ghost"]::before,
230
+ :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row]:first-child > button[data-block][data-variant="ghost"]::before {
231
+ border-start-start-radius: var(--field-group-radius);
232
+ border-start-end-radius: var(--field-group-radius);
233
+ }
234
+
235
+ :where([data-plex-layout="phone"]) .Body > [data-row]:last-child > button[data-block][data-variant="ghost"]::before,
236
+ :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row]:last-child > button[data-block][data-variant="ghost"]::before {
237
+ border-end-start-radius: var(--field-group-radius);
238
+ border-end-end-radius: var(--field-group-radius);
239
+ }
240
+
241
+ /* An open popup is not a held press. Keep selection and explicit glass
242
+ surfaces independent; the trigger remains focusable and expanded. */
243
+ :where([data-plex-layout="phone"]) .Body > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before {
244
+ opacity: 0;
245
+ }
246
+
247
+ /* Draw inside the row: 44px controls + 4px padding on each side stay 52px.
248
+ Sortable owns ::before for its drag placeholder, so use ::after here. */
249
+ :where([data-plex-layout="phone"]) .Body > [data-row] + [data-row]::after,
250
+ :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] + [data-row]::after {
251
+ content: "";
252
+ position: absolute;
253
+ inset-inline: var(--field-group-separator-inset, 0px);
254
+ top: 0;
255
+ height: 1px;
256
+ background: var(--color-border);
257
+ pointer-events: none;
258
+ }
259
+
260
+ /* A revealed swipe row stands apart from the card as a capsule: no line above it or under it. */
261
+ :where([data-plex-layout="phone"]) .Body > [data-swipe-actions][data-revealed]::after,
262
+ :where([data-plex-layout="phone"]) .Body > [data-swipe-actions][data-revealed] + [data-row]::after,
263
+ :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-swipe-actions][data-revealed]::after,
264
+ :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-swipe-actions][data-revealed] + [data-row]::after {
265
+ opacity: 0;
266
+ }/* Explanations belong below the group, with the list's own text insets. */.Footer {
87
267
  padding: var(--field-group-footer-padding, 8px 0 0);
88
268
  color: var(--field-group-description-color, var(--color-text-secondary));
89
269
  font-size: var(--field-group-footer-font-size, var(--field-group-description-font-size));
@@ -93,4 +273,9 @@
93
273
  .Footer > p {
94
274
  margin: 0;
95
275
  }
276
+
277
+ /* Paragraphs stand apart; on a phone by one empty line, as in a Settings footer (5514) */
278
+ .Footer > p + p {
279
+ margin-top: var(--field-group-footer-paragraph-gap, calc(var(--spacing) * 2));
280
+ }
96
281
  }
@@ -206,7 +206,80 @@
206
206
  --file-remove-background: var(--color-background-disabled);
207
207
  color: var(--color-text-disabled);
208
208
  }
209
- }.HiddenInput {
209
+ }
210
+ :where([data-plex-layout="phone"]) .Root {
211
+ --button-size-3xl: var(--control-size-3xl);
212
+ }
213
+
214
+ :where([data-plex-layout="phone"]) .FileList,
215
+ :where([data-plex-layout="phone"]) .FileCardGroup {
216
+ border-width: var(--file-upload-list-border-width, 1px);
217
+ background-color: var(--file-upload-list-background, transparent);
218
+ }
219
+
220
+ :where([data-plex-layout="phone"]) .FileItem {
221
+ position: relative;
222
+ min-height: 68px;
223
+ gap: 12px;
224
+ padding: 12px 16px;
225
+ }
226
+
227
+ :where([data-plex-layout="phone"]) .FileItem + .FileItem,
228
+ :where([data-plex-layout="phone"]) .FileList li + li > .FileItem {
229
+ border-top: 0;
230
+ }
231
+
232
+ :where([data-plex-layout="phone"]) .FileItem + .FileItem::after,
233
+ :where([data-plex-layout="phone"]) .FileList li + li > .FileItem::after {
234
+ content: "";
235
+ position: absolute;
236
+ top: 0;
237
+ inset-inline: 52px 16px;
238
+ height: 1px;
239
+ background-color: var(--color-border-primary-outline);
240
+ pointer-events: none;
241
+ }
242
+
243
+ :where([data-plex-layout="phone"]) .FileIcon {
244
+ margin-left: 0;
245
+ }
246
+
247
+ :where([data-plex-layout="phone"]) .FileNameStem,
248
+ :where([data-plex-layout="phone"]) .FileNameExt {
249
+ font-size: 17px;
250
+ line-height: 22px;
251
+ letter-spacing: normal;
252
+ }
253
+
254
+ :where([data-plex-layout="phone"]) .FileSize {
255
+ font-size: 15px;
256
+ line-height: 20px;
257
+ color: var(--mobile-label-secondary, var(--color-text-secondary));
258
+ }
259
+
260
+ :where([data-plex-layout="phone"]) .FileRemove {
261
+ width: 44px;
262
+ height: 44px;
263
+ margin: 0;
264
+ /* Align the visible 28px circle with the row's 16px content inset.
265
+ The transparent half-gutter still belongs to the 44px target. */
266
+ margin-inline-end: -8px;
267
+ }
268
+
269
+ :where([data-plex-layout="phone"]) .FileRemove::before {
270
+ width: 28px;
271
+ height: 28px;
272
+ }
273
+
274
+ :where([data-plex-layout="phone"]) .FileRemove svg {
275
+ width: 16px;
276
+ height: 16px;
277
+ }
278
+
279
+ :where([data-plex-layout="phone"]) .FileRemove:disabled {
280
+ --file-remove-background: var(--color-background-disabled);
281
+ color: var(--color-text-disabled);
282
+ }.HiddenInput {
210
283
  position: absolute;
211
284
  width: 1px;
212
285
  height: 1px;
@@ -133,7 +133,46 @@
133
133
  .ClearButton:hover:where(:not(:root[data-input="touch"] *)) {
134
134
  color: var(--color-text);
135
135
  }
136
- }/* Password reveal toggle — circular ghost button hugging the right edge */.RevealButton {
136
+ }.ClearPhoneIcon {
137
+ display: none;
138
+ }@media (max-width: 767px) {
139
+ /* On a phone the clear button is the filled circle with a cross of iOS (xmark.circle.fill, a 17px circle in
140
+ the tertiary label: kit iOS 27 Text Fields 5433:15635), drawn with the PlexUI XCircleFilled icon, whose
141
+ circle is 20 of its 24px box. It is centred half the field height from the field's end, concentric with
142
+ the rounded end: 26px on the 52px field, where the kit centres it 26px from the edge of a row. */
143
+ .ClearIcon {
144
+ display: none;
145
+ }
146
+
147
+ .ClearPhoneIcon {
148
+ display: block;
149
+ width: calc(var(--floating-input-clear-glyph-size, 17px) * 1.2);
150
+ height: calc(var(--floating-input-clear-glyph-size, 17px) * 1.2);
151
+ color: var(--floating-input-clear-glyph-color, var(--mobile-label-tertiary, var(--color-text-tertiary)));
152
+ }
153
+
154
+ .ClearButton:last-child {
155
+ margin-inline-end: calc(var(--floating-input-height) / 2 - var(--floating-input-clear-size, 1em) / 2 - var(--floating-input-gutter) - 1px);
156
+ }
157
+ }
158
+ /* On a phone the clear button is the filled circle with a cross of iOS (xmark.circle.fill, a 17px circle in
159
+ the tertiary label: kit iOS 27 Text Fields 5433:15635), drawn with the PlexUI XCircleFilled icon, whose
160
+ circle is 20 of its 24px box. It is centred half the field height from the field's end, concentric with
161
+ the rounded end: 26px on the 52px field, where the kit centres it 26px from the edge of a row. */
162
+ :where([data-plex-layout="phone"]) .ClearIcon {
163
+ display: none;
164
+ }
165
+
166
+ :where([data-plex-layout="phone"]) .ClearPhoneIcon {
167
+ display: block;
168
+ width: calc(var(--floating-input-clear-glyph-size, 17px) * 1.2);
169
+ height: calc(var(--floating-input-clear-glyph-size, 17px) * 1.2);
170
+ color: var(--floating-input-clear-glyph-color, var(--mobile-label-tertiary, var(--color-text-tertiary)));
171
+ }
172
+
173
+ :where([data-plex-layout="phone"]) .ClearButton:last-child {
174
+ margin-inline-end: calc(var(--floating-input-height) / 2 - var(--floating-input-clear-size, 1em) / 2 - var(--floating-input-gutter) - 1px);
175
+ }/* Password reveal toggle — circular ghost button hugging the right edge */.RevealButton {
137
176
  display: flex;
138
177
  align-items: center;
139
178
  justify-content: center;
@@ -117,13 +117,40 @@
117
117
  }/* Clear button — using Button component, sizing matches SelectControl 3xl */.Clear {
118
118
  --button-size: 24px;
119
119
  --button-icon-size: 16px;
120
+ /* Keeps its face on a phone, where a uniform 3xs button is otherwise the kit's 28px circle (touch.css). */
121
+ --button-uniform-size-3xs: var(--control-size-3xs);
122
+ --button-icon-size-3xs: var(--control-icon-size-xs);
120
123
 
121
124
  position: relative;
122
125
  opacity: 0.75;
123
126
  }.FieldFootprint[data-open] .Clear,
124
127
  .Clear:focus-visible {
125
128
  opacity: 1;
126
- }@media (hover: hover) and (pointer: fine) {
129
+ }/* On a phone the clear button takes the 44px target of iOS, as SelectControl's and the
130
+ FloatingLabelInput's do: the target takes layout space, the face and glyph keep their size. */@media (max-width: 767px) {
131
+ .Clear {
132
+ min-width: 44px;
133
+ min-height: 44px;
134
+ }
135
+
136
+ .Clear::before,
137
+ .Clear::after {
138
+ width: var(--button-size);
139
+ height: var(--button-size);
140
+ margin: auto;
141
+ }
142
+ }
143
+ :where([data-plex-layout="phone"]) .Clear {
144
+ min-width: 44px;
145
+ min-height: 44px;
146
+ }
147
+
148
+ :where([data-plex-layout="phone"]) .Clear::before,
149
+ :where([data-plex-layout="phone"]) .Clear::after {
150
+ width: var(--button-size);
151
+ height: var(--button-size);
152
+ margin: auto;
153
+ }@media (hover: hover) and (pointer: fine) {
127
154
  .FieldFootprint:hover:where(:not(:root[data-input="touch"] *)):not([data-disabled]) .Clear {
128
155
  opacity: 1;
129
156
  }
@@ -0,0 +1,146 @@
1
+ @layer components {/* The section index of a phone list, after native iOS (Contacts, IMG_5737) and the iOS 27 kit Index Bar
2
+ (Lists 48:56457): a column of letters at the trailing edge of the list, centred between its bars, that jumps to
3
+ a section under the finger. Where the letters do not fit, every other one gives way to a dot, as UIKit's
4
+ index does. A desktop list has no index, so the bar never renders from 768px up. */.IndexBar {
5
+ display: none;
6
+ }@media (max-width: 767.98px) {
7
+ /* A strip down the trailing edge of the nearest positioned container (a Page is one), between the bars of a
8
+ Page or the safe areas, as iOS centres its index between the bars (Contacts IMG_5737: 479.5pt, halfway between
9
+ the top bar and the search bar; a sheet, IMG_5491, the same, not the middle of the sheet). Only the letters take touches, so the rows beside
10
+ and under the strip keep theirs. */
11
+ .IndexBar {
12
+ position: absolute;
13
+ z-index: 4;
14
+ inset-block: 0;
15
+ inset-inline-end: var(--index-bar-inset-inline-end);
16
+ display: flex;
17
+ flex-direction: column;
18
+ justify-content: center;
19
+ width: var(--index-bar-width);
20
+ padding-block:
21
+ var(--page-top, var(--safe-area-inset-top, env(safe-area-inset-top, 0px)))
22
+ var(--page-bottom, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
23
+ pointer-events: none;
24
+ }
25
+
26
+ .Rail {
27
+ position: relative;
28
+ display: flex;
29
+ flex-direction: column;
30
+ color: var(--index-bar-color);
31
+ font-size: var(--index-bar-font-size);
32
+ font-weight: var(--index-bar-font-weight);
33
+ line-height: var(--index-bar-line-height);
34
+ text-align: center;
35
+ pointer-events: auto;
36
+ cursor: pointer;
37
+ -moz-user-select: none;
38
+ user-select: none;
39
+ -webkit-user-select: none;
40
+ -webkit-touch-callout: none;
41
+ /* A drag along the letters moves through the sections, not the page. */
42
+ touch-action: none;
43
+ -webkit-tap-highlight-color: transparent;
44
+ }
45
+
46
+ /* No room for a line between the bars. */
47
+ .Rail[hidden] {
48
+ display: none;
49
+ }
50
+
51
+ .Rail:focus {
52
+ outline: none;
53
+ }
54
+
55
+ /* The ring sits inside the column: the column meets the edge of the Page, which clips anything past it. */
56
+ .Rail:focus-visible {
57
+ border-radius: calc(var(--index-bar-width) / 2);
58
+ outline: 2px solid var(--color-ring);
59
+ outline-offset: -2px;
60
+ }
61
+
62
+ /* The target reaches out to the edge and in toward the content, --index-bar-target-width in all. */
63
+ .Rail::before {
64
+ position: absolute;
65
+ inset-block: 0;
66
+ inset-inline: calc(var(--index-bar-width) + var(--index-bar-inset-inline-end) - var(--index-bar-target-width)) calc(-1 * var(--index-bar-inset-inline-end));
67
+ content: "";
68
+ }
69
+
70
+ .Item {
71
+ display: block;
72
+ height: var(--index-bar-line-height);
73
+ overflow: hidden;
74
+ white-space: nowrap;
75
+ }
76
+ }
77
+ /* A strip down the trailing edge of the nearest positioned container (a Page is one), between the bars of a
78
+ Page or the safe areas, as iOS centres its index between the bars (Contacts IMG_5737: 479.5pt, halfway between
79
+ the top bar and the search bar; a sheet, IMG_5491, the same, not the middle of the sheet). Only the letters take touches, so the rows beside
80
+ and under the strip keep theirs. */
81
+ :where([data-plex-layout="phone"]) .IndexBar {
82
+ position: absolute;
83
+ z-index: 4;
84
+ inset-block: 0;
85
+ inset-inline-end: var(--index-bar-inset-inline-end);
86
+ display: flex;
87
+ flex-direction: column;
88
+ justify-content: center;
89
+ width: var(--index-bar-width);
90
+ padding-block:
91
+ var(--page-top, var(--safe-area-inset-top, env(safe-area-inset-top, 0px)))
92
+ var(--page-bottom, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
93
+ pointer-events: none;
94
+ }
95
+
96
+ :where([data-plex-layout="phone"]) .Rail {
97
+ position: relative;
98
+ display: flex;
99
+ flex-direction: column;
100
+ color: var(--index-bar-color);
101
+ font-size: var(--index-bar-font-size);
102
+ font-weight: var(--index-bar-font-weight);
103
+ line-height: var(--index-bar-line-height);
104
+ text-align: center;
105
+ pointer-events: auto;
106
+ cursor: pointer;
107
+ -moz-user-select: none;
108
+ user-select: none;
109
+ -webkit-user-select: none;
110
+ -webkit-touch-callout: none;
111
+ /* A drag along the letters moves through the sections, not the page. */
112
+ touch-action: none;
113
+ -webkit-tap-highlight-color: transparent;
114
+ }
115
+
116
+ /* No room for a line between the bars. */
117
+ :where([data-plex-layout="phone"]) .Rail[hidden] {
118
+ display: none;
119
+ }
120
+
121
+ :where([data-plex-layout="phone"]) .Rail:focus {
122
+ outline: none;
123
+ }
124
+
125
+ /* The ring sits inside the column: the column meets the edge of the Page, which clips anything past it. */
126
+ :where([data-plex-layout="phone"]) .Rail:focus-visible {
127
+ border-radius: calc(var(--index-bar-width) / 2);
128
+ outline: 2px solid var(--color-ring);
129
+ outline-offset: -2px;
130
+ }
131
+
132
+ /* The target reaches out to the edge and in toward the content, --index-bar-target-width in all. */
133
+ :where([data-plex-layout="phone"]) .Rail::before {
134
+ position: absolute;
135
+ inset-block: 0;
136
+ inset-inline: calc(var(--index-bar-width) + var(--index-bar-inset-inline-end) - var(--index-bar-target-width)) calc(-1 * var(--index-bar-inset-inline-end));
137
+ content: "";
138
+ }
139
+
140
+ :where([data-plex-layout="phone"]) .Item {
141
+ display: block;
142
+ height: var(--index-bar-line-height);
143
+ overflow: hidden;
144
+ white-space: nowrap;
145
+ }
146
+ }
@@ -31,8 +31,9 @@
31
31
  margin-left: calc(var(--indicator-stroke, 2px) * -1 / 2);
32
32
  background-color: var(--indicator-color, currentcolor);
33
33
  content: "";
34
- }/* iOS 26 Progress indicator 5425:3432. These decorative spokes are enabled
35
- only by the optional touch stylesheet; desktop keeps the original ring. */.Spoke {
34
+ }/* The iOS 27 kit Spinner (Progress Indicators 5425:3431): Regular 20 with 2.7 x 6.7px spokes, as here, Small 14
35
+ with 2 x 4 and Large 35 with 5 x 13, all fully rounded. These decorative spokes are enabled only by the
36
+ optional touch stylesheet; desktop keeps the original ring. */.Spoke {
36
37
  position: absolute;
37
38
  inset: 0;
38
39
  display: var(--indicator-spoke-display, none);
@@ -57,12 +58,18 @@
57
58
  .Spoke:nth-child(5) { transform: rotate(180deg); opacity: 0.51; }
58
59
  .Spoke:nth-child(6) { transform: rotate(225deg); opacity: 0.63; }
59
60
  .Spoke:nth-child(7) { transform: rotate(270deg); opacity: 0.75; }
60
- .Spoke:nth-child(8) { transform: rotate(315deg); opacity: 0.87; }/* Small 5425:3443 is 22px with 3 × 7px spokes and 1.5px corners.
61
- A size container also covers CSS sizes and indicators nested in buttons. */@container plex-loading-indicator (max-width: 22px) {
61
+ .Spoke:nth-child(8) { transform: rotate(315deg); opacity: 0.87; }/* Small up to 16px (kit Small 14) and Large from 28px (kit Large 35). A size container also covers CSS sizes
62
+ and indicators nested in buttons. */@container plex-loading-indicator (max-width: 16px) {
62
63
  .Spoke::before {
63
- width: var(--indicator-stroke, calc(3 / 22 * 100%));
64
- height: calc(7 / 22 * 100%);
65
- border-radius: calc(1.5 / 22 * 100cqw);
64
+ width: var(--indicator-stroke, calc(2 / 14 * 100%));
65
+ height: calc(4 / 14 * 100%);
66
+ border-radius: calc(2 / 14 * 100cqw);
67
+ }
68
+ }@container plex-loading-indicator (min-width: 28px) {
69
+ .Spoke::before {
70
+ width: var(--indicator-stroke, calc(5 / 35 * 100%));
71
+ height: calc(13 / 35 * 100%);
72
+ border-radius: calc(5 / 35 * 100cqw);
66
73
  }
67
74
  }@keyframes rotate {
68
75
  0% {