@plexui/styles 0.17.7 → 0.17.9

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.
@@ -102,8 +102,8 @@
102
102
  opacity: 1;
103
103
  transform: var(--dialog-panel-drag-transform, scale(1) translateY(0));
104
104
  transition:
105
- opacity var(--dialog-enter-duration) var(--cubic-enter),
106
- transform var(--dialog-enter-duration) var(--cubic-enter);
105
+ opacity var(--dialog-enter-duration) var(--dialog-enter-easing, var(--cubic-enter)),
106
+ transform var(--dialog-enter-duration) var(--dialog-enter-easing, var(--cubic-enter));
107
107
  }
108
108
 
109
109
  .Transition[data-exiting] .Panel {
@@ -253,31 +253,25 @@
253
253
  translate: 0 -10px;
254
254
  }
255
255
 
256
- /* A sheet opened by a button grows out of it and shrinks back into it as it closes, as an iOS 27.2 sheet presented
257
- with a zoom transition from its source does: from the button's frame (the dialog sets the transform that lays the
258
- panel over it) on SwiftUI's spring(duration: 0.33, bounce: 0.2), --spring-sheet. It shows as it leaves the
259
- button and fades at the end of its way back, so the move reads, not a fade. With reduced motion it fades in
260
- place, as every dialog does. */
256
+ /* A phone sheet slides up from the bottom of the screen and back down, opaque, as an iOS 27.2 sheet does, never out
257
+ of the button that opened it: on iOS's spring with no bounce (--spring-sheet, spring(duration: 0.34, bounce: 0),
258
+ 500ms both ways), the scrim on the same curve and time, so it dims as the sheet rises. The dialog sets
259
+ data-sheet-motion where it times the sheet so: a phone bottom sheet, not in the Plex Android look nor with reduced
260
+ motion. A sheet pulled down sets its own exit time and curve (sheetDrag.ts), which win over these. */
261
261
  @media (prefers-reduced-motion: no-preference) {
262
- .Content[data-mobile-placement="bottom"] .Panel[data-presented-from] {
263
- --dialog-panel-hidden-transform: var(--dialog-panel-source-transform);
264
- --dialog-panel-hidden-opacity: 0;
262
+ .Content[data-mobile-placement="bottom"] .Panel[data-sheet-motion] {
263
+ --dialog-enter-duration: var(--spring-sheet-duration);
264
+ --dialog-enter-easing: var(--spring-sheet);
265
+ --dialog-exit-duration: var(--spring-sheet-duration);
266
+ --dialog-exit-easing: var(--spring-sheet);
265
267
  }
266
268
 
267
- .Transition:is([data-entering-active], [data-entering][data-interrupted])
268
- .Content[data-mobile-placement="bottom"]
269
- .Panel[data-presented-from] {
270
- transition:
271
- opacity var(--motion-exit) var(--cubic-enter),
272
- transform var(--spring-sheet-duration) var(--spring-sheet);
269
+ .Transition:is([data-entering-active], [data-entering][data-interrupted]):has(.Panel[data-sheet-motion]) .Overlay {
270
+ transition: opacity var(--spring-sheet-duration) var(--spring-sheet);
273
271
  }
274
272
 
275
- .Transition:is([data-exiting-active], [data-exiting][data-interrupted])
276
- .Content[data-mobile-placement="bottom"]
277
- .Panel[data-presented-from] {
278
- transition:
279
- opacity var(--motion-exit) var(--cubic-exit) calc(var(--spring-sheet-duration) * 0.3),
280
- transform var(--spring-sheet-duration) var(--spring-sheet);
273
+ .Transition:is([data-exiting-active], [data-exiting][data-interrupted]):has(.Panel[data-sheet-motion]) .Overlay {
274
+ transition: opacity var(--spring-sheet-duration) var(--spring-sheet);
281
275
  }
282
276
  }
283
277
  }
@@ -359,31 +353,25 @@
359
353
  translate: 0 -10px;
360
354
  }
361
355
 
362
- /* A sheet opened by a button grows out of it and shrinks back into it as it closes, as an iOS 27.2 sheet presented
363
- with a zoom transition from its source does: from the button's frame (the dialog sets the transform that lays the
364
- panel over it) on SwiftUI's spring(duration: 0.33, bounce: 0.2), --spring-sheet. It shows as it leaves the
365
- button and fades at the end of its way back, so the move reads, not a fade. With reduced motion it fades in
366
- place, as every dialog does. */
356
+ /* A phone sheet slides up from the bottom of the screen and back down, opaque, as an iOS 27.2 sheet does, never out
357
+ of the button that opened it: on iOS's spring with no bounce (--spring-sheet, spring(duration: 0.34, bounce: 0),
358
+ 500ms both ways), the scrim on the same curve and time, so it dims as the sheet rises. The dialog sets
359
+ data-sheet-motion where it times the sheet so: a phone bottom sheet, not in the Plex Android look nor with reduced
360
+ motion. A sheet pulled down sets its own exit time and curve (sheetDrag.ts), which win over these. */
367
361
  @media (prefers-reduced-motion: no-preference) {
368
- :where([data-plex-layout="phone"]) .Content[data-mobile-placement="bottom"] .Panel[data-presented-from] {
369
- --dialog-panel-hidden-transform: var(--dialog-panel-source-transform);
370
- --dialog-panel-hidden-opacity: 0;
362
+ :where([data-plex-layout="phone"]) .Content[data-mobile-placement="bottom"] .Panel[data-sheet-motion] {
363
+ --dialog-enter-duration: var(--spring-sheet-duration);
364
+ --dialog-enter-easing: var(--spring-sheet);
365
+ --dialog-exit-duration: var(--spring-sheet-duration);
366
+ --dialog-exit-easing: var(--spring-sheet);
371
367
  }
372
368
 
373
- :where([data-plex-layout="phone"]) .Transition:is([data-entering-active], [data-entering][data-interrupted])
374
- .Content[data-mobile-placement="bottom"]
375
- .Panel[data-presented-from] {
376
- transition:
377
- opacity var(--motion-exit) var(--cubic-enter),
378
- transform var(--spring-sheet-duration) var(--spring-sheet);
369
+ :where([data-plex-layout="phone"]) .Transition:is([data-entering-active], [data-entering][data-interrupted]):has(.Panel[data-sheet-motion]) .Overlay {
370
+ transition: opacity var(--spring-sheet-duration) var(--spring-sheet);
379
371
  }
380
372
 
381
- :where([data-plex-layout="phone"]) .Transition:is([data-exiting-active], [data-exiting][data-interrupted])
382
- .Content[data-mobile-placement="bottom"]
383
- .Panel[data-presented-from] {
384
- transition:
385
- opacity var(--motion-exit) var(--cubic-exit) calc(var(--spring-sheet-duration) * 0.3),
386
- transform var(--spring-sheet-duration) var(--spring-sheet);
373
+ :where([data-plex-layout="phone"]) .Transition:is([data-exiting-active], [data-exiting][data-interrupted]):has(.Panel[data-sheet-motion]) .Overlay {
374
+ transition: opacity var(--spring-sheet-duration) var(--spring-sheet);
387
375
  }
388
376
  }/* With reduced motion the dialog fades in place, the scrim with it, as a sheet does on iOS with Reduce Motion: no
389
377
  slide or scale, a fade on iOS's time and curve (--motion-reduced-enter-dialog), which its timer holds it entering
@@ -875,7 +875,7 @@
875
875
  line starts to the card's edge. A card's last row, where no separator runs, ends 8 lower (a clear border, so its
876
876
  padding and the line's place are the rows' above): its line stands as far under its text as theirs and 7 over
877
877
  the card's edge (on the edge it read as the card's border), to where the card's 16 corner has curved in at that
878
- height. An input card's field draws its own line. */
878
+ height, as far in from its end as from its start. An input card's field draws its own line. */
879
879
  [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)) {
880
880
  position: relative;
881
881
  }
@@ -899,8 +899,10 @@
899
899
  border-block-end: 8px solid transparent;
900
900
  }
901
901
 
902
+ /* Inside the card, off its rounded corner: as far in from its end as from its start, under the row's
903
+ content, not a bar that runs into the corner */
902
904
  [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):last-child::before {
903
- inset-inline-end: 3px;
905
+ inset-inline-end: var(--field-group-separator-inset-start, var(--field-group-separator-inset, var(--field-row-padding-inline, 0px)));
904
906
  }
905
907
 
906
908
  [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [aria-hidden="true"]), textarea):focus:not([readonly]))::before {
@@ -1012,14 +1014,14 @@
1012
1014
 
1013
1015
  [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within):has(> .Content > .Control > [data-variant] > :is(input, textarea):-moz-placeholder-shown) > .LabelGroup > .Label {
1014
1016
  width: 100%;
1015
- color: var(--android-hint);
1017
+ color: var(--android-on-surface-variant);
1016
1018
  translate: 0 0;
1017
1019
  scale: 1;
1018
1020
  }
1019
1021
 
1020
1022
  [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within):has(> .Content > .Control > [data-variant] > :is(input, textarea):placeholder-shown) > .LabelGroup > .Label {
1021
1023
  width: 100%;
1022
- color: var(--android-hint);
1024
+ color: var(--android-on-surface-variant);
1023
1025
  translate: 0 0;
1024
1026
  scale: 1;
1025
1027
  }
@@ -1642,7 +1644,7 @@
1642
1644
  line starts to the card's edge. A card's last row, where no separator runs, ends 8 lower (a clear border, so its
1643
1645
  padding and the line's place are the rows' above): its line stands as far under its text as theirs and 7 over
1644
1646
  the card's edge (on the edge it read as the card's border), to where the card's 16 corner has curved in at that
