@plexui/styles 0.1.32 → 0.1.34

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 (81) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +30 -0
  2. package/dist/es/components/Alert/Alert.module.css +112 -1
  3. package/dist/es/components/Badge/Badge.module.css +41 -8
  4. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +35 -1
  5. package/dist/es/components/Button/Button.module.css +178 -77
  6. package/dist/es/components/Button/NavigationButton.module.css +27 -0
  7. package/dist/es/components/Card/Card.module.css +27 -9
  8. package/dist/es/components/Checkbox/Checkbox.module.css +83 -90
  9. package/dist/es/components/CodeBlock/CodeBlock.module.css +20 -0
  10. package/dist/es/components/ColorPicker/ColorPicker.module.css +396 -0
  11. package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
  12. package/dist/es/components/DataTable/DataTable.module.css +35 -5
  13. package/dist/es/components/DatePicker/Calendar.module.css +280 -3
  14. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +20 -0
  15. package/dist/es/components/DateRangePicker/Calendar.module.css +223 -3
  16. package/dist/es/components/DateRangePicker/Trigger.module.css +29 -1
  17. package/dist/es/components/Dialog/Dialog.module.css +386 -86
  18. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +89 -14
  19. package/dist/es/components/Field/Field.module.css +346 -19
  20. package/dist/es/components/FieldError/FieldError.module.css +13 -10
  21. package/dist/es/components/FieldGroup/FieldGroup.module.css +103 -4
  22. package/dist/es/components/FileUpload/FileUpload.module.css +103 -10
  23. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +46 -14
  24. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +36 -14
  25. package/dist/es/components/Indicator/LoadingIndicator.module.css +48 -6
  26. package/dist/es/components/Input/Input.module.css +195 -25
  27. package/dist/es/components/InputGroup/InputGroup.module.css +5 -1
  28. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +27 -147
  29. package/dist/es/components/Menu/Menu.module.css +425 -33
  30. package/dist/es/components/OTPInput/OTPInput.module.css +11 -3
  31. package/dist/es/components/Page/Page.module.css +217 -20
  32. package/dist/es/components/PageControl/PageControl.module.css +81 -0
  33. package/dist/es/components/Popover/Popover.module.css +10 -1
  34. package/dist/es/components/RadioGroup/RadioGroup.module.css +10 -10
  35. package/dist/es/components/Select/Select.module.css +162 -13
  36. package/dist/es/components/SelectControl/SelectControl.module.css +118 -11
  37. package/dist/es/components/ShimmerText/ShimmerText.module.css +7 -0
  38. package/dist/es/components/Sidebar/Sidebar.module.css +347 -72
  39. package/dist/es/components/Skeleton/Skeleton.module.css +4 -0
  40. package/dist/es/components/Slider/Slider.module.css +96 -52
  41. package/dist/es/components/Sortable/Sortable.module.css +20 -7
  42. package/dist/es/components/Stepper/Stepper.module.css +98 -0
  43. package/dist/es/components/Switch/Switch.module.css +16 -7
  44. package/dist/es/components/TabBar/TabBar.module.css +233 -0
  45. package/dist/es/components/Table/Table.module.css +4 -2
  46. package/dist/es/components/Tabs/Tabs.module.css +186 -6
  47. package/dist/es/components/TagInput/TagInput.module.css +64 -19
  48. package/dist/es/components/TextLink/TextLink.module.css +4 -4
  49. package/dist/es/components/Textarea/Textarea.module.css +1 -1
  50. package/dist/es/components/Toast/Toast.module.css +120 -5
  51. package/dist/es/components/Toolbar/Toolbar.module.css +579 -0
  52. package/dist/es/components/Tooltip/Tooltip.module.css +1 -1
  53. package/dist/es/styles/base.css +1 -1
  54. package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
  55. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  56. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  57. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  58. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  59. package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
  60. package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  61. package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
  62. package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
  63. package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  64. package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
  65. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  66. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  67. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  68. package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
  69. package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
  70. package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
  71. package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
  72. package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
  73. package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  74. package/dist/es/styles/katex-fonts/LICENSE +21 -0
  75. package/dist/es/styles/katex.min.css +666 -730
  76. package/dist/es/styles/mobile-materials.css +69 -0
  77. package/dist/es/styles/mobile-surfaces.css +46 -0
  78. package/dist/es/styles/touch.css +524 -63
  79. package/dist/es/styles/variables-components.css +286 -7
  80. package/package.json +1 -1
  81. package/postcss/mixins.mjs +1 -1
