@plexui/styles 0.1.46 → 0.3.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 (72) 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 +17 -15
  8. package/dist/es/components/DateRangePicker/Calendar.module.css +17 -69
  9. package/dist/es/components/Dialog/Dialog.module.css +169 -70
  10. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +12 -8
  11. package/dist/es/components/Field/Field.module.css +56 -22
  12. package/dist/es/components/FieldGroup/FieldGroup.module.css +5 -5
  13. package/dist/es/components/FileUpload/FileUpload.module.css +2 -2
  14. package/dist/es/components/Input/Input.module.css +100 -18
  15. package/dist/es/components/Menu/Menu.module.css +38 -42
  16. package/dist/es/components/Page/Page.module.css +38 -0
  17. package/dist/es/components/Popover/Popover.module.css +10 -11
  18. package/dist/es/components/ProgressSteps/ProgressSteps.module.css +17 -0
  19. package/dist/es/components/RadioGroup/RadioGroup.module.css +7 -3
  20. package/dist/es/components/Select/Select.module.css +304 -42
  21. package/dist/es/components/SelectControl/SelectControl.module.css +34 -10
  22. package/dist/es/components/Sidebar/Sidebar.module.css +6 -4
  23. package/dist/es/components/Slider/Slider.module.css +46 -2
  24. package/dist/es/components/Sortable/Sortable.module.css +3 -2
  25. package/dist/es/components/StatsCard/StatsCard.module.css +269 -0
  26. package/dist/es/components/Stepper/Stepper.module.css +7 -4
  27. package/dist/es/components/SwipeActions/SwipeActions.module.css +32 -17
  28. package/dist/es/components/Switch/Switch.module.css +6 -5
  29. package/dist/es/components/TabBar/TabBar.module.css +128 -12
  30. package/dist/es/components/Tabs/Tabs.module.css +240 -45
  31. package/dist/es/components/Toast/Toast.module.css +47 -24
  32. package/dist/es/components/Toolbar/Toolbar.module.css +120 -62
  33. package/dist/es/styles/geist-mono-fonts/LICENSE +93 -0
  34. package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-ext-wght-italic.woff2 +0 -0
  35. package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-ext-wght-normal.woff2 +0 -0
  36. package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-wght-italic.woff2 +0 -0
  37. package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-wght-normal.woff2 +0 -0
  38. package/dist/es/styles/geist-mono-fonts/geist-mono-latin-ext-wght-italic.woff2 +0 -0
  39. package/dist/es/styles/geist-mono-fonts/geist-mono-latin-ext-wght-normal.woff2 +0 -0
  40. package/dist/es/styles/geist-mono-fonts/geist-mono-latin-wght-italic.woff2 +0 -0
  41. package/dist/es/styles/geist-mono-fonts/geist-mono-latin-wght-normal.woff2 +0 -0
  42. package/dist/es/styles/geist-mono-fonts/geist-mono-symbols2-wght-italic.woff2 +0 -0
  43. package/dist/es/styles/geist-mono-fonts/geist-mono-symbols2-wght-normal.woff2 +0 -0
  44. package/dist/es/styles/geist-mono-fonts/geist-mono-vietnamese-wght-italic.woff2 +0 -0
  45. package/dist/es/styles/geist-mono-fonts/geist-mono-vietnamese-wght-normal.woff2 +0 -0
  46. package/dist/es/styles/geist-mono.css +124 -0
  47. package/dist/es/styles/index.css +3 -0
  48. package/dist/es/styles/inter-fonts/LICENSE +93 -0
  49. package/dist/es/styles/inter-fonts/inter-cyrillic-ext-opsz-italic.woff2 +0 -0
  50. package/dist/es/styles/inter-fonts/inter-cyrillic-ext-opsz-normal.woff2 +0 -0
  51. package/dist/es/styles/inter-fonts/inter-cyrillic-opsz-italic.woff2 +0 -0
  52. package/dist/es/styles/inter-fonts/inter-cyrillic-opsz-normal.woff2 +0 -0
  53. package/dist/es/styles/inter-fonts/inter-greek-ext-opsz-italic.woff2 +0 -0
  54. package/dist/es/styles/inter-fonts/inter-greek-ext-opsz-normal.woff2 +0 -0
  55. package/dist/es/styles/inter-fonts/inter-greek-opsz-italic.woff2 +0 -0
  56. package/dist/es/styles/inter-fonts/inter-greek-opsz-normal.woff2 +0 -0
  57. package/dist/es/styles/inter-fonts/inter-latin-ext-opsz-italic.woff2 +0 -0
  58. package/dist/es/styles/inter-fonts/inter-latin-ext-opsz-normal.woff2 +0 -0
  59. package/dist/es/styles/inter-fonts/inter-latin-opsz-italic.woff2 +0 -0
  60. package/dist/es/styles/inter-fonts/inter-latin-opsz-normal.woff2 +0 -0
  61. package/dist/es/styles/inter-fonts/inter-vietnamese-opsz-italic.woff2 +0 -0
  62. package/dist/es/styles/inter-fonts/inter-vietnamese-opsz-normal.woff2 +0 -0
  63. package/dist/es/styles/inter.css +142 -0
  64. package/dist/es/styles/mobile-materials.css +65 -24
  65. package/dist/es/styles/tailwind-utilities.css +8 -0
  66. package/dist/es/styles/touch.css +357 -169
  67. package/dist/es/styles/variables-components.css +255 -138
  68. package/dist/es/styles/variables-semantic.css +30 -5
  69. package/dist/es/styles/variables-tailwind-theme.css +2 -4
  70. package/dist/es/styles/variables-tokens-root.css +70 -4
  71. package/package.json +1 -1
  72. package/dist/es/components/StatCard/StatCard.module.css +0 -234
