@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
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * One entry of a `list`. The set decides four things — variant, size, marker
6
6
  * and inset — and hands each one down through the binding as a `data-`
7
- * attribute this sheet reads. **No selector here reaches `[data-ui='list']`,
7
+ * attribute this sheet reads. **No selector here reaches `[data-ui-list]`,
8
8
  * and none there reaches this family**, which is the rule `accordion` and
9
9
  * `collapsible` set for the same relationship.
10
10
  *
@@ -28,7 +28,7 @@
28
28
  * each part on the element the page wrote and React renders it as that
29
29
  * element, so the chain in the selectors is the chain in the document.
30
30
  */
31
- [data-ui='list-item'][data-part='root'] {
31
+ [data-ui-list-item][data-part-root] {
32
32
  /* Geometry. Every value is the control scale's, because a row is a
33
33
  control-sized thing: one theme decision retunes the rows, the buttons and
34
34
  the fields together, and `@media (pointer: coarse)` grows all three at
@@ -61,10 +61,14 @@
61
61
  calc((var(--_min-block) - var(--_font-size) * var(--slotted-line-height-md, 1.5)) / 2)
62
62
  )
63
63
  );
64
+ /* What stands above and below a control of `actions`. The row is as tall as
65
+ a control of its own size, so a control one step smaller left two pixels
66
+ at each edge and the outlines of two rows read as one column of boxes. */
67
+ --_actions-inset: var(--slotted-space-3, 0.375rem);
64
68
  --_radius: var(--slotted-list-item-radius, var(--slotted-radius-md, 6px));
65
69
 
66
70
  /* Ink. `secondary` is the library's neutral, and a neutral row takes the
67
- page's own text colour rather than the tone's: `--slotted-tone-secondary-text`
71
+ page's own text color rather than the tone's: `--slotted-tone-secondary-text`
68
72
  is calibrated on a chip, and a list of forty rows set in it reads as forty
69
73
  pieces of metadata. The other four tones do take their own. */
70
74
  --_text: var(--slotted-list-item-color, var(--slotted-text, CanvasText));
@@ -157,7 +161,7 @@
157
161
  * arrives inside every control token above; the two never multiply, because
158
162
  * this family reads the density-varying token and states no second scale.
159
163
  */
160
- [data-ui='list-item'][data-size='sm'] {
164
+ [data-ui-list-item][data-size='sm'] {
161
165
  --_min-block: var(
162
166
  --slotted-list-item-min-block-size-sm,
163
167
  var(--slotted-control-height-sm, 30px)
@@ -182,7 +186,7 @@
182
186
  );
183
187
  }
184
188
 
185
- [data-ui='list-item'][data-size='lg'] {
189
+ [data-ui-list-item][data-size='lg'] {
186
190
  --_min-block: var(
187
191
  --slotted-list-item-min-block-size-lg,
188
192
  var(--slotted-control-height-lg, 38px)
@@ -220,7 +224,7 @@
220
224
  * never fills a resting row, because a list of rows each filled with a tone
221
225
  * is a list nobody can read. The current row is not the tone's to move.
222
226
  */
223
- [data-ui='list-item'][data-tone='accent'] {
227
+ [data-ui-list-item][data-tone='accent'] {
224
228
  --_text: var(--slotted-tone-accent-text, CanvasText);
225
229
  --_subtle-hover: var(--slotted-tone-accent-subtle-hover, ButtonFace);
226
230
  --_subtle-active: var(--slotted-tone-accent-subtle-active, ButtonFace);
@@ -234,7 +238,7 @@
234
238
  --_selected-active: var(--_subtle-active);
235
239
  }
236
240
 
237
- [data-ui='list-item'][data-tone='success'] {
241
+ [data-ui-list-item][data-tone='success'] {
238
242
  --_text: var(--slotted-tone-success-text, CanvasText);
239
243
  --_subtle-hover: var(--slotted-tone-success-subtle-hover, ButtonFace);
240
244
  --_subtle-active: var(--slotted-tone-success-subtle-active, ButtonFace);
@@ -248,7 +252,21 @@
248
252
  --_selected-active: var(--_subtle-active);
249
253
  }
250
254
 
251
- [data-ui='list-item'][data-tone='warning'] {
255
+ [data-ui-list-item][data-tone='info'] {
256
+ --_text: var(--slotted-tone-info-text, CanvasText);
257
+ --_subtle-hover: var(--slotted-tone-info-subtle-hover, ButtonFace);
258
+ --_subtle-active: var(--slotted-tone-info-subtle-active, ButtonFace);
259
+ --_solid-hover: var(--slotted-tone-info-solid-hover, ButtonFace);
260
+ --_solid-active: var(--slotted-tone-info-solid-active, ButtonFace);
261
+ --_surface: var(--slotted-tone-info-surface, Canvas);
262
+ --_selected-edge: var(--slotted-tone-info-border, ButtonBorder);
263
+ --_selected-surface: var(--slotted-list-item-background-selected, var(--_surface));
264
+ --_selected-text: var(--slotted-tone-info-text, CanvasText);
265
+ --_selected-hover: var(--_subtle-hover);
266
+ --_selected-active: var(--_subtle-active);
267
+ }
268
+
269
+ [data-ui-list-item][data-tone='warning'] {
252
270
  --_text: var(--slotted-tone-warning-text, CanvasText);
253
271
  --_subtle-hover: var(--slotted-tone-warning-subtle-hover, ButtonFace);
254
272
  --_subtle-active: var(--slotted-tone-warning-subtle-active, ButtonFace);
@@ -262,7 +280,7 @@
262
280
  --_selected-active: var(--_subtle-active);
263
281
  }
264
282
 
265
- [data-ui='list-item'][data-tone='danger'] {
283
+ [data-ui-list-item][data-tone='danger'] {
266
284
  --_text: var(--slotted-tone-danger-text, CanvasText);
267
285
  --_subtle-hover: var(--slotted-tone-danger-subtle-hover, ButtonFace);
268
286
  --_subtle-active: var(--slotted-tone-danger-subtle-active, ButtonFace);
@@ -293,13 +311,13 @@
293
311
  * sits on the title's line in a row of three lines instead of floating in the
294
312
  * middle of the block.
295
313
  */
296
- [data-ui='list-item'][data-marker='bullet'] > [data-part='marker'],
297
- [data-ui='list-item'][data-marker='number']::before {
314
+ [data-ui-list-item][data-marker='bullet'] > [data-part-marker],
315
+ [data-ui-list-item][data-marker='number']::before {
298
316
  /* The mark sits on the title's first line and never in the middle of the
299
317
  block, whatever `align` says. `align` is about the leading visual — an
300
318
  avatar beside three lines of text belongs with the title or with the
301
319
  block, and both readings are defensible — while a list marker has only
302
- one reading, and it is the platform's own. The first capture centred a
320
+ one reading, and it is the platform's own. The first capture centerd a
303
321
  bullet between two lines and read as a bullet nobody had placed. */
304
322
  align-items: start;
305
323
  /* One line tall, stated rather than stretched. The mark's own box holds no
@@ -329,7 +347,7 @@
329
347
  padding-block-start: var(--_pad-block);
330
348
  }
331
349
 
332
- [data-ui='list-item'][data-marker='bullet'] > [data-part='marker'] {
350
+ [data-ui-list-item][data-marker='bullet'] > [data-part-marker] {
333
351
  --slotted-icon-size: var(--_marker-size);
334
352
  justify-content: center;
335
353
  }
@@ -338,27 +356,27 @@
338
356
  middle of the part, because the part is one line and its padding tall and
339
357
  the dot has no baseline to sit on. Half the line less half the dot, so the
340
358
  dot stands between the baseline and the cap line rather than on either. */
341
- [data-ui='list-item'][data-marker='bullet'] > [data-part='marker'] > [data-ui='icon'] {
359
+ [data-ui-list-item][data-marker='bullet'] > [data-part-marker] > [data-ui-icon] {
342
360
  margin-block-start: calc(
343
361
  var(--_font-size) * var(--slotted-line-height-md, 1.5) * 0.5 - var(--_marker-size) * 0.5
344
362
  );
345
363
  }
346
364
 
347
- [data-ui='list-item'][data-marker='number']::before {
365
+ [data-ui-list-item][data-marker='number']::before {
348
366
  content: counter(slotted-list-item) '.';
349
367
  justify-content: end;
350
368
  }
351
369
 
352
370
  /* The mark already stands in its own gutter, so the box beside it gives up
353
371
  the padding it would otherwise repeat. */
354
- [data-ui='list-item']:is([data-marker='bullet'], [data-marker='number']) > [data-part='content'] {
372
+ [data-ui-list-item]:is([data-marker='bullet'], [data-marker='number']) > [data-part-content] {
355
373
  padding-inline-start: 0;
356
374
  }
357
375
 
358
376
  /* `inset` is the set's answer for a list inside a box that already pads its
359
377
  own content. The mark gives up its gutter with everything else. */
360
- [data-ui='list-item'][data-inset][data-marker='bullet'] > [data-part='marker'],
361
- [data-ui='list-item'][data-inset][data-marker='number']::before {
378
+ [data-ui-list-item][data-inset][data-marker='bullet'] > [data-part-marker],
379
+ [data-ui-list-item][data-inset][data-marker='number']::before {
362
380
  margin-inline-start: 0;
363
381
  }
364
382
 
@@ -375,7 +393,7 @@
375
393
  * consumer choosing between the three chooses an accessibility tree, never a
376
394
  * different picture.
377
395
  */
378
- [data-ui='list-item'] > [data-part='content'] {
396
+ [data-ui-list-item] > [data-part-content] {
379
397
  appearance: none;
380
398
  background-color: transparent;
381
399
  border: none;
@@ -420,20 +438,20 @@
420
438
  * `framed` clips its own corners at the set, so the first and last rows are
421
439
  * rounded by the box rather than by themselves.
422
440
  */
423
- [data-ui='list-item']:is([data-variant='ruled'], [data-variant='framed']) {
441
+ [data-ui-list-item]:is([data-variant='ruled'], [data-variant='framed']) {
424
442
  border-radius: 0;
425
443
  }
426
444
 
427
445
  /* A row whose whole box resolves somewhere, or runs a command, is a target
428
446
  and the pointer says so. A row that is only read keeps the arrow. */
429
- [data-ui='list-item']:not([data-disabled]) > :is(a, button)[data-part='content']:not(:disabled) {
447
+ [data-ui-list-item]:not([data-disabled]) > :is(a, button)[data-part-content]:not(:disabled) {
430
448
  cursor: pointer;
431
449
  }
432
450
 
433
451
  /* `inset` takes the row's inline padding away so a list inside a padded box
434
452
  lines its titles up with the box. The fill and the rule still run edge to
435
453
  edge, which is the half MUI's `disableGutters` leaves out. */
436
- [data-ui='list-item'][data-inset] > [data-part='content'] {
454
+ [data-ui-list-item][data-inset] > [data-part-content] {
437
455
  padding-inline: 0;
438
456
  }
439
457
 
@@ -443,11 +461,11 @@
443
461
  * the same decision `alignItems`; Angular Material derives it from counting
444
462
  * the lines, which is a count a translated string can change.
445
463
  */
446
- [data-ui='list-item'][data-align='start'] > [data-part='content'] {
464
+ [data-ui-list-item][data-align='start'] > [data-part-content] {
447
465
  align-items: start;
448
466
  }
449
467
 
450
- [data-ui='list-item'] > [data-part='content'] > [data-part='start'] {
468
+ [data-ui-list-item] > [data-part-content] > [data-part-start] {
451
469
  align-items: center;
452
470
  color: var(--_text);
453
471
  display: flex;
@@ -464,15 +482,15 @@
464
482
  * the first line of the text beside it — the same line box this row sets
465
483
  * its title in, at the same step — so the column only has to stand at the
466
484
  * top of that line and be as tall as it: the box then sits on the title's
467
- * centre by the chooser's own arithmetic rather than by a second one here.
468
- * Centred on the block, as an icon is, a one-line row put the box a pixel
485
+ * center by the chooser's own arithmetic rather than by a second one here.
486
+ * Centerd on the block, as an icon is, a one-line row put the box a pixel
469
487
  * low and a two-line row put it between the lines.
470
488
  *
471
489
  * The column is the chooser's own square, fixed across densities as the
472
490
  * chooser is (CK1); the gap beside it is the row's control gap, the same
473
491
  * distance the chooser puts between its box and its own label.
474
492
  */
475
- [data-ui='list-item'] > [data-part='content'] > [data-part='start']:has(> [data-ui='checkbox']) {
493
+ [data-ui-list-item] > [data-part-content] > [data-part-start]:has(> [data-ui-checkbox]) {
476
494
  align-items: start;
477
495
  inline-size: var(--_control-size);
478
496
  min-block-size: calc(var(--_font-size) * var(--slotted-line-height-md, 1.5));
@@ -480,7 +498,7 @@
480
498
 
481
499
  /* A leading visual beside a three-line row sits on the title's line, and the
482
500
  line is the box's own, not the block's. */
483
- [data-ui='list-item'][data-align='start'] > [data-part='content'] > [data-part='start'] {
501
+ [data-ui-list-item][data-align='start'] > [data-part-content] > [data-part-start] {
484
502
  min-block-size: calc(var(--_font-size) * var(--slotted-line-height-md, 1.5));
485
503
  }
486
504
 
@@ -490,7 +508,7 @@
490
508
  * word, so a title that is one unbroken token — a URL, a commit hash — pushes
491
509
  * the metadata out of the row instead of breaking inside it.
492
510
  */
493
- [data-ui='list-item'] > [data-part='content'] > [data-part='body'] {
511
+ [data-ui-list-item] > [data-part-content] > [data-part-body] {
494
512
  display: flex;
495
513
  flex-direction: column;
496
514
  grid-area: body;
@@ -498,7 +516,7 @@
498
516
  row-gap: var(--slotted-list-item-body-gap, var(--slotted-space-1, 0.125rem));
499
517
  }
500
518
 
501
- [data-ui='list-item'] > [data-part='content'] > [data-part='body'] > [data-part='label'] {
519
+ [data-ui-list-item] > [data-part-content] > [data-part-body] > [data-part-label] {
502
520
  color: inherit;
503
521
  font-size: var(--_font-size);
504
522
  font-weight: var(--slotted-list-item-font-weight, var(--slotted-font-weight-regular, 400));
@@ -514,7 +532,7 @@
514
532
  unicode-bidi: plaintext;
515
533
  }
516
534
 
517
- [data-ui='list-item'] > [data-part='content'] > [data-part='body'] > [data-part='description'] {
535
+ [data-ui-list-item] > [data-part-content] > [data-part-body] > [data-part-description] {
518
536
  color: var(--_muted);
519
537
  font-size: var(--slotted-list-item-description-font-size, var(--slotted-font-size-xs, 0.75rem));
520
538
  line-height: var(--slotted-line-height-sm, 1.45);
@@ -533,23 +551,46 @@
533
551
  * truncated string is still readable to assistive technology and still
534
552
  * reachable in full when the row is opened.
535
553
  */
536
- [data-ui='list-item'][data-truncate]
537
- > [data-part='content']
538
- > [data-part='body']
539
- > :is([data-part='label'], [data-part='description']) {
554
+ [data-ui-list-item][data-truncate]
555
+ > [data-part-content]
556
+ > [data-part-body]
557
+ > :is([data-part-label], [data-part-description]) {
540
558
  overflow: hidden;
541
559
  overflow-wrap: normal;
542
560
  text-overflow: ellipsis;
543
561
  white-space: nowrap;
544
562
  }
545
563
 
564
+ /*
565
+ * One line per text is one height per row only if the body keeps a width:
566
+ * the end and the actions never shrink, and at 358px a long tag and a
567
+ * button left the title under twenty pixels, one letter per line. The body
568
+ * keeps `--slotted-list-item-body-min-inline-size` (10rem, never more than
569
+ * the row), and the end gives up the rest and cuts its own content.
570
+ */
571
+ [data-ui-list-item][data-truncate] > [data-part-content] {
572
+ grid-template-columns:
573
+ auto
574
+ minmax(min(100%, var(--slotted-list-item-body-min-inline-size, 10rem)), 1fr)
575
+ minmax(0, auto);
576
+ }
577
+
578
+ [data-ui-list-item][data-truncate] > [data-part-content] > [data-part-end] {
579
+ min-inline-size: 0;
580
+ overflow: hidden;
581
+ }
582
+
583
+ [data-ui-list-item][data-truncate]:has(> [data-part-actions]) > [data-part-content] {
584
+ flex: 1 1 0;
585
+ }
586
+
546
587
  /**
547
588
  * The metadata that belongs to what the row says — a timestamp, a count, a
548
589
  * badge. It is inside `content`, so it is part of the row's own name for a
549
590
  * reader and part of its target for a pointer. Anything that acts is
550
591
  * `actions` instead.
551
592
  */
552
- [data-ui='list-item'] > [data-part='content'] > [data-part='end'] {
593
+ [data-ui-list-item] > [data-part-content] > [data-part-end] {
553
594
  align-items: center;
554
595
  color: var(--_muted);
555
596
  display: flex;
@@ -571,7 +612,7 @@
571
612
  * The box is above the row's own fill, so a control here is operable on a row
572
613
  * whose whole surface resolves somewhere else.
573
614
  */
574
- [data-ui='list-item'] > [data-part='actions'] {
615
+ [data-ui-list-item] > [data-part-actions] {
575
616
  align-items: center;
576
617
  /* The box counts its own inset (LI4). Below the breakpoint it takes the
577
618
  whole line and the row's inline inset on both sides, and read as
@@ -581,23 +622,50 @@
581
622
  display: flex;
582
623
  flex: none;
583
624
  gap: var(--_gap);
625
+ padding-block: var(--_actions-start, var(--_actions-inset)) var(--_actions-inset);
584
626
  padding-inline-end: var(--_pad-inline);
585
627
  position: relative;
586
628
  }
587
629
 
588
- [data-ui='list-item'][data-inset] > [data-part='actions'] {
630
+ [data-ui-list-item][data-inset] > [data-part-actions] {
589
631
  padding-inline-end: 0;
590
632
  }
591
633
 
634
+ /**
635
+ * The leading control outside the box (LI2 for a row whose box is a link or
636
+ * a button). It stands where the box's own leading column would: the row's
637
+ * inline inset before it, the chooser's square, on the title's first line,
638
+ * and the control gap before the box, which gives up its own start inset.
639
+ */
640
+ [data-ui-list-item] > [data-part-select] {
641
+ align-items: start;
642
+ display: flex;
643
+ flex: none;
644
+ inline-size: var(--_control-size);
645
+ min-block-size: calc(var(--_font-size) * var(--slotted-line-height-md, 1.5));
646
+ padding-block-start: var(--_pad-block);
647
+ padding-inline-start: var(--_pad-inline);
648
+ position: relative;
649
+ }
650
+
651
+ [data-ui-list-item][data-inset] > [data-part-select] {
652
+ padding-inline-start: 0;
653
+ }
654
+
655
+ [data-ui-list-item] > [data-part-select] + [data-part-content] {
656
+ padding-inline-start: var(--_gap);
657
+ }
658
+
592
659
  /**
593
660
  * The independent targets follow `align` for the same reason the leading
594
- * visual and the metadata do. Left centred on the block while `end` sat on
661
+ * visual and the metadata do. Left centerd on the block while `end` sat on
595
662
  * the title's line, a row of two lines put its badge and its delete control
596
663
  * on two different lines — the one thing a trailing pair must not do.
597
664
  */
598
- [data-ui='list-item'][data-align='start'] > [data-part='actions'] {
665
+ [data-ui-list-item][data-align='start'] > [data-part-actions] {
666
+ --_actions-start: max(var(--_pad-block), var(--_actions-inset));
667
+
599
668
  align-items: start;
600
- padding-block-start: var(--_pad-block);
601
669
  }
602
670
 
603
671
  /**
@@ -616,7 +684,7 @@
616
684
  * `framed` rules its rows exactly as `ruled` does; what it adds is the box
617
685
  * around them, and that box belongs to the set.
618
686
  */
619
- [data-ui='list-item']:is([data-variant='ruled'], [data-variant='framed']):not(:first-child) {
687
+ [data-ui-list-item]:is([data-variant='ruled'], [data-variant='framed']):not(:first-child) {
620
688
  /* A shadow rather than a border, and the reason is the pointer. A border is
621
689
  part of the row's box and outside the box that paints hover, so the top
622
690
  pixel of every ruled row answered nothing: the reader saw a one-pixel
@@ -636,7 +704,7 @@
636
704
  * drawn once, at row scale, so a list of cards and a list of rows are the
637
705
  * same family in two arrangements rather than two families.
638
706
  */
639
- [data-ui='list-item'][data-variant='separated'] {
707
+ [data-ui-list-item][data-variant='separated'] {
640
708
  --_fill: var(--slotted-list-item-background, var(--slotted-surface-raised, Canvas));
641
709
 
642
710
  border: var(--_rule-width) solid var(--_rule);
@@ -645,7 +713,7 @@
645
713
  /* The row's own corners clip the fill its content paints, so a hover wash
646
714
  inside a rounded row does not square off its edges. `clip` rather than
647
715
  `hidden`: a row is not a scroll container, and `hidden` would make it one. */
648
- [data-ui='list-item'][data-variant='separated'] {
716
+ [data-ui-list-item][data-variant='separated'] {
649
717
  overflow: clip;
650
718
  }
651
719
 
@@ -660,15 +728,22 @@
660
728
  * Only a row that acts answers the pointer. A row that is only read has
661
729
  * nothing to say about being pointed at, and washing it would promise an
662
730
  * interaction that never arrives.
731
+ *
732
+ * The wash waits for a pointer that hovers: a touch screen leaves the last
733
+ * tapped element in `:hover` until something else is touched, and the row
734
+ * kept the wash after the tap and read as selected. Press stays the feedback
735
+ * of a finger.
663
736
  */
664
- [data-ui='list-item']:not([data-disabled]):not([data-loading]):has(
665
- > :is(a, button)[data-part='content']:not(:disabled):hover
666
- ) {
667
- --_fill: var(--_hover);
737
+ @media (hover: hover) {
738
+ [data-ui-list-item]:not([data-disabled]):not([data-loading]):has(
739
+ > :is(a, button)[data-part-content]:not(:disabled):hover
740
+ ) {
741
+ --_fill: var(--_hover);
742
+ }
668
743
  }
669
744
 
670
- [data-ui='list-item']:not([data-disabled]):not([data-loading]):has(
671
- > :is(a, button)[data-part='content']:not(:disabled):active
745
+ [data-ui-list-item]:not([data-disabled]):not([data-loading]):has(
746
+ > :is(a, button)[data-part-content]:not(:disabled):active
672
747
  ) {
673
748
  --_fill: var(--_active);
674
749
  }
@@ -679,7 +754,7 @@
679
754
  * and on the last row it is drawn outside the page; a negative offset keeps
680
755
  * the whole ring on the row it is about.
681
756
  */
682
- [data-ui='list-item'] > [data-part='content']:focus-visible {
757
+ [data-ui-list-item] > [data-part-content]:focus-visible {
683
758
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
684
759
  outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
685
760
  }
@@ -694,7 +769,7 @@
694
769
  * announce for itself, so this is also the only one of the two the row says
695
770
  * out loud.
696
771
  */
697
- [data-ui='list-item'][data-current] {
772
+ [data-ui-list-item][data-current] {
698
773
  --_fill: var(--_current-surface);
699
774
  /* The edge is an inset shadow rather than a border, so the state changes
700
775
  no measurement and moves no text. It is what carries the state in
@@ -708,7 +783,7 @@
708
783
  * and the control the page puts in `start` — a `checkbox` — is what announces
709
784
  * it. `card` reached the same conclusion for the same reason.
710
785
  */
711
- [data-ui='list-item'][data-selected] {
786
+ [data-ui-list-item][data-selected] {
712
787
  /* A selected row that is hovered has to darken, not lighten. The resting
713
788
  fill is already the tone's subtle step, so the two pointer states move
714
789
  one step along the same subtle pair rather than staying where an
@@ -718,7 +793,7 @@
718
793
  --_active: var(--_selected-active);
719
794
  }
720
795
 
721
- [data-ui='list-item'][data-selected] {
796
+ [data-ui-list-item][data-selected] {
722
797
  --_fill: var(--_selected-surface);
723
798
  --_edge-shadow: inset 0 0 0 var(--_rule-width) var(--_selected-edge);
724
799
  }
@@ -732,8 +807,8 @@
732
807
  * and a rule drawn above the edge made its top two pixels in `high-contrast`,
733
808
  * where both are black.
734
809
  */
735
- [data-ui='list-item']:is([data-selected], [data-current]):not(:first-child),
736
- [data-ui='list-item']:is([data-selected], [data-current]) + [data-ui='list-item'] {
810
+ [data-ui-list-item]:is([data-selected], [data-current]):not(:first-child),
811
+ [data-ui-list-item]:is([data-selected], [data-current]) + [data-ui-list-item] {
737
812
  --_rule-shadow: 0 0 0 0 transparent;
738
813
  }
739
814
 
@@ -742,14 +817,14 @@
742
817
  them; both edges drawn made that line two pixels. The offsets are
743
818
  physical because `box-shadow` has no logical form, and the two sides are
744
819
  the same width, so the mirrored row is the same picture. */
745
- [data-ui='list-item'][data-selected] + [data-ui='list-item'][data-selected] {
820
+ [data-ui-list-item][data-selected] + [data-ui-list-item][data-selected] {
746
821
  --_edge-shadow:
747
822
  inset 0 calc(var(--_rule-width) * -1) 0 0 var(--_selected-edge),
748
823
  inset var(--_rule-width) 0 0 0 var(--_selected-edge),
749
824
  inset calc(var(--_rule-width) * -1) 0 0 0 var(--_selected-edge);
750
825
  }
751
826
 
752
- [data-ui='list-item'][data-selected] > [data-part='content'] {
827
+ [data-ui-list-item][data-selected] > [data-part-content] {
753
828
  color: var(--_selected-text);
754
829
  font-weight: var(
755
830
  --slotted-list-item-font-weight-selected,
@@ -757,7 +832,7 @@
757
832
  );
758
833
  }
759
834
 
760
- [data-ui='list-item'][data-current] > [data-part='content'] {
835
+ [data-ui-list-item][data-current] > [data-part-content] {
761
836
  font-weight: var(
762
837
  --slotted-list-item-font-weight-current,
763
838
  var(--slotted-font-weight-medium, 500)
@@ -776,14 +851,14 @@
776
851
  * No placeholder is drawn. `skeleton` owns placeholder geometry, and a second
777
852
  * answer to that question is what `collapsible` already refused.
778
853
  */
779
- [data-ui='list-item'][data-loading] {
854
+ [data-ui-list-item][data-loading] {
780
855
  /* One retarget rather than a rule per part: the title, the description, the
781
856
  metadata and the mark all read the same two custom properties, so the
782
857
  whole row recedes together and nothing changes size. */
783
858
  --_text: var(--_muted);
784
859
  }
785
860
 
786
- [data-ui='list-item'][data-loading] > [data-part='content'] {
861
+ [data-ui-list-item][data-loading] > [data-part-content] {
787
862
  cursor: progress;
788
863
  }
789
864
 
@@ -799,7 +874,7 @@
799
874
  * control can refuse an interaction, which is the rule `card` states for the
800
875
  * same shape.
801
876
  */
802
- [data-ui='list-item'][data-disabled] {
877
+ [data-ui-list-item][data-disabled] {
803
878
  /* Both, stated from one alias rather than one pointing at the other: a row
804
879
  that is loading retargets `--_text` at `--_muted`, and a disabled loading
805
880
  row would otherwise be a cycle CSS resolves by dropping both. Disabled is
@@ -812,7 +887,7 @@
812
887
  --_muted: var(--_disabled-ink);
813
888
  }
814
889
 
815
- [data-ui='list-item'][data-disabled] > [data-part='content'] {
890
+ [data-ui-list-item][data-disabled] > [data-part-content] {
816
891
  cursor: default;
817
892
  }
818
893
 
@@ -823,7 +898,7 @@
823
898
  * surface a selected row is filled with, so a disabled card and a selected
824
899
  * one were one rectangle told apart only by their edge.
825
900
  */
826
- [data-ui='list-item'][data-disabled][data-variant='separated'] {
901
+ [data-ui-list-item][data-disabled][data-variant='separated'] {
827
902
  --_fill: var(--slotted-surface-sunken, Canvas);
828
903
 
829
904
  border-color: var(--slotted-disabled-border, GrayText);
@@ -842,22 +917,27 @@
842
917
  * is invalid CSS — `docs/token-foundation.md` rule 4.
843
918
  */
844
919
  @container slotted-list-item (max-inline-size: 22rem) {
845
- [data-ui='list-item'] > [data-part='content'] {
920
+ /* `endPlacement="beside"` keeps the end on the title's line: a figure
921
+ that belongs beside its name (an amount, a balance) stays in the column
922
+ of figures of the rows above and below. */
923
+ [data-ui-list-item]:not([data-end-placement='beside']) > [data-part-content] {
846
924
  grid-template-areas:
847
925
  'start body'
848
926
  'start end';
849
927
  grid-template-columns: auto minmax(0, 1fr);
850
928
  }
851
929
 
852
- [data-ui='list-item'] > [data-part='content'] > [data-part='end'] {
930
+ [data-ui-list-item]:not([data-end-placement='beside']) > [data-part-content] > [data-part-end] {
853
931
  justify-content: start;
854
932
  margin-block-start: var(--slotted-list-item-body-gap, var(--slotted-space-1, 0.125rem));
855
933
  margin-inline-start: 0;
856
934
  }
857
935
 
858
- /* The leading visual now spans two rows, so it stops being centred on the
936
+ /* The leading visual now spans two rows, so it stops being centerd on the
859
937
  block and returns to the title's line. */
860
- [data-ui='list-item'] > [data-part='content'] > [data-part='start'] {
938
+ [data-ui-list-item]:not([data-end-placement='beside'])
939
+ > [data-part-content]
940
+ > [data-part-start] {
861
941
  align-self: start;
862
942
  min-block-size: calc(var(--_font-size) * var(--slotted-line-height-md, 1.5));
863
943
  }
@@ -871,14 +951,14 @@
871
951
  * They stay at the end of the row, where they were, and take the row's own
872
952
  * inline inset so they line up with the content above them.
873
953
  */
874
- [data-ui='list-item'] > [data-part='actions'] {
954
+ [data-ui-list-item] > [data-part-actions] {
875
955
  flex-basis: 100%;
876
956
  justify-content: flex-end;
877
- padding-block-end: var(--_pad-block);
957
+ padding-block: var(--_actions-start, 0px) max(var(--_pad-block), var(--_actions-inset));
878
958
  padding-inline: var(--_pad-inline);
879
959
  }
880
960
 
881
- [data-ui='list-item'][data-inset] > [data-part='actions'] {
961
+ [data-ui-list-item][data-inset] > [data-part-actions] {
882
962
  padding-inline: 0;
883
963
  }
884
964
 
@@ -891,24 +971,59 @@
891
971
  * keeps the line it had; a target that carries a word still takes its
892
972
  * own, because a word is what does not fit.
893
973
  */
894
- [data-ui='list-item'] > [data-part='actions']:not(:has(> :not([data-shape]))) {
974
+ [data-ui-list-item] > [data-part-actions]:not(:has(> :not([data-shape]))) {
895
975
  flex-basis: auto;
896
- padding-block-end: 0;
976
+ padding-block: var(--_actions-start, var(--_actions-inset)) var(--_actions-inset);
897
977
  padding-inline: 0 var(--_pad-inline);
898
978
  }
899
979
 
900
- [data-ui='list-item'][data-inset] > [data-part='actions']:not(:has(> :not([data-shape]))) {
980
+ [data-ui-list-item][data-inset] > [data-part-actions]:not(:has(> :not([data-shape]))) {
901
981
  padding-inline-end: 0;
902
982
  }
903
983
  }
904
984
 
905
985
  /**
906
- * ── Forced colours ─────────────────────────────────────────────────────
986
+ * ── The inset fill ─────────────────────────────────────────────────────
987
+ *
988
+ * `fill="inset"` on a plain or ruled list: the list reaches past its content
989
+ * by `--slotted-list-fill-inset` on each side (its own stylesheet), and the
990
+ * row gives that distance back as its inline padding. The content keeps the
991
+ * inline edge of the container, and the row's box, with its radius, is the
992
+ * tile its grounds are painted on and the target the finger lands on. The
993
+ * rule between rows stays as wide as the content.
994
+ */
995
+ [data-ui-list-item][data-fill='inset']:is([data-variant='plain'], [data-variant='ruled']) {
996
+ --_pad-inline: var(--slotted-list-fill-inset, var(--slotted-space-3, 0.375rem));
997
+
998
+ border-radius: var(--_radius);
999
+ box-shadow: var(--_edge-shadow);
1000
+ position: relative;
1001
+ }
1002
+
1003
+ [data-ui-list-item][data-fill='inset'][data-inset]:is(
1004
+ [data-variant='plain'],
1005
+ [data-variant='ruled']
1006
+ )
1007
+ > [data-part-content] {
1008
+ padding-inline: var(--_pad-inline);
1009
+ }
1010
+
1011
+ [data-ui-list-item][data-fill='inset'][data-variant='ruled']:not(:first-child)::after {
1012
+ box-shadow: var(--_rule-shadow);
1013
+ content: '';
1014
+ inset-block: 0;
1015
+ inset-inline: var(--_pad-inline);
1016
+ pointer-events: none;
1017
+ position: absolute;
1018
+ }
1019
+
1020
+ /**
1021
+ * ── Forced colors ─────────────────────────────────────────────────────
907
1022
  *
908
1023
  * The theme remaps every semantic token once, so the row needs a rule only
909
1024
  * for what it paints itself. The two grounds and the two rings are all
910
1025
  * dropped here, so both states have to be said again in the system's own
911
- * colours.
1026
+ * colors.
912
1027
  */
913
1028
  @media (forced-colors: active) {
914
1029
  /**
@@ -916,20 +1031,20 @@
916
1031
  * resting one would be the same rectangle. Selection is the accent state,
917
1032
  * and the system's own selected pair is what says so.
918
1033
  */
919
- [data-ui='list-item'][data-selected] {
1034
+ [data-ui-list-item][data-selected] {
920
1035
  background-color: Highlight;
921
1036
  }
922
1037
 
923
- [data-ui='list-item'][data-selected] > [data-part='content'] {
1038
+ [data-ui-list-item][data-selected] > [data-part-content] {
924
1039
  color: HighlightText;
925
1040
  }
926
1041
 
927
1042
  /**
928
1043
  * The current row keeps its ring as a one-pixel outline in the selection
929
- * colour, drawn inward so it changes no measurement: the inset shadow that
1044
+ * color, drawn inward so it changes no measurement: the inset shadow that
930
1045
  * says it elsewhere is decoration the theme cannot reach (R1).
931
1046
  */
932
- [data-ui='list-item'][data-current]:not([data-selected]) {
1047
+ [data-ui-list-item][data-current]:not([data-selected]) {
933
1048
  outline: var(--slotted-border-width-thin, 1px) solid Highlight;
934
1049
  outline-offset: calc(-1 * var(--slotted-border-width-thin, 1px));
935
1050
  }