@slotted/styles 0.1.0-beta.4 → 0.1.0-beta.40

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 (221) hide show
  1. package/package.json +21 -1
  2. package/src/accordion/accordion.css +31 -13
  3. package/src/accordion/accordion.tokens.json +2 -0
  4. package/src/action-bar/action-bar.css +47 -44
  5. package/src/action-bar/action-bar.tokens.json +1 -0
  6. package/src/action-sheet/action-sheet.css +39 -39
  7. package/src/alert/alert.css +97 -97
  8. package/src/alert/alert.tokens.json +6 -1
  9. package/src/app-shell/app-shell.css +472 -342
  10. package/src/app-shell/app-shell.tokens.json +6 -3
  11. package/src/aspect-ratio/aspect-ratio.css +24 -23
  12. package/src/attachment/attachment.css +118 -114
  13. package/src/avatar/avatar.css +97 -67
  14. package/src/avatar/avatar.tokens.json +8 -0
  15. package/src/avatar-group/avatar-group.css +22 -23
  16. package/src/badge/badge.css +58 -47
  17. package/src/badge/badge.tokens.json +6 -0
  18. package/src/breadcrumb/breadcrumb.css +52 -52
  19. package/src/button/button.css +408 -93
  20. package/src/button/button.tokens.json +13 -0
  21. package/src/button-group/button-group.css +80 -79
  22. package/src/button-group/button-group.tokens.json +1 -0
  23. package/src/calendar/calendar.css +594 -267
  24. package/src/calendar/calendar.tokens.json +35 -3
  25. package/src/card/card.css +133 -70
  26. package/src/card/card.tokens.json +1 -0
  27. package/src/carousel/carousel.css +158 -169
  28. package/src/cascader/cascader.css +174 -159
  29. package/src/cascader/cascader.tokens.json +2 -0
  30. package/src/chart/chart.css +300 -271
  31. package/src/chart/chart.tokens.json +5 -0
  32. package/src/checkbox/checkbox.css +190 -148
  33. package/src/checkbox/checkbox.tokens.json +4 -0
  34. package/src/checkbox-group/checkbox-group.css +7 -7
  35. package/src/clock/clock.css +246 -0
  36. package/src/clock/clock.tokens.json +44 -0
  37. package/src/code-block/code-block.css +85 -89
  38. package/src/collapsible/collapsible.css +273 -85
  39. package/src/collapsible/collapsible.tokens.json +6 -0
  40. package/src/color-picker/color-picker.css +106 -114
  41. package/src/column-manager/column-manager.css +111 -119
  42. package/src/combobox/combobox.css +219 -132
  43. package/src/combobox/combobox.tokens.json +4 -0
  44. package/src/command-palette/command-palette.css +214 -102
  45. package/src/command-palette/command-palette.tokens.json +4 -0
  46. package/src/container/container.css +27 -27
  47. package/src/context-menu/context-menu.css +9 -9
  48. package/src/currency-field/currency-field.css +119 -119
  49. package/src/currency-field/currency-field.tokens.json +1 -0
  50. package/src/dashboard-grid/dashboard-grid.css +231 -115
  51. package/src/dashboard-grid/dashboard-grid.tokens.json +3 -1
  52. package/src/data-grid/data-grid.css +637 -496
  53. package/src/data-grid/data-grid.tokens.json +5 -1
  54. package/src/data-list/data-list.css +93 -76
  55. package/src/data-list/data-list.tokens.json +2 -1
  56. package/src/date-field/date-field.css +62 -57
  57. package/src/date-field/date-field.tokens.json +1 -0
  58. package/src/date-picker/date-picker.css +31 -269
  59. package/src/date-picker/date-picker.tokens.json +1 -21
  60. package/src/date-range-picker/date-range-picker.css +72 -528
  61. package/src/date-range-picker/date-range-picker.tokens.json +1 -37
  62. package/src/datetime-field/datetime-field.css +90 -90
  63. package/src/datetime-field/datetime-field.tokens.json +1 -0
  64. package/src/datetime-picker/datetime-picker.css +49 -711
  65. package/src/datetime-picker/datetime-picker.tokens.json +1 -50
  66. package/src/datetime-range-picker/datetime-range-picker.css +60 -985
  67. package/src/datetime-range-picker/datetime-range-picker.tokens.json +1 -67
  68. package/src/description-list/description-list.css +120 -76
  69. package/src/description-list/description-list.tokens.json +1 -0
  70. package/src/detail-panel/detail-panel.css +86 -71
  71. package/src/detail-panel/detail-panel.tokens.json +2 -0
  72. package/src/dialog/dialog.css +462 -199
  73. package/src/dialog/dialog.tokens.json +10 -0
  74. package/src/divider/divider.css +20 -20
  75. package/src/drawer/drawer.css +736 -237
  76. package/src/drawer/drawer.tokens.json +15 -0
  77. package/src/entity-picker/entity-picker.css +402 -272
  78. package/src/entity-picker/entity-picker.tokens.json +6 -0
  79. package/src/event-calendar/event-calendar.css +357 -399
  80. package/src/field/field.css +106 -93
  81. package/src/field/field.tokens.json +2 -0
  82. package/src/field-group/field-group.css +58 -38
  83. package/src/field-group/field-group.tokens.json +3 -0
  84. package/src/filter-bar/filter-bar.css +224 -216
  85. package/src/floating-panel/floating-panel.css +147 -0
  86. package/src/floating-panel/floating-panel.tokens.json +32 -0
  87. package/src/form/form.css +103 -26
  88. package/src/form/form.tokens.json +6 -1
  89. package/src/fullscreen/fullscreen.css +26 -27
  90. package/src/grid/grid.css +32 -31
  91. package/src/highlight/highlight.css +11 -11
  92. package/src/hover-card/hover-card.css +9 -9
  93. package/src/icon/icon.css +67 -20
  94. package/src/icon/icon.tokens.json +1 -0
  95. package/src/image/image.css +42 -42
  96. package/src/import-export-center/import-export-center.css +147 -168
  97. package/src/import-export-center/import-export-center.tokens.json +1 -0
  98. package/src/inline/inline.css +29 -29
  99. package/src/inline-message/inline-message.css +162 -86
  100. package/src/inline-message/inline-message.tokens.json +5 -0
  101. package/src/kbd/kbd.css +63 -51
  102. package/src/kbd/kbd.tokens.json +4 -0
  103. package/src/link/link.css +54 -33
  104. package/src/link/link.tokens.json +4 -0
  105. package/src/list/list.css +55 -24
  106. package/src/list/list.tokens.json +2 -0
  107. package/src/list-item/list-item.css +195 -80
  108. package/src/list-item/list-item.tokens.json +10 -0
  109. package/src/listbox/listbox.css +121 -72
  110. package/src/listbox/listbox.tokens.json +6 -1
  111. package/src/loading-overlay/loading-overlay.css +86 -103
  112. package/src/markdown/markdown.css +20 -20
  113. package/src/media-viewer/media-viewer.css +790 -0
  114. package/src/media-viewer/media-viewer.tokens.json +53 -0
  115. package/src/menu/menu.css +166 -83
  116. package/src/menu/menu.tokens.json +3 -1
  117. package/src/menubar/menubar.css +16 -16
  118. package/src/message/message.css +1296 -1243
  119. package/src/message/message.tokens.json +14 -0
  120. package/src/message-scroller/message-scroller.css +323 -320
  121. package/src/meter/meter.css +136 -0
  122. package/src/meter/meter.tokens.json +23 -0
  123. package/src/multi-select/multi-select.css +246 -174
  124. package/src/multi-select/multi-select.tokens.json +3 -0
  125. package/src/navigation-menu/navigation-menu.css +170 -191
  126. package/src/navigation-menu/navigation-menu.tokens.json +1 -0
  127. package/src/notification-center/notification-center.css +155 -163
  128. package/src/notification-center/notification-center.tokens.json +4 -0
  129. package/src/number-field/number-field.css +93 -93
  130. package/src/number-field/number-field.tokens.json +1 -0
  131. package/src/otp-input/otp-input.css +74 -64
  132. package/src/otp-input/otp-input.tokens.json +1 -0
  133. package/src/page/page.css +109 -31
  134. package/src/page/page.tokens.json +8 -0
  135. package/src/page-header/page-header.css +342 -287
  136. package/src/page-header/page-header.tokens.json +6 -1
  137. package/src/pagination/pagination.css +75 -79
  138. package/src/picker-panel/picker-panel.css +1074 -0
  139. package/src/picker-panel/picker-panel.tokens.json +77 -0
  140. package/src/popover/popover.css +85 -65
  141. package/src/popover/popover.tokens.json +2 -0
  142. package/src/progress-indicator/progress-indicator.css +194 -137
  143. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  144. package/src/prompt-composer/prompt-composer.css +274 -116
  145. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  146. package/src/prose/prose.css +77 -82
  147. package/src/radio-group/radio-group.css +107 -112
  148. package/src/rating/rating.css +147 -143
  149. package/src/rating/rating.tokens.json +2 -0
  150. package/src/result-state/result-state.css +95 -102
  151. package/src/result-state/result-state.tokens.json +1 -0
  152. package/src/runtime-properties.mjs +44 -6
  153. package/src/saved-views/saved-views.css +43 -49
  154. package/src/scroll-area/scroll-area.css +50 -37
  155. package/src/section/section.css +311 -46
  156. package/src/section/section.tokens.json +13 -1
  157. package/src/segmented-control/segmented-control.css +221 -133
  158. package/src/segmented-control/segmented-control.tokens.json +7 -11
  159. package/src/select/select.css +226 -149
  160. package/src/select/select.tokens.json +4 -0
  161. package/src/side-navigation/side-navigation.css +204 -201
  162. package/src/side-navigation/side-navigation.tokens.json +2 -0
  163. package/src/skeleton/skeleton.css +76 -58
  164. package/src/slider/slider.css +108 -104
  165. package/src/slider/slider.tokens.json +1 -0
  166. package/src/sparkline/sparkline.css +75 -53
  167. package/src/sparkline/sparkline.tokens.json +2 -0
  168. package/src/spinner/spinner.css +83 -180
  169. package/src/spinner/spinner.tokens.json +0 -1
  170. package/src/split-button/split-button.css +34 -35
  171. package/src/split-button/split-button.tokens.json +1 -0
  172. package/src/splitter/splitter.css +47 -48
  173. package/src/stack/stack.css +26 -26
  174. package/src/stat-card/stat-card.css +420 -245
  175. package/src/stat-card/stat-card.tokens.json +8 -0
  176. package/src/status-indicator/status-indicator.css +126 -101
  177. package/src/status-indicator/status-indicator.tokens.json +0 -3
  178. package/src/stepper/stepper.css +78 -82
  179. package/src/switch/switch.css +143 -125
  180. package/src/switch/switch.tokens.json +4 -0
  181. package/src/table/table.css +653 -222
  182. package/src/table/table.tokens.json +10 -0
  183. package/src/table-of-contents/table-of-contents.css +60 -59
  184. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  185. package/src/tabs/tabs.css +327 -294
  186. package/src/tabs/tabs.tokens.json +7 -1
  187. package/src/tag/tag.css +113 -89
  188. package/src/tag/tag.tokens.json +11 -0
  189. package/src/tags-input/tags-input.css +152 -87
  190. package/src/tags-input/tags-input.tokens.json +7 -1
  191. package/src/text-field/text-field.css +146 -148
  192. package/src/text-field/text-field.tokens.json +1 -0
  193. package/src/textarea/textarea.css +38 -33
  194. package/src/textarea/textarea.tokens.json +1 -0
  195. package/src/time-field/time-field.css +82 -77
  196. package/src/time-field/time-field.tokens.json +1 -0
  197. package/src/time-picker/time-picker.css +30 -519
  198. package/src/time-picker/time-picker.tokens.json +1 -38
  199. package/src/time-range-picker/time-range-picker.css +53 -895
  200. package/src/time-range-picker/time-range-picker.tokens.json +1 -66
  201. package/src/timeline/timeline.css +280 -292
  202. package/src/timeline/timeline.tokens.json +5 -0
  203. package/src/toast/toast.css +139 -122
  204. package/src/toast/toast.tokens.json +7 -0
  205. package/src/toggle/toggle.css +34 -38
  206. package/src/toggle-group/toggle-group.css +73 -77
  207. package/src/toolbar/toolbar.css +49 -40
  208. package/src/toolbar/toolbar.tokens.json +2 -1
  209. package/src/tooltip/tooltip.css +95 -39
  210. package/src/tooltip/tooltip.tokens.json +1 -0
  211. package/src/top-navigation/top-navigation.css +253 -269
  212. package/src/top-navigation/top-navigation.tokens.json +1 -0
  213. package/src/tour/tour.css +68 -74
  214. package/src/tour/tour.tokens.json +1 -0
  215. package/src/transfer/transfer.css +164 -168
  216. package/src/tree/tree.css +118 -122
  217. package/src/typography/typography.css +67 -38
  218. package/src/typography/typography.tokens.json +2 -0
  219. package/src/upload/upload.css +256 -257
  220. package/src/visually-hidden/visually-hidden.css +1 -1
  221. package/src/wizard/wizard.css +187 -199
