@plexui/styles 0.1.33 → 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 (63) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +14 -0
  2. package/dist/es/components/Alert/Alert.module.css +112 -1
  3. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +34 -0
  4. package/dist/es/components/Button/Button.module.css +70 -22
  5. package/dist/es/components/Card/Card.module.css +22 -6
  6. package/dist/es/components/Checkbox/Checkbox.module.css +26 -72
  7. package/dist/es/components/CodeBlock/CodeBlock.module.css +20 -0
  8. package/dist/es/components/ColorPicker/ColorPicker.module.css +396 -0
  9. package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
  10. package/dist/es/components/DataTable/DataTable.module.css +4 -0
  11. package/dist/es/components/DatePicker/Calendar.module.css +18 -5
  12. package/dist/es/components/DateRangePicker/Calendar.module.css +20 -2
  13. package/dist/es/components/DateRangePicker/Trigger.module.css +29 -1
  14. package/dist/es/components/Dialog/Dialog.module.css +212 -77
  15. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +31 -0
  16. package/dist/es/components/Field/Field.module.css +188 -23
  17. package/dist/es/components/FieldGroup/FieldGroup.module.css +59 -0
  18. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +21 -0
  19. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +16 -0
  20. package/dist/es/components/Indicator/LoadingIndicator.module.css +14 -7
  21. package/dist/es/components/Input/Input.module.css +69 -0
  22. package/dist/es/components/InputGroup/InputGroup.module.css +4 -0
  23. package/dist/es/components/Menu/Menu.module.css +278 -28
  24. package/dist/es/components/Page/Page.module.css +92 -24
  25. package/dist/es/components/PageControl/PageControl.module.css +81 -0
  26. package/dist/es/components/Popover/Popover.module.css +10 -1
  27. package/dist/es/components/Select/Select.module.css +53 -9
  28. package/dist/es/components/SelectControl/SelectControl.module.css +38 -3
  29. package/dist/es/components/Sidebar/Sidebar.module.css +276 -57
  30. package/dist/es/components/Slider/Slider.module.css +52 -45
  31. package/dist/es/components/Sortable/Sortable.module.css +7 -3
  32. package/dist/es/components/Stepper/Stepper.module.css +98 -0
  33. package/dist/es/components/TabBar/TabBar.module.css +233 -0
  34. package/dist/es/components/Tabs/Tabs.module.css +149 -2
  35. package/dist/es/components/Toast/Toast.module.css +50 -5
  36. package/dist/es/components/Toolbar/Toolbar.module.css +208 -18
  37. package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
  38. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  39. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  40. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  41. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  42. package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
  43. package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  44. package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
  45. package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
  46. package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  47. package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
  48. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  49. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  50. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  51. package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
  52. package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
  53. package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
  54. package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
  55. package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
  56. package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  57. package/dist/es/styles/katex-fonts/LICENSE +21 -0
  58. package/dist/es/styles/katex.min.css +666 -730
  59. package/dist/es/styles/mobile-materials.css +56 -14
  60. package/dist/es/styles/mobile-surfaces.css +39 -32
  61. package/dist/es/styles/touch.css +328 -90
  62. package/dist/es/styles/variables-components.css +232 -13
  63. package/package.json +1 -1
@@ -90,7 +90,7 @@
90
90
  width: var(--slider-thumb-width, 14px);
91
91
  height: var(--slider-thumb-height, 14px);
92
92
  border-radius: var(--slider-thumb-radius, 50%);
93
- background: var(--gray-0);
93
+ background: var(--slider-thumb-background, var(--gray-0));
94
94
  box-shadow: var(--slider-thumb-shadow, inset 0 0 0 2px var(--slider-range-color));
95
95
  cursor: grab;
96
96
  outline: none;
@@ -114,9 +114,11 @@
114
114
  align-items: center;
115
115
  justify-content: space-between;
116
116
  gap: 4px;
117
- margin-bottom: 8px;
117
+ min-height: var(--slider-label-height, var(--control-size-2xs));
118
+ margin-bottom: var(--slider-label-gap, 8px);
118
119
  color: var(--color-text);
119
- font-size: 14px;
120
+ font-size: var(--slider-label-font-size, var(--font-text-sm-size));
121
+ line-height: var(--slider-label-line-height, var(--font-text-sm-line-height));
120
122
  }.Reset {
121
123
  /* Ensures cursor switches back immediately after clicking reset button. */
122
124
  cursor: default;
@@ -127,50 +129,50 @@
127
129
  visibility: hidden;
128
130
  }
