@plexui/styles 0.1.34 → 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 (50) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +12 -1
  2. package/dist/es/components/Alert/Alert.module.css +101 -0
  3. package/dist/es/components/Badge/Badge.module.css +37 -0
  4. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +29 -0
  5. package/dist/es/components/Button/Button.module.css +53 -0
  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 +9 -0
  9. package/dist/es/components/CodeBlock/CodeBlock.module.css +14 -1
  10. package/dist/es/components/ColorPicker/ColorPicker.module.css +19 -1
  11. package/dist/es/components/DatePicker/Calendar.module.css +262 -2
  12. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
  13. package/dist/es/components/DateRangePicker/Calendar.module.css +207 -3
  14. package/dist/es/components/DateRangePicker/Trigger.module.css +17 -2
  15. package/dist/es/components/Dialog/Dialog.module.css +660 -13
  16. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +21 -0
  17. package/dist/es/components/Field/Field.module.css +387 -2
  18. package/dist/es/components/FieldGroup/FieldGroup.module.css +129 -3
  19. package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
  20. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +19 -1
  21. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +12 -1
  22. package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
  23. package/dist/es/components/Input/Input.module.css +129 -1
  24. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
  25. package/dist/es/components/Menu/Menu.module.css +267 -7
  26. package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
  27. package/dist/es/components/Page/Page.module.css +302 -10
  28. package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
  29. package/dist/es/components/Popover/Popover.module.css +7 -0
  30. package/dist/es/components/Select/Select.module.css +148 -0
  31. package/dist/es/components/SelectControl/SelectControl.module.css +113 -1
  32. package/dist/es/components/Sidebar/Sidebar.module.css +354 -20
  33. package/dist/es/components/Slider/Slider.module.css +80 -0
  34. package/dist/es/components/SwipeActions/SwipeActions.module.css +166 -0
  35. package/dist/es/components/Switch/Switch.module.css +59 -4
  36. package/dist/es/components/TabBar/TabBar.module.css +255 -10
  37. package/dist/es/components/Tabs/Tabs.module.css +166 -1
  38. package/dist/es/components/TagInput/TagInput.module.css +50 -9
  39. package/dist/es/components/Textarea/Textarea.module.css +6 -0
  40. package/dist/es/components/Tip/Tip.module.css +456 -0
  41. package/dist/es/components/Toast/Toast.module.css +148 -5
  42. package/dist/es/components/Toolbar/Toolbar.module.css +642 -3
  43. package/dist/es/styles/mobile-materials.css +94 -5
  44. package/dist/es/styles/mobile-surfaces.css +43 -0
  45. package/dist/es/styles/touch.css +618 -8
  46. package/dist/es/styles/variables-components.css +125 -5
  47. package/package.json +1 -1
  48. package/postcss/parseLightDark.mjs +20 -2
  49. package/postcss/phoneLayoutScope.mjs +134 -0
  50. package/postcss.config.mjs +3 -0
@@ -54,6 +54,27 @@
54
54
  width: var(--empty-message-fill-action-width, auto);
55
55
  }
56
56
  }
57
+ :where([data-plex-layout="phone"]) .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]) > :is(.Title, .Description) {
58
+ padding-inline: var(--empty-message-text-inset, 0px);
59
+ }
60
+
61
+ :where([data-plex-layout="phone"]) .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]):has(> .ActionRow > [data-variant]) {
62
+ padding-top: var(--empty-message-fill-action-inset, 0px);
63
+ }
64
+
65
+ :where([data-plex-layout="phone"]) .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]):has(> .ActionRow > [data-variant]) > :first-child:not(.ActionRow) {
66
+ margin-top: var(--empty-message-fill-content-margin, 0px);
67
+ }
68
+
69
+ :where([data-plex-layout="phone"]) .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]):has(> .ActionRow > [data-variant]) > .ActionRow {
70
+ align-self: var(--empty-message-fill-action-align, auto);
71
+ margin-top: var(--empty-message-fill-action-margin, var(--empty-message-action-spacing, calc(var(--spacing) * 4)));
72
+ padding-top: var(--empty-message-fill-action-inset, 0px);
73
+ }
74
+
75
+ :where([data-plex-layout="phone"]) .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]):has(> .ActionRow > [data-variant]) > .ActionRow > [data-variant] {
76
+ width: var(--empty-message-fill-action-width, auto);
77
+ }
57
78
 