@@ -87,6 +87,12 @@ export const RUNTIME_PROPERTY_PREFIXES = [
87
87
  * file every one of them as unreachable by a theme.
88
88
  */
89
89
  '--slotted-tree-depth',
90
+ /**
91
+ * `table` — the rails of ancestors that cross one row of a hierarchy, as
92
+ * layers of a background: `@slotted/core/tree-branches` writes it from the
93
+ * order and the levels of the rows in the document.
94
+ */
95
+ '--slotted-tree-rails',
90
96
  /**
91
97
  * `tree` — where one row sits on a windowed canvas, in pixels. It is written
92
98
  * only on a row the window does not cover and the family renders anyway: the
@@ -143,6 +149,8 @@ export const RUNTIME_PROPERTY_PREFIXES = [
143
149
  '--slotted-data-grid-pinned-bottom-offset',
144
150
  '--slotted-data-grid-window-start',
145
151
  '--slotted-data-grid-window-total',
152
+ /** The scroller's measured width, which holds a detail, a group row and the empty state to the frame. */
153
+ '--slotted-data-grid-viewport',
146
154
  /** The measured body row height, which the skeleton rows take while the rows load. */
147
155
  '--slotted-data-grid-loader-row-size',
148
156
  '--slotted-data-grid-leading',
@@ -239,7 +247,7 @@ export const RUNTIME_PROPERTY_PREFIXES = [
239
247
  /**
240
248
  * `rating` — where the spectrum places the mean and the two ends of its 95%
241
249
  * interval on the scale, from 1 to the maximum, written on the summary's
242
- * root from `summariseRatings`.
250
+ * root from `summarizeRatings`.
243
251
  */
244
252
  '--slotted-rating-mean',
245
253
  '--slotted-rating-low',
@@ -283,11 +291,11 @@ export const RUNTIME_PROPERTY_PREFIXES = [
283
291
  */
284
292
  '--slotted-carousel-overscroll',
285
293
  /**
286
- * `color-picker` — the colour this instance holds, with and without its
287
- * alpha, the hue it remembers when the colour has none, where the area's
288
- * thumb stands (saturation and brightness, 0 to 1), how opaque the colour
289
- * is (0 to 1), and the colour the panel opened with. Each is written on the
290
- * root by the binding from the value `@slotted/core/color` parsed; a colour
294
+ * `color-picker` — the color this instance holds, with and without its
295
+ * alpha, the hue it remembers when the color has none, where the area's
296
+ * thumb stands (saturation and brightness, 0 to 1), how opaque the color
297
+ * is (0 to 1), and the color the panel opened with. Each is written on the
298
+ * root by the binding from the value `@slotted/core/color` parsed; a color
291
299
  * the reader picked is a fact about this instance, which no theme can hold.
292
300
  */
293
301
  '--slotted-color-picker-color',
@@ -313,6 +321,36 @@ export const RUNTIME_PROPERTY_PREFIXES = [
313
321
  '--slotted-navigation-menu-viewport-block-start',
314
322
  '--slotted-navigation-menu-arrow-offset',
315
323
  '--slotted-navigation-menu-available-inline-size',
324
+ /**
325
+ * `media-viewer` — the box the picture takes at the current level and its
326
+ * quarter turn, measured from the stage and the picture's own size by the
327
+ * binding. The family also owns theme tokens under the same prefix, so each
328
+ * is named one by one.
329
+ */
330
+ '--slotted-media-viewer-frame-inline-size',
331
+ '--slotted-media-viewer-frame-block-size',
332
+ '--slotted-media-viewer-media-inline-size',
333
+ '--slotted-media-viewer-media-block-size',
334
+ '--slotted-media-viewer-rotation',
335
+ /**
336
+ * `table` — how deep a folded row sits under the rows above it, for the
337
+ * reason `tree-depth` is: a fact about the consumer's data, stated per row.
338
+ * The step is `--slotted-table-tree-indent`, which is a token.
339
+ */
340
+ '--slotted-table-depth',
341
+ /**
342
+ * `meter` — the share of the track the indicator covers, from the value the
343
+ * consumer states. No theme can know it.
344
+ */
345
+ '--slotted-meter-ratio',
346
+ /**
347
+ * `sparkline` — where a mark of a position strip or a comparison stands on
348
+ * its axis, as a share from the consumer's data. The family owns theme
349
+ * tokens under the same prefix, so each is named one by one.
350
+ */
351
+ '--slotted-sparkline-at',
352
+ '--slotted-sparkline-from',
353
+ '--slotted-sparkline-to',
316
354
  ];
317
355
 
318
356
  /** Whether a custom property is written by script rather than by a theme. */
@@ -19,7 +19,7 @@
19
19
  * with child combinators so a `label` or a `root` of theirs is never
20
20
  * restyled.
21
21
  */
22
- [data-ui='saved-views'] {
22
+ [data-ui-saved-views] {
23
23
  --_text: var(--slotted-text, CanvasText);
24
24
  --_muted: var(--slotted-text-muted, GrayText);
25
25
  --_hover: var(--slotted-tone-secondary-subtle-hover, ButtonFace);
@@ -48,7 +48,7 @@
48
48
  * The trigger and revert on one row that wraps: at 240 pixels the revert
49
49
  * control drops under the trigger rather than pushing it out of the box.
50
50
  */
51
- [data-ui='saved-views'][data-part='root'] {
51
+ [data-ui-saved-views][data-part-root] {
52
52
  display: inline-flex;
53
53
  flex-wrap: wrap;
54
54
  align-items: center;
@@ -62,7 +62,7 @@
62
62
  * control shadow and the control surface, so the view in use reads as a
63
63
  * value the reader can change rather than as a heading.
64
64
  */
65
- [data-ui='saved-views'] > [data-part='trigger'] {
65
+ [data-ui-saved-views] > [data-part-trigger] {
66
66
  display: inline-flex;
67
67
  align-items: center;
68
68
  gap: var(--_gap);
@@ -86,7 +86,7 @@
86
86
  }
87
87
 
88
88
  /** Truncated on one line; the whole name stays in the DOM and in the button's name. */
89
- [data-ui='saved-views'] > [data-part='trigger'] > [data-label] {
89
+ [data-ui-saved-views] > [data-part-trigger] > [data-label] {
90
90
  min-inline-size: 0;
91
91
  overflow: hidden;
92
92
  text-overflow: ellipsis;
@@ -94,21 +94,21 @@
94
94
  }
95
95
 
96
96
  /** The chevron, an `icon` after the name, turning over while the layer is open. */
97
- [data-ui='saved-views'] > [data-part='trigger'] > [data-ui='icon'] {
97
+ [data-ui-saved-views] > [data-part-trigger] > [data-ui-icon] {
98
98
  margin-inline-end: calc(var(--slotted-space-2, 0.25rem) * -1);
99
99
  color: var(--_muted);
100
100
  transition: rotate var(--_duration) var(--_easing);
101
101
  }
102
102
 
103
- [data-ui='saved-views'][data-open] > [data-part='trigger'] > [data-ui='icon'] {
103
+ [data-ui-saved-views][data-open] > [data-part-trigger] > [data-ui-icon] {
104
104
  rotate: 180deg;
105
105
  }
106
106
 
107
- [data-ui='saved-views'] > [data-part='trigger']:hover:not(:disabled) {
107
+ [data-ui-saved-views] > [data-part-trigger]:hover:not(:disabled) {
108
108
  background: var(--_hover);
109
109
  }
110
110
 
111
- [data-ui='saved-views'] > [data-part='trigger']:active:not(:disabled) {
111
+ [data-ui-saved-views] > [data-part-trigger]:active:not(:disabled) {
112
112
  background: var(--_active);
113
113
  transition-duration: var(--slotted-duration-instant);
114
114
  }
@@ -116,9 +116,9 @@
116
116
  /**
117
117
  * The mark: a dot in the accent solid and the word, in the muted ink and
118
118
  * the regular weight, so the name stays the loudest thing in the control
119
- * and the state is never colour alone.
119
+ * and the state is never color alone.
120
120
  */
121
- [data-ui='saved-views'] > [data-part='trigger'] > [data-part='modified'] {
121
+ [data-ui-saved-views] > [data-part-trigger] > [data-part-modified] {
122
122
  display: inline-flex;
123
123
  flex: none;
124
124
  align-items: center;
@@ -130,7 +130,7 @@
130
130
  font-weight: var(--slotted-font-weight-regular, 400);
131
131
  }
132
132
 
133
- [data-ui='saved-views'] > [data-part='trigger'] > [data-part='modified']::before {
133
+ [data-ui-saved-views] > [data-part-trigger] > [data-part-modified]::before {
134
134
  content: '';
135
135
  flex: none;
136
136
  inline-size: var(--slotted-space-4, 0.5rem);
@@ -140,7 +140,7 @@
140
140
  }
141
141
 
142
142
  /** Revert: a ghost control with the counter-clockwise arrow, at the trigger's height. */
143
- [data-ui='saved-views'] > [data-part='revert'] {
143
+ [data-ui-saved-views] > [data-part-revert] {
144
144
  display: inline-flex;
145
145
  align-items: center;
146
146
  gap: var(--slotted-space-3, 0.375rem);
@@ -159,17 +159,17 @@
159
159
  transition: background-color var(--_duration) var(--_easing);
160
160
  }
161
161
 
162
- [data-ui='saved-views'] > [data-part='revert']:hover:not(:disabled) {
162
+ [data-ui-saved-views] > [data-part-revert]:hover:not(:disabled) {
163
163
  background: var(--slotted-tone-accent-subtle-hover, ButtonFace);
164
164
  }
165
165
 
166
- [data-ui='saved-views'] > [data-part='revert']:active:not(:disabled) {
166
+ [data-ui-saved-views] > [data-part-revert]:active:not(:disabled) {
167
167
  background: var(--slotted-tone-accent-subtle-active, ButtonFace);
168
168
  transition-duration: var(--slotted-duration-instant);
169
169
  }
170
170
 
171
- [data-ui='saved-views'] > [data-part='trigger']:focus-visible,
172
- [data-ui='saved-views'] > [data-part='revert']:focus-visible {
171
+ [data-ui-saved-views] > [data-part-trigger]:focus-visible,
172
+ [data-ui-saved-views] > [data-part-revert]:focus-visible {
173
173
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
174
174
  outline-offset: var(--slotted-focus-ring-offset, 2px);
175
175
  }
@@ -182,7 +182,7 @@
182
182
  * would change width as views are renamed. The padding keeps a row's hover
183
183
  * ground off the popover's rounded edge.
184
184
  */
185
- [data-ui='saved-views'][data-part='panel'] {
185
+ [data-ui-saved-views][data-part-panel] {
186
186
  display: grid;
187
187
  /* One track that grows to the token and gives way to zero: the panel's
188
188
  min-content is nothing and its max-content the token, so a popover
@@ -193,7 +193,7 @@
193
193
  padding: var(--slotted-space-2, 0.25rem);
194
194
  }
195
195
 
196
- [data-ui='saved-views'][data-part='panel'] > [data-part='list'] {
196
+ [data-ui-saved-views][data-part-panel] > [data-part-list] {
197
197
  display: grid;
198
198
  gap: var(--slotted-space-1, 0.125rem);
199
199
  margin: 0;
@@ -202,7 +202,7 @@
202
202
  }
203
203
 
204
204
  /** A row: the view's name across, its actions at the inline end. */
205
- [data-ui='saved-views'][data-part='panel'] > [data-part='list'] > [data-part='item'] {
205
+ [data-ui-saved-views][data-part-panel] > [data-part-list] > [data-part-item] {
206
206
  display: grid;
207
207
  grid-template-columns: minmax(0, 1fr) auto;
208
208
  align-items: start;
@@ -210,9 +210,7 @@
210
210
  margin: 0;
211
211
  }
212
212
 
213
- [data-ui='saved-views'][data-part='panel']
214
- > [data-part='list']
215
- > [data-part='item'][data-editing] {
213
+ [data-ui-saved-views][data-part-panel] > [data-part-list] > [data-part-item][data-editing] {
216
214
  grid-template-columns: minmax(0, 1fr);
217
215
  }
218
216
 
@@ -224,7 +222,7 @@
224
222
  * binding draws the check on the view in use alone, and the name keeps the
225
223
  * second column whether the check stands before it or not.
226
224
  */
227
- [data-ui='saved-views'][data-part='panel'] [data-part='apply'] {
225
+ [data-ui-saved-views][data-part-panel] [data-part-apply] {
228
226
  display: grid;
229
227
  grid-template-columns: var(--_icon-size-sm) minmax(0, max-content) auto;
230
228
  justify-content: start;
@@ -253,40 +251,38 @@
253
251
  * The check, an `icon` on the name's first line and on its text rather than
254
252
  * its line box (`docs/build-briefing.md`, Decisions already taken). Its
255
253
  * bottom sits on the baseline; the translate lowers it by half its size less
256
- * half the band, the midpoint of cap height and x-height, so its centre is
254
+ * half the band, the midpoint of cap height and x-height, so its center is
257
255
  * the band's.
258
256
  */
259
- [data-ui='saved-views'][data-part='panel'] [data-part='apply'] > [data-ui='icon'] {
257
+ [data-ui-saved-views][data-part-panel] [data-part-apply] > [data-ui-icon] {
260
258
  color: var(--slotted-tone-accent-text);
261
259
  translate: 0 calc(var(--_icon-size-sm) / 2 - (1cap + 1ex) / 4);
262
260
  }
263
261
 
264
- [data-ui='saved-views'][data-part='panel']
265
- [data-part='item'][data-current]
266
- > [data-part='apply'] {
262
+ [data-ui-saved-views][data-part-panel] [data-part-item][data-current] > [data-part-apply] {
267
263
  font-weight: var(--slotted-font-weight-medium, 500);
268
264
  }
269
265
 
270
266
  /** A long name wraps inside the row; nothing is cut. */
271
- [data-ui='saved-views'][data-part='panel'] [data-part='apply'] > [data-label] {
267
+ [data-ui-saved-views][data-part-panel] [data-part-apply] > [data-label] {
272
268
  grid-column: 2;
273
269
  min-inline-size: 0;
274
270
  overflow-wrap: anywhere;
275
271
  }
276
272
 
277
- [data-ui='saved-views'][data-part='panel'] [data-part='apply']:hover:not(:disabled),
278
- [data-ui='saved-views'][data-part='panel'] [data-part='actions']:hover:not(:disabled) {
273
+ [data-ui-saved-views][data-part-panel] [data-part-apply]:hover:not(:disabled),
274
+ [data-ui-saved-views][data-part-panel] [data-part-actions]:hover:not(:disabled) {
279
275
  background: var(--_hover);
280
276
  }
281
277
 
282
- [data-ui='saved-views'][data-part='panel'] [data-part='apply']:active:not(:disabled),
283
- [data-ui='saved-views'][data-part='panel'] [data-part='actions']:active:not(:disabled) {
278
+ [data-ui-saved-views][data-part-panel] [data-part-apply]:active:not(:disabled),
279
+ [data-ui-saved-views][data-part-panel] [data-part-actions]:active:not(:disabled) {
284
280
  background: var(--_active);
285
281
  transition-duration: var(--slotted-duration-instant);
286
282
  }
287
283
 
288
284
  /** The pin: the view a visit opens on. The word beside it is for the ear only. */
289
- [data-ui='saved-views'][data-part='panel'] [data-part='apply'] > [data-part='default-mark'] {
285
+ [data-ui-saved-views][data-part-panel] [data-part-apply] > [data-part-default-mark] {
290
286
  /* A flex box, so the pin `icon` inside is laid out as an item and not on
291
287
  a line of its own that would stand taller than the mark. */
292
288
  display: flex;
@@ -299,9 +295,7 @@
299
295
  color: var(--_muted);
300
296
  }
301
297
 
302
- [data-ui='saved-views'][data-part='panel']
303
- [data-part='default-mark']
304
- > span:not([data-ui='icon']) {
298
+ [data-ui-saved-views][data-part-panel] [data-part-default-mark] > span:not([data-ui-icon]) {
305
299
  position: absolute;
306
300
  inline-size: 1px;
307
301
  block-size: 1px;
@@ -314,7 +308,7 @@
314
308
  * The row's menu: a square at the small control height with the ellipsis
315
309
  * `icon`, muted at rest and on the text ink under the pointer.
316
310
  */
317
- [data-ui='saved-views'][data-part='panel'] [data-part='actions'] {
311
+ [data-ui-saved-views][data-part-panel] [data-part-actions] {
318
312
  display: inline-grid;
319
313
  place-items: center;
320
314
  box-sizing: border-box;
@@ -332,14 +326,14 @@
332
326
  color var(--_duration) var(--_easing);
333
327
  }
334
328
 
335
- [data-ui='saved-views'][data-part='panel'] [data-part='actions'][data-open],
336
- [data-ui='saved-views'][data-part='panel'] [data-part='actions']:hover:not(:disabled) {
329
+ [data-ui-saved-views][data-part-panel] [data-part-actions][data-open],
330
+ [data-ui-saved-views][data-part-panel] [data-part-actions]:hover:not(:disabled) {
337
331
  color: var(--_text);
338
332
  }
339
333
 
340
334
  /** Drawn inward: the rows sit one space step apart and an outward ring would cross the next. */
341
- [data-ui='saved-views'][data-part='panel'] [data-part='apply']:focus-visible,
342
- [data-ui='saved-views'][data-part='panel'] [data-part='actions']:focus-visible {
335
+ [data-ui-saved-views][data-part-panel] [data-part-apply]:focus-visible,
336
+ [data-ui-saved-views][data-part-panel] [data-part-actions]:focus-visible {
343
337
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
344
338
  outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
345
339
  }
@@ -351,8 +345,8 @@
351
345
  * view; and the confirmation, in the row being deleted. Both stand on the
352
346
  * sunken surface so the row reads as one being edited.
353
347
  */
354
- [data-ui='saved-views'][data-part='panel'] [data-part='form'],
355
- [data-ui='saved-views'][data-part='panel'] [data-part='confirm'] {
348
+ [data-ui-saved-views][data-part-panel] [data-part-form],
349
+ [data-ui-saved-views][data-part-panel] [data-part-confirm] {
356
350
  display: grid;
357
351
  gap: var(--slotted-space-4, 0.5rem);
358
352
  margin: 0;
@@ -361,13 +355,13 @@
361
355
  background: var(--slotted-surface-sunken, Canvas);
362
356
  }
363
357
 
364
- [data-ui='saved-views'][data-part='panel'] [data-part='confirm'] > p {
358
+ [data-ui-saved-views][data-part-panel] [data-part-confirm] > p {
365
359
  margin: 0;
366
360
  overflow-wrap: anywhere;
367
361
  }
368
362
 
369
- [data-ui='saved-views'][data-part='panel']
370
- :is([data-part='form'], [data-part='confirm'])
363
+ [data-ui-saved-views][data-part-panel]
364
+ :is([data-part-form], [data-part-confirm])
371
365
  > [data-buttons] {
372
366
  display: flex;
373
367
  flex-wrap: wrap;
@@ -376,7 +370,7 @@
376
370
  }
377
371
 
378
372
  /** Save as new view… then Save, at the inline end, under a rule. */
379
- [data-ui='saved-views'][data-part='panel'] > [data-part='footer'] {
373
+ [data-ui-saved-views][data-part-panel] > [data-part-footer] {
380
374
  display: flex;
381
375
  flex-wrap: wrap;
382
376
  justify-content: flex-end;
@@ -387,7 +381,7 @@
387
381
  }
388
382
 
389
383
  @media (forced-colors: active) {
390
- [data-ui='saved-views'] > [data-part='trigger'] > [data-part='modified']::before {
384
+ [data-ui-saved-views] > [data-part-trigger] > [data-part-modified]::before {
391
385
  forced-color-adjust: none;
392
386
  }
393
387
  }
@@ -6,7 +6,7 @@
6
6
  * all hide the native bar — `scrollbar-width: none` plus a
7
7
  * `::-webkit-scrollbar` rule — and redraw it from a thumb element kept in
8
8
  * sync by a scroll listener and a `ResizeObserver`. That costs the trough
9
- * click, the scrollbar context menu, the system's own overlay behaviour, and
9
+ * click, the scrollbar context menu, the system's own overlay behavior, and
10
10
  * the correct bar before hydration or without JavaScript.
11
11
  * `docs/component-features.md` §4 asks for the opposite in this family's own
12
12
  * sentence, and `scrollbar-color` reached Baseline in December 2025, so the
@@ -34,7 +34,7 @@
34
34
  * mask is not on. `root` is that element: it holds the border, the radius and
35
35
  * the maximum, and `viewport` inside it holds the scroll and the veil.
36
36
  */
37
- [data-ui='scroll-area'] {
37
+ [data-ui-scroll-area] {
38
38
  /**
39
39
  * How far the veil reaches in from an edge that has content behind it.
40
40
  *
@@ -68,16 +68,22 @@
68
68
  * automatic minimum is its content, and without the override a scrollport
69
69
  * inside a bounded box grows to its content and scrolls nothing.
70
70
  *
71
+ * The row is a flexible track, not the implicit `auto` one: an `auto` row
72
+ * sizes to its content and ignores a `max-block-size`, so a box bounded by
73
+ * `maxBlockSize` stopped at the bound while the scrollport overflowed it.
74
+ * A flexible track is the one grid sizing clamps to the container's maximum.
75
+ *
71
76
  * The family paints no frame of its own. A border, a radius and a ground
72
77
  * are the consumer's, and they go here — on the element the mask is not on.
73
78
  */
74
79
  display: grid;
80
+ grid-template-rows: minmax(0, 1fr);
75
81
  box-sizing: border-box;
76
82
  min-block-size: 0;
77
83
  min-inline-size: 0;
78
84
  }
79
85
 
80
- [data-ui='scroll-area'] > [data-part='viewport'] {
86
+ [data-ui-scroll-area] > [data-part-viewport] {
81
87
  /**
82
88
  * One length per logical edge: the veil's reach where that end of the
83
89
  * content is out of view, and nothing where it is showing.
@@ -129,7 +135,7 @@
129
135
 
130
136
  /**
131
137
  * `thin` rather than `auto`, and it is still the platform's bar: the trough
132
- * click, the scrollbar context menu and the system's own behaviour all
138
+ * click, the scrollbar context menu and the system's own behavior all
133
139
  * survive it. What it drops is the pair of stepper buttons Chrome draws on
134
140
  * Linux and Windows once a scrollbar is themed at all — read in the first
135
141
  * capture with a bar visible, they took thirty-two pixels off a hundred and
@@ -152,10 +158,10 @@
152
158
  * content. A mask applies to the border box and stays.
153
159
  *
154
160
  * It is a mask rather than a gradient for the reason `table` wrote when it
155
- * refused one: a gradient over the content has to be the colour of the
161
+ * refused one: a gradient over the content has to be the color of the
156
162
  * ground beneath it, so it is wrong on every surface but one and in every
157
163
  * scheme but one. A mask fades the content to transparent and needs no ink
158
- * at all — `#000` here is alpha 1, not a colour decision.
164
+ * at all — `#000` here is alpha 1, not a color decision.
159
165
  *
160
166
  * One layer per physical axis, each fading both of its ends, composed with
161
167
  * `intersect` so the two alphas multiply at a corner.
@@ -205,7 +211,7 @@
205
211
  * attribute form would then paint the veil on the edge the reader can already
206
212
  * see.
207
213
  */
208
- [data-ui='scroll-area']:dir(rtl) > [data-part='viewport'] {
214
+ [data-ui-scroll-area]:dir(rtl) > [data-part-viewport] {
209
215
  --_fade-left: var(--_scroll-area-fade-inline-end);
210
216
  --_fade-right: var(--_scroll-area-fade-inline-start);
211
217
  }
@@ -220,21 +226,21 @@
220
226
  * `@supports` is needed for that — an unknown declaration is discarded at
221
227
  * parse time and the cascade does the rest.
222
228
  */
223
- [data-ui='scroll-area'][data-axis='block'] > [data-part='viewport'] {
229
+ [data-ui-scroll-area][data-axis='block'] > [data-part-viewport] {
224
230
  overflow-x: hidden;
225
231
  overflow-y: auto;
226
232
  overflow-inline: hidden;
227
233
  overflow-block: auto;
228
234
  }
229
235
 
230
- [data-ui='scroll-area'][data-axis='inline'] > [data-part='viewport'] {
236
+ [data-ui-scroll-area][data-axis='inline'] > [data-part-viewport] {
231
237
  overflow-x: auto;
232
238
  overflow-y: hidden;
233
239
  overflow-inline: auto;
234
240
  overflow-block: hidden;
235
241
  }
236
242
 
237
- [data-ui='scroll-area'][data-axis='both'] > [data-part='viewport'] {
243
+ [data-ui-scroll-area][data-axis='both'] > [data-part-viewport] {
238
244
  overflow: auto;
239
245
  }
240
246
 
@@ -243,17 +249,17 @@
243
249
  * "reserve the bar whether or not it is needed". It is stated per axis so it
244
250
  * does not turn a one-axis area into a two-axis one.
245
251
  */
246
- [data-ui='scroll-area'][data-scrollbars='always'][data-axis='block'] > [data-part='viewport'] {
252
+ [data-ui-scroll-area][data-scrollbars='always'][data-axis='block'] > [data-part-viewport] {
247
253
  overflow-y: scroll;
248
254
  overflow-block: scroll;
249
255
  }
250
256
 
251
- [data-ui='scroll-area'][data-scrollbars='always'][data-axis='inline'] > [data-part='viewport'] {
257
+ [data-ui-scroll-area][data-scrollbars='always'][data-axis='inline'] > [data-part-viewport] {
252
258
  overflow-x: scroll;
253
259
  overflow-inline: scroll;
254
260
  }
255
261
 
256
- [data-ui='scroll-area'][data-scrollbars='always'][data-axis='both'] > [data-part='viewport'] {
262
+ [data-ui-scroll-area][data-scrollbars='always'][data-axis='both'] > [data-part-viewport] {
257
263
  overflow: scroll;
258
264
  }
259
265
 
@@ -266,7 +272,7 @@
266
272
  * and why this value is worth having at all: an area with no bar and no veil
267
273
  * says nothing.
268
274
  */
269
- [data-ui='scroll-area'][data-scrollbars='none'] > [data-part='viewport'] {
275
+ [data-ui-scroll-area][data-scrollbars='none'] > [data-part-viewport] {
270
276
  scrollbar-width: none;
271
277
  }
272
278
 
@@ -279,7 +285,7 @@
279
285
  * state — `packages/styles/src/states.test.mjs` — rather than a state this
280
286
  * family holds: a scrollport is not a control and has no disabled form.
281
287
  */
282
- [data-ui='scroll-area'][data-scrollbars='hover'] > [data-part='viewport'] {
288
+ [data-ui-scroll-area][data-scrollbars='hover'] > [data-part-viewport] {
283
289
  scrollbar-color: transparent transparent;
284
290
  transition:
285
291
  scrollbar-color var(--slotted-duration-short) var(--slotted-easing-standard),
@@ -289,29 +295,28 @@
289
295
  --_scroll-area-fade-inline-end var(--slotted-duration-short) var(--slotted-easing-standard);
290
296
  }
291
297
 
292
- [data-ui='scroll-area'][data-scrollbars='hover']:not([data-disabled]):hover
293
- > [data-part='viewport'],
294
- [data-ui='scroll-area'][data-scrollbars='hover']:focus-within > [data-part='viewport'] {
298
+ [data-ui-scroll-area][data-scrollbars='hover']:not([data-disabled]):hover > [data-part-viewport],
299
+ [data-ui-scroll-area][data-scrollbars='hover']:focus-within > [data-part-viewport] {
295
300
  scrollbar-color: var(--_thumb) var(--_track);
296
301
  }
297
302
 
298
303
  /* ── The gutter ────────────────────────────────────────────────────────── */
299
304
 
300
- [data-ui='scroll-area'][data-gutter='auto'] > [data-part='viewport'] {
305
+ [data-ui-scroll-area][data-gutter='auto'] > [data-part-viewport] {
301
306
  scrollbar-gutter: auto;
302
307
  }
303
308
 
304
- [data-ui='scroll-area'][data-gutter='both-edges'] > [data-part='viewport'] {
309
+ [data-ui-scroll-area][data-gutter='both-edges'] > [data-part-viewport] {
305
310
  scrollbar-gutter: stable both-edges;
306
311
  }
307
312
 
308
313
  /* ── Scroll chaining ───────────────────────────────────────────────────── */
309
314
 
310
- [data-ui='scroll-area'][data-overscroll='auto'] > [data-part='viewport'] {
315
+ [data-ui-scroll-area][data-overscroll='auto'] > [data-part-viewport] {
311
316
  overscroll-behavior: auto;
312
317
  }
313
318
 
314
- [data-ui='scroll-area'][data-overscroll='none'] > [data-part='viewport'] {
319
+ [data-ui-scroll-area][data-overscroll='none'] > [data-part-viewport] {
315
320
  overscroll-behavior: none;
316
321
  }
317
322
 
@@ -322,31 +327,31 @@
322
327
  * code block. These come after the two above, so a chosen `none` holds the
323
328
  * scrolling axis and lets the other through.
324
329
  */
325
- [data-ui='scroll-area'][data-axis='inline'] > [data-part='viewport'] {
330
+ [data-ui-scroll-area][data-axis='inline'] > [data-part-viewport] {
326
331
  overscroll-behavior-y: auto;
327
332
  overscroll-behavior-block: auto;
328
333
  }
329
334
 
330
- [data-ui='scroll-area'][data-axis='block'] > [data-part='viewport'] {
335
+ [data-ui-scroll-area][data-axis='block'] > [data-part-viewport] {
331
336
  overscroll-behavior-x: auto;
332
337
  overscroll-behavior-inline: auto;
333
338
  }
334
339
 
335
340
  /* ── The veil, edge by edge ────────────────────────────────────────────── */
336
341
 
337
- [data-ui='scroll-area'][data-at-block-start] > [data-part='viewport'] {
342
+ [data-ui-scroll-area][data-at-block-start] > [data-part-viewport] {
338
343
  --_scroll-area-fade-block-start: 0px;
339
344
  }
340
345
 
341
- [data-ui='scroll-area'][data-at-block-end] > [data-part='viewport'] {
346
+ [data-ui-scroll-area][data-at-block-end] > [data-part-viewport] {
342
347
  --_scroll-area-fade-block-end: 0px;
343
348
  }
344
349
 
345
- [data-ui='scroll-area'][data-at-inline-start] > [data-part='viewport'] {
350
+ [data-ui-scroll-area][data-at-inline-start] > [data-part-viewport] {
346
351
  --_scroll-area-fade-inline-start: 0px;
347
352
  }
348
353
 
349
- [data-ui='scroll-area'][data-at-inline-end] > [data-part='viewport'] {
354
+ [data-ui-scroll-area][data-at-inline-end] > [data-part-viewport] {
350
355
  --_scroll-area-fade-inline-end: 0px;
351
356
  }
352
357
 
@@ -355,7 +360,7 @@
355
360
  * scroller holds what the reader has already passed, and a product that
356
361
  * would rather not dim it says so here.
357
362
  */
358
- [data-ui='scroll-area'][data-fade='end'] > [data-part='viewport'] {
363
+ [data-ui-scroll-area][data-fade='end'] > [data-part-viewport] {
359
364
  --_scroll-area-fade-block-start: 0px;
360
365
  --_scroll-area-fade-inline-start: 0px;
361
366
  }
@@ -365,7 +370,7 @@
365
370
  * the element on its own compositing layer, and a long list pays for that on
366
371
  * every frame.
367
372
  */
368
- [data-ui='scroll-area'][data-fade='none'] > [data-part='viewport'],
373
+ [data-ui-scroll-area][data-fade='none'] > [data-part-viewport],
369
374
  /**
370
375
  * A vertical writing mode turns the box, and a gradient cannot be given a
371
376
  * logical direction. Rather than veil the wrong two edges, the family veils
@@ -373,7 +378,7 @@
373
378
  * affordance there draws it from them. The binding writes `data-sideways`
374
379
  * because only script can read a writing mode.
375
380
  */
376
- [data-ui='scroll-area'][data-sideways] > [data-part='viewport'] {
381
+ [data-ui-scroll-area][data-sideways] > [data-part-viewport] {
377
382
  mask-image: none;
378
383
  }
379
384
 
@@ -391,7 +396,7 @@
391
396
  * `min-inline-size: fit-content` so a row wider than the scrollport widens
392
397
  * this box with it, and the inset survives at the far end.
393
398
  */
394
- [data-ui='scroll-area'] > [data-part='viewport'] > [data-part='content'] {
399
+ [data-ui-scroll-area] > [data-part-viewport] > [data-part-content] {
395
400
  box-sizing: border-box;
396
401
  min-inline-size: fit-content;
397
402
  padding: var(--slotted-scroll-area-inset, var(--slotted-space-5, 0.75rem));
@@ -410,8 +415,16 @@
410
415
  *
411
416
  * `:has()` rather than `:focus-within`, because a link inside the content is
412
417
  * focus *within* the area and is not the area being focused.
418
+ *
419
+ * The ring is drawn for a focus from the keyboard: a click on the content
420
+ * focuses the viewport too, and the next Shift would make it match
421
+ * `:focus-visible` (`createFocusOrigin`). The browser's own ring on the
422
+ * viewport is suppressed: the frame draws the one ring.
413
423
  */
414
- [data-ui='scroll-area']:has(> [data-part='viewport']:focus-visible) {
424
+ [data-ui-scroll-area] > [data-part-viewport]:focus {
425
+ outline: none;
426
+ }
427
+ [data-ui-scroll-area]:has(> [data-part-viewport]:focus-visible[data-focus-origin='keyboard']) {
415
428
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
416
429
  outline-offset: var(--slotted-focus-ring-offset, 2px);
417
430
  }
@@ -425,8 +438,8 @@
425
438
  * sentence.
426
439
  */
427
440
  @media print {
428
- [data-ui='scroll-area'],
429
- [data-ui='scroll-area'] > [data-part='viewport'] {
441
+ [data-ui-scroll-area],
442
+ [data-ui-scroll-area] > [data-part-viewport] {
430
443
  max-block-size: none;
431
444
  max-inline-size: none;
432
445
  overflow: visible;
@@ -435,12 +448,12 @@
435
448
  }
436
449
 
437
450
  /**
438
- * The system owns the palette under forced colours, and a veil over system
451
+ * The system owns the palette under forced colors, and a veil over system
439
452
  * text is a legibility loss with nothing bought. The scrollbar goes back to
440
453
  * the system's own, which is what `scrollbar-color: auto` means.
441
454
  */
442
455
  @media (forced-colors: active) {
443
- [data-ui='scroll-area'] > [data-part='viewport'] {
456
+ [data-ui-scroll-area] > [data-part-viewport] {
444
457
  mask-image: none;
445
458
  scrollbar-color: auto;
446
459
  }