1645
- height. An input card's field draws its own line. */
1647
+ height, as far in from its end as from its start. An input card's field draws its own line. */
1646
1648
  :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)) {
1647
1649
  position: relative;
1648
1650
  }
@@ -1666,8 +1668,10 @@
1666
1668
  border-block-end: 8px solid transparent;
1667
1669
  }
1668
1670
 
1671
+ /* Inside the card, off its rounded corner: as far in from its end as from its start, under the row's
1672
+ content, not a bar that runs into the corner */
1669
1673
  :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):last-child::before {
1670
- inset-inline-end: 3px;
1674
+ inset-inline-end: var(--field-group-separator-inset-start, var(--field-group-separator-inset, var(--field-row-padding-inline, 0px)));
1671
1675
  }
1672
1676
 
1673
1677
  :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [aria-hidden="true"]), textarea):focus:not([readonly]))::before {
@@ -1776,14 +1780,14 @@
1776
1780
 
1777
1781
  :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within):has(> .Content > .Control > [data-variant] > :is(input, textarea):-moz-placeholder-shown) > .LabelGroup > .Label {
1778
1782
  width: 100%;
1779
- color: var(--android-hint);
1783
+ color: var(--android-on-surface-variant);
1780
1784
  translate: 0 0;
1781
1785
  scale: 1;
1782
1786
  }