@@ -4,11 +4,11 @@
4
4
  Header (title + description, action at the end)
5
5
  ============================================= */.Header {
6
6
  display: flex;
7
- align-items: center;
7
+ align-items: var(--field-group-header-align, center);
8
8
  justify-content: space-between;
9
9
  gap: calc(var(--spacing) * 4);
10
- min-height: calc(var(--spacing) * 8);
11
- padding-bottom: calc(var(--spacing) * 2);
10
+ min-height: var(--field-group-header-min-height, calc(var(--spacing) * 8));
11
+ padding-bottom: var(--field-group-header-padding-bottom, calc(var(--spacing) * 2));
12
12
  }.HeaderText {
13
13
  min-width: 0;
14
14
  }.Title {
@@ -18,10 +18,16 @@
18
18
  font-size: var(--field-group-title-font-size);
19
19
  line-height: var(--field-group-title-line-height);
20
20
  font-weight: var(--field-group-title-font-weight);
21
+ letter-spacing: var(--field-group-title-letter-spacing, normal);
22
+ }/* headerProminence="increased": the title leads its content, as a section of a page */.FieldGroup[data-header-prominence="increased"] {
23
+ --field-group-title-color: var(--color-text);
24
+ --field-group-title-font-size: var(--font-heading-sm-size);
25
+ --field-group-title-line-height: var(--font-heading-sm-line-height);
26
+ --field-group-title-font-weight: var(--font-heading-sm-weight);
21
27
  }.Description {
22
28
  margin: 0;
23
29
  padding-inline: var(--field-group-title-padding-inline);
24
- color: var(--color-text-secondary);
30
+ color: var(--field-group-description-color, var(--color-text-secondary));
25
31
  font-size: var(--field-group-description-font-size);
26
32
  line-height: var(--field-group-description-line-height);
27
33
  }/* =============================================
@@ -34,12 +40,91 @@
34
40
  .Body > [data-sortable] > [data-row] + [data-row] {
35
41
  border-top: 1px solid var(--color-border);
36
42
  }@media (max-width: 767px) {
43
+ .FieldGroup {
44
+ --field-group-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
45
+ --field-group-title-color: var(--mobile-label-secondary, var(--color-text-secondary));
46
+ }
47
+
48
+ /* The kit's Prominent list header (Lists, Header 517:38042, Type=Prominent): Title 3 Semibold
49
+ 20/25 in the primary label, 10pt above the rows. Its -0.45 tracking is the one the system font
50
+ applies itself at 20pt, so the title keeps normal tracking (system-font-tracking.test.ts). */
51
+ .FieldGroup[data-header-prominence="increased"] {
52
+ --field-group-title-color: var(--color-text);
53
+ --field-group-title-font-size: 20px;
54
+ --field-group-title-line-height: 25px;
55
+ --field-group-title-font-weight: 590;
56
+ --field-group-header-min-height: 45px;
57
+ --field-group-header-padding-bottom: 10px;
58
+ }
59
+
60
+ /* A text action at the end of the header (kit _Header Trailing Accessories, Type=Action 39:67340) is
61
+ tinted text at the list's text inset, on the title's last line as the kit sets it. Its size is the
62
+ native one, body 17/22 (5559 Clear; the kit draws 15/20), as a row's text action. Its target keeps
63
+ 44px without making the header taller. */
64
+ .Header > button[data-variant="ghost"]:not([data-uniform]) {
65
+ --button-size: 44px;
66
+ --button-gutter: 0px;
67
+ --button-font-size: var(--field-row-label-font-size);
68
+ --button-line-height: var(--field-row-label-line-height);
69
+ --button-font-weight: var(--font-weight-normal);
70
+ --button-justify-content: flex-end;
71
+ --button-background-color: transparent;
72
+ --button-background-color-active: transparent;
73
+ --button-mobile-material-background: transparent;
74
+ --button-mobile-material-hover: transparent;
75
+ --button-mobile-material-active: transparent;
76
+ --button-mobile-material-shadow: none;
77
+ --button-mobile-material-backdrop-filter: none;
78
+
79
+ flex-shrink: 0;
80
+ min-width: 44px;
81
+ margin-block: calc((var(--field-row-label-line-height) - 44px) / 2);
82
+ margin-inline-end: var(--field-group-title-padding-inline);
83
+ }
84
+
85
+ /* A link in the footer is tinted text, as iOS writes "Learn more…" under a group (5483, 5489) */
86
+ .Footer a[href] {
87
+ color: var(--link-primary-text-color);
88
+ text-decoration: none;
89
+ }
90
+
91
+ .Header > button[data-variant="ghost"]:not([data-uniform]):is([data-color="primary"], [data-color="secondary"]) {
92
+ --button-text-color: var(--link-primary-text-color);
93
+ --button-text-color-hover: var(--link-primary-text-color);
94
+ }
95
+
37
96
  .Body > [data-row] + [data-row],