58
79
  /* Compact: a panel, a card section or an empty list */
59
80
  .EmptyMessage[data-size="sm"] {
@@ -309,7 +309,7 @@
309
309
  }[data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="ghost"] > input {
310
310
  text-align: start;
311
311
  }@media (min-width: 768px) {
312
- [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Action) {
312
+ [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Action):not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
313
313
  --field-row-gap: 16px;
314
314
 
315
315
  grid-template-columns: var(--field-row-column-width) minmax(0, 1fr) auto;
@@ -706,7 +706,392 @@
706
706
  [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
707
707
  width: 100%;
708
708
  }
709
- }/* =============================================
709
+ }
710
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) {
711
+ --field-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
712
+ --field-row-above-color: var(--mobile-label-secondary, var(--color-text-tertiary));
713
+ --input-placeholder-text-color: var(--mobile-label-tertiary, var(--color-text-tertiary));
714
+ --mobile-field-error-icon-display: block;
715
+ }
716
+
717
+ :where([data-plex-layout="phone"]) .Field:where([data-row]):has(> .Content > [role="alert"]) {
718
+ row-gap: var(--mobile-field-error-offset, var(--field-row-row-gap));
719
+ }
720
+
721
+ /* Choice and popup rows forward non-interactive clicks to their control. */
722
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"])), :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])) {
723
+ cursor: pointer;
724
+ }
725
+
726
+ /* The same rows, with their control disabled, read as disabled: the row is that control's
727
+ target, as a disabled row action of the kit is gray (Lists, Row - Button, Value=Disabled
728
+ 550:49735), and an item's own label dims with it outside a row. Without this, an option
729
+ that is neither selected nor available looked like any other row. A row whose control
730
+ still has an enabled option (a segmented control with one disabled segment) stays as it
731
+ is. The label takes the tertiary label and the description the quaternary one, as a
732
+ disabled menu item does on a phone (touch.css). */
733
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):is([disabled], [data-disabled], [aria-disabled="true"])):not(:has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))), :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"]):is([disabled], [data-disabled], [aria-disabled="true"])) {
734
+ --field-description-color: var(--mobile-label-quaternary, var(--color-text-disabled));
735
+ }
736
+
737
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):is([disabled], [data-disabled], [aria-disabled="true"])):not(:has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))) > .LabelGroup .Label, :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"]):is([disabled], [data-disabled], [aria-disabled="true"])) > .LabelGroup .Label {
738
+ color: var(--mobile-label-tertiary, var(--color-text-disabled));
739
+ }
740
+
741
+ /* A disabled text field in a row reads as disabled as a whole, as an unavailable row of iOS Settings
742
+ is gray: its label dims with its value. (A Select's hidden form input does not count.) */
743
+ :where([data-plex-layout="phone"]) .Field:where([data-row]):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [aria-hidden="true"]), textarea):disabled) {
744
+ --field-description-color: var(--mobile-label-quaternary, var(--color-text-disabled));
745
+ }
746
+
747
+ :where([data-plex-layout="phone"]) .Field:where([data-row]):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [aria-hidden="true"]), textarea):disabled) > .LabelGroup .Label {
748
+ color: var(--mobile-label-tertiary, var(--color-text-disabled));
749
+ }
750
+
751
+ /* Every text field of a phone row is frameless, so a row with a hidden label centers its first line */
752
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-label-hidden][data-orientation="vertical"]):has(> .Content > .Control > [data-variant] > :is(input, textarea)):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control))) {
753
+ padding-block: calc((var(--field-row-min-height) - var(--field-row-label-line-height)) / 2);
754
+ }
755
+
756
+ /* Mobile choice rows keep keyboard focus and activation without a drawn ring. */
757
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):focus-visible {
758
+ outline: none;
759
+ }
760
+
761
+ /* Each extra label line grows a regular row by one line-height. Pad the label,
762
+ not LabelRow, so an adjacent label action keeps its independent target size. */
763
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-fill], [data-orientation="vertical"]):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control)))) > .LabelGroup > .Label, :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-fill], [data-orientation="vertical"]):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control)))) > .LabelGroup > .LabelRow > .Label {
764
+ min-width: 0;
765
+ max-width: 100%;
766
+ padding-block: max(0px, calc((var(--field-row-min-height) - var(--field-row-label-line-height)) / 2 - var(--field-row-padding-block)));
767
+ overflow-wrap: anywhere;
768
+ }
769
+
770
+ /* A grouped row uses one body-text role for every value, including editable
771
+ text and inherited text adornments. Standalone TextFields keep their own typography. */
772
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input"],
773
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input"] > input,
774
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control textarea,
775
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input-group-control"],
776
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-variant][role="button"] {
777
+ font-size: var(--field-row-label-font-size);
778
+ font-weight: var(--font-weight-normal);
779
+ line-height: var(--field-row-label-line-height);
780
+ }
781
+
782
+ /* A value the person cannot edit (a read-only field) is the secondary label, as iOS
783
+ shows the values of a row that only informs, such as Settings, General, About. */
784
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input"] > input[readonly],
785
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input-group-control"][readonly] {
786
+ color: var(--mobile-label-secondary, var(--color-text-secondary));
787
+ }
788
+
789
+ /* A value or placeholder longer than its room ends in an ellipsis while it is not
790
+ being edited, as a text field of an iOS form does. */
791
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input"] > input,
792
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input-group-control"] {
793
+ text-overflow: ellipsis;
794
+ }
795
+
796
+ /* Keep textarea row measurement consistent with the visible line box. */
797
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > [data-variant]:has(> textarea) {
798
+ --textarea-line-height: var(--field-row-label-line-height);
799
+ }
800
+
801
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control [data-slot="input-group"] {
802
+ --input-group-line-height: var(--field-row-label-line-height);
803
+ }
804
+
805
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action) {
806
+ grid-template-columns: minmax(0, 1fr) auto;
807
+ }
808
+
809
+ /* The label shares the action's first grid row, independently of list wrapping. */
810
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action) > .LabelGroup {
811
+ align-self: center;
812
+ }
813
+
814
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action) > .LabelGroup > :is(.Label, .LabelRow) {
815
+ padding-block: 0;
816
+ }
817
+
818
+ /* With no list, center the action in a regular row; populated lists keep their wrapping space. */
819
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action):has(.Control:empty, .Control > div:empty:only-child) {
820
+ padding-block: max(0px, calc((var(--field-row-min-height) - var(--field-row-action-layout-size, var(--field-row-action-size))) / 2));
821
+ }
822
+
823
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-fill]:has(> .Action)) .Control {
824
+ grid-column: 1 / -1;
825
+ grid-row: 2;
826
+ }
827
+
828
+ :where([data-plex-layout="phone"]) .Action {
829
+ grid-column: 2;
830
+ }
831
+
832
+ /* Text actions share the row's body role and trailing edge while retaining
833
+ the action's full target. Filled and uniform icon buttons keep their shape. */
834
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"]):has(> .Action > button[data-variant="ghost"]:not([data-uniform]))) {
835
+ --field-row-action-layout-size: max(var(--field-row-action-size), var(--field-row-text-action-size));
836
+ }
837
+
838
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"]):has(> .Action > button[data-variant="ghost"]:not([data-uniform]))) > .Action {
839
+ align-items: center;
840
+ }
841
+
842
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Action > button[data-variant="ghost"]:not([data-uniform]) {
843
+ --button-size: var(--field-row-text-action-size);
844
+ --button-gutter: 0px;
845
+ --button-font-size: var(--field-row-label-font-size);
846
+ --button-line-height: var(--field-row-label-line-height);
847
+ --button-font-weight: var(--field-row-label-font-weight);
848
+ --button-justify-content: flex-end;
849
+ --button-background-color: transparent;
850
+ --button-background-color-active: transparent;
851
+ --button-mobile-material-background: transparent;
852
+ --button-mobile-material-hover: transparent;
853
+ --button-mobile-material-active: transparent;
854
+ --button-mobile-material-shadow: none;
855
+ --button-mobile-material-backdrop-filter: none;
856
+
857
+ min-width: var(--field-row-text-action-size);
858
+ }
859
+
860
+ /* Reserve the indicator's visible width at the row edge. Its centered target
861
+ and focus ring keep their full size, extending into the row's side padding. */
862
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :only-child:not([data-has-label]):has(> [role="checkbox"]):not(:has(> [role="checkbox"] ~ [role="checkbox"], > :not([role="checkbox"], input[type="checkbox"][aria-hidden="true"]))) {
863
+ margin-inline: calc((var(--checkbox-indicator-size) - var(--checkbox-target-size, var(--checkbox-indicator-size))) / 2);
864
+ }
865
+
866
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :only-child > label:only-child:not([data-has-label]) > :only-child:has(> [role="radio"]):not(:has(> [role="radio"] ~ [role="radio"], > :not([role="radio"], input[type="radio"][aria-hidden="true"]))) {
867
+ margin-inline: calc((var(--radio-group-indicator-size) - var(--radio-group-target-size, var(--radio-group-indicator-size))) / 2);
868
+ }
869
+
870
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) {
871
+ --field-row-control-width: auto;
872
+ --field-row-text-width: auto;
873
+ }
874
+
875
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])):has(
876
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > input,
877
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > textarea
878
+ ) {
879
+ grid-template-columns: auto minmax(0, 1fr);
880
+ }
881
+
882
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(
883
+ > :is([data-variant="outline"], [data-variant="soft"]) > input,
884
+ > :is([data-variant="outline"], [data-variant="soft"]) > textarea
885
+ ) {
886
+ justify-self: stretch;
887
+ }
888
+
889
+ /* Under its label too, a value is the row's text (kit Lists, a value under its title; Contacts' fields):
890
+ the frames and the gutters of the web go, so the value starts where the label does. */
891
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > :is([data-variant="outline"], [data-variant="soft"]):is(:has(> input), :has(> textarea)), :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
892
+ --input-outline-border-color: transparent;
893
+ --input-outline-border-color-hover: transparent;
894
+ --input-outline-border-color-focus: transparent;
895
+ --input-border-color-invalid: transparent;
896
+ --input-soft-background-color: transparent;
897
+ --input-soft-border-color-focus: transparent;
898
+ }
899
+
900
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > :is([data-variant="outline"], [data-variant="soft"]):is(:has(> input), :has(> textarea)) {
901
+ --input-size: var(--field-row-label-line-height);
902
+ --input-gutter: 0px;
903
+ --input-adornment-offset: 0px;
904
+ --textarea-gutter-x: 0px;
905
+ --textarea-gutter-y: 0px;
906
+
907
+ border-radius: 0;
908
+ }
909
+
910
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"]) > input {
911
+ text-align: end;
912
+ }
913
+
914
+ /* A disabled Select or date in a row keeps the row's surface: the disabled frame and fill of a
915
+ standalone control would draw a box around the value */
916
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"][data-disabled] {
917
+ --select-control-background-color: transparent;
918
+ --select-control-border-color: transparent;
919
+ }
920
+
921
+ /* A Select or a date: its value ends at the row's edge, its mark too, as the row has no pill to sit in */
922
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
923
+ --dropdown-icon-pill-offset: 0px;
924
+ }
925
+
926
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"] {
927
+ padding-inline: 0;
928
+ }
929
+
930
+ /* The Field already delegates its non-interactive area to this linked popup.
931
+ Keep one row surface; the trigger remains its only keyboard stop. */
932
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
933
+ --select-control-size: var(--field-row-label-line-height);
934
+ border-radius: 0;
935
+ }
936
+
937
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"])::before {
938
+ background-color: transparent;
939
+ box-shadow: none;
940
+ transform: none;
941
+ }
942
+
943
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"])::after {
944
+ outline: none;
945
+ transform: none;
946
+ }
947
+
948
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])) {
949
+ cursor: pointer;
950
+ }
951
+
952
+ /* A date in a row is the compact date picker of iOS 26 (kit Date and time - Collapsed 30:53803): a 34px
953
+ capsule with 11px insets on the fill of the calendar's time pill, the date in the primary label and in
954
+ the accent text while its calendar is open. It keeps the 52px row; the row stays its target. */
955
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
956
+ --select-control-size: 34px;
957
+
958
+ margin-block: calc((var(--field-row-label-line-height) - 34px) / 2);
959
+ padding-inline: 11px;
960
+ border-radius: var(--radius-full);
961
+ color: var(--color-text);
962
+ }
963
+
964
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])::before {
965
+ background-color: var(--color-background-secondary-soft-alpha);
966
+ }
967
+
968
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-selected="false"],
969
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-disabled] {
970
+ color: var(--mobile-label-tertiary, var(--color-text-tertiary));
971
+ }
972
+
973
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]:not([data-disabled]) {
974
+ color: var(--link-primary-text-color);
975
+ }
976
+
977
+ /* A date and a time (showTime with a triggerTimeFormat) are two capsules 6px apart, as the kit draws them (Date and
978
+ time - Collapsed 30:53803) and iOS Calendar shows an event's start. Either opens the calendar, whose time
979
+ fields set the time; the trigger stays the row's target and takes the accent while the calendar is open. */
980
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) {
981
+ padding-inline: 0;
982
+ }
983
+
984
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts])::before {
985
+ background-color: transparent;
986
+ }
987
+
988
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-parts] {
989
+ display: flex;
990
+ gap: 6px;
991
+ min-width: 0;
992
+ }
993
+
994
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part] {
995
+ padding: 6px 11px;
996
+ border-radius: var(--radius-full);
997
+ background-color: var(--color-background-secondary-soft-alpha);
998
+ }
999
+
1000
+ /* Short of room, the date ends in an ellipsis inside its capsule; the time keeps its width */
1001
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part="date"] {
1002
+ min-width: 0;
1003
+ overflow: hidden;
1004
+ text-overflow: ellipsis;
1005
+ }
1006
+
1007
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part="time"] {
1008
+ flex-shrink: 0;
1009
+ }
1010
+
1011
+ /* Trailing units share the accessory tone; the input and the button keep their own disabled states.
1012
+ An InputGroup's inline addons (a prefix, a unit, an icon, an indicator) take it too, as Input's
1013
+ prefix and unit do; the kit's indicator is Labels/Secondary. */
1014
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > [data-slot="input"]:not([data-disabled]) > span:global(.text-secondary):last-child,
1015
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"]:not([data-disabled]) > [data-align^="inline"],
1016
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child:not([data-uniform], [disabled], [data-disabled], [aria-disabled="true"]) {
1017
+ color: var(--mobile-accessory-secondary, var(--color-text-secondary));
1018
+ }
1019
+
1020
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > [data-slot="input"][data-disabled] > span:global(.text-secondary):last-child {
1021
+ color: var(--color-text-disabled);
1022
+ }
1023
+
1024
+ /* An InputGroup: its value and its unit end at the row's edge too. A button at the end
1025
+ reads as the row's text, as a Select's value does: no gutter and no fill */
1026
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > [data-slot="input-group"]:is([data-variant="outline"], [data-variant="soft"]) {
1027
+ --input-group-gutter: 0px;
1028
+ }
1029
+
1030
+ /* A leading text or text addon is a prefix of the value (https://, $): the value follows it with no gap, as iOS
1031
+ writes "$0.00". An icon or a button keeps the gap, and so does a trailing unit. (`:has()` cannot nest, so the
1032
+ addon is matched by its only child, an InputGroup.Text.) */
1033
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > [data-slot="input"] > :first-child:not(input, textarea, svg, :has(svg)) + input {
1034
+ margin-inline-start: calc(-1 * var(--input-gap));
1035
+ }
1036
+
1037
+ :where([data-plex-layout="phone"]) .Field:where([data-row]) .Control > [data-slot="input-group"]:has(> [data-align="inline-start"] > [data-slot="input-group-text"]:only-child) > [data-slot="input-group-control"] {
1038
+ padding-inline-start: 0;
1039
+ }
1040
+
1041
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child {
1042
+ --button-gutter: 0px;
1043
+ --button-background-color: transparent;
1044
+ --button-background-color-active: transparent;
1045
+
1046
+ margin-inline-end: 0;
1047
+ }
1048
+
1049
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child:not([data-uniform]) {
1050
+ --button-font-size: var(--field-row-label-font-size);
1051
+ --button-line-height: var(--field-row-label-line-height);
1052
+ --button-font-weight: var(--field-row-label-font-weight);
1053
+
1054
+ font-size: var(--field-row-label-font-size);
1055
+ font-weight: var(--field-row-label-font-weight);
1056
+ line-height: var(--field-row-label-line-height);
1057
+ }
1058
+
1059
+ :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child[data-variant="ghost"]:not([data-uniform]) {
1060
+ --button-size: var(--field-row-text-action-size);
1061
+ --button-justify-content: flex-end;
1062
+ --button-mobile-material-background: transparent;
1063
+ --button-mobile-material-hover: transparent;
1064
+ --button-mobile-material-active: transparent;
1065
+ --button-mobile-material-shadow: none;
1066
+ --button-mobile-material-backdrop-filter: none;
1067
+
1068
+ min-width: var(--field-row-text-action-size);
1069
+ }
1070
+
1071
+ /* With `columns` the value starts at the column and takes the rest of the row: a unit,
1072
+ a Select's mark and an icon end at its edge, as on iOS */
1073
+ :where([data-plex-layout="phone"]) [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Action))):has(
1074
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > input,
1075
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > textarea
1076
+ ) {
1077
+ grid-template-columns: var(--field-row-column-width) minmax(0, 1fr);
1078
+ }
1079
+
1080
+ :where([data-plex-layout="phone"]) [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(
1081
+ > [data-variant]:not([data-variant="ghost"]) > input,
1082
+ > [data-variant]:not([data-variant="ghost"]) > textarea,
1083
+ > [data-variant][role="button"]
1084
+ ) {
1085
+ justify-self: stretch;
1086
+ }
1087
+
1088
+ :where([data-plex-layout="phone"]) [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"]) > input {
1089
+ text-align: start;
1090
+ }
1091
+
1092
+ :where([data-plex-layout="phone"]) [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
1093
+ width: 100%;
1094
+ }/* =============================================
710
1095
  Hidden label (hideLabel)
711
1096
  The label still names the control for assistive
712
1097
  technology. Last in the file, so it outranks the
@@ -36,6 +36,14 @@
36
36
  border: var(--field-group-border-width) solid var(--color-border);
37
37
  border-radius: var(--field-group-radius);
38
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));
39
47
  }/* Desktop separators remain part of the row border. */.Body > [data-row] + [data-row],
40
48
  .Body > [data-sortable] > [data-row] + [data-row] {
41
49
  border-top: 1px solid var(--color-border);
@@ -102,7 +110,9 @@
102
110
  /* Full-row actions share the cell's bounds. Only their text and accessories
103
111
  sit inside the row padding; the pressed surface must not shrink inward. */
104
112
  .Body > [data-row] > button[data-block][data-variant="ghost"],
105
- .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"] {
106
116
  --button-mobile-material-scale: 1;
107
117
  }
108
118
 
@@ -121,7 +131,9 @@
121
131
  /* An open popup is not a held press. Keep selection and explicit glass
122
132
  surfaces independent; the trigger remains focusable and expanded. */
123
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,
124
- .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 {
125
137
  opacity: 0;
126
138
  }
127
139
 
@@ -137,7 +149,121 @@
137
149
  background: var(--color-border);
138
150
  pointer-events: none;
139
151
  }
140
- }/* 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 {
141
267
  padding: var(--field-group-footer-padding, 8px 0 0);
142
268
  color: var(--field-group-description-color, var(--color-text-secondary));
143
269
  font-size: var(--field-group-footer-font-size, var(--field-group-description-font-size));