1783
1787
 
1784
1788
  :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within):has(> .Content > .Control > [data-variant] > :is(input, textarea):placeholder-shown) > .LabelGroup > .Label {
1785
1789
  width: 100%;
1786
- color: var(--android-hint);
1790
+ color: var(--android-on-surface-variant);
1787
1791
  translate: 0 0;
1788
1792
  scale: 1;
1789
1793
  }
@@ -154,6 +154,12 @@
154
154
  .ClearButton:last-child {
155
155
  margin-inline-end: calc(var(--floating-input-height) / 2 - var(--floating-input-clear-size, 1em) / 2 - var(--floating-input-gutter) - 1px);
156
156
  }
157
+
158
+ /* The Plex Android look: the clear button shows while the field has focus and text, as Material Components'
159
+ clear-text end icon (ClearTextEndIconDelegate) */
160
+ [data-platform="android"] .Root:not(:focus-within) .ClearButton {
161
+ display: none;
162
+ }
157
163
  }
158
164
  /* On a phone the clear button is the filled circle with a cross of iOS (xmark.circle.fill, a 17px circle in
159
165
  the tertiary label: kit iOS 27 Text Fields 5433:15635), drawn with the PlexUI XCircleFilled icon, whose
@@ -172,6 +178,12 @@
172
178
 
173
179
  :where([data-plex-layout="phone"]) .ClearButton:last-child {
174
180
  margin-inline-end: calc(var(--floating-input-height) / 2 - var(--floating-input-clear-size, 1em) / 2 - var(--floating-input-gutter) - 1px);
181
+ }
182
+
183
+ /* The Plex Android look: the clear button shows while the field has focus and text, as Material Components'
184
+ clear-text end icon (ClearTextEndIconDelegate) */
185
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Root:not(:focus-within) .ClearButton {
186
+ display: none;
175
187
  }/* Password reveal toggle — circular ghost button hugging the right edge */.RevealButton {
176
188
  display: flex;
177
189
  align-items: center;
@@ -749,8 +749,12 @@
749
749
  --input-gap: 12px;
750
750
  --input-font-size: 16px;
751
751
  --input-adornment-offset: 0px;
752
- --input-outline-border-color: var(--android-field-line);
753
- --input-outline-border-color-hover: var(--android-field-line);
752
+ --input-outline-border-color: var(--android-outline);
753
+ --input-outline-border-color-hover: var(--android-outline);
754
+ /* The clear-text icon: Material's mtrl_ic_cancel, a filled 24px circle in onSurfaceVariant (XCircleFilled draws
755
+ its circle 20 of 24) */
756
+ --input-clear-glyph-size: 20px;
757
+ --input-clear-glyph-color: var(--android-on-surface-variant);
754
758
  --input-outline-border-color-focus: var(--android-accent-text);
755
759
  --input-border-color-invalid: var(--android-danger-text);
756
760
  --input-soft-background-color: color-mix(in srgb, var(--color-text) 5%, transparent);
@@ -766,6 +770,12 @@
766
770
  caret-color: var(--color-text);
767
771
  }
768
772
 
773
+ /* The clear button shows while the field has focus and text, as Material Components' clear-text end icon
774
+ (ClearTextEndIconDelegate); the search field (soft, led by its magnifier) keeps it with the text */
775
+ [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *)):not(:focus-within):not([data-variant="soft"][data-has-start-adornment]) > .Clear {
776
+ display: none;
777
+ }
778
+
769
779
  [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-variant="outline"]:not([data-disabled])[data-focused="true"] {
770
780
  box-shadow: 0 0 0 1.5px var(--input-outline-border-color-focus) inset;
771
781
  }