38
97
  .Body > [data-sortable] > [data-row] + [data-row] {
39
98
  position: relative;
40
99
  border-top-width: 0;
41
100
  }
42
101
 
102
+ /* Full-row actions share the cell's bounds. Only their text and accessories
103
+ sit inside the row padding; the pressed surface must not shrink inward. */
104
+ .Body > [data-row] > button[data-block][data-variant="ghost"],
105
+ .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"] {
106
+ --button-mobile-material-scale: 1;
107
+ }
108
+
109
+ .Body > [data-row]:first-child > button[data-block][data-variant="ghost"]::before,
110
+ .Body > [data-sortable] > [data-row]:first-child > button[data-block][data-variant="ghost"]::before {
111
+ border-start-start-radius: var(--field-group-radius);
112
+ border-start-end-radius: var(--field-group-radius);
113
+ }
114
+
115
+ .Body > [data-row]:last-child > button[data-block][data-variant="ghost"]::before,
116
+ .Body > [data-sortable] > [data-row]:last-child > button[data-block][data-variant="ghost"]::before {
117
+ border-end-start-radius: var(--field-group-radius);
118
+ border-end-end-radius: var(--field-group-radius);
119
+ }
120
+
121
+ /* An open popup is not a held press. Keep selection and explicit glass
122
+ surfaces independent; the trigger remains focusable and expanded. */
123
+ .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 {
125
+ opacity: 0;
126
+ }
127
+
43
128
  /* Draw inside the row: 44px controls + 4px padding on each side stay 52px.
44
129
  Sortable owns ::before for its drag placeholder, so use ::after here. */
45
130
  .Body > [data-row] + [data-row]::after,
@@ -52,5 +137,19 @@
52
137
  background: var(--color-border);
53
138
  pointer-events: none;
54
139
  }
140
+ }/* Explanations belong below the group, with the list's own text insets. */.Footer {
141
+ padding: var(--field-group-footer-padding, 8px 0 0);
142
+ color: var(--field-group-description-color, var(--color-text-secondary));
143
+ font-size: var(--field-group-footer-font-size, var(--field-group-description-font-size));
144
+ line-height: var(--field-group-footer-line-height, var(--field-group-description-line-height));
55
145
  }
146
+
147
+ .Footer > p {
148
+ margin: 0;
149
+ }
150
+
151
+ /* Paragraphs stand apart; on a phone by one empty line, as in a Settings footer (5514) */
152
+ .Footer > p + p {
153
+ margin-top: var(--field-group-footer-paragraph-gap, calc(var(--spacing) * 2));
154
+ }
56
155
  }