129
131
 
130
- /* Custom overrides outside the design system. Using the data attribute to win the specificity war. */
132
+ /* The 2xs ghost button stands as high as the value field beside it; its glyph is the reset arrow alone.
133
+ The data attribute wins over the Button's own size rules. */
131
134
  .Reset[data-size="2xs"] {
132
- width: var(--slider-reset-size, 22px);
133
- height: var(--slider-reset-size, 22px);
135
+ width: var(--slider-reset-size, var(--control-size-2xs));
136
+ height: var(--slider-reset-size, var(--control-size-2xs));
134
137
  }
135
138
 
136
139
  .Reset[data-size="2xs"] svg {
137
- width: 14px;
138
- height: 14px;
139
- }.SliderValue {
140
+ width: var(--slider-reset-icon-size, 14px);
141
+ height: var(--slider-reset-icon-size, 14px);
142
+ }/* The value is an outline field of the 2xs size (24px, 6px gutter, the Input's outline borders) that shows
143
+ its border on hover and focus; the value and its unit are one line of the label's size, the unit in the
144
+ secondary text a space apart, and the text lines up with the end of the track. */.SliderValue {
140
145
  overflow: hidden;
141
146
  display: flex;
142
- align-items: baseline;
147
+ align-items: center;
143
148
  justify-content: flex-end;
144
- gap: 2px;
145
- height: 26px;
146
- padding: 0 4px;
147
- border: 0.5px solid transparent;
148
- border-radius: var(--radius-sm);
149
- margin-right: -4px;
149
+ gap: var(--slider-value-unit-gap, 0.25em);
150
+ height: var(--slider-value-height, var(--control-size-2xs));
151
+ padding: 0 var(--slider-value-gutter, var(--control-gutter-2xs));
152
+ border: 1px solid transparent;
153
+ border-radius: var(--slider-value-radius, var(--control-radius-sm));
154
+ margin-inline-end: calc(-1 * var(--slider-value-gutter, var(--control-gutter-2xs)) - 1px);
150
155
  -webkit-appearance: none;
151
156
  -moz-appearance: none;
152
157
  appearance: none;
153
158
  background: transparent;
159
+ color: var(--slider-value-color, var(--color-text));
154
160
  cursor: text;
161
+ font-size: var(--slider-value-font-size, var(--font-text-sm-size));
162
+ line-height: var(--slider-value-line-height, var(--font-text-sm-line-height));
155
163
  outline: none;
156
- text-align: center;
157
- transition: border-color 250ms ease;
164
+ transition: border-color var(--transition-duration-basic) var(--transition-ease-basic);
158
165
  }
159
166
 
160
- @media (min-width: 768px) {
161
- .SliderValue {
162
- height: 22px;
163
- }
164
- }
165
-
166
167
  @media (hover: hover) and (pointer: fine) {
167
168
  .SliderWrap:hover:where(:not(:root[data-input="touch"] *)) .SliderValue:not(:focus-within) {
168
- border-color: var(--gray-200);
169
+ border-color: var(--slider-value-border-color-hover, var(--input-outline-border-color));
169
170
  }
170
171
  }
171
172
 