@@ -985,8 +995,12 @@
985
995
  --input-gap: 12px;
986
996
  --input-font-size: 16px;
987
997
  --input-adornment-offset: 0px;
988
- --input-outline-border-color: var(--android-field-line);
989
- --input-outline-border-color-hover: var(--android-field-line);
998
+ --input-outline-border-color: var(--android-outline);
999
+ --input-outline-border-color-hover: var(--android-outline);
1000
+ /* The clear-text icon: Material's mtrl_ic_cancel, a filled 24px circle in onSurfaceVariant (XCircleFilled draws
1001
+ its circle 20 of 24) */
1002
+ --input-clear-glyph-size: 20px;
1003
+ --input-clear-glyph-color: var(--android-on-surface-variant);
990
1004
  --input-outline-border-color-focus: var(--android-accent-text);
991
1005
  --input-border-color-invalid: var(--android-danger-text);
992
1006
  --input-soft-background-color: color-mix(in srgb, var(--color-text) 5%, transparent);
@@ -1002,6 +1016,12 @@
1002
1016
  caret-color: var(--color-text);
1003
1017
  }
1004
1018
 
1019
+ /* The clear button shows while the field has focus and text, as Material Components' clear-text end icon
1020
+ (ClearTextEndIconDelegate); the search field (soft, led by its magnifier) keeps it with the text */
1021
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *)):not(:focus-within):not([data-variant="soft"][data-has-start-adornment]) > .Clear {
1022
+ display: none;
1023
+ }
1024
+
1005
1025
  :where([data-plex-layout="phone"]) [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-variant="outline"]:not([data-disabled])[data-focused="true"] {
1006
1026
  box-shadow: 0 0 0 1.5px var(--input-outline-border-color-focus) inset;
1007
1027
  }
@@ -168,6 +168,9 @@
168
168
  /* A field's hint: a light gray, a dim one at night. A field's idle outline: a light gray, the text at 24% at
169
169
  night. A search field in the content: the text at 5%, 7% at
170
170
  night. */
171
+ /* Material 3's roles for a field, as @plexui/react-native's Material theme computes them for Plex's grays:
172
+ `outline` (tone 50, 60 at night) for an outlined field's line at rest, at least 3:1 on the surface, and
173
+ `onSurfaceVariant` (tone 30, 80) for its label and the clear-text icon, at least 4.5:1 */
171
174
  --list-row-inset: 21px;
172
175
  --field-row-min-height: 50px;
173
176
  --field-row-text-padding-block: 12px;
@@ -199,6 +202,8 @@
199
202
  --android-button-solid-press: rgb(0 0 0 / 5.9%);
200
203
  --android-hint: #a8a8a8;
201
204
  --android-field-line: #dbdbdb;
205
+ --android-outline: #777;
206
+ --android-on-surface-variant: #474747;
202
207
  --android-search-fill: color-mix(in srgb, var(--color-text) 5%, transparent);
203
208
  }
204
209
  :root[data-platform="android"]:where([data-theme="dark"]) {
@@ -210,6 +215,8 @@
210
215
  --android-button-solid-press: rgb(255 255 255 / 5.1%);
211
216
  --android-hint: #7d7d7d;
212
217
  --android-field-line: color-mix(in srgb, var(--color-text) 24%, transparent);
218
+ --android-outline: #919191;
219
+ --android-on-surface-variant: #c6c6c6;
213
220
  --android-search-fill: color-mix(in srgb, var(--color-text) 7%, transparent);
214
221
  }
215
222
 
@@ -224,14 +231,17 @@
224
231
  --floating-input-box-radius: 8px;
225
232
  --floating-input-box-gutter: 14px;
226
233
  --floating-input-font-size: 16px;
227
- --floating-input-border-color: var(--android-field-line);
228
- --floating-input-border-color-hover: var(--android-field-line);
234
+ --floating-input-border-color: var(--android-outline);
235
+ --floating-input-border-color-hover: var(--android-outline);
229
236
  --floating-input-border-color-focus: var(--android-accent-text);
230
237
  --floating-input-border-color-invalid: var(--android-danger-text);
231
- --floating-input-label-color: var(--android-hint);
238
+ --floating-input-label-color: var(--android-on-surface-variant);
232
239
  --floating-input-label-color-focus: var(--android-accent-text);
233
240
  --floating-input-label-color-invalid: var(--android-danger-text);
234
- --floating-input-inside-label-color: var(--android-hint);
241
+ --floating-input-inside-label-color: var(--android-on-surface-variant);
242
+ /* The clear-text icon: Material's mtrl_ic_cancel, a filled 24px circle (XCircleFilled draws its circle 20 of 24) */
243
+ --floating-input-clear-glyph-size: 20px;
244
+ --floating-input-clear-glyph-color: var(--android-on-surface-variant);
235
245
  --floating-input-label-scale: 0.75;
236
246
  --floating-input-inside-label-scale: 0.75;