@@ -707,8 +707,9 @@
707
707
  }/* Shown only on a phone, in vertical tabs (below). */.Tab > .TabCheckmark {
708
708
  display: none;
709
709
  }/* =============================================
710
- Phone (iOS 26). iOS switches the views of a screen with one control, the segmented control
711
- (on glass, kit Toolbars 5815:55167); it has no underline tabs and no vertical segments.
710
+ Phone (iOS 27). iOS switches the views of a screen with one control, the segmented control: plain
711
+ in content (SwiftUI Picker .segmented, iOS 27.2) and on glass in a bar (iOS 27.2, Calendar IMG_5433);
712
+ it has no underline tabs and no vertical segments.
712
713
  ============================================= */@media (max-width: 767px) {
713
714
  /* Horizontal tabs of either variant are the segmented control. Its segments share one width, as
714
715
  UISegmentedControl divides its width (every kit example is 2 to 5 equal segments); a segment
@@ -725,8 +726,9 @@
725
726
  grid-auto-columns: minmax(0, 1fr);
726
727
  }
727
728
 
728
- /* Disabled as a whole, the control shows at half opacity, its capsule, selection and labels alike (kit iOS 27
729
- Segmented Controls 10460:145, where the disabled control is the enabled one at 50%), not its labels alone. */
729
+ /* Disabled as a whole, the control shows at half opacity, its capsule, selection and labels alike, as native
730
+ iOS 27.2 draws it (a disabled SwiftUI Picker: track 246 and labels 127 over white, 14 and 128 over black) and
731
+ kit iOS 27 does (Segmented Controls 10460:145), not its labels alone. */
730
732
  .Tabs[data-disabled][data-orientation="horizontal"] {
731
733
  opacity: 0.5;
732
734
  }
@@ -754,9 +756,10 @@
754
756
  box-shadow: var(--segmented-control-thumb-shadow);
755
757
  }
756
758
 
757
- /* The capsule's glass and ends (touch.css): the sheen, rim and blur of the shared mobile glass, segments 8px
758
- from the ends and the selection 4px past its segment toward them, as in the kit. Without touch.css the track
759
- keeps its fill and the selection its segment. */
759
+ /* The capsule's material (touch.css): the plain fill of the small control, or the rim, outline and blur of the
760
+ shared mobile glass without its sheen on the large one and in a bar. A selection can reach past its segment by
761
+ the outset, which iOS 27.2 leaves at 0 (Calendar's selection is its segment). Without touch.css the track keeps
762
+ its fill and the selection its segment. */
760
763
  .Tabs:where([data-orientation="horizontal"]) {
761
764
  padding-inline: calc(var(--segmented-control-gutter) + var(--segmented-control-thumb-outset, 0px));
762
765
  background-image: var(--segmented-control-sheen, none);
@@ -764,6 +767,65 @@
764
767
  backdrop-filter: var(--segmented-control-backdrop-filter, none);
765
768
  }
766
769
 