@@ -1,4 +1,6 @@
1
1
  @layer components {.Root {
2
+ --button-size-3xl: var(--file-upload-height);
3
+
2
4
  position: relative;
3
5
  --field-error-padding-inline: 0;
4
6
  --field-error-margin-top: 0.25rem;
@@ -18,8 +20,10 @@
18
20
  font-size: 1rem;
19
21
  cursor: pointer;
20
22
  transition: border-color var(--floating-input-transition-duration) ease-in-out;
21
- }.AreaTrigger:hover:not(:disabled) {
22
- border-color: var(--floating-input-border-color-hover);
23
+ }@media (hover: hover) and (pointer: fine) {
24
+ .AreaTrigger:hover:where(:not(:root[data-input="touch"] *)):not(:disabled) {
25
+ border-color: var(--floating-input-border-color-hover);
26
+ }
23
27
  }.AreaTrigger[data-invalid] {
24
28
  border-color: var(--floating-input-border-color-invalid);
25
29
  }.AreaTrigger:disabled {
@@ -57,13 +61,13 @@
57
61
  }.FileIcon {
58
62
  display: flex;
59
63
  flex-shrink: 0;
60
- width: 16px;
61
- height: 16px;
64
+ width: 24px;
65
+ height: 24px;
62
66
  margin-left: -4px;
63
67
  color: var(--input-text-color);
64
68
  }.FileIcon svg {
65
- width: 16px;
66
- height: 16px;
69
+ width: 100%;
70
+ height: 100%;
67
71
  }.FileInfo {
68
72
  flex: 1;
69
73
  min-width: 0;
@@ -91,6 +95,9 @@
91
95
  line-height: 1.5;
92
96
  color: var(--color-text-tertiary);
93
97
  }.FileRemove {
98
+ --file-remove-background: var(--color-background-secondary-soft-alpha);
99
+
100
+ position: relative;
94
101
  display: flex;
95
102
  align-items: center;
96
103
  justify-content: center;
@@ -100,19 +107,105 @@
100
107
  margin: 0 -7px 0 0;
101
108
  border: none;
102
109
  border-radius: var(--radius-full);
103
- background-color: var(--color-background-secondary-soft-alpha);
110
+ background-color: transparent;
104
111
  cursor: pointer;
105
112
  color: var(--color-text-secondary-soft);
106
113
  flex-shrink: 0;
114
+ }.FileRemove::before {
115
+ content: "";
116
+ position: absolute;
117
+ width: 20px;
118
+ height: 20px;
119
+ border-radius: inherit;
120
+ background-color: var(--file-remove-background);
121
+ pointer-events: none;
107
122
  }.FileRemove svg {
123
+ position: relative;
108
124
  width: 15px;
109
125
  height: 15px;
110
- }.FileRemove:hover {
111
- background-color: var(--color-background-secondary-soft-alpha-hover);
126
+ }@media (hover: hover) and (pointer: fine) {
127
+ .FileRemove:hover:where(:not(:root[data-input="touch"] *)) {
128
+ --file-remove-background: var(--color-background-secondary-soft-alpha-hover);
129
+ }
112
130
  }.FileRemove:active {
113
- background-color: var(--color-background-secondary-soft-alpha-active);
131
+ --file-remove-background: var(--color-background-secondary-soft-alpha-active);
114
132
  }.FileRemove:disabled {
115
133
  pointer-events: none;
134
+ }/* File cards use the phone's two-line list role. The remove target occupies
135
+ its own space; the visible circle stays inside the 44px touch target. */@media (max-width: 767px) {
136
+ .Root {
137
+ --button-size-3xl: var(--control-size-3xl);
138
+ }
139
+
140
+ .FileList,
141
+ .FileCardGroup {
142
+ border-width: var(--file-upload-list-border-width, 1px);
143
+ background-color: var(--file-upload-list-background, transparent);
144
+ }
145
+
146
+ .FileItem {
147
+ position: relative;
148
+ min-height: 68px;
149
+ gap: 12px;
150
+ padding: 12px 16px;
151
+ }
152
+
153
+ .FileItem + .FileItem,
154
+ .FileList li + li > .FileItem {
155
+ border-top: 0;
156
+ }
157
+
158
+ .FileItem + .FileItem::after,
159
+ .FileList li + li > .FileItem::after {
160
+ content: "";
161
+ position: absolute;
162
+ top: 0;
163
+ inset-inline: 52px 16px;
164
+ height: 1px;
165
+ background-color: var(--color-border-primary-outline);
166
+ pointer-events: none;
167
+ }
168
+
169
+ .FileIcon {
170
+ margin-left: 0;
171
+ }
172
+
173
+ .FileNameStem,
174
+ .FileNameExt {
175
+ font-size: 17px;
176
+ line-height: 22px;
177
+ letter-spacing: normal;
178
+ }
179
+
180
+ .FileSize {
181
+ font-size: 15px;
182
+ line-height: 20px;
183
+ color: var(--mobile-label-secondary, var(--color-text-secondary));
184
+ }
185
+
186
+ .FileRemove {
187
+ width: 44px;
188
+ height: 44px;
189
+ margin: 0;
190
+ /* Align the visible 28px circle with the row's 16px content inset.
191
+ The transparent half-gutter still belongs to the 44px target. */
192
+ margin-inline-end: -8px;
193
+ }
194
+
195
+ .FileRemove::before {
196
+ width: 28px;
197
+ height: 28px;
198
+ }
199
+
200
+ .FileRemove svg {
201
+ width: 16px;
202
+ height: 16px;
203
+ }
204
+
205
+ .FileRemove:disabled {
206
+ --file-remove-background: var(--color-background-disabled);
207
+ color: var(--color-text-disabled);
208
+ }
116
209
  }.HiddenInput {
117
210
  position: absolute;
118
211
  width: 1px;
@@ -19,8 +19,10 @@
19
19
  background-color: var(--floating-input-background);
20
20
  cursor: var(--cursor, text);
21
21
  transition: border-color var(--floating-input-transition-duration) ease-in-out;
22
- }.FieldFootprint:hover:not([data-disabled]) {
23
- border-color: var(--input-state-color, var(--floating-input-border-color-hover));
22
+ }@media (hover: hover) and (pointer: fine) {
23
+ .FieldFootprint:hover:where(:not(:root[data-input="touch"] *)):not([data-disabled]) {
24
+ border-color: var(--input-state-color, var(--floating-input-border-color-hover));
25
+ }
24
26
  }.FieldFootprint[data-focused] {
25
27
  --input-state-color: var(--floating-input-border-color-focus);
26
28
  }.FieldFootprint[data-invalid] {
@@ -88,6 +90,7 @@
88
90
  position: relative;
89
91
  z-index: 1;
90
92
  }/* Input element */.Input {
93
+ min-width: var(--floating-input-control-min-width, auto);
91
94
  background-color: transparent;
92
95
  outline: none;
93
96
  border: 0;
@@ -113,6 +116,9 @@
113
116
  display: flex;
114
117
  align-items: center;
115
118
  justify-content: center;
119
+ flex-shrink: 0;
120
+ width: var(--floating-input-clear-size, 1em);
121
+ height: var(--floating-input-clear-size, 1em);
116
122
  padding: 0;
117
123
  margin: 0;
118
124
  border: none;
@@ -123,15 +129,38 @@
123
129
  position: relative;
124
130
  z-index: 1;
125
131
  transition: color 150ms ease;
126
- }.ClearButton:hover {
127
- color: var(--color-text);
132
+ }@media (hover: hover) and (pointer: fine) {
133
+ .ClearButton:hover:where(:not(:root[data-input="touch"] *)) {
134
+ color: var(--color-text);
135
+ }
136
+ }.ClearPhoneIcon {
137
+ display: none;
138
+ }@media (max-width: 767px) {
139
+ /* On a phone the clear button is the filled circle with a cross of iOS (xmark.circle.fill, a 17px circle in
140
+ the tertiary label: kit iOS 27 Text Fields 5433:15635), drawn with the PlexUI XCircleFilled icon, whose
141
+ circle is 20 of its 24px box. It is centred half the field height from the field's end, concentric with
142
+ the rounded end: 26px on the 52px field, where the kit centres it 26px from the edge of a row. */
143
+ .ClearIcon {
144
+ display: none;
145
+ }
146
+
147
+ .ClearPhoneIcon {
148
+ display: block;
149
+ width: calc(var(--floating-input-clear-glyph-size, 17px) * 1.2);
150
+ height: calc(var(--floating-input-clear-glyph-size, 17px) * 1.2);
151
+ color: var(--floating-input-clear-glyph-color, var(--mobile-label-tertiary, var(--color-text-tertiary)));
152
+ }
153
+
154
+ .ClearButton:last-child {
155
+ margin-inline-end: calc(var(--floating-input-height) / 2 - var(--floating-input-clear-size, 1em) / 2 - var(--floating-input-gutter) - 1px);
156
+ }
128
157
  }/* Password reveal toggle — circular ghost button hugging the right edge */.RevealButton {
129
158
  display: flex;
130
159
  align-items: center;
131
160
  justify-content: center;
132
161
  flex-shrink: 0;
133
- width: 32px;
134
- height: 32px;
162
+ width: var(--floating-input-reveal-size, 32px);
163
+ height: var(--floating-input-reveal-size, 32px);
135
164
  margin: 0 -10px 0 0;
136
165
  padding: 0;
137
166
  border: none;
@@ -145,9 +174,11 @@
145
174
  transition:
146
175
  color 150ms ease,
147
176
  background-color 150ms ease;
148
- }.RevealButton:hover {
149
- color: var(--color-text);
150
- background-color: var(--color-background-secondary-ghost-hover);
177
+ }@media (hover: hover) and (pointer: fine) {
178
+ .RevealButton:hover:where(:not(:root[data-input="touch"] *)) {
179
+ color: var(--color-text);
180
+ background-color: var(--color-background-secondary-ghost-hover);
181
+ }
151
182
  }/* End adornment slot */.EndAdornment {
152
183
  display: flex;
153
184
  align-items: center;
@@ -155,11 +186,11 @@
155
186
  position: relative;
156
187
  z-index: 1;
157
188
  }.ErrorMessage {
158
- color: var(--field-error-color);
159
- font-size: var(--field-error-font-size);
160
- line-height: var(--field-error-line-height);
161
- margin-top: 0.25rem;
162
- padding-inline-start: var(--floating-input-gutter);
189
+ /* Keep the desktop text-only error; mobile row context controls its icon. */
190
+ --field-error-icon-display: none;
191
+ --field-error-margin-bottom: 0px;
192
+ --field-error-padding-inline: var(--floating-input-gutter);
193
+ margin-top: var(--mobile-field-error-offset, 0.25rem);
163
194
  }.Description {
164
195
  color: var(--color-text-secondary);
165
196
  font-size: var(--field-error-font-size);
@@ -186,6 +217,7 @@
186
217
  .FieldFootprint[data-multiline].HasValue .LabelPositioner {
187
218
  transform: translateY(calc(var(--floating-input-height) / -2));
188
219
  }.Textarea {
220
+ min-width: var(--floating-input-control-min-width, auto);
189
221
  background-color: transparent;
190
222
  outline: none;
191
223
  border: 0;
@@ -24,15 +24,17 @@
24
24
  -webkit-user-select: none;
25
25
  -moz-user-select: none;
26
26
  user-select: none;
27
- }.FieldFootprint:hover:not([data-disabled]) {
28
- border-color: var(--input-state-color, var(--floating-input-border-color-hover));
27
+ }@media (hover: hover) and (pointer: fine) {
28
+ .FieldFootprint:hover:where(:not(:root[data-input="touch"] *)):not([data-disabled]) {
29
+ border-color: var(--input-state-color, var(--floating-input-border-color-hover));
30
+ }
29
31
  }.FieldFootprint[data-focused] {
30
32
  --input-state-color: var(--floating-input-border-color-focus);
31
33
  }.FieldFootprint[data-open] {
32
34
  --input-state-color: var(--floating-input-border-color-focus);
33
35
  }.FieldFootprint[data-invalid] {
34
36
  --input-state-color: var(--floating-input-border-color-invalid);
35
- }/* Focus ring */.FieldFootprint:focus-visible {
37
+ }/* Focus ring */.FieldFootprint:focus-visible:not([data-menu-pointer-focus]) {
36
38
  outline: 2px solid var(--color-ring);
37
39
  outline-offset: 1px;
38
40
  }/* Label container - positioned absolutely */.TypeableLabel {
@@ -115,13 +117,32 @@
115
117
  }/* Clear button — using Button component, sizing matches SelectControl 3xl */.Clear {
116
118
  --button-size: 24px;
117
119
  --button-icon-size: 16px;
120
+ /* Keeps its face on a phone, where a uniform 3xs button is otherwise the kit's 28px circle (touch.css). */
121
+ --button-uniform-size-3xs: var(--control-size-3xs);
122
+ --button-icon-size-3xs: var(--control-icon-size-xs);
118
123
 
119
124
  position: relative;
120
125
  opacity: 0.75;
121
- }.FieldFootprint:hover:not([data-disabled]) .Clear,
122
- .FieldFootprint[data-open] .Clear,
126
+ }.FieldFootprint[data-open] .Clear,
123
127
  .Clear:focus-visible {
124
128
  opacity: 1;
129
+ }/* On a phone the clear button takes the 44px target of iOS, as SelectControl's and the
130
+ FloatingLabelInput's do: the target takes layout space, the face and glyph keep their size. */@media (max-width: 767px) {
131
+ .Clear {
132
+ min-width: 44px;
133
+ min-height: 44px;
134
+ }
135
+
136
+ .Clear::before,
137
+ .Clear::after {
138
+ width: var(--button-size);
139
+ height: var(--button-size);
140
+ margin: auto;
141
+ }
142
+ }@media (hover: hover) and (pointer: fine) {
143
+ .FieldFootprint:hover:where(:not(:root[data-input="touch"] *)):not([data-disabled]) .Clear {
144
+ opacity: 1;
145
+ }
125
146
  }/* Dropdown icon — matches SelectControl 3xl: 9×13 */.DropdownIcon {
126
147
  position: relative;
127
148
  flex-shrink: 0;
@@ -130,18 +151,19 @@
130
151
  color: var(--color-text-secondary);
131
152
  opacity: 0.75;
132
153
  transition: opacity var(--floating-input-transition-duration) ease-in-out;
133
- }.FieldFootprint:hover:not([data-disabled]) .DropdownIcon {
134
- opacity: 1;
154
+ }@media (hover: hover) and (pointer: fine) {
155
+ .FieldFootprint:hover:where(:not(:root[data-input="touch"] *)):not([data-disabled]) .DropdownIcon {
156
+ opacity: 1;
157
+ }
135
158
  }.FieldFootprint[data-open] .DropdownIcon {
136
159
  opacity: 1;
137
- }/* Error message: the same plain line as FloatingLabelInput's */.ErrorMessage {
138
- color: var(--field-error-color);
139
- font-size: var(--field-error-font-size);
140
- line-height: var(--field-error-line-height);
141
- margin-top: 0.25rem;
142
- padding-inline-start: var(--floating-input-gutter);
160
+ }/* Shared error composition, with the desktop text-only appearance. */.ErrorMessage {
161
+ --field-error-icon-display: none;
162
+ --field-error-margin-bottom: 0.5rem;
163
+ --field-error-padding-inline: var(--floating-input-gutter);
164
+ margin-top: var(--mobile-field-error-offset, 0.25rem);
143
165
  }.ErrorMessage:last-child {
144
- margin-bottom: 0.5rem;
166
+ margin-bottom: var(--mobile-field-error-margin-bottom, 0.5rem);
145
167
  }/* =============================================
146
168
  Shape: the rounded box of the other fields
147
169
  ============================================= */.Root:not([data-pill]) {
@@ -1,16 +1,18 @@
1
1
  @layer components {.LoadingIndicator {
2
2
  display: inline-block;
3
3
  position: relative;
4
- width: var(--indicator-size, 1em);
5
- height: var(--indicator-size, 1em);
6
- animation: rotate var(--indicator-rotate-duration, 0.8s) linear infinite;
4
+ width: var(--indicator-size, var(--indicator-default-size, 1em));
5
+ height: var(--indicator-size, var(--indicator-default-size, 1em));
6
+ container-name: plex-loading-indicator;
7
+ container-type: var(--indicator-container-type, normal);
8
+ animation: rotate var(--indicator-rotate-duration, 0.8s) var(--indicator-rotate-timing, linear) infinite;
7
9
  transition: opacity 0.15s ease;
8
10
  }
9
11
 
10
12
  .LoadingIndicator::before {
11
13
  position: absolute;
12
14
  inset: 0;
13
- display: block;
15
+ display: var(--indicator-ring-display, block);
14
16
  border: var(--indicator-stroke, 2px) solid var(--indicator-color, currentcolor);
15
17
  border-radius: 50%;
16
18
  content: "";
@@ -22,14 +24,54 @@
22
24
  position: absolute;
23
25
  top: 0;
24
26
  left: 50%;
25
- display: block;
27
+ display: var(--indicator-ring-display, block);
26
28
  width: var(--indicator-stroke, 2px);
27
29
  height: var(--indicator-stroke, 2px);
28
30
  border-radius: 100%;
29
31
  margin-left: calc(var(--indicator-stroke, 2px) * -1 / 2);
30
32
  background-color: var(--indicator-color, currentcolor);
31
33
  content: "";
32
- }@keyframes rotate {
34
+ }/* The iOS 27 kit Spinner (Progress Indicators 5425:3431): Regular 20 with 2.7 x 6.7px spokes, as here, Small 14
35
+ with 2 x 4 and Large 35 with 5 x 13, all fully rounded. These decorative spokes are enabled only by the
36
+ optional touch stylesheet; desktop keeps the original ring. */.Spoke {
37
+ position: absolute;
38
+ inset: 0;
39
+ display: var(--indicator-spoke-display, none);
40
+ pointer-events: none;
41
+ }
42
+
43
+ .Spoke::before {
44
+ position: absolute;
45
+ top: 0;
46
+ left: 50%;
47
+ width: var(--indicator-stroke, calc(4 / 30 * 100%));
48
+ height: calc(10 / 30 * 100%);
49
+ border-radius: calc(4 / 30 * 100cqw);
50
+ background-color: var(--indicator-color, currentcolor);
51
+ transform: translateX(-50%);
52
+ content: "";
53
+ }
54
+
55
+ .Spoke:nth-child(2) { transform: rotate(45deg); opacity: 0.15; }
56
+ .Spoke:nth-child(3) { transform: rotate(90deg); opacity: 0.27; }
57
+ .Spoke:nth-child(4) { transform: rotate(135deg); opacity: 0.39; }
58
+ .Spoke:nth-child(5) { transform: rotate(180deg); opacity: 0.51; }
59
+ .Spoke:nth-child(6) { transform: rotate(225deg); opacity: 0.63; }
60
+ .Spoke:nth-child(7) { transform: rotate(270deg); opacity: 0.75; }
61
+ .Spoke:nth-child(8) { transform: rotate(315deg); opacity: 0.87; }/* Small up to 16px (kit Small 14) and Large from 28px (kit Large 35). A size container also covers CSS sizes
62
+ and indicators nested in buttons. */@container plex-loading-indicator (max-width: 16px) {
63
+ .Spoke::before {
64
+ width: var(--indicator-stroke, calc(2 / 14 * 100%));
65
+ height: calc(4 / 14 * 100%);
66
+ border-radius: calc(2 / 14 * 100cqw);
67
+ }
68
+ }@container plex-loading-indicator (min-width: 28px) {
69
+ .Spoke::before {
70
+ width: var(--indicator-stroke, calc(5 / 35 * 100%));
71
+ height: calc(13 / 35 * 100%);
72
+ border-radius: calc(5 / 35 * 100cqw);
73
+ }
74
+ }@keyframes rotate {
33
75
  0% {
34
76
  transform: rotate(0deg);
35
77
  }