237
247
  --floating-input-inside-label-shift: -12px;
@@ -489,6 +499,9 @@
489
499
  /* A field's hint: a light gray, a dim one at night. A field's idle outline: a light gray, the text at 24% at
490
500
  night. A search field in the content: the text at 5%, 7% at
491
501
  night. */
502
+ /* Material 3's roles for a field, as @plexui/react-native's Material theme computes them for Plex's grays:
503
+ `outline` (tone 50, 60 at night) for an outlined field's line at rest, at least 3:1 on the surface, and
504
+ `onSurfaceVariant` (tone 30, 80) for its label and the clear-text icon, at least 4.5:1 */
492
505
  --list-row-inset: 21px;
493
506
  --field-row-min-height: 50px;
494
507
  --field-row-text-padding-block: 12px;
@@ -520,6 +533,8 @@
520
533
  --android-button-solid-press: rgb(0 0 0 / 5.9%);
521
534
  --android-hint: #a8a8a8;
522
535
  --android-field-line: #dbdbdb;
536
+ --android-outline: #777;
537
+ --android-on-surface-variant: #474747;
523
538
  --android-search-fill: color-mix(in srgb, var(--color-text) 5%, transparent);
524
539
  }
525
540
  :root[data-platform="android"]:where([data-theme="dark"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
@@ -531,6 +546,8 @@
531
546
  --android-button-solid-press: rgb(255 255 255 / 5.1%);
532
547
  --android-hint: #7d7d7d;
533
548
  --android-field-line: color-mix(in srgb, var(--color-text) 24%, transparent);
549
+ --android-outline: #919191;
550
+ --android-on-surface-variant: #c6c6c6;
534
551
  --android-search-fill: color-mix(in srgb, var(--color-text) 7%, transparent);
535
552
  }
536
553
  /* A field with a floating label (FloatingLabelInput, FloatingLabelSelect; @plexui/react-native's on Android): an
@@ -544,14 +561,17 @@
544
561
  --floating-input-box-radius: 8px;
545
562
  --floating-input-box-gutter: 14px;
546
563
  --floating-input-font-size: 16px;
547
- --floating-input-border-color: var(--android-field-line);
548
- --floating-input-border-color-hover: var(--android-field-line);
564
+ --floating-input-border-color: var(--android-outline);
565
+ --floating-input-border-color-hover: var(--android-outline);
549
566
  --floating-input-border-color-focus: var(--android-accent-text);
550
567
  --floating-input-border-color-invalid: var(--android-danger-text);
551
- --floating-input-label-color: var(--android-hint);
568
+ --floating-input-label-color: var(--android-on-surface-variant);
552
569
  --floating-input-label-color-focus: var(--android-accent-text);
553
570
  --floating-input-label-color-invalid: var(--android-danger-text);
554
- --floating-input-inside-label-color: var(--android-hint);
571
+ --floating-input-inside-label-color: var(--android-on-surface-variant);
572
+ /* The clear-text icon: Material's mtrl_ic_cancel, a filled 24px circle (XCircleFilled draws its circle 20 of 24) */
573
+ --floating-input-clear-glyph-size: 20px;
574
+ --floating-input-clear-glyph-color: var(--android-on-surface-variant);
555
575
  --floating-input-label-scale: 0.75;
556
576
  --floating-input-inside-label-scale: 0.75;
557
577
  --floating-input-inside-label-shift: -12px;
@@ -296,6 +296,8 @@
296
296
  --android-button-solid-press: rgb(0 0 0 / 5.9%);
297
297
  --android-hint: #a8a8a8;
298
298
  --android-field-line: #dbdbdb;
299
+ --android-outline: #777;
300
+ --android-on-surface-variant: #474747;
299
301
  --android-search-fill: color-mix(in srgb, var(--color-text) 5%, transparent);
300
302
  }
301
303
  :root[data-platform="android"]:where([data-theme="dark"]) {
@@ -307,6 +309,8 @@
307
309
  --android-button-solid-press: rgb(255 255 255 / 5.1%);
308
310
  --android-hint: #7d7d7d;
309
311
  --android-field-line: color-mix(in srgb, var(--color-text) 24%, transparent);
312
+ --android-outline: #919191;
313
+ --android-on-surface-variant: #c6c6c6;
310
314
  --android-search-fill: color-mix(in srgb, var(--color-text) 7%, transparent);
311
315
  }