770
+ /* Held, a control grows, its glass lightens and the held segment's label fades, by the values touch.css gives the
771
+ large control (iOS 27.2); without them a press changes none of these. Timed to iOS 27.2 held (ref-app
772
+ segmented-bar-text4 recorded 11.11, after the owner's «в iOS анимация более плавная и аккуратная»): pressed, the
773
+ capsule grows at once, half of the way in 60ms, 96% in 130ms and 4% past at 210ms (745 to 793 @3x), its glass
774
+ lightens in 90ms (245 to 253) and the label fades over 430ms; let go, the label is back in a frame, the capsule
775
+ in 170ms a touch under and the glass in 380ms. So a quick tap barely shows the press. The press sets the timing
776
+ of the way in through these properties, so the transitions stay in the one-class rules the reduced-motion reset
777
+ after them overrides. A browser without linear() (Safari before 17.2) would drop a transition that names it, so
778
+ these rules give it cubic Béziers close to the curves, and the measured curves follow under @supports. */
779
+ .Tabs:where([data-orientation="horizontal"]) {
780
+ transition:
781
+ scale var(--segmented-control-press-scale-timing, 300ms cubic-bezier(0.3, 0.8, 0.3, 1.1)),
782
+ background-color var(--segmented-control-press-background-timing, 380ms ease-out);
783
+ }
784
+
785
+ .Tabs:where([data-orientation="horizontal"]):has(> .Tab:where(:not([disabled])):active) {
786
+ --segmented-control-press-scale-timing: 300ms cubic-bezier(0.2, 0.9, 0.3, 1.1);
787
+ --segmented-control-press-background-timing: 90ms ease-out;
788
+ background-color: var(--segmented-control-pressed-background, var(--segmented-control-background));
789
+ scale: var(--segmented-control-pressed-scale, 1);
790
+ }
791
+
792
+ /* Kept as light as the reduced-motion reset at the end of the file, which must win */
793
+ :where(.Tabs[data-orientation="horizontal"]) .TabContent {
794
+ transition: opacity var(--segmented-control-press-label-timing, 110ms cubic-bezier(0.1, 0.9, 0.3, 1));
795
+ }
796
+
797
+ .Tabs[data-orientation="horizontal"] .Tab[data-state="off"]:where(:not([disabled])):active > .TabContent {
798
+ --segmented-control-press-label-timing: 430ms ease-out;
799
+ opacity: var(--segmented-control-option-pressed-opacity, 1);
800
+ }
801
+
802
+ @supports (transition-timing-function: linear(0, 1)) {
803
+ .Tabs:where([data-orientation="horizontal"]) {
804
+ transition:
805
+ scale var(--segmented-control-press-scale-timing, 300ms linear(0, 0.14 10%, 0.37 21%, 0.71 27%, 0.88 38%, 1.04 56%, 1)),
806
+ background-color var(--segmented-control-press-background-timing, 380ms linear(0, 0.09 8%, 0.18 16%, 0.36 22%, 0.55 30%, 0.73 39%, 0.82 56%, 0.91 69%, 1));
807
+ }
808
+
809
+ .Tabs:where([data-orientation="horizontal"]):has(> .Tab:where(:not([disabled])):active) {
810
+ --segmented-control-press-scale-timing: 300ms linear(0, 0.08 3.7%, 0.21 10%, 0.33 15%, 0.5 20%, 0.79 32%, 0.96 43%, 1.04 71%, 1);
811
+ --segmented-control-press-background-timing: 90ms linear(0, 0.62 33%, 0.75 50%, 0.87 68%, 1);
812
+ }
813
+
814
+ :where(.Tabs[data-orientation="horizontal"]) .TabContent {
815
+ transition: opacity var(--segmented-control-press-label-timing, 110ms linear(0, 0.87 15%, 0.94 50%, 1));
816
+ }
817
+
818
+ .Tabs[data-orientation="horizontal"] .Tab[data-state="off"]:where(:not([disabled])):active > .TabContent {
819
+ --segmented-control-press-label-timing: 430ms linear(0, 0.07 2.6%, 0.16 7%, 0.29 14%, 0.47 22%, 0.6 30%, 0.78 46%, 0.9 62%, 0.96 77%, 1);
820
+ }
821
+ }
822
+
823
+ /* A switch lifts the selection into a lens past the capsule's height (Tabs playThumbLens); a control whose segments
824
+ all fit lets it out while it travels, as iOS 27.2 draws it over the capsule's rim. */
825
+ .Tabs:where([data-orientation="horizontal"])[data-lens] {
826
+ overflow: visible;
827
+ }
828
+
767
829
  /* The script sets the thumb to its segment's box from the left edge, so the outset is physical. */
768
830
  .Tabs:where([data-orientation="horizontal"]) > .TabsThumb {
769
831
  box-sizing: content-box;
@@ -772,23 +834,54 @@
772
834
  }
773
835
 
774
836
  /* The native segment already includes its final gutter; pill scaling is desktop-only. */
775
- /* The selected label is primary and the others secondary, as the kit's glass control draws them (26 and 114)
776
- and Safari's tab groups show (0 and 109, iOS3 IMG_5562/5566), so the label keeps the base colors (touch.css
777
- gives secondary the phone role). No tracking: the system font applies its own, as native text widths show
778
- (17pt "All Inboxes" 241 at @3x in Mail, 242 in Chromium without it). */
837
+ /* The label keeps the base colors, the selected one primary and the others secondary, and touch.css makes the
838
+ secondary role primary: iOS 27.2 draws every label of the control in the label color, in content and in a bar,
839
+ as Calendar does in its sheet header (IMG_5433). No tracking of its own: the label takes --font-sans-tracking at its
840
+ size, as every text (native SF tracks itself: 17pt "All Inboxes" 241 at @3x in Mail). */
779
841
  .Tabs[data-orientation="horizontal"] .Tab {
780
842
  padding-inline: var(--segmented-control-option-gutter);
781
843
  border-radius: var(--segmented-control-option-radius);
782
844
  }
783
845
 
