@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
@@ -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
+ }
@@ -33,8 +33,10 @@
33
33
  border-bottom: none;
34
34
  }
35
35
 
36
- .TableBody :where(.TableRow):hover {
37
- background-color: var(--table-row-hover-background);
36
+ @media (hover: hover) and (pointer: fine) {
37
+ .TableBody :where(.TableRow):hover:where(:not(:root[data-input="touch"] *)) {
38
+ background-color: var(--table-row-hover-background);
39
+ }
38
40
  }.TableRow {}.TableCell {
39
41
  padding: var(--table-cell-padding);
40
42
  vertical-align: middle;
@@ -1,6 +1,8 @@
1
1
  @layer components {.Tabs {
2
2
  position: relative;
3
3
  display: inline-flex;
4
+ min-width: 0;
5
+ max-width: 100%;
4
6
  flex-wrap: nowrap;
5
7
  gap: var(--segmented-control-gap);
6
8
  font-size: var(--segmented-control-font-size);
@@ -322,9 +324,10 @@
322
324
  padding: 0 var(--segmented-control-option-gutter);
323
325
  color: var(--color-text-secondary);
324
326
  cursor: pointer;
325
- line-height: 1;
327
+ line-height: var(--segmented-control-line-height, 1);
326
328
  display: flex;
327
329
  flex-shrink: 0;
330
+ min-width: var(--tabs-block-min-width, auto);
328
331
  align-items: center;
329
332
  justify-content: center;
330
333
  transition-duration: var(--transition-duration-basic);
@@ -348,7 +351,7 @@
348
351
  }
349
352
 
350
353
  :where(.Tabs[data-variant="segmented"][data-pill]) .Tab {
351
- min-width: calc(var(--segmented-control-size) - 2 * var(--segmented-control-gutter));
354
+ min-width: var(--tabs-block-min-width, calc(var(--segmented-control-size) - 2 * var(--segmented-control-gutter)));
352
355
  padding: 0 calc(var(--segmented-control-option-gutter) * var(--control-gutter-pill-scaling));
353
356
  }
354
357
 
@@ -371,11 +374,11 @@
371
374
  :where(.Tabs[data-variant="segmented"]) .Tab:active::before {
372
375
  transform: scale(var(--scale), 0.97);
373
376
  }
374
- @media (hover: hover) and (pointer: fine) {:where(.Tabs[data-variant="segmented"]) .Tab[data-state="off"]:where(:not([disabled])):hover {
377
+ @media (hover: hover) and (pointer: fine) {:where(.Tabs[data-variant="segmented"]) .Tab[data-state="off"]:where(:not([disabled])):hover:where(:not(:root[data-input="touch"] *)) {
375
378
  color: var(--color-text);
376
379
  }
377
380
 
378
- :where(.Tabs[data-variant="segmented"]) .Tab[data-state="off"]:where(:not([disabled])):hover::before {
381
+ :where(.Tabs[data-variant="segmented"]) .Tab[data-state="off"]:where(:not([disabled])):hover:where(:not(:root[data-input="touch"] *))::before {
379
382
  opacity: 0.5;
380
383
  }
381
384
  }
@@ -399,7 +402,7 @@
399
402
  :where(.Tabs[data-variant="underline"][data-block]) .Tab {
400
403
  flex: 1;
401
404
  }
402
- @media (hover: hover) and (pointer: fine) {:where(.Tabs[data-variant="underline"]) .Tab[data-state="off"]:where(:not([disabled])):hover {
405
+ @media (hover: hover) and (pointer: fine) {:where(.Tabs[data-variant="underline"]) .Tab[data-state="off"]:where(:not([disabled])):hover:where(:not(:root[data-input="touch"] *)) {
403
406
  color: var(--color-text);
404
407
  }
405
408
  }
@@ -432,6 +435,7 @@
432
435
  Shared states
433
436
  ============================================= */
434
437
  .Tab[data-state="on"] {
438
+ font-weight: var(--segmented-control-active-font-weight, inherit);
435
439
  color: var(--color-text);
436
440
  }
437
441
 
@@ -439,6 +443,10 @@
439
443
  outline: 2px solid var(--color-ring);
440
444
  }
441
445
 
446
+ :where(.Tabs[data-variant="underline"]) .Tab[data-state="on"]:focus-visible {
447
+ outline-offset: -2px;
448
+ }
449
+
442
450
  .Tab[data-disabled] {
443
451
  cursor: not-allowed;
444
452
  opacity: 0.5;
@@ -513,6 +521,8 @@
513
521
  ============================================= */.TabContent {
514
522
  position: relative;
515
523
  display: flex;
524
+ min-width: var(--tabs-block-min-width, auto);
525
+ max-width: var(--tabs-block-content-max-width, none);
516
526
  align-items: center;
517
527
  gap: var(--segmented-control-content-gap);
518
528
  }
@@ -523,10 +533,20 @@
523
533
  height: var(--segmented-control-icon-size);
524
534
  }
525
535
 
536
+ .TabContent > svg,
537
+ .TabContent > .TabBadge {
538
+ flex-shrink: var(--tabs-block-accessory-shrink, 1);
539
+ }
540
+
526
541
  /* Negative margin for icon when followed by text */
527
542
  .TabContent svg:where(:first-child:not(:only-child)) {
528
543
  margin-left: var(--segmented-control-icon-offset);
529
- }/* =============================================
544
+ }.TabLabel {
545
+ min-width: var(--tabs-block-min-width, auto);
546
+ overflow: var(--tabs-block-label-overflow, visible);
547
+ white-space: var(--tabs-block-label-white-space, inherit);
548
+ text-overflow: ellipsis;
549
+ }/* =============================================
530
550
  Tab Badge (CSS-only, no Badge component)
531
551
  ============================================= */.TabBadge {
532
552
  display: inline-flex;
@@ -684,5 +704,165 @@
684
704
  margin-inline-start: auto;
685
705
  padding-inline-start: calc(var(--spacing) * 3);
686
706
  color: var(--color-text-secondary);
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 {
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;
857
+ }
858
+ }@media (prefers-reduced-motion: reduce) {
859
+ .Tabs {
860
+ --tabs-thumb-transition-duration: 0ms;
861
+ }
862
+
863
+ .Tab,
864
+ .Tab::before {
865
+ transition-duration: 0ms;
866
+ }
687
867
  }
688
868
  }
@@ -35,9 +35,9 @@
35
35
  .Container[data-disabled] {
36
36
  pointer-events: none;
37
37
  }
38
- @media (hover: hover) and (pointer: fine) {.Container:not([data-disabled]):hover, :where([data-theme="light"]) .Container:not([data-disabled]):hover {
38
+ @media (hover: hover) and (pointer: fine) {.Container:not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)), :where([data-theme="light"]) .Container:not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) {
39
39
  box-shadow: 0 0 0 1px var(--gray-300) inset;
40
- }:where([data-theme="dark"]) .Container:not([data-disabled]):hover {
40
+ }:where([data-theme="dark"]) .Container:not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) {
41
41
  box-shadow: 0 0 0 1px var(--gray-500) inset;
42
42
  }
43
43
  }
@@ -74,7 +74,7 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
74
74
  /* 20 + 4 + 4 = 28 */
75
75
  .Container:where([data-size="sm"]) {
76
76
  --tag-input-font-size: var(--control-font-size-md);
77
- --tag-input-height: 20px;
77
+ --tag-input-height: calc(var(--control-size-sm, 28px) - 2 * var(--tag-input-tag-spacing));
78
78
  --tag-input-tag-spacing: 4px;
79
79
  --tag-input-tag-gutter: var(--control-gutter-2xs);
80
80
  --tag-input-radius: var(--control-radius-sm);
@@ -83,7 +83,7 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
83
83
  /* 20 + 6 + 6 = 32 */
84
84
  .Container:where([data-size="md"]) {
85
85
  --tag-input-font-size: var(--control-font-size-md);
86
- --tag-input-height: 20px;
86
+ --tag-input-height: calc(var(--control-size-md, 32px) - 2 * var(--tag-input-tag-spacing));
87
87
  --tag-input-tag-spacing: 6px;
88
88
  --tag-input-radius: var(--control-radius-md);
89
89
  }
@@ -91,7 +91,7 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
91
91
  /* 24 + 6 + 6 = 36 */
92
92
  .Container:where([data-size="lg"]) {
93
93
  --tag-input-font-size: var(--control-font-size-md);
94
- --tag-input-height: 24px;
94
+ --tag-input-height: calc(var(--control-size-lg, 36px) - 2 * var(--tag-input-tag-spacing));
95
95
  --tag-input-tag-spacing: 6px;
96
96
  --tag-input-radius: var(--control-radius-lg);
97
97
  }
@@ -101,7 +101,7 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
101
101
  /* SelectControl xl uses control-font-size-md (not -lg), so the chip + input
102
102
  text inside TagInput xl matches Select xl. */
103
103
  --tag-input-font-size: var(--control-font-size-md);
104
- --tag-input-height: 24px;
104
+ --tag-input-height: calc(var(--control-size-xl, 40px) - 2 * var(--tag-input-tag-spacing));
105
105
  --tag-input-tag-spacing: 8px;
106
106
  --tag-input-radius: var(--control-radius-xl);
107
107
  }
@@ -109,7 +109,7 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
109
109
  /* 28 + 8 + 8 = 44 */
110
110
  .Container:where([data-size="2xl"]) {
111
111
  --tag-input-font-size: var(--control-font-size-lg);
112
- --tag-input-height: 28px;
112
+ --tag-input-height: calc(var(--control-size-2xl, 44px) - 2 * var(--tag-input-tag-spacing));
113
113
  --tag-input-tag-spacing: 8px;
114
114
  --tag-input-radius: var(--control-radius-xl);
115
115
  }
@@ -117,7 +117,7 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
117
117
  /* 32 + 8 + 8 = 48 */
118
118
  .Container:where([data-size="3xl"]) {
119
119
  --tag-input-font-size: var(--control-font-size-lg);
120
- --tag-input-height: 32px;
120
+ --tag-input-height: calc(var(--control-size-3xl, 48px) - 2 * var(--tag-input-tag-spacing));
121
121
  --tag-input-tag-spacing: 8px;
122
122
  --tag-input-radius: var(--control-radius-xl);
123
123
  }
@@ -169,7 +169,8 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
169
169
  }
170
170
 
171
171
  .Tag {
172
- background-color: var(--color-background-secondary-soft-alpha);
172
+ --tag-input-tag-background: var(--color-background-secondary-soft-alpha);
173
+ background-color: var(--tag-input-tag-background);
173
174
  color: var(--color-text-secondary-soft);
174
175
  font-size: var(--tag-input-tag-font-size, var(--tag-input-font-size));
175
176
  font-weight: var(--button-font-weight);
@@ -179,17 +180,17 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
179
180
  transition: background-color 0.15s ease;
180
181
  }
181
182
 
182
- @media (hover: hover) and (pointer: fine) {.Tag:hover {
183
- background-color: var(--color-background-secondary-soft-alpha-hover);
183
+ @media (hover: hover) and (pointer: fine) {.Tag:hover:where(:not(:root[data-input="touch"] *)) {
184
+ --tag-input-tag-background: var(--color-background-secondary-soft-alpha-hover);
184
185
  }
185
186
  }
186
187
 
187
188
  .Tag:focus {
188
- background-color: var(--color-background-secondary-soft-alpha-hover);
189
+ --tag-input-tag-background: var(--color-background-secondary-soft-alpha-hover);
189
190
  }
190
191
 
191
192
  .Tag:active {
192
- background-color: var(--color-background-secondary-soft-alpha-active);
193
+ --tag-input-tag-background: var(--color-background-secondary-soft-alpha-active);
193
194
  }
194
195
 
195
196
  .Container[data-disabled] .Tag {
@@ -197,21 +198,21 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
197
198
  }
198
199
 
199
200
  .Tag[data-invalid] {
200
- background-color: var(--color-background-danger-soft-alpha);
201
+ --tag-input-tag-background: var(--color-background-danger-soft-alpha);
201
202
  color: var(--color-text-danger-soft);
202
203
  }
203
204
 
204
- @media (hover: hover) and (pointer: fine) {.Tag[data-invalid]:hover {
205
- background-color: var(--color-background-danger-soft-alpha-hover);
205
+ @media (hover: hover) and (pointer: fine) {.Tag[data-invalid]:hover:where(:not(:root[data-input="touch"] *)) {
206
+ --tag-input-tag-background: var(--color-background-danger-soft-alpha-hover);
206
207
  }
207
208
  }
208
209
 
209
210
  .Tag[data-invalid]:focus {
210
- background-color: var(--color-background-danger-soft-alpha-hover);
211
+ --tag-input-tag-background: var(--color-background-danger-soft-alpha-hover);
211
212
  }
212
213
 
213
214
  .Tag[data-invalid]:active {
214
- background-color: var(--color-background-danger-soft-alpha-active);
215
+ --tag-input-tag-background: var(--color-background-danger-soft-alpha-active);
215
216
  }
216
217
 
217
218
  .Tag[data-duplicate] {
@@ -222,15 +223,59 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
222
223
  font-size: var(--control-icon-size-sm);
223
224
  }.TagRemove {
224
225
  display: flex;
226
+ flex: none;
225
227
  align-items: center;
228
+ justify-content: center;
229
+ padding: 0;
230
+ border: 0;
231
+ border-radius: var(--radius-full);
232
+ background: none;
233
+ cursor: pointer;
226
234
  color: inherit;
227
235
  opacity: 0.5;
228
236
  transition: opacity 0.15s ease;
229
237
  }
230
238
 
231
- @media (hover: hover) and (pointer: fine) {.TagRemove:hover {
239
+ @media (hover: hover) and (pointer: fine) {.TagRemove:hover:where(:not(:root[data-input="touch"] *)) {
232
240
  opacity: 1;
233
241
  }
242
+ }
243
+
244
+ .TagRemove:focus-visible {
245
+ outline: 2px solid var(--color-ring);
246
+ outline-offset: -2px;
247
+ opacity: 1;
248
+ }@media (max-width: 767px), (pointer: coarse) {
249
+ .Tag {
250
+ --tag-input-tag-height: 44px;
251
+
252
+ height: 44px;
253
+ max-width: 100%;
254
+ padding-inline-end: 0;
255
+ border-radius: var(--radius-full);
256
+ }
257
+
258
+ .Tag[data-tag] {
259
+ position: relative;
260
+ isolation: isolate;
261
+ background-color: transparent;
262
+ }
263
+
264
+ .Tag[data-tag]::before {
265
+ content: "";
266
+ position: absolute;
267
+ z-index: -1;
268
+ inset: 6px 0;
269
+ border-radius: inherit;
270
+ background-color: var(--tag-input-tag-background);
271
+ pointer-events: none;
272
+ transition: background-color 0.15s ease;
273
+ }
274
+
275
+ .TagRemove {
276
+ width: 44px;
277
+ height: 44px;
278
+ }
234
279
  }.TagValue {
235
280
  white-space: nowrap;
236
281
  }.InputContainer {