312
316
  :root[data-platform="android"] {
@@ -315,14 +319,16 @@
315
319
  --floating-input-box-radius: 8px;
316
320
  --floating-input-box-gutter: 14px;
317
321
  --floating-input-font-size: 16px;
318
- --floating-input-border-color: var(--android-field-line);
319
- --floating-input-border-color-hover: var(--android-field-line);
322
+ --floating-input-border-color: var(--android-outline);
323
+ --floating-input-border-color-hover: var(--android-outline);
320
324
  --floating-input-border-color-focus: var(--android-accent-text);
321
325
  --floating-input-border-color-invalid: var(--android-danger-text);
322
- --floating-input-label-color: var(--android-hint);
326
+ --floating-input-label-color: var(--android-on-surface-variant);
323
327
  --floating-input-label-color-focus: var(--android-accent-text);
324
328
  --floating-input-label-color-invalid: var(--android-danger-text);
325
- --floating-input-inside-label-color: var(--android-hint);
329
+ --floating-input-inside-label-color: var(--android-on-surface-variant);
330
+ --floating-input-clear-glyph-size: 20px;
331
+ --floating-input-clear-glyph-color: var(--android-on-surface-variant);
326
332
  --floating-input-label-scale: 0.75;
327
333
  --floating-input-inside-label-scale: 0.75;
328
334
  --floating-input-inside-label-shift: -12px;
@@ -550,6 +556,8 @@
550
556
  --android-button-solid-press: rgb(0 0 0 / 5.9%);
551
557
  --android-hint: #a8a8a8;
552
558
  --android-field-line: #dbdbdb;
559
+ --android-outline: #777;
560
+ --android-on-surface-variant: #474747;
553
561
  --android-search-fill: color-mix(in srgb, var(--color-text) 5%, transparent);
554
562
  }