172
173
  .SliderValue:focus-within {
173
- border-color: var(--gray-500);
174
+ border-color: var(--slider-value-border-color-focus, var(--input-outline-border-color-focus));
175
+ color: var(--slider-value-color-focus, var(--color-text));
174
176
  }.ValueInput {
175
177
  height: 100%;
176
178
  padding: 0;
@@ -179,21 +181,14 @@
179
181
  -moz-appearance: none;
180
182
  appearance: none;
181
183
  background: transparent;
182
- color: var(--color-text);
183
- font-size: 16px;
184
+ color: inherit;
185
+ font: inherit;
184
186
  font-variant-numeric: tabular-nums;
185
187
  outline: none;
186
- text-align: left;
188
+ text-align: right;
187
189
  transition: width 100ms ease;
188
- }
189
-
190
- @media (min-width: 768px) {
191
- .ValueInput {
192
- font-size: 13px;
193
- }
194
- }.ValueUnit {
195
- color: var(--color-text-secondary);
196
- font-size: 12px;
190
+ }.ValueUnit {
191
+ color: var(--slider-unit-color, var(--color-text-secondary));
197
192
  -webkit-user-select: none;
198
193
  -moz-user-select: none;
199
194
  user-select: none;
@@ -217,25 +212,37 @@
217
212
  }/* =============================================
218
213
  Range display (read-only value for range mode)
219
214
  ============================================= */.RangeDisplay {
220
- color: var(--color-text);
221
- font-size: 13px;
215
+ color: var(--slider-value-color, var(--color-text));
216
+ font-size: var(--slider-value-font-size, var(--font-text-sm-size));
222
217
  font-variant-numeric: tabular-nums;
223
218
  white-space: nowrap;
224
- }/* Editable values and vertical rails are web adaptations, not native iOS controls.
225
- Their touch targets occupy normal flow without changing the painted track/thumb. */@media (max-width: 767px) {
219
+ }/* The label row is a web adaptation: iOS sliders have no label or editable value. On a phone it reads as the
220
+ label and value of an iOS list row (touch.css: 17px label, the value and unit in the secondary label), a
221
+ 44px line whose value and reset are touch targets. The value has no border, as the text fields of iOS
222
+ rows; while it is edited its text is the primary label. */@media (max-width: 767px) {
226
223
  .SliderValue {
227
- align-items: center;
228
224
  height: auto;
229
225
  min-height: 44px;
230
- margin-right: 0;
226
+ padding: 0;
227
+ border: 0;
228
+ margin-inline-end: 0;
231
229
  }
232
230
 
233
231
  .ValueInput {
234
232
  min-width: 44px;
235
233
  height: 44px;
236
- text-align: right;
237
234
  }
238
235
 
236
+ /* The reset is the row's accessory: its glyph alone on the 44px target in the secondary label, without the
237
+ button's face (three classes and the variant, over the Button's color rules in any sheet order). */
238
+ .SliderWrap .SliderLabel .Reset[data-variant="ghost"] {
239
+ color: var(--slider-reset-color, var(--color-text-secondary));
240
+ }
241
+
242
+ .SliderWrap .SliderLabel .Reset[data-variant="ghost"]::before {
243
+ visibility: hidden;
244
+ }
245
+
239
246
  .SliderWrap[data-orientation="vertical"] .Slider {
240
247
  width: max(44px, var(--slider-control-height, 44px));
241
248
  padding-right: 0;
@@ -12,15 +12,19 @@
12
12
  .Sortable[data-dragging] > * {
13
13
  transition: transform 200ms var(--cubic-enter);
14
14
  }
15
- }/* A row with a handle: the handle, then the row */.Sortable > :has(> .Handle) {
15
+ }/* A row with a handle: the handle, then the row. With touch.css a phone moves the handle to the end of the
16
+ row, where iOS puts its reorder control (--sortable-handle-order and the two margins). */.Sortable > :has(> .Handle) {
16
17
  display: flex;
17
18
  align-items: center;
18
19
  }.Sortable > :has(> .Handle) > :not(.Handle) {
19
20
  flex: 1;
20
21
  min-width: 0;
21
22
  }.Sortable > :has(> .Handle) > .Handle {
22
- margin-inline-start: var(--sortable-handle-inset);
23
- margin-inline-end: calc(var(--sortable-handle-inset) * -1);
23
+ order: var(--sortable-handle-order, 0);
24
+ margin-inline-start: var(--sortable-handle-margin-start, var(--sortable-handle-inset));
25
+ margin-inline-end: var(--sortable-handle-margin-end, calc(var(--sortable-handle-inset) * -1));
26
+ }/* Before a Field row a shown handle may reach into the row's own inline padding (touch.css: the kit's 12px from the value) */.Sortable[data-handles="true"] > :has(> .Handle) > .Handle:has(+ [data-slot="field"][data-row]) {
27
+ margin-inline-start: var(--sortable-handle-field-margin-start, var(--sortable-handle-margin-start, var(--sortable-handle-inset)));
24
28
  }/* =============================================
25
29
  Slot (the place a dragged item left, until the drop)
26
30
  ============================================= */.Sortable > [data-sortable-source] {
@@ -0,0 +1,98 @@
1
+ @layer components {/* Two segments that decrease and increase a value: a minus and a plus, a short separator between them, a
2
+ segment at the end of the range in the tertiary label. On a desktop one fill lies under both segments and a
3
+ pressed one darkens; on a phone (touch.css) each segment has its own fill, as in the iOS 27 kit Stepper, and a
4
+ pressed one or one at the end of the range takes the lighter fill. Sizes and colors are tokens: the PlexUI
5
+ control size on a desktop, the kit's 92 x 32 capsule on a phone. */.Stepper {
6
+ position: relative;
7
+ display: inline-flex;
8
+ flex-shrink: 0;
9
+ align-items: stretch;
10
+ vertical-align: middle;
11
+ height: var(--stepper-height);
12
+ border-radius: var(--stepper-radius);
13
+ background: var(--stepper-background);
14
+ -moz-user-select: none;
15
+ user-select: none;
16
+ -webkit-user-select: none;
17
+ -webkit-touch-callout: none;
18
+ touch-action: manipulation;
19
+ -webkit-tap-highlight-color: transparent;
20
+ }
21
+
22
+ .Stepper[data-pill] {
23
+ border-radius: calc(var(--stepper-height) / 2);
24
+ }
25
+
26
+ .Stepper:focus {
27
+ outline: none;
28
+ }
29
+
30
+ .Stepper:focus-visible {
31
+ outline: 2px solid var(--color-ring);
32
+ outline-offset: 2px;
33
+ }.Segment {
34
+ position: relative;
35
+ display: grid;
36
+ place-items: center;
37
+ flex-shrink: 0;
38
+ width: var(--stepper-segment-width);
39
+ margin: 0;
40
+ padding: 0;
41
+ border: 0;
42
+ border-radius: inherit;
43
+ background: var(--stepper-segment-background, transparent);
44
+ color: var(--stepper-icon-color);
45
+ font: inherit;
46
+ cursor: pointer;
47
+ z-index: 1;
48
+ transition: background-color var(--stepper-transition-duration, 150ms) ease;
49
+ }
50
+
51
+ .Segment:first-child {
52
+ border-start-end-radius: 0;
53
+ border-end-end-radius: 0;
54
+ }
55
+
56
+ .Segment:last-of-type {
57
+ border-start-start-radius: 0;
58
+ border-end-start-radius: 0;
59
+ }
60
+ @media (hover: hover) and (pointer: fine) {
61
+ .Segment:hover:where(:not(:root[data-input="touch"] *)):not([data-disabled]):not([data-pressed]) {
62
+ background: var(--stepper-segment-background-hover);
63
+ }
64
+ }
65
+
66
+ /* Hover gives way to the pressed fill, which a pointer always presses over. */
67
+
68
+ .Segment[data-pressed] {
69
+ background: var(--stepper-segment-background-active);
70
+ transition-duration: 0ms;
71
+ }
72
+
73
+ .Segment[data-disabled] {
74
+ background: var(--stepper-segment-background-disabled, var(--stepper-segment-background, transparent));
75
+ color: var(--stepper-icon-disabled-color);
76
+ cursor: default;
77
+ }
78
+
79
+ /* The pressed fill stays on the visible segment; the target reaches 44px where the control is shorter. */
80
+ .Segment::after {
81
+ position: absolute;
82
+ inset: min(0px, calc((var(--stepper-height) - var(--stepper-target-size, 0px)) / 2)) 0;
83
+ content: "";
84
+ }/* As in the kit, the separator sits under the two segments at the center and adds no width: 46 + 46 = 92. */.Separator {
85
+ position: absolute;
86
+ top: var(--stepper-separator-inset);
87
+ left: 50%;
88
+ width: 1px;
89
+ height: calc(var(--stepper-height) - 2 * var(--stepper-separator-inset));
90
+ border-radius: 1px;
91
+ background: var(--stepper-separator-color);
92
+ transform: translateX(-50%);
93
+ pointer-events: none;
94
+ }.Icon {
95
+ width: var(--stepper-icon-size);
96
+ height: var(--stepper-icon-size);
97
+ }
98
+ }
@@ -0,0 +1,233 @@
1
+ @layer components {/* The tab bar of a phone screen, after the iOS 26 kit Tab Bar - iPhone (507:24689). A desktop layout navigates
2
+ with a Sidebar or Tabs, so the bar never renders there. */.TabBar {
3
+ display: none;
4
+ }@media (max-width: 767.98px) {
5
+ /* 402 x 95: the capsule 62 tall, 21px from the sides and the bottom, 12px below the top of the bar. */
6
+ .TabBar {
7
+ position: relative;
8
+ z-index: 5;
9
+ display: flex;
10
+ flex: none;
11
+ align-items: flex-end;
12
+ justify-content: center;
13
+ gap: var(--tab-bar-gap);
14
+ min-width: 0;
15
+ padding: var(--tab-bar-padding-top) var(--tab-bar-gutter) var(--tab-bar-padding-bottom);
16
+ color: var(--color-text);
17
+
18
+ /* With a search tab, or minimized, the capsule keeps to the leading edge and search to the trailing one. */
19
+ }
20
+
21
+ /* The soft scroll edge of a bottom Toolbar: the canvas fades out over content under the bar. */
22
+ .TabBar::before {
23
+ position: absolute;
24
+ z-index: -1;
25
+ inset: -16px 0 0;
26
+ background: var(--tab-bar-edge-background, var(--page-background));
27
+ backdrop-filter: blur(var(--toolbar-edge-blur-small));
28
+ content: "";
29
+ -webkit-mask-image: linear-gradient(to top, #000, transparent);
30
+ mask-image: linear-gradient(to top, #000, transparent);
31
+ pointer-events: none;
32
+ transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
33
+ }
34
+
35
+ /* The other backgrounds of a bar (`BarBackground`) fill the bar behind the capsule: hard and solid
36
+ opaque, glass translucent and shown once content is under it. Hard and glass then draw a line on
37
+ the bar's top edge. */
38
+ .TabBar:not([data-background="soft"])::before {
39
+ inset: 0;
40
+ backdrop-filter: none;
41
+ -webkit-mask-image: none;
42
+ mask-image: none;
43
+ }
44
+
45
+ .TabBar[data-background="hard"]::before {
46
+ border-top: 1px solid transparent;
47
+ }
48
+
49
+ .TabBar[data-background="glass"]::before {
50
+ border-top: 0.5px solid var(--page-bar-line);
51
+ background: color-mix(in srgb, var(--tab-bar-edge-background, var(--page-background)) var(--page-bar-veil-opacity), transparent);
52
+ backdrop-filter: var(--page-bar-glass-filter);
53
+ opacity: 0;
54
+ }
55
+
56
+ .TabBar[data-content-below][data-background="hard"]::before {
57
+ border-top-color: var(--page-bar-hard-line);
58
+ }
59
+
60
+ .TabBar[data-content-below][data-background="glass"]::before {
61
+ opacity: 1;
62
+ }
63
+ .TabBar[data-search],
64
+ .TabBar[data-minimized] {
65
+ justify-content: space-between;
66
+ }
67
+
68
+ .TabBar[data-minimized] {
69
+ padding-top: var(--tab-bar-minimized-padding-top);
70
+ }
71
+
72
+ /* The glass capsule (Liquid Glass Regular, the shared mobile glass with its raised shadow). Tabs are 94px
73
+ apart at most and share the width when there are more: four or five fill 360px, three take 302. The search
74
+ circle names both classes to outrank the reset of `.Item`. */
75
+ .Tabs,
76
+ .Item.Search {
77
+ border-radius: var(--radius-full);
78
+ background-color: var(--mobile-glass-background);
79
+ background-image: var(--mobile-glass-sheen);
80
+ box-shadow: var(--mobile-glass-shadow-raised);
81
+ backdrop-filter: var(--mobile-glass-backdrop-filter);
82
+ }
83
+
84
+ .Tabs {
85
+ display: flex;
86
+ flex: 0 1 auto;
87
+ min-width: 0;
88
+ padding: var(--tab-bar-capsule-padding-block) var(--tab-bar-capsule-padding-inline);
89
+ }
90
+
91
+ .Item {
92
+ position: relative;
93
+ isolation: isolate;
94
+ display: flex;
95
+ /* A width rather than a basis: the capsule sizes itself from it, then the tabs shrink together. */
96
+ flex: 0 1 auto;
97
+ flex-direction: column;
98
+ align-items: center;
99
+ gap: 1px;
100
+ width: var(--tab-bar-item-width);
101
+ min-width: 0;
102
+ height: var(--tab-bar-item-height);
103
+ margin: 0;
104
+ padding: 6px 0 7px;
105
+ border: 0;
106
+ border-radius: var(--radius-full);
107
+ background: none;
108
+ color: var(--tab-bar-item-color);
109
+ font: inherit;
110
+ text-decoration: none;
111
+ cursor: pointer;
112
+ -webkit-tap-highlight-color: transparent;
113
+ -webkit-touch-callout: none;
114
+ -moz-user-select: none;
115
+ user-select: none;
116
+ -webkit-user-select: none;
117
+ }
118
+
119
+ /* The selection pill reaches 6px past the tab and 4px from the capsule, as the kit's Selection does. */
120
+ .Item::before {
121
+ position: absolute;
122
+ z-index: -1;
123
+ inset: 0 calc(-1 * var(--tab-bar-pill-outset));
124
+ border-radius: var(--radius-full);
125
+ background: transparent;
126
+ content: "";
127
+ }
128
+
129
+ .Item[data-selected] {
130
+ color: var(--tab-bar-item-color-selected);
131
+ }
132
+
133
+ .Item[data-selected]::before {
134
+ background: var(--tab-bar-item-background-selected);
135
+ }
136
+
137
+ .Item[data-disabled] {
138
+ color: var(--color-text-disabled);
139
+ cursor: default;
140
+ }
141
+
142
+ @media (hover: hover) and (pointer: fine) {
143
+ .Item:hover:where(:not(:root[data-input="touch"] *)):not([data-selected], [data-disabled]) {
144
+ color: var(--tab-bar-item-color-selected);
145
+ }
146
+ }
147
+
148
+ .Item:focus {
149
+ outline: none;
150
+ }
151
+
152
+ .Item:focus-visible {
153
+ outline: 2px solid var(--color-ring);
154
+ outline-offset: -2px;
155
+ }
156
+
157
+ .Icon {
158
+ display: grid;
159
+ flex: none;
160
+ place-items: center;
161
+ height: var(--tab-bar-icon-box);
162
+ }
163
+
164
+ .Icon > svg {
165
+ width: var(--tab-bar-icon-size);
166
+ height: var(--tab-bar-icon-size);
167
+ }
168
+
169
+ .Label {
170
+ max-width: 100%;
171
+ overflow: hidden;
172
+ font-size: var(--tab-bar-label-font-size);
173
+ font-weight: var(--tab-bar-label-font-weight);
174
+ line-height: var(--tab-bar-label-line-height);
175
+ text-overflow: ellipsis;
176
+ white-space: nowrap;
177
+ }
178
+
179
+ /* The separate search tab: a 62px glass circle, its pill 54. */
180
+ .Item.Search {
181
+ flex: none;
182
+ justify-content: center;
183
+ width: var(--tab-bar-search-size);
184
+ height: var(--tab-bar-search-size);
185
+ padding: 0;
186
+ }
187
+
188
+ .Item.Search::before {
189
+ inset: var(--tab-bar-capsule-padding-block);
190
+ }
191
+
192
+ /* Minimized: the capsule is a 48px circle with the selected tab's symbol in the primary label, and search a
193
+ 48px circle too; the other tabs hide. Both circles keep their bottom edge. */
194
+ .TabBar[data-minimized] .Tabs {
195
+ flex: none;
196
+ padding: var(--tab-bar-capsule-padding-block);
197
+ }
198
+
199
+ .TabBar[data-minimized] .Tabs > .Item {
200
+ display: none;
201
+ }
202
+
203
+ .TabBar[data-minimized] .Tabs > .Item[data-selected],
204
+ .TabBar[data-minimized] .Tabs:not(:has(> .Item[data-selected])) > .Item:first-child {
205
+ display: flex;
206
+ flex: none;
207
+ justify-content: center;
208
+ width: calc(var(--tab-bar-minimized-size) - 2 * var(--tab-bar-capsule-padding-block));
209
+ height: calc(var(--tab-bar-minimized-size) - 2 * var(--tab-bar-capsule-padding-block));
210
+ padding: 0;
211
+ color: var(--tab-bar-item-color-minimized);
212
+ }
213
+
214
+ .TabBar[data-minimized] .Tabs > .Item[data-selected]::before, .TabBar[data-minimized] .Tabs:not(:has(> .Item[data-selected])) > .Item:first-child::before {
215
+ background: transparent;
216
+ }
217
+
218
+ /* The label still names the tab for assistive technology. */
219
+ .TabBar[data-minimized] .Tabs .Label {
220
+ position: absolute;
221
+ width: 1px;
222
+ height: 1px;
223
+ overflow: hidden;
224
+ clip-path: inset(50%);
225
+ white-space: nowrap;
226
+ }
227
+
228
+ .TabBar[data-minimized] .Item.Search {
229
+ width: var(--tab-bar-minimized-size);
230
+ height: var(--tab-bar-minimized-size);
231
+ }
232
+ }
233
+ }
@@ -704,9 +704,156 @@
704
704
  margin-inline-start: auto;
705
705
  padding-inline-start: calc(var(--spacing) * 3);
706
706
  color: var(--color-text-secondary);
707
- }/* The native segment already includes its final gutter; pill scaling is desktop-only. */@media (max-width: 767px) {
708
- .Tabs[data-variant="segmented"][data-orientation="horizontal"] .Tab {
707
+ }/* Shown only on a phone, in vertical tabs (below). */.Tab > .TabCheckmark {
708
+ display: none;
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.
712
+ ============================================= */@media (max-width: 767px) {
713
+ /* Horizontal tabs of either variant are the segmented control. Its segments share one width, as
714
+ UISegmentedControl divides its width (every kit example is 2 to 5 equal segments); a segment
715
+ never narrows below its content, so tabs that do not fit still scroll. A block control fills its
716
+ container, as the 370px kit examples do, and its labels shorten instead. */
717
+ .Tabs:where([data-orientation="horizontal"]) {
718
+ display: inline-grid;
719
+ grid-auto-columns: minmax(max-content, 1fr);
720
+ grid-auto-flow: column;
721
+ }
722
+
723
+ .Tabs:where([data-orientation="horizontal"][data-block]) {
724
+ display: grid;
725
+ grid-auto-columns: minmax(0, 1fr);
726
+ }
727
+
728
+ .Tabs:where([data-variant="underline"][data-orientation="horizontal"]) {
729
+ --segmented-control-option-radius: calc(var(--segmented-control-radius) - var(--segmented-control-gutter));
730
+
731
+ gap: var(--segmented-control-gap);
732
+ padding: var(--segmented-control-gutter);
733
+ border: 0;
734
+ border-radius: var(--segmented-control-radius);
735
+ background: var(--segmented-control-background);
736
+ }
737
+
738
+ .Tabs:where([data-variant="underline"][data-orientation="horizontal"]) > .TabsThumb {
739
+ top: var(--segmented-control-gutter);
740
+ bottom: var(--segmented-control-gutter);
741
+ height: auto;
742
+ border-radius: var(--segmented-control-option-radius);
743
+ background: var(--segmented-control-thumb-background);
744
+ box-shadow: var(--segmented-control-thumb-shadow);
745
+ }
746
+
747
+ /* The capsule's glass and ends (touch.css): the sheen, rim and blur of the shared mobile glass, segments 8px
748
+ from the ends and the selection 4px past its segment toward them, as in the kit. Without touch.css the track
749
+ keeps its fill and the selection its segment. */
750
+ .Tabs:where([data-orientation="horizontal"]) {
751
+ padding-inline: calc(var(--segmented-control-gutter) + var(--segmented-control-thumb-outset, 0px));
752
+ background-image: var(--segmented-control-sheen, none);
753
+ box-shadow: var(--segmented-control-shadow, none);
754
+ backdrop-filter: var(--segmented-control-backdrop-filter, none);
755
+ }
756
+
757
+ /* The script sets the thumb to its segment's box from the left edge, so the outset is physical. */
758
+ .Tabs:where([data-orientation="horizontal"]) > .TabsThumb {
759
+ box-sizing: content-box;
760
+ margin-left: calc(-1 * var(--segmented-control-thumb-outset, 0px));
761
+ padding-inline: var(--segmented-control-thumb-outset, 0px);
762
+ }
763
+
764
+ /* The native segment already includes its final gutter; pill scaling is desktop-only. */
765
+ /* The selected label is primary and the others secondary, as the kit's glass control draws them (26 and 114)
766
+ and Safari's tab groups show (0 and 109, iOS3 IMG_5562/5566), so the label keeps the base colors (touch.css
767
+ gives secondary the phone role). No tracking: the system font applies its own, as native text widths show
768
+ (17pt "All Inboxes" 241 at @3x in Mail, 242 in Chromium without it). */
769
+ .Tabs[data-orientation="horizontal"] .Tab {
709
770
  padding-inline: var(--segmented-control-option-gutter);
771
+ border-radius: var(--segmented-control-option-radius);
772
+ }
773
+
774
+ /* Vertical tabs of either variant are an inset grouped list (kit Lists, Row 550:50430): rows of
775
+ 52px with 17px text from the 16px margin, a symbol in a 28px column 8px before the text, a
776
+ separator from the text and the 17pt checkmark (22px) at the end of the selected row, as iOS
777
+ marks the one choice of a list. The selection keeps the regular weight. */
778
+ .Tabs:where([data-orientation="vertical"]) {
779
+ --segmented-control-icon-size: 22px;
780
+ --segmented-control-icon-offset: 3px;
781
+ --segmented-control-content-gap: 11px;
782
+ --option-badge-size: var(--badge-size-sm);
783
+ --option-badge-gutter: var(--badge-gutter-sm);
784
+ --option-badge-font-size: var(--badge-font-size-sm);
785
+ --option-badge-font-weight: var(--badge-font-weight-sm);
786
+ --option-badge-tracking: var(--badge-tracking-sm);
787
+ --option-badge-radius: var(--badge-radius-sm);
788
+
789
+ width: 100%;
790
+ gap: 0;
791
+ padding: 0;
792
+ border: 0;
793
+ border-radius: var(--field-group-radius, 26px);
794
+ background: var(--mobile-surface-grouped-secondary, var(--color-surface));
795
+ font-size: var(--field-row-label-font-size, 17px);
796
+ font-weight: var(--font-weight-normal);
797
+ line-height: var(--field-row-label-line-height, 22px);
798
+ }
799
+
800
+ .Tabs:where([data-orientation="vertical"]) > .TabsThumb {
801
+ display: none;
802
+ }
803
+
804
+ .Tabs[data-orientation="vertical"] .Tab {
805
+ gap: 16px;
806
+ height: auto;
807
+ min-height: var(--field-row-min-height, 52px);
808
+ padding: 0 var(--mobile-layout-margin, 16px);
809
+ border-radius: 0;
810
+ color: var(--color-text);
811
+ font-weight: inherit;
812
+ }
813
+
814
+ /* The pressed row, clipped by the list's corners */
815
+ .Tabs[data-orientation="vertical"] .Tab::before {
816
+ position: absolute;
817
+ inset: 0;
818
+ border-radius: 0;
819
+ background: var(--segmented-control-option-highlight-background-color);
820
+ content: "";
821
+ opacity: 0;
822
+ pointer-events: none;
823
+ transform: none;
824
+ }
825
+
826
+ .Tabs[data-orientation="vertical"] .Tab:where(:not([data-disabled])):active::before {
827
+ opacity: 1;
828
+ transform: none;
829
+ }
830
+
831
+ .Tabs[data-orientation="vertical"] .Tab + .Tab::after {
832
+ position: absolute;
833
+ top: 0;
834
+ inset-inline: var(--mobile-layout-margin, 16px) 0;
835
+ height: 1px;
836
+ background: var(--color-border);
837
+ content: "";
838
+ pointer-events: none;
839
+ }
840
+
841
+ .Tabs[data-orientation="vertical"] .Tab:has(> .TabContent > svg:first-child:not(:only-child)) + .Tab::after,
842
+ .Tabs[data-orientation="vertical"] .Tab + .Tab:has(> .TabContent > svg:first-child:not(:only-child))::after {
843
+ inset-inline-start: calc(var(--mobile-layout-margin, 16px) + 36px);
844
+ }
845
+
846
+ .Tabs[data-orientation="vertical"] .Tab > .TabCheckmark {
847
+ display: block;
848
+ flex: none;
849
+ width: 22px;
850
+ height: 22px;
851
+ margin-inline-start: auto;
852
+ visibility: hidden;
853
+ }
854
+
855
+ .Tabs[data-orientation="vertical"] .Tab[data-state="on"] > .TabCheckmark {
856
+ visibility: visible;
710
857
  }
711
858
  }@media (prefers-reduced-motion: reduce) {
712
859
  .Tabs {