846
+ /* A symbol in its segment takes the symbol size of iOS 27.2 (touch.css); without it, the icon size. */
847
+ .Tabs[data-orientation="horizontal"] .TabContent > svg:where(:not([data-no-autosize])) {
848
+ width: var(--segmented-control-symbol-size, var(--segmented-control-icon-size));
849
+ height: var(--segmented-control-symbol-size, var(--segmented-control-icon-size));
850
+ }
851
+
852
+ /* iOS segments carry a title or a symbol, never both (owner 10.11: «на мобиле либо тексты либо иконки в
853
+ сегментах»). Given both, the segment shows the symbol, as UISegmentedControl draws an action with a title and an
854
+ image in iOS 27.2 (the ref-app's UIKit screens, measures/segmented-variants.md), and the label stays its name for assistive technology. SwiftUI's
855
+ Picker draws the title of a Label instead; the docs' Segmented with icons showed no icons that way (owner 10.11:
856
+ «это icons???»). */
857
+ .Tabs[data-orientation="horizontal"] .TabContent:has(> :not(.TabLabel, .TabBadge)) > .TabLabel {
858
+ position: absolute;
859
+ width: 1px;
860
+ height: 1px;
861
+ margin: -1px;
862
+ padding: 0;
863
+ overflow: hidden;
864
+ clip-path: inset(50%);
865
+ white-space: nowrap;
866
+ }
867
+
868
+ /* One disabled segment of an enabled control keeps the control's opacity and takes the disabled label of iOS 27.2
869
+ (touch.css), where half opacity left it far darker (119 on the 238 track for native 191). */
870
+ .Tabs:not([data-disabled])[data-orientation="horizontal"] > .Tab[data-disabled] {
871
+ opacity: 1;
872
+ color: var(--segmented-control-option-disabled-color, var(--color-text-disabled));
873
+ }
874
+
784
875
  /* Vertical tabs of either variant are an inset grouped list (kit Lists, Row 550:50430): rows of
785
- 52px with 17px text from the 16px margin, a symbol in a 28px column 8px before the text, a
786
- separator from the text and the 17pt checkmark (22px) at the end of the selected row, as iOS
787
- marks the one choice of a list. The selection keeps the regular weight. */
876
+ 52px with 17px text 20px inside the list (--mobile-list-inset), a separator from the text and the checkmark at
877
+ the end of the selected row, as iOS marks the one choice of a list. A symbol stands in a 24px column and the
878
+ text 16px after it, 60pt from the cell's edge, as UIListContentConfiguration and SwiftUI's Label place them in
879
+ iOS 27.2 (the symbol centred 31.7pt in, the text and the separator at 60) and as the phone Sidebar list does.
880
+ The selection keeps the regular weight. */
788
881
  .Tabs:where([data-orientation="vertical"]) {
789
- --segmented-control-icon-size: 22px;
790
- --segmented-control-icon-offset: 3px;
791
- --segmented-control-content-gap: 11px;
882
+ --segmented-control-icon-size: 24px;
883
+ --segmented-control-icon-offset: 0px;
884
+ --segmented-control-content-gap: 16px;
792
885
  --option-badge-size: var(--badge-size-sm);
793
886
  --option-badge-gutter: var(--badge-gutter-sm);
794
887
  --option-badge-font-size: var(--badge-font-size-sm);
@@ -815,7 +908,7 @@
815
908
  gap: 16px;
816
909
  height: auto;
817
910
  min-height: var(--field-row-min-height, 52px);
818
- padding: 0 var(--mobile-layout-margin, 16px);
911
+ padding: 0 var(--mobile-list-inset, 20px);
819
912
  border-radius: 0;
820
913
  color: var(--color-text);
821
914
  font-weight: inherit;
@@ -841,7 +934,8 @@
841
934
  .Tabs[data-orientation="vertical"] .Tab + .Tab::after {
842
935
  position: absolute;
843
936
  top: 0;
844
- inset-inline: var(--mobile-layout-margin, 16px) 0;
937
+ /* The line stops at the list inset on both ends, as between iOS 27 list rows (FieldGroup). */
938
+ inset-inline: var(--mobile-list-inset, 20px);
845
939
  height: 1px;
846
940
  background: var(--color-border);
847
941
  content: "";
@@ -850,15 +944,18 @@
850
944
 
851
945
  .Tabs[data-orientation="vertical"] .Tab:has(> .TabContent > svg:first-child:not(:only-child)) + .Tab::after,
852
946
  .Tabs[data-orientation="vertical"] .Tab + .Tab:has(> .TabContent > svg:first-child:not(:only-child))::after {
853
- inset-inline-start: calc(var(--mobile-layout-margin, 16px) + 36px);
947
+ inset-inline-start: calc(var(--mobile-list-inset, 20px) + 40px);
854
948
  }
855
949
 
950
+ /* The checkmark of an iOS 27.2 list row (RadioGroup.module.css): the symbol at 26px, its ink ending 24.3pt from
951
+ the cell's edge, in the row's 22px line. */
856
952
  .Tabs[data-orientation="vertical"] .Tab > .TabCheckmark {
857
953
  display: block;
858
954
  flex: none;
859
- width: 22px;
860
- height: 22px;
861
- margin-inline-start: auto;
955
+ width: 26px;
956
+ height: 26px;
957
+ margin-block: -2px;
958
+ margin-inline: auto -2px;
862
959
  visibility: hidden;
863
960
  }
864
961
 
@@ -881,8 +978,9 @@
881
978
  grid-auto-columns: minmax(0, 1fr);
882
979
  }
883
980
 
884
- /* Disabled as a whole, the control shows at half opacity, its capsule, selection and labels alike (kit iOS 27
885
- Segmented Controls 10460:145, where the disabled control is the enabled one at 50%), not its labels alone. */
981
+ /* Disabled as a whole, the control shows at half opacity, its capsule, selection and labels alike, as native
982
+ iOS 27.2 draws it (a disabled SwiftUI Picker: track 246 and labels 127 over white, 14 and 128 over black) and
983
+ kit iOS 27 does (Segmented Controls 10460:145), not its labels alone. */
886
984
  :where([data-plex-layout="phone"]) .Tabs[data-disabled][data-orientation="horizontal"] {
887
985
  opacity: 0.5;
888
986
  }
@@ -910,9 +1008,10 @@
910
1008
  box-shadow: var(--segmented-control-thumb-shadow);
911
1009
  }
912
1010
 
913
- /* The capsule's glass and ends (touch.css): the sheen, rim and blur of the shared mobile glass, segments 8px
914
- from the ends and the selection 4px past its segment toward them, as in the kit. Without touch.css the track
915
- keeps its fill and the selection its segment. */
1011
+ /* The capsule's material (touch.css): the plain fill of the small control, or the rim, outline and blur of the
1012
+ shared mobile glass without its sheen on the large one and in a bar. A selection can reach past its segment by
1013
+ the outset, which iOS 27.2 leaves at 0 (Calendar's selection is its segment). Without touch.css the track keeps
1014
+ its fill and the selection its segment. */
916
1015
  :where([data-plex-layout="phone"]) .Tabs:where([data-orientation="horizontal"]) {
917
1016
  padding-inline: calc(var(--segmented-control-gutter) + var(--segmented-control-thumb-outset, 0px));
918
1017
  background-image: var(--segmented-control-sheen, none);
@@ -920,6 +1019,65 @@
920
1019
  backdrop-filter: var(--segmented-control-backdrop-filter, none);
921
1020
  }