555
563
  :root[data-platform="android"]:where([data-theme="dark"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
@@ -561,6 +569,8 @@
561
569
  --android-button-solid-press: rgb(255 255 255 / 5.1%);
562
570
  --android-hint: #7d7d7d;
563
571
  --android-field-line: color-mix(in srgb, var(--color-text) 24%, transparent);
572
+ --android-outline: #919191;
573
+ --android-on-surface-variant: #c6c6c6;
564
574
  --android-search-fill: color-mix(in srgb, var(--color-text) 7%, transparent);
565
575
  }
566
576
  :root[data-platform="android"] :where([data-plex-layout="phone"]) {
@@ -569,14 +579,16 @@
569
579
  --floating-input-box-radius: 8px;
570
580
  --floating-input-box-gutter: 14px;
571
581
  --floating-input-font-size: 16px;
572
- --floating-input-border-color: var(--android-field-line);
573
- --floating-input-border-color-hover: var(--android-field-line);
582
+ --floating-input-border-color: var(--android-outline);
583
+ --floating-input-border-color-hover: var(--android-outline);
574
584
  --floating-input-border-color-focus: var(--android-accent-text);
575
585
  --floating-input-border-color-invalid: var(--android-danger-text);
576
- --floating-input-label-color: var(--android-hint);
586
+ --floating-input-label-color: var(--android-on-surface-variant);
577
587
  --floating-input-label-color-focus: var(--android-accent-text);
578
588
  --floating-input-label-color-invalid: var(--android-danger-text);
579
- --floating-input-inside-label-color: var(--android-hint);
589
+ --floating-input-inside-label-color: var(--android-on-surface-variant);
590
+ --floating-input-clear-glyph-size: 20px;
591
+ --floating-input-clear-glyph-color: var(--android-on-surface-variant);
580
592
  --floating-input-label-scale: 0.75;
581
593
  --floating-input-inside-label-scale: 0.75;
582
594
  --floating-input-inside-label-shift: -12px;
@@ -418,17 +418,19 @@
418
418
  --motion-reduced-enter-menu: 500ms;
419
419
  --cubic-reduced-enter-menu: cubic-bezier(0.4, 1, 0.7, 1);
420
420
  /* Springs, as SwiftUI's spring(duration:bounce:) with mass 1: smooth (0.5s, bounce 0) and snappy (0.5s, bounce 0.15)
421
- are SwiftUI's presets; sheet (0.33s, bounce 0.2) and menu (0.21s, bounce 0.2) are an iOS 27.2 sheet and menu
422
- growing from the button that opens them. Each is a cubic Bézier close to the spring here, for a browser without
423
- linear() (Safari before 17.2); under @supports below it is the spring itself, sampled to within 0.004. The
421
+ are SwiftUI's presets; sheet (0.34s, bounce 0) is an iOS 27.2 sheet sliding up from the bottom and back down,
422
+ its scrim on the same curve, and menu (0.21s, bounce 0.2) an iOS 27.2 menu growing from its button. Each is a
423
+ cubic Bézier close to the spring here, for a browser without linear() (Safari before 17.2); under @supports below
424
+ it is the spring itself, sampled (the sheet's every 1/120s). The
424
425
  duration is the time the spring takes to settle within 0.001 of its end, longer than the duration it is named
425
426
  for, as a spring's tail is. */
426
427
  --spring-smooth: cubic-bezier(0.3, 0.6, 0.1, 1);
427
428
  --spring-smooth-duration: 750ms;
428
429
  --spring-snappy: cubic-bezier(0.35, 0.8, 0.1, 1.02);
429
430
  --spring-snappy-duration: 725ms;
430
- --spring-sheet: cubic-bezier(0.35, 0.9, 0.1, 1.02);
431
- --spring-sheet-duration: 495ms;
431
+ /* The sheet's spring is cut at 500ms, 0.1% short of its rest (half its way at 91ms, 90% at 210ms) */
432
+ --spring-sheet: cubic-bezier(0.3, 0.6, 0.1, 1);
433
+ --spring-sheet-duration: 500ms;
432
434
  --spring-menu: cubic-bezier(0.35, 0.9, 0.1, 1.05);
433
435
  --spring-menu-duration: 325ms;
434
436
 
@@ -690,7 +692,7 @@
690
692
  :where([data-theme]) {
691
693
  --spring-smooth: linear(0, 0.005 1.1%, 0.02 2.3%, 0.081 4.9%, 0.159 7.5%, 0.463 16.6%, 0.558 19.8%, 0.639 23%, 0.709 26.3%, 0.769 29.7%, 0.82 33.2%, 0.863 37%, 0.901 41.5%, 0.932 46.4%, 0.955 51.9%, 0.972 58.1%, 0.992 73.4%, 1);
692
694
  --spring-snappy: linear(0, 0.006 1.2%, 0.023 2.5%, 0.052 3.9%, 0.094 5.5%, 0.187 8.3%, 0.516 17.4%, 0.615 20.6%, 0.698 23.6%, 0.768 26.6%, 0.828 29.8%, 0.877 33.1%, 0.917 36.5%, 0.949 40.3%, 0.973 44.4%, 0.99 49.1%, 1 54.4%, 1.006 65.8%, 1);
693
- --spring-sheet: linear(0, 0.007 1.2%, 0.024 2.4%, 0.055 3.9%, 0.099 5.4%, 0.195 8.1%, 0.434 14.2%, 0.54 17%, 0.638 20%, 0.724 22.9%, 0.795 25.8%, 0.856 28.9%, 0.905 32%, 0.943 35.3%, 0.971 38.6%, 0.991 42.2%, 1.013 51.1%, 1);
695
+ --spring-sheet: linear(0, 0.012 1.7%, 0.041 3.4%, 0.081 5%, 0.131 6.7%, 0.185 8.4%, 0.239 10%, 0.297 11.7%, 0.354 13.4%, 0.406 15%, 0.459 16.7%, 0.509 18.4%, 0.554 20%, 0.597 21.7%, 0.638 23.4%, 0.673 25%, 0.707 26.7%, 0.738 28.4%, 0.765 30%, 0.791 31.7%, 0.814 33.4%, 0.834 35%, 0.852 36.7%, 0.869 38.4%, 0.883 40%, 0.897 41.7%, 0.909 43.4%, 0.919 45%, 0.929 46.7%, 0.937 48.4%, 0.944 50%, 0.951 51.7%, 0.957 53.4%, 0.962 55%, 0.967 56.7%, 0.971 58.4%, 0.974 60%, 0.977 61.7%, 0.98 63.4%, 0.982 65%, 0.985 66.7%, 0.987 68.4%, 0.988 70%, 0.99 71.7%, 0.991 73.4%, 0.992 75%, 0.993 76.7%, 0.994 78.4%, 0.995 80%, 0.995 81.7%, 0.996 83.4%, 0.996 85%, 0.997 86.7%, 0.997 88.4%, 0.998 90%, 0.998 91.7%, 0.998 93.4%, 0.998 95%, 0.999 96.7%, 0.999 98.4%, 1);
694
696
  --spring-menu: linear(0, 0.008 1.2%, 0.027 2.5%, 0.06 3.9%, 0.102 5.3%, 0.197 7.9%, 0.536 16.4%, 0.638 19.4%, 0.726 22.3%, 0.799 25.3%, 0.858 28.2%, 0.907 31.3%, 0.945 34.6%, 0.972 37.8%, 0.992 41.4%, 1.012 49.9%, 1);
695
697
  }
696
698
  }
@@ -741,8 +741,8 @@ export const tokenLayers = [
741
741
  "--spring-smooth-duration": "750ms",
742
742
  "--spring-snappy": "cubic-bezier(0.35, 0.8, 0.1, 1.02)",
743
743
  "--spring-snappy-duration": "725ms",
744
- "--spring-sheet": "cubic-bezier(0.35, 0.9, 0.1, 1.02)",
745
- "--spring-sheet-duration": "495ms",
744
+ "--spring-sheet": "cubic-bezier(0.3, 0.6, 0.1, 1)",
745
+ "--spring-sheet-duration": "500ms",
746
746
  "--spring-menu": "cubic-bezier(0.35, 0.9, 0.1, 1.05)",
747
747
  "--spring-menu-duration": "325ms",
748
748
  "--scrollbar-color": "var(--alpha-30)",
@@ -783,7 +783,7 @@ export const tokenLayers = [
783
783
  "tokens": {
784
784
  "--spring-smooth": "linear(0, 0.005 1.1%, 0.02 2.3%, 0.081 4.9%, 0.159 7.5%, 0.463 16.6%, 0.558 19.8%, 0.639 23%, 0.709 26.3%, 0.769 29.7%, 0.82 33.2%, 0.863 37%, 0.901 41.5%, 0.932 46.4%, 0.955 51.9%, 0.972 58.1%, 0.992 73.4%, 1)",
785
785
  "--spring-snappy": "linear(0, 0.006 1.2%, 0.023 2.5%, 0.052 3.9%, 0.094 5.5%, 0.187 8.3%, 0.516 17.4%, 0.615 20.6%, 0.698 23.6%, 0.768 26.6%, 0.828 29.8%, 0.877 33.1%, 0.917 36.5%, 0.949 40.3%, 0.973 44.4%, 0.99 49.1%, 1 54.4%, 1.006 65.8%, 1)",
786
- "--spring-sheet": "linear(0, 0.007 1.2%, 0.024 2.4%, 0.055 3.9%, 0.099 5.4%, 0.195 8.1%, 0.434 14.2%, 0.54 17%, 0.638 20%, 0.724 22.9%, 0.795 25.8%, 0.856 28.9%, 0.905 32%, 0.943 35.3%, 0.971 38.6%, 0.991 42.2%, 1.013 51.1%, 1)",
786
+ "--spring-sheet": "linear(0, 0.012 1.7%, 0.041 3.4%, 0.081 5%, 0.131 6.7%, 0.185 8.4%, 0.239 10%, 0.297 11.7%, 0.354 13.4%, 0.406 15%, 0.459 16.7%, 0.509 18.4%, 0.554 20%, 0.597 21.7%, 0.638 23.4%, 0.673 25%, 0.707 26.7%, 0.738 28.4%, 0.765 30%, 0.791 31.7%, 0.814 33.4%, 0.834 35%, 0.852 36.7%, 0.869 38.4%, 0.883 40%, 0.897 41.7%, 0.909 43.4%, 0.919 45%, 0.929 46.7%, 0.937 48.4%, 0.944 50%, 0.951 51.7%, 0.957 53.4%, 0.962 55%, 0.967 56.7%, 0.971 58.4%, 0.974 60%, 0.977 61.7%, 0.98 63.4%, 0.982 65%, 0.985 66.7%, 0.987 68.4%, 0.988 70%, 0.99 71.7%, 0.991 73.4%, 0.992 75%, 0.993 76.7%, 0.994 78.4%, 0.995 80%, 0.995 81.7%, 0.996 83.4%, 0.996 85%, 0.997 86.7%, 0.997 88.4%, 0.998 90%, 0.998 91.7%, 0.998 93.4%, 0.998 95%, 0.999 96.7%, 0.999 98.4%, 1)",
787
787
  "--spring-menu": "linear(0, 0.008 1.2%, 0.027 2.5%, 0.06 3.9%, 0.102 5.3%, 0.197 7.9%, 0.536 16.4%, 0.638 19.4%, 0.726 22.3%, 0.799 25.3%, 0.858 28.2%, 0.907 31.3%, 0.945 34.6%, 0.972 37.8%, 0.992 41.4%, 1.012 49.9%, 1)"
788
788
  }
789
789
  },
@@ -3798,8 +3798,8 @@ export const resolvedTokens = {
3798
3798
  "--spacing": 4,
3799
3799
  "--spring-menu": "cubic-bezier(0.35, 0.9, 0.1, 1.05)",
3800
3800
  "--spring-menu-duration": 325,
3801
- "--spring-sheet": "cubic-bezier(0.35, 0.9, 0.1, 1.02)",
3802
- "--spring-sheet-duration": 495,
3801
+ "--spring-sheet": "cubic-bezier(0.3, 0.6, 0.1, 1)",
3802
+ "--spring-sheet-duration": 500,
3803
3803
  "--spring-smooth": "cubic-bezier(0.3, 0.6, 0.1, 1)",
3804
3804
  "--spring-smooth-duration": 750,
3805
3805
  "--spring-snappy": "cubic-bezier(0.35, 0.8, 0.1, 1.02)",
@@ -5581,8 +5581,8 @@ export const resolvedTokens = {
5581
5581
  "--spacing": 4,
5582
5582
  "--spring-menu": "cubic-bezier(0.35, 0.9, 0.1, 1.05)",
5583
5583
  "--spring-menu-duration": 325,
5584
- "--spring-sheet": "cubic-bezier(0.35, 0.9, 0.1, 1.02)",
5585
- "--spring-sheet-duration": 495,
5584
+ "--spring-sheet": "cubic-bezier(0.3, 0.6, 0.1, 1)",
5585
+ "--spring-sheet-duration": 500,
5586
5586
  "--spring-smooth": "cubic-bezier(0.3, 0.6, 0.1, 1)",
5587
5587
  "--spring-smooth-duration": 750,
5588
5588
  "--spring-snappy": "cubic-bezier(0.35, 0.8, 0.1, 1.02)",