922
1021
 
1022
+ /* Held, a control grows, its glass lightens and the held segment's label fades, by the values touch.css gives the
1023
+ large control (iOS 27.2); without them a press changes none of these. Timed to iOS 27.2 held (ref-app
1024
+ segmented-bar-text4 recorded 11.11, after the owner's «в iOS анимация более плавная и аккуратная»): pressed, the
1025
+ capsule grows at once, half of the way in 60ms, 96% in 130ms and 4% past at 210ms (745 to 793 @3x), its glass
1026
+ lightens in 90ms (245 to 253) and the label fades over 430ms; let go, the label is back in a frame, the capsule
1027
+ in 170ms a touch under and the glass in 380ms. So a quick tap barely shows the press. The press sets the timing
1028
+ of the way in through these properties, so the transitions stay in the one-class rules the reduced-motion reset
1029
+ after them overrides. A browser without linear() (Safari before 17.2) would drop a transition that names it, so
1030
+ these rules give it cubic Béziers close to the curves, and the measured curves follow under @supports. */
1031
+ :where([data-plex-layout="phone"]) .Tabs:where([data-orientation="horizontal"]) {
1032
+ transition:
1033
+ scale var(--segmented-control-press-scale-timing, 300ms cubic-bezier(0.3, 0.8, 0.3, 1.1)),
1034
+ background-color var(--segmented-control-press-background-timing, 380ms ease-out);
1035
+ }
1036
+
1037
+ :where([data-plex-layout="phone"]) .Tabs:where([data-orientation="horizontal"]):has(> .Tab:where(:not([disabled])):active) {
1038
+ --segmented-control-press-scale-timing: 300ms cubic-bezier(0.2, 0.9, 0.3, 1.1);
1039
+ --segmented-control-press-background-timing: 90ms ease-out;
1040
+ background-color: var(--segmented-control-pressed-background, var(--segmented-control-background));
1041
+ scale: var(--segmented-control-pressed-scale, 1);
1042
+ }
1043
+
1044
+ /* Kept as light as the reduced-motion reset at the end of the file, which must win */
1045
+ :where([data-plex-layout="phone"]) :where(.Tabs[data-orientation="horizontal"]) .TabContent {
1046
+ transition: opacity var(--segmented-control-press-label-timing, 110ms cubic-bezier(0.1, 0.9, 0.3, 1));
1047
+ }
1048
+
1049
+ :where([data-plex-layout="phone"]) .Tabs[data-orientation="horizontal"] .Tab[data-state="off"]:where(:not([disabled])):active > .TabContent {
1050
+ --segmented-control-press-label-timing: 430ms ease-out;
1051
+ opacity: var(--segmented-control-option-pressed-opacity, 1);
1052
+ }
1053
+
1054
+ @supports (transition-timing-function: linear(0, 1)) {
1055
+ :where([data-plex-layout="phone"]) .Tabs:where([data-orientation="horizontal"]) {
1056
+ transition:
1057
+ scale var(--segmented-control-press-scale-timing, 300ms linear(0, 0.14 10%, 0.37 21%, 0.71 27%, 0.88 38%, 1.04 56%, 1)),
1058
+ background-color var(--segmented-control-press-background-timing, 380ms linear(0, 0.09 8%, 0.18 16%, 0.36 22%, 0.55 30%, 0.73 39%, 0.82 56%, 0.91 69%, 1));
1059
+ }
1060
+
1061
+ :where([data-plex-layout="phone"]) .Tabs:where([data-orientation="horizontal"]):has(> .Tab:where(:not([disabled])):active) {
1062
+ --segmented-control-press-scale-timing: 300ms linear(0, 0.08 3.7%, 0.21 10%, 0.33 15%, 0.5 20%, 0.79 32%, 0.96 43%, 1.04 71%, 1);
1063
+ --segmented-control-press-background-timing: 90ms linear(0, 0.62 33%, 0.75 50%, 0.87 68%, 1);
1064
+ }
1065
+
1066
+ :where([data-plex-layout="phone"]) :where(.Tabs[data-orientation="horizontal"]) .TabContent {
1067
+ transition: opacity var(--segmented-control-press-label-timing, 110ms linear(0, 0.87 15%, 0.94 50%, 1));
1068
+ }
1069
+
1070
+ :where([data-plex-layout="phone"]) .Tabs[data-orientation="horizontal"] .Tab[data-state="off"]:where(:not([disabled])):active > .TabContent {
1071
+ --segmented-control-press-label-timing: 430ms linear(0, 0.07 2.6%, 0.16 7%, 0.29 14%, 0.47 22%, 0.6 30%, 0.78 46%, 0.9 62%, 0.96 77%, 1);
1072
+ }
1073
+ }
1074
+
1075
+ /* A switch lifts the selection into a lens past the capsule's height (Tabs playThumbLens); a control whose segments
1076
+ all fit lets it out while it travels, as iOS 27.2 draws it over the capsule's rim. */
1077
+ :where([data-plex-layout="phone"]) .Tabs:where([data-orientation="horizontal"])[data-lens] {
1078
+ overflow: visible;
1079
+ }
1080
+
923
1081
  /* The script sets the thumb to its segment's box from the left edge, so the outset is physical. */
924
1082
  :where([data-plex-layout="phone"]) .Tabs:where([data-orientation="horizontal"]) > .TabsThumb {
925
1083
  box-sizing: content-box;
@@ -928,23 +1086,54 @@
928
1086
  }
929
1087
 
930
1088
  /* The native segment already includes its final gutter; pill scaling is desktop-only. */
931
- /* The selected label is primary and the others secondary, as the kit's glass control draws them (26 and 114)
932
- and Safari's tab groups show (0 and 109, iOS3 IMG_5562/5566), so the label keeps the base colors (touch.css
933
- gives secondary the phone role). No tracking: the system font applies its own, as native text widths show
934
- (17pt "All Inboxes" 241 at @3x in Mail, 242 in Chromium without it). */
1089
+ /* The label keeps the base colors, the selected one primary and the others secondary, and touch.css makes the
1090
+ secondary role primary: iOS 27.2 draws every label of the control in the label color, in content and in a bar,
1091
+ as Calendar does in its sheet header (IMG_5433). No tracking of its own: the label takes --font-sans-tracking at its
1092
+ size, as every text (native SF tracks itself: 17pt "All Inboxes" 241 at @3x in Mail). */
935
1093
  :where([data-plex-layout="phone"]) .Tabs[data-orientation="horizontal"] .Tab {
936
1094
  padding-inline: var(--segmented-control-option-gutter);
937
1095
  border-radius: var(--segmented-control-option-radius);
938
1096
  }
939
1097
 
1098
+ /* A symbol in its segment takes the symbol size of iOS 27.2 (touch.css); without it, the icon size. */
1099
+ :where([data-plex-layout="phone"]) .Tabs[data-orientation="horizontal"] .TabContent > svg:where(:not([data-no-autosize])) {
1100
+ width: var(--segmented-control-symbol-size, var(--segmented-control-icon-size));
1101
+ height: var(--segmented-control-symbol-size, var(--segmented-control-icon-size));
1102
+ }
1103
+
1104
+ /* iOS segments carry a title or a symbol, never both (owner 10.11: «на мобиле либо тексты либо иконки в
1105
+ сегментах»). Given both, the segment shows the symbol, as UISegmentedControl draws an action with a title and an
1106
+ image in iOS 27.2 (the ref-app's UIKit screens, measures/segmented-variants.md), and the label stays its name for assistive technology. SwiftUI's
1107
+ Picker draws the title of a Label instead; the docs' Segmented with icons showed no icons that way (owner 10.11:
1108
+ «это icons???»). */
1109
+ :where([data-plex-layout="phone"]) .Tabs[data-orientation="horizontal"] .TabContent:has(> :not(.TabLabel, .TabBadge)) > .TabLabel {
1110
+ position: absolute;
1111
+ width: 1px;
1112
+ height: 1px;
1113
+ margin: -1px;
1114
+ padding: 0;
1115
+ overflow: hidden;
1116
+ clip-path: inset(50%);
1117
+ white-space: nowrap;
1118
+ }
1119
+
1120
+ /* One disabled segment of an enabled control keeps the control's opacity and takes the disabled label of iOS 27.2
1121
+ (touch.css), where half opacity left it far darker (119 on the 238 track for native 191). */
1122
+ :where([data-plex-layout="phone"]) .Tabs:not([data-disabled])[data-orientation="horizontal"] > .Tab[data-disabled] {
1123
+ opacity: 1;
1124
+ color: var(--segmented-control-option-disabled-color, var(--color-text-disabled));
1125
+ }
1126
+
940
1127
  /* Vertical tabs of either variant are an inset grouped list (kit Lists, Row 550:50430): rows of
941
- 52px with 17px text from the 16px margin, a symbol in a 28px column 8px before the text, a
942
- separator from the text and the 17pt checkmark (22px) at the end of the selected row, as iOS
943
- marks the one choice of a list. The selection keeps the regular weight. */
1128
+ 52px with 17px text 20px inside the list (--mobile-list-inset), a separator from the text and the checkmark at
1129
+ the end of the selected row, as iOS marks the one choice of a list. A symbol stands in a 24px column and the
1130
+ text 16px after it, 60pt from the cell's edge, as UIListContentConfiguration and SwiftUI's Label place them in
1131
+ iOS 27.2 (the symbol centred 31.7pt in, the text and the separator at 60) and as the phone Sidebar list does.
1132
+ The selection keeps the regular weight. */
944
1133
  :where([data-plex-layout="phone"]) .Tabs:where([data-orientation="vertical"]) {
945
- --segmented-control-icon-size: 22px;
946
- --segmented-control-icon-offset: 3px;
947
- --segmented-control-content-gap: 11px;
1134
+ --segmented-control-icon-size: 24px;
1135
+ --segmented-control-icon-offset: 0px;
1136
+ --segmented-control-content-gap: 16px;
948
1137
  --option-badge-size: var(--badge-size-sm);
949
1138
  --option-badge-gutter: var(--badge-gutter-sm);
950
1139
  --option-badge-font-size: var(--badge-font-size-sm);
@@ -971,7 +1160,7 @@
971
1160
  gap: 16px;
972
1161
  height: auto;
973
1162
  min-height: var(--field-row-min-height, 52px);
974
- padding: 0 var(--mobile-layout-margin, 16px);
1163
+ padding: 0 var(--mobile-list-inset, 20px);
975
1164
  border-radius: 0;
976
1165
  color: var(--color-text);
977
1166
  font-weight: inherit;
@@ -997,7 +1186,8 @@
997
1186
  :where([data-plex-layout="phone"]) .Tabs[data-orientation="vertical"] .Tab + .Tab::after {
998
1187
  position: absolute;
999
1188
  top: 0;
1000
- inset-inline: var(--mobile-layout-margin, 16px) 0;
1189
+ /* The line stops at the list inset on both ends, as between iOS 27 list rows (FieldGroup). */
1190
+ inset-inline: var(--mobile-list-inset, 20px);
1001
1191
  height: 1px;
1002
1192
  background: var(--color-border);
1003
1193
  content: "";
@@ -1006,15 +1196,18 @@
1006
1196
 
1007
1197
  :where([data-plex-layout="phone"]) .Tabs[data-orientation="vertical"] .Tab:has(> .TabContent > svg:first-child:not(:only-child)) + .Tab::after,
1008
1198
  :where([data-plex-layout="phone"]) .Tabs[data-orientation="vertical"] .Tab + .Tab:has(> .TabContent > svg:first-child:not(:only-child))::after {
1009
- inset-inline-start: calc(var(--mobile-layout-margin, 16px) + 36px);
1199
+ inset-inline-start: calc(var(--mobile-list-inset, 20px) + 40px);
1010
1200
  }
1011
1201
 
1202
+ /* The checkmark of an iOS 27.2 list row (RadioGroup.module.css): the symbol at 26px, its ink ending 24.3pt from
1203
+ the cell's edge, in the row's 22px line. */
1012
1204
  :where([data-plex-layout="phone"]) .Tabs[data-orientation="vertical"] .Tab > .TabCheckmark {
1013
1205
  display: block;
1014
1206
  flex: none;
1015
- width: 22px;
1016
- height: 22px;
1017
- margin-inline-start: auto;
1207
+ width: 26px;
1208
+ height: 26px;
1209
+ margin-block: -2px;
1210
+ margin-inline: auto -2px;
1018
1211
  visibility: hidden;
1019
1212
  }
1020
1213
 
@@ -1025,8 +1218,10 @@
1025
1218
  --tabs-thumb-transition-duration: 0ms;
1026
1219
  }
1027
1220
 
1221
+ .Tabs,
1028
1222
  .Tab,
1029
- .Tab::before {
1223
+ .Tab::before,
1224
+ .TabContent {
1030
1225
  transition-duration: 0ms;
1031
1226
  }
1032
1227
  }
@@ -26,7 +26,7 @@
26
26
  right: 0 !important;
27
27
  margin-inline: auto !important;
28
28
  /* Tight gap between icon and content; action button gets extra breathing
29
- room via its own margin-left below. */
29
+ room via its own margin-inline-start below. */
30
30
  gap: calc(var(--spacing) * 2) !important;
31
31
  padding: calc(var(--spacing) * 3) !important;
32
32
  font-size: var(--font-text-sm-size);
@@ -86,7 +86,8 @@
86
86
  width: 20px;
87
87
  height: 20px;
88
88
  }.ActionButton {
89
- margin-left: calc(var(--spacing) * 2) !important;
89
+ /* Logical, so the gap stays between the message and the button in a right-to-left toaster */
90
+ margin-inline-start: calc(var(--spacing) * 2) !important;
90
91
  background: var(--color-background-primary-solid) !important;
91
92
  color: var(--color-text-primary-solid) !important;
92
93
  font-weight: var(--font-weight-medium);
@@ -99,7 +100,7 @@
99
100
  }.CancelButton {
100
101
  color: var(--color-text-secondary) !important;
101
102
  font-weight: var(--font-weight-medium);
102
- }/* The close face: 20 across at the toast's corner, its X in the text color and a
103
+ }/* The close face: 20 across at the toast's trailing end (below), its X in the text color and a
103
104
  ring an outline Button draws, which shows on the dark surface too (Sonner's
104
105
  dark ring takes --normal-border, transparent here). An invisible 4px rim
105
106
  around its 18px inner box makes the target 26, past the 24 of WCAG 2.5.8.
@@ -117,6 +118,23 @@
117
118
  inset: -4px;
118
119
  border-radius: 50%;
119
120
  content: "";
121
+ }/* The close button stands at the trailing end of the toast, inside it, where the message's row ends, not over the
122
+ leading corner where Sonner puts it (owner 12.11: «зачем X тут слева»). The message keeps clear of it: the 12px
123
+ padding, the 20px face and 8px between them. Without a description it is centred on the toast, on a title of one
124
+ line or more; with a description it stays level with the title. Vue's `closeButtonPosition` no longer moves it. */.Toast[data-styled="true"]:has(> [data-close-button]) {
125
+ padding-inline-end: 40px !important;
126
+ }.Toast[data-styled="true"] > [data-close-button] {
127
+ top: 50% !important;
128
+ right: 12px !important;
129
+ bottom: auto !important;
130
+ left: auto !important;
131
+ transform: translateY(-50%) !important;
132
+ }.Toast[data-styled="true"]:where(:has(.Description)) > [data-close-button] {
133
+ top: 12px !important;
134
+ transform: none !important;
135
+ }.Toaster[dir="rtl"] .Toast[data-styled="true"] > [data-close-button] {
136
+ right: auto !important;
137
+ left: 12px !important;
120
138
  }.Toast :is([data-button], [data-close-button]):disabled {
121
139
  cursor: not-allowed;
122
140
  opacity: 0.5;
@@ -193,18 +211,20 @@
193
211
  overflow-wrap: anywhere;
194
212
  }
195
213
 
196
- /* The 20px close face stays compact inside a separate 44px target. Reserve
197
- the leading space so neither its target nor its ring covers the message. */
214
+ /* The 20px close face stays compact inside a separate 44px target at the
215
+ trailing top corner. Reserve the trailing space so neither its target nor
216
+ its ring covers the message or a button. */
198
217
  .Toast[data-styled="true"]:has([data-close-button]) {
199
218
  /* The 44px target inside the padding box and Sonner's 1px border above and below */
200
219
  min-height: 46px;
201
- padding-inline-start: 56px !important;
220
+ padding-inline-end: 56px !important;
202
221
  }
203
222
 
204
223
  .Toast[data-styled="true"] > [data-close-button] {
205
224
  top: 0 !important;
206
- left: 0 !important;
207
- right: auto !important;
225
+ right: 0 !important;
226
+ bottom: auto !important;
227
+ left: auto !important;
208
228
  width: 44px !important;
209
229
  height: 44px !important;
210
230
  border: 0 !important;
@@ -235,8 +255,8 @@
235
255
  }
236
256
 
237
257
  .Toaster[dir="rtl"] .Toast[data-styled="true"] > [data-close-button] {
238
- left: auto !important;
239
- right: 0 !important;
258
+ right: auto !important;
259
+ left: 0 !important;
240
260
  }
241
261
  }
242
262
  :where([data-plex-layout="phone"]) .Toast[data-styled="true"] {
@@ -276,18 +296,20 @@
276
296
  overflow-wrap: anywhere;
277
297
  }
278
298
 
279
- /* The 20px close face stays compact inside a separate 44px target. Reserve
280
- the leading space so neither its target nor its ring covers the message. */
299
+ /* The 20px close face stays compact inside a separate 44px target at the
300
+ trailing top corner. Reserve the trailing space so neither its target nor
301
+ its ring covers the message or a button. */
281
302
  :where([data-plex-layout="phone"]) .Toast[data-styled="true"]:has([data-close-button]) {
282
303
  /* The 44px target inside the padding box and Sonner's 1px border above and below */
283
304
  min-height: 46px;
284
- padding-inline-start: 56px !important;
305
+ padding-inline-end: 56px !important;
285
306
  }
286
307
 
287
308
  :where([data-plex-layout="phone"]) .Toast[data-styled="true"] > [data-close-button] {
288
309
  top: 0 !important;
289
- left: 0 !important;
290
- right: auto !important;
310
+ right: 0 !important;
311
+ bottom: auto !important;
312
+ left: auto !important;
291
313
  width: 44px !important;
292
314
  height: 44px !important;
293
315
  border: 0 !important;
@@ -318,21 +340,22 @@
318
340
  }
319
341
 
320
342
  :where([data-plex-layout="phone"]) .Toaster[dir="rtl"] .Toast[data-styled="true"] > [data-close-button] {
321
- left: auto !important;
322
- right: 0 !important;
343
+ right: auto !important;
344
+ left: 0 !important;
323
345
  }/* On a phone a toast takes the corners, padding and text of the iOS notification banner, the
324
346
  system's own message at the top of the screen (kit iOS 27, Notifications, Notification - Collapsed
325
347
  Stack=1 0:11292): corners 24, padding 12 above and below and 14 at the sides, a 10px gap, the
326
- title at 15/17 semibold and the description at 15/18. The kit's -0.23 tracking of 15pt text is
327
- left to the system font, which tracks it itself. It keeps its own width and opaque surface, not
328
- the banner's glass and width. Its buttons are drawn as a medium phone Button (touch.css): a 34px
329
- capsule, 15/20 regular, gutter 14, its 44px target reaching 5px past it into the padding, so a
330
- one-line toast with a button is 58 high. */@media (max-width: 767px) {
348
+ title at 15/17 semibold and the description at 15/18. The kit's -0.23 tracking of 15pt SF text gives
349
+ way to the kit face's own, --font-sans-tracking at each size. It keeps its own width and opaque surface, not
350
+ the banner's glass and width. Its buttons are the 34px capsule of a medium phone Button (touch.css) with
351
+ the banner's 15/20 regular label and a 14px gutter (a medium Button's 17pt label would outsize the
352
+ banner's text), its 44px target reaching 5px past it into the padding, so a one-line toast with a
353
+ button is 58 high. */@media (max-width: 767px) {
331
354
  .Toast[data-styled="true"] {
332
355
  gap: 10px !important;
333
356
  padding: 12px 14px !important;
334
357
  border-radius: 24px !important;
335
- letter-spacing: normal;
358
+ letter-spacing: var(--font-sans-tracking);
336
359
  }
337
360
 
338
361
  .Toast[data-styled="true"] .Title,
@@ -366,7 +389,7 @@
366
389
  gap: 10px !important;
367
390
  padding: 12px 14px !important;
368
391
  border-radius: 24px !important;
369
- letter-spacing: normal;
392
+ letter-spacing: var(--font-sans-tracking);
370
393
  }
371
394
 
372
395
  :where([data-plex-layout="phone"]) .Toast[data-styled="true"] .Title,