@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.31

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 (205) hide show
  1. package/package.json +13 -1
  2. package/src/accordion/accordion.css +11 -11
  3. package/src/action-bar/action-bar.css +47 -44
  4. package/src/action-bar/action-bar.tokens.json +1 -0
  5. package/src/action-sheet/action-sheet.css +39 -39
  6. package/src/alert/alert.css +97 -97
  7. package/src/alert/alert.tokens.json +6 -1
  8. package/src/app-shell/app-shell.css +456 -329
  9. package/src/app-shell/app-shell.tokens.json +6 -3
  10. package/src/aspect-ratio/aspect-ratio.css +9 -9
  11. package/src/attachment/attachment.css +118 -114
  12. package/src/avatar/avatar.css +96 -66
  13. package/src/avatar/avatar.tokens.json +7 -0
  14. package/src/avatar-group/avatar-group.css +22 -23
  15. package/src/badge/badge.css +54 -46
  16. package/src/badge/badge.tokens.json +5 -0
  17. package/src/breadcrumb/breadcrumb.css +52 -52
  18. package/src/button/button.css +137 -89
  19. package/src/button/button.tokens.json +5 -0
  20. package/src/button-group/button-group.css +80 -79
  21. package/src/button-group/button-group.tokens.json +1 -0
  22. package/src/calendar/calendar.css +139 -109
  23. package/src/calendar/calendar.tokens.json +5 -1
  24. package/src/card/card.css +70 -67
  25. package/src/card/card.tokens.json +1 -0
  26. package/src/carousel/carousel.css +158 -169
  27. package/src/cascader/cascader.css +161 -159
  28. package/src/cascader/cascader.tokens.json +2 -0
  29. package/src/chart/chart.css +288 -267
  30. package/src/chart/chart.tokens.json +4 -0
  31. package/src/checkbox/checkbox.css +143 -148
  32. package/src/checkbox-group/checkbox-group.css +7 -7
  33. package/src/code-block/code-block.css +85 -89
  34. package/src/collapsible/collapsible.css +81 -80
  35. package/src/collapsible/collapsible.tokens.json +1 -0
  36. package/src/color-picker/color-picker.css +106 -114
  37. package/src/column-manager/column-manager.css +111 -119
  38. package/src/combobox/combobox.css +206 -132
  39. package/src/combobox/combobox.tokens.json +4 -0
  40. package/src/command-palette/command-palette.css +155 -102
  41. package/src/command-palette/command-palette.tokens.json +2 -0
  42. package/src/container/container.css +27 -27
  43. package/src/context-menu/context-menu.css +9 -9
  44. package/src/currency-field/currency-field.css +119 -119
  45. package/src/currency-field/currency-field.tokens.json +1 -0
  46. package/src/dashboard-grid/dashboard-grid.css +204 -115
  47. package/src/data-grid/data-grid.css +598 -496
  48. package/src/data-grid/data-grid.tokens.json +5 -1
  49. package/src/data-list/data-list.css +82 -71
  50. package/src/data-list/data-list.tokens.json +2 -1
  51. package/src/date-field/date-field.css +62 -57
  52. package/src/date-field/date-field.tokens.json +1 -0
  53. package/src/date-picker/date-picker.css +117 -58
  54. package/src/date-picker/date-picker.tokens.json +5 -0
  55. package/src/date-range-picker/date-range-picker.css +157 -127
  56. package/src/date-range-picker/date-range-picker.tokens.json +4 -0
  57. package/src/datetime-field/datetime-field.css +90 -90
  58. package/src/datetime-field/datetime-field.tokens.json +1 -0
  59. package/src/datetime-picker/datetime-picker.css +123 -70
  60. package/src/datetime-picker/datetime-picker.tokens.json +4 -1
  61. package/src/datetime-range-picker/datetime-range-picker.css +191 -163
  62. package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
  63. package/src/description-list/description-list.css +105 -75
  64. package/src/description-list/description-list.tokens.json +1 -0
  65. package/src/detail-panel/detail-panel.css +86 -71
  66. package/src/detail-panel/detail-panel.tokens.json +2 -0
  67. package/src/dialog/dialog.css +435 -199
  68. package/src/dialog/dialog.tokens.json +9 -0
  69. package/src/divider/divider.css +20 -20
  70. package/src/drawer/drawer.css +598 -237
  71. package/src/drawer/drawer.tokens.json +14 -0
  72. package/src/entity-picker/entity-picker.css +326 -272
  73. package/src/entity-picker/entity-picker.tokens.json +4 -0
  74. package/src/event-calendar/event-calendar.css +357 -399
  75. package/src/field/field.css +106 -93
  76. package/src/field/field.tokens.json +2 -0
  77. package/src/field-group/field-group.css +43 -33
  78. package/src/field-group/field-group.tokens.json +3 -0
  79. package/src/filter-bar/filter-bar.css +200 -216
  80. package/src/form/form.css +100 -26
  81. package/src/form/form.tokens.json +6 -1
  82. package/src/fullscreen/fullscreen.css +26 -27
  83. package/src/grid/grid.css +29 -29
  84. package/src/highlight/highlight.css +11 -11
  85. package/src/hover-card/hover-card.css +9 -9
  86. package/src/icon/icon.css +67 -20
  87. package/src/icon/icon.tokens.json +1 -0
  88. package/src/image/image.css +42 -42
  89. package/src/import-export-center/import-export-center.css +147 -168
  90. package/src/import-export-center/import-export-center.tokens.json +1 -0
  91. package/src/inline/inline.css +28 -28
  92. package/src/inline-message/inline-message.css +162 -86
  93. package/src/inline-message/inline-message.tokens.json +4 -0
  94. package/src/kbd/kbd.css +62 -50
  95. package/src/kbd/kbd.tokens.json +3 -0
  96. package/src/link/link.css +54 -33
  97. package/src/link/link.tokens.json +4 -0
  98. package/src/list/list.css +23 -23
  99. package/src/list-item/list-item.css +89 -75
  100. package/src/list-item/list-item.tokens.json +7 -0
  101. package/src/listbox/listbox.css +71 -70
  102. package/src/listbox/listbox.tokens.json +0 -1
  103. package/src/loading-overlay/loading-overlay.css +86 -103
  104. package/src/markdown/markdown.css +20 -20
  105. package/src/media-viewer/media-viewer.css +790 -0
  106. package/src/media-viewer/media-viewer.tokens.json +53 -0
  107. package/src/menu/menu.css +166 -83
  108. package/src/menu/menu.tokens.json +3 -1
  109. package/src/menubar/menubar.css +16 -16
  110. package/src/message/message.css +1253 -1246
  111. package/src/message/message.tokens.json +5 -0
  112. package/src/message-scroller/message-scroller.css +323 -320
  113. package/src/multi-select/multi-select.css +233 -174
  114. package/src/multi-select/multi-select.tokens.json +3 -0
  115. package/src/navigation-menu/navigation-menu.css +170 -191
  116. package/src/navigation-menu/navigation-menu.tokens.json +1 -0
  117. package/src/notification-center/notification-center.css +155 -163
  118. package/src/notification-center/notification-center.tokens.json +4 -0
  119. package/src/number-field/number-field.css +93 -93
  120. package/src/number-field/number-field.tokens.json +1 -0
  121. package/src/otp-input/otp-input.css +74 -64
  122. package/src/otp-input/otp-input.tokens.json +1 -0
  123. package/src/page/page.css +41 -27
  124. package/src/page/page.tokens.json +1 -0
  125. package/src/page-header/page-header.css +342 -287
  126. package/src/page-header/page-header.tokens.json +6 -1
  127. package/src/pagination/pagination.css +75 -79
  128. package/src/popover/popover.css +85 -65
  129. package/src/popover/popover.tokens.json +2 -0
  130. package/src/progress-indicator/progress-indicator.css +192 -136
  131. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  132. package/src/prompt-composer/prompt-composer.css +260 -113
  133. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  134. package/src/prose/prose.css +77 -82
  135. package/src/radio-group/radio-group.css +107 -112
  136. package/src/rating/rating.css +146 -142
  137. package/src/rating/rating.tokens.json +1 -0
  138. package/src/result-state/result-state.css +95 -102
  139. package/src/result-state/result-state.tokens.json +1 -0
  140. package/src/runtime-properties.mjs +19 -6
  141. package/src/saved-views/saved-views.css +43 -49
  142. package/src/scroll-area/scroll-area.css +50 -37
  143. package/src/section/section.css +179 -44
  144. package/src/section/section.tokens.json +9 -3
  145. package/src/segmented-control/segmented-control.css +210 -133
  146. package/src/segmented-control/segmented-control.tokens.json +7 -11
  147. package/src/select/select.css +213 -149
  148. package/src/select/select.tokens.json +4 -0
  149. package/src/side-navigation/side-navigation.css +201 -198
  150. package/src/side-navigation/side-navigation.tokens.json +1 -0
  151. package/src/skeleton/skeleton.css +57 -58
  152. package/src/slider/slider.css +101 -103
  153. package/src/sparkline/sparkline.css +75 -53
  154. package/src/sparkline/sparkline.tokens.json +2 -0
  155. package/src/spinner/spinner.css +83 -180
  156. package/src/spinner/spinner.tokens.json +0 -1
  157. package/src/split-button/split-button.css +34 -35
  158. package/src/split-button/split-button.tokens.json +1 -0
  159. package/src/splitter/splitter.css +47 -48
  160. package/src/stack/stack.css +25 -25
  161. package/src/stat-card/stat-card.css +415 -245
  162. package/src/stat-card/stat-card.tokens.json +8 -0
  163. package/src/status-indicator/status-indicator.css +124 -100
  164. package/src/status-indicator/status-indicator.tokens.json +0 -3
  165. package/src/stepper/stepper.css +78 -82
  166. package/src/switch/switch.css +100 -106
  167. package/src/table/table.css +270 -198
  168. package/src/table/table.tokens.json +2 -0
  169. package/src/table-of-contents/table-of-contents.css +60 -59
  170. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  171. package/src/tabs/tabs.css +327 -294
  172. package/src/tabs/tabs.tokens.json +7 -1
  173. package/src/tag/tag.css +109 -88
  174. package/src/tag/tag.tokens.json +10 -0
  175. package/src/tags-input/tags-input.css +152 -87
  176. package/src/tags-input/tags-input.tokens.json +7 -1
  177. package/src/text-field/text-field.css +146 -148
  178. package/src/text-field/text-field.tokens.json +1 -0
  179. package/src/textarea/textarea.css +38 -33
  180. package/src/textarea/textarea.tokens.json +1 -0
  181. package/src/time-field/time-field.css +82 -77
  182. package/src/time-field/time-field.tokens.json +1 -0
  183. package/src/time-picker/time-picker.css +116 -64
  184. package/src/time-picker/time-picker.tokens.json +4 -1
  185. package/src/time-range-picker/time-range-picker.css +168 -140
  186. package/src/time-range-picker/time-range-picker.tokens.json +4 -0
  187. package/src/timeline/timeline.css +280 -292
  188. package/src/timeline/timeline.tokens.json +5 -0
  189. package/src/toast/toast.css +139 -122
  190. package/src/toast/toast.tokens.json +7 -0
  191. package/src/toggle/toggle.css +34 -38
  192. package/src/toggle-group/toggle-group.css +73 -77
  193. package/src/toolbar/toolbar.css +33 -38
  194. package/src/tooltip/tooltip.css +65 -39
  195. package/src/tooltip/tooltip.tokens.json +1 -0
  196. package/src/top-navigation/top-navigation.css +252 -268
  197. package/src/tour/tour.css +68 -74
  198. package/src/tour/tour.tokens.json +1 -0
  199. package/src/transfer/transfer.css +164 -168
  200. package/src/tree/tree.css +113 -121
  201. package/src/typography/typography.css +42 -38
  202. package/src/typography/typography.tokens.json +1 -0
  203. package/src/upload/upload.css +256 -257
  204. package/src/visually-hidden/visually-hidden.css +1 -1
  205. package/src/wizard/wizard.css +187 -199
@@ -73,6 +73,7 @@
73
73
  "--slotted-tone-danger-solid",
74
74
  "--slotted-tone-danger-surface",
75
75
  "--slotted-tone-danger-text",
76
+ "--slotted-tone-info-solid",
76
77
  "--slotted-tone-secondary-border",
77
78
  "--slotted-tone-secondary-subtle-active",
78
79
  "--slotted-tone-secondary-subtle-hover",
@@ -21,7 +21,7 @@
21
21
  * actions stacks when the box is narrow, and the `inline` row becomes a
22
22
  * column at the same point.
23
23
  */
24
- [data-ui='result-state'][data-part='root'] {
24
+ [data-ui-result-state][data-part-root] {
25
25
  /**
26
26
  * Prose sizes come from the type scale, which does not vary by density,
27
27
  * and the mark comes from the control scales, which do. That is where
@@ -78,8 +78,7 @@
78
78
  /**
79
79
  * Eight pixels between the title and the sentence under it. Six glued the
80
80
  * description to an eighteen- and a twenty-four-pixel title; ReUI's three
81
- * blocks hold eight (`docs/history/designs/2026-09-25-result-state-reui-dossier.md`
82
- * § 3).
81
+ * blocks hold eight.
83
82
  */
84
83
  --_text-gap: var(--slotted-result-state-text-gap, var(--slotted-space-4, 0.5rem));
85
84
  /**
@@ -143,7 +142,7 @@
143
142
  * needed: `1lh` read on the mark itself resolved against the mark's own
144
143
  * inherited twelve pixels and `normal`, which is a fourteen-pixel line box
145
144
  * against the title's nineteen. The mark sat two and a half pixels above
146
- * the line it was supposed to be centred on, which is visible and was
145
+ * the line it was supposed to be centerd on, which is visible and was
147
146
  * reported from the picture rather than by a test.
148
147
  */
149
148
  font-size: var(--_title-font-size);
@@ -204,7 +203,7 @@
204
203
  * it. The middle track can still shrink below its content, which is what
205
204
  * lets a long sentence wrap inside a narrow cell.
206
205
  */
207
- [data-ui='result-state'][data-part='root'][data-reach='inline'] {
206
+ [data-ui-result-state][data-part-root][data-reach='inline'] {
208
207
  --_title-font-size: var(
209
208
  --slotted-result-state-title-font-size,
210
209
  var(--slotted-font-size-sm, 0.8125rem)
@@ -234,7 +233,7 @@
234
233
  * the type scale's top step — the size a page-level heading takes in this
235
234
  * library, and one no control font size can reach.
236
235
  */
237
- [data-ui='result-state'][data-part='root'][data-reach='page'] {
236
+ [data-ui-result-state][data-part-root][data-reach='page'] {
238
237
  --_title-font-size: var(
239
238
  --slotted-result-state-title-font-size,
240
239
  var(--slotted-font-size-3xl, 1.5rem)
@@ -265,30 +264,30 @@
265
264
  /* ── Align ────────────────────────────────────────────────────────────
266
265
  *
267
266
  * Carbon left-aligns its empty states inside data-dense views; the other six
268
- * surveyed implementations centre unconditionally. Both readings are real,
267
+ * surveyed implementations center unconditionally. Both readings are real,
269
268
  * and one axis is cheaper than a second family.
270
269
  *
271
270
  * `justify-items` places the boxes and `text-align` places the words inside
272
- * them, because a centred box holding left-aligned prose is the defect this
273
- * would otherwise ship: the title looks centred until the description wraps
271
+ * them, because a centerd box holding left-aligned prose is the defect this
272
+ * would otherwise ship: the title looks centerd until the description wraps
274
273
  * onto a second line.
275
274
  */
276
- [data-ui='result-state'][data-part='root'][data-align='center'] {
275
+ [data-ui-result-state][data-part-root][data-align='center'] {
277
276
  justify-items: center;
278
277
  text-align: center;
279
278
  }
280
279
 
281
- [data-ui='result-state'][data-part='root'][data-align='start'] {
280
+ [data-ui-result-state][data-part-root][data-align='start'] {
282
281
  justify-items: start;
283
282
  text-align: start;
284
283
  }
285
284
 
286
- [data-ui='result-state'][data-part='root'][data-reach='inline'][data-align='center'] {
285
+ [data-ui-result-state][data-part-root][data-reach='inline'][data-align='center'] {
287
286
  justify-content: center;
288
287
  justify-items: stretch;
289
288
  }
290
289
 
291
- [data-ui='result-state'][data-part='root'][data-reach='inline'][data-align='start'] {
290
+ [data-ui-result-state][data-part-root][data-reach='inline'][data-align='start'] {
292
291
  justify-content: start;
293
292
  justify-items: stretch;
294
293
  }
@@ -309,11 +308,11 @@
309
308
  * projecting a node: the page names its own illustration and shows the box in
310
309
  * the same rule, which is one snippet in the family's documentation. It is
311
310
  * painted as an image rather than as a mask, because what goes there now is a
312
- * drawing in its own colours and not a silhouette in a tone; and when nothing
311
+ * drawing in its own colors and not a silhouette in a tone; and when nothing
313
312
  * names it, the declaration is invalid at computed-value time and the box
314
313
  * paints nothing at all.
315
314
  */
316
- [data-ui='result-state'] > [data-part='media']:empty {
315
+ [data-ui-result-state] > [data-part-media]:empty {
317
316
  background: var(--slotted-result-state-media) center / contain no-repeat;
318
317
  block-size: var(--_media-size);
319
318
  display: none;
@@ -331,7 +330,7 @@
331
330
  * loaded reserves the room it will take and nothing below it moves when it
332
331
  * does.
333
332
  */
334
- [data-ui='result-state'] > [data-part='media']:not(:empty) {
333
+ [data-ui-result-state] > [data-part-media]:not(:empty) {
335
334
  align-items: center;
336
335
  background-color: transparent;
337
336
  block-size: var(--_media-size);
@@ -341,14 +340,14 @@
341
340
  min-inline-size: var(--_media-size);
342
341
  }
343
342
 
344
- [data-ui='result-state'] > [data-part='media']:not(:empty) > * {
343
+ [data-ui-result-state] > [data-part-media]:not(:empty) > * {
345
344
  block-size: 100%;
346
345
  inline-size: auto;
347
346
  max-inline-size: 100%;
348
347
  }
349
348
 
350
- /** Supplied artwork on the same line, centred on the same axis by its own size. */
351
- [data-ui='result-state'][data-reach='inline'] > [data-part='media']:not(:empty) {
349
+ /** Supplied artwork on the same line, centerd on the same axis by its own size. */
350
+ [data-ui-result-state][data-reach='inline'] > [data-part-media]:not(:empty) {
352
351
  align-self: start;
353
352
  grid-column: 1;
354
353
  grid-row: 1;
@@ -369,13 +368,10 @@
369
368
  * the guide forbids an illustration from dominating a dense screen. The
370
369
  * artwork the page supplied is drawn there as it is.
371
370
  *
372
- * Under forced colours the browser would replace every fill with `Canvas`
371
+ * Under forced colors the browser would replace every fill with `Canvas`
373
372
  * and leave each drawing as outlines laid on top of one another. The theme
374
- * already maps the roles used here to system colours in that mode, so the
373
+ * already maps the roles used here to system colors in that mode, so the
375
374
  * drawing opts out of the browser's adjustment and keeps the theme's.
376
- *
377
- * The measurements, and where each came from, are in
378
- * `docs/history/designs/2026-09-25-result-state-reui-dossier.md` § 3.
379
375
  */
380
376
 
381
377
  /**
@@ -385,8 +381,8 @@
385
381
  * at the three densities and its corners stay concentric — the outer radius
386
382
  * is the inner one plus the ring.
387
383
  */
388
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='tile']
389
- > [data-part='media']:not(:empty) {
384
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='tile']
385
+ > [data-part-media]:not(:empty) {
390
386
  --_ring: var(--slotted-space-2, 0.25rem);
391
387
  --_inner-radius: var(--slotted-radius-lg, 8px);
392
388
 
@@ -411,8 +407,8 @@
411
407
  * because the root is the stacking context (`isolation` above) and the tile
412
408
  * is not one.
413
409
  */
414
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='tile']
415
- > [data-part='media']:not(:empty)::before {
410
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='tile']
411
+ > [data-part-media]:not(:empty)::before {
416
412
  background-color: var(--slotted-surface-raised);
417
413
  border: var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle);
418
414
  border-radius: var(--_inner-radius);
@@ -423,8 +419,8 @@
423
419
  z-index: -1;
424
420
  }
425
421
 
426
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='tile']
427
- > [data-part='media']:not(:empty)
422
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='tile']
423
+ > [data-part-media]:not(:empty)
428
424
  > * {
429
425
  block-size: var(--_art-glyph);
430
426
  inline-size: var(--_art-glyph);
@@ -444,18 +440,18 @@
444
440
  *
445
441
  * Three layers and two pseudo-elements: the front face is `::before`, the
446
442
  * middle layer `::after`, and the farthest is the box's own shadow, drawn
447
- * twice — a fill, then a pixel wider in the border colour — because a
443
+ * twice — a fill, then a pixel wider in the border color — because a
448
444
  * shadow has no border of its own. The box itself paints nothing, since a
449
445
  * transformed box is a stacking context and its own background would sit
450
446
  * above nothing and beneath both pseudo-elements.
451
447
  *
452
448
  * The drawing's visual bounds are wider and taller than the box, so the box
453
- * reserves the difference in its margins and is moved back onto the centre
449
+ * reserves the difference in its margins and is moved back onto the center
454
450
  * of those bounds: 0.325 of a side along the lean and 0.145 down, the
455
- * centre of the sheared stack measured against the centre of the square.
451
+ * center of the sheared stack measured against the center of the square.
456
452
  */
457
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='stack']
458
- > [data-part='media']:not(:empty) {
453
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']
454
+ > [data-part-media]:not(:empty) {
459
455
  --_side: calc(var(--_art) + var(--slotted-space-2, 0.25rem));
460
456
  --_lean: 1;
461
457
  --_step-x: calc(var(--_side) * -0.36 * var(--_lean));
@@ -482,15 +478,15 @@
482
478
  }
483
479
 
484
480
  /** Depth is read from the reading edge, so the stack leans the other way. */
485
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='stack']:dir(rtl)
486
- > [data-part='media']:not(:empty) {
481
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']:dir(rtl)
482
+ > [data-part-media]:not(:empty) {
487
483
  --_lean: -1;
488
484
  }
489
485
 
490
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='stack']
491
- > [data-part='media']:not(:empty)::before,
492
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='stack']
493
- > [data-part='media']:not(:empty)::after {
486
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']
487
+ > [data-part-media]:not(:empty)::before,
488
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']
489
+ > [data-part-media]:not(:empty)::after {
494
490
  background-color: var(--slotted-surface-raised);
495
491
  border: var(--_layer-border) solid var(--slotted-border-subtle);
496
492
  border-radius: inherit;
@@ -507,8 +503,8 @@
507
503
  * because a face drawn in the control edge is read by `field-surface.test.mjs`
508
504
  * as a field, and this is a drawing.
509
505
  */
510
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='stack']
511
- > [data-part='media']:not(:empty)::before {
506
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']
507
+ > [data-part-media]:not(:empty)::before {
512
508
  border-color: color-mix(
513
509
  in oklab,
514
510
  var(--slotted-border-subtle),
@@ -518,8 +514,8 @@
518
514
  z-index: -1;
519
515
  }
520
516
 
521
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='stack']
522
- > [data-part='media']:not(:empty)::after {
517
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']
518
+ > [data-part-media]:not(:empty)::after {
523
519
  transition: translate var(--slotted-duration-long) var(--slotted-easing-enter);
524
520
  translate: var(--_step-x) var(--_step-y);
525
521
  z-index: -2;
@@ -531,8 +527,8 @@
531
527
  * same size and the glyph is a size smaller, because a glyph as tall as
532
528
  * the title's line box competes with the title.
533
529
  */
534
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='stack']
535
- > [data-part='media']:not(:empty)
530
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']
531
+ > [data-part-media]:not(:empty)
536
532
  > * {
537
533
  block-size: calc(var(--_side) * 0.5);
538
534
  inline-size: calc(var(--_side) * 0.5);
@@ -554,12 +550,11 @@
554
550
  * stand above the box, which reserves their two steps in its top margin.
555
551
  *
556
552
  * ReUI fades the bottom of the drawing into `--background`. That supposes
557
- * the colour of the ground, and a result state inside a card or on the
553
+ * the color of the ground, and a result state inside a card or on the
558
554
  * sunken surface is on another one; a mask would clip the cards behind,
559
555
  * which stand outside the box. The drawing does not fade.
560
556
  */
561
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='cards']
562
- > [data-part='media'] {
557
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards'] > [data-part-media] {
563
558
  --_pad: var(--slotted-space-6, 1rem);
564
559
  --_gap: var(--slotted-space-5, 0.75rem);
565
560
  --_thumb: var(--slotted-control-height-sm, 30px);
@@ -586,7 +581,7 @@
586
581
  );
587
582
  /* A length, not a percentage: a percentage in a background offset is a
588
583
  share of the room the layer leaves, which differs for each line height
589
- and set the two lines four and three pixels above centre. */
584
+ and set the two lines four and three pixels above center. */
590
585
  --_line-1-y: calc(
591
586
  (var(--_thumb) + 2 * var(--_pad) - var(--_line) - var(--_line-gap) - var(--_line-2)) / 2
592
587
  );
@@ -649,8 +644,8 @@
649
644
  }
650
645
 
651
646
  /** No thumbnail without a glyph: the lines start at the padding. */
652
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='cards']
653
- > [data-part='media']:empty {
647
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards']
648
+ > [data-part-media]:empty {
654
649
  --_lines-x: var(--_pad);
655
650
  }
656
651
 
@@ -660,15 +655,15 @@
660
655
  * transform: a transformed box is a stacking context, and the cards behind
661
656
  * would then paint over the front one.
662
657
  */
663
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='cards']:dir(rtl)
664
- > [data-part='media'] {
658
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards']:dir(rtl)
659
+ > [data-part-media] {
665
660
  --_edge: right;
666
661
  }
667
662
 
668
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='cards']
669
- > [data-part='media']::before,
670
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='cards']
671
- > [data-part='media']::after {
663
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards']
664
+ > [data-part-media]::before,
665
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards']
666
+ > [data-part-media]::after {
672
667
  background-color: var(--slotted-surface-sunken);
673
668
  block-size: 100%;
674
669
  border: var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle);
@@ -682,15 +677,15 @@
682
677
  }
683
678
 
684
679
  /** The farthest card, painted first. */
685
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='cards']
686
- > [data-part='media']::before {
680
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards']
681
+ > [data-part-media]::before {
687
682
  border-color: var(--_ink-2);
688
683
  inset-inline: calc(2 * var(--_step) - var(--slotted-border-width-thin, 1px));
689
684
  translate: 0 calc(-2 * var(--_step));
690
685
  }
691
686
 
692
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='cards']
693
- > [data-part='media']::after {
687
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards']
688
+ > [data-part-media]::after {
694
689
  inset-inline: calc(var(--_step) - var(--slotted-border-width-thin, 1px));
695
690
  translate: 0 calc(-1 * var(--_step));
696
691
  }
@@ -699,8 +694,8 @@
699
694
  * The thumbnail is the page's glyph on the sunken surface, padded from its
700
695
  * edge to the glyph size.
701
696
  */
702
- [data-ui='result-state']:not([data-reach='inline'])[data-illustration='cards']
703
- > [data-part='media']
697
+ [data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards']
698
+ > [data-part-media]
704
699
  > * {
705
700
  background-color: var(--slotted-surface-sunken);
706
701
  block-size: var(--_thumb);
@@ -717,20 +712,20 @@
717
712
  * inside the grid, and it is the half of the pair that `minmax(0, …)` on the
718
713
  * track cannot supply on its own.
719
714
  */
720
- [data-ui='result-state'] > [data-part='content'] {
715
+ [data-ui-result-state] > [data-part-content] {
721
716
  display: grid;
722
717
  min-inline-size: 0;
723
718
  row-gap: var(--_text-gap);
724
719
  }
725
720
 
726
- [data-ui='result-state'][data-reach='inline'] > [data-part='content'] {
721
+ [data-ui-result-state][data-reach='inline'] > [data-part-content] {
727
722
  grid-column: 2;
728
723
  grid-row: 1;
729
724
  }
730
725
 
731
726
  /**
732
727
  * `balance` is what keeps a two-line title from leaving one word on the
733
- * second line, and it is the reason a centred region reads as a shape rather
728
+ * second line, and it is the reason a centerd region reads as a shape rather
734
729
  * than as a ragged edge. It is capped by the browser at a handful of lines,
735
730
  * so a long title is unaffected rather than slow.
736
731
  *
@@ -739,7 +734,7 @@
739
734
  * Nothing is removed: the whole string stays in the DOM, in the accessibility
740
735
  * tree, and findable by a page search.
741
736
  */
742
- [data-ui='result-state'] [data-part='title'] {
737
+ [data-ui-result-state] [data-part-title] {
743
738
  font-family: var(
744
739
  --slotted-result-state-title-font-family,
745
740
  var(
@@ -765,7 +760,7 @@
765
760
  * first and two lines of equal weight give them no order to read in. It is
766
761
  * the pair the theme measures against all three neutral surfaces.
767
762
  */
768
- [data-ui='result-state'] [data-part='description'] {
763
+ [data-ui-result-state] [data-part-description] {
769
764
  color: var(--slotted-text-muted);
770
765
  font-size: var(--_description-font-size);
771
766
  line-height: var(--slotted-line-height-md, 1.5);
@@ -781,22 +776,20 @@
781
776
  * own `button` and `a`, because those families already own what a button and
782
777
  * a link are.
783
778
  */
784
- [data-ui='result-state'] > [data-part='actions'] {
779
+ [data-ui-result-state] > [data-part-actions] {
785
780
  align-items: center;
786
781
  display: flex;
787
782
  flex-wrap: wrap;
788
- gap: var(--slotted-result-state-actions-gap, var(--slotted-space-4, 0.5rem));
783
+ gap: var(--slotted-result-state-actions-gap, var(--slotted-action-gap, 8px));
789
784
  min-inline-size: 0;
790
785
  }
791
786
 
792
- [data-ui='result-state'][data-align='center'] > [data-part='actions'] {
787
+ [data-ui-result-state][data-align='center'] > [data-part-actions] {
793
788
  justify-content: center;
794
789
  }
795
790
 
796
791
  /** The pause between the message and its answer (`--_actions-gap`). */
797
- [data-ui='result-state']:not([data-reach='inline'])
798
- > [data-part='content']
799
- + [data-part='actions'] {
792
+ [data-ui-result-state]:not([data-reach='inline']) > [data-part-content] + [data-part-actions] {
800
793
  margin-block-start: calc(var(--_actions-gap) - var(--_row-gap));
801
794
  }
802
795
 
@@ -805,17 +798,17 @@
805
798
  * tall as its tallest item, so a control taller than a line of text made the
806
799
  * row thirty pixels deep: the mark and the words then sat at the top of it
807
800
  * while the control sat in the middle, and a row with one thing at the top
808
- * and another in the centre reads as a mistake. Reported from the picture.
801
+ * and another in the center reads as a mistake. Reported from the picture.
809
802
  *
810
- * The box is one line box tall and the control is centred in it, which lets
803
+ * The box is one line box tall and the control is centerd in it, which lets
811
804
  * the control stand proud of the line by the same distance above and below —
812
805
  * a distance the region's own block inset already holds.
813
806
  */
814
- [data-ui='result-state'][data-reach='inline'] > [data-part='actions'] {
807
+ [data-ui-result-state][data-reach='inline'] > [data-part-actions] {
815
808
  /**
816
809
  * `align-content` rather than `align-items`, because the row is allowed to
817
810
  * wrap and a wrapping flex container aligns its *lines*: with the line
818
- * taller than the box, `align-items: center` centres the control inside a
811
+ * taller than the box, `align-items: center` centers the control inside a
819
812
  * line that is itself parked at the top, which left the control exactly
820
813
  * half its overhang too low.
821
814
  */
@@ -834,14 +827,14 @@
834
827
  * is set one step down and in the muted role rather than made a third
835
828
  * control.
836
829
  */
837
- [data-ui='result-state'] > [data-part='footer'] {
830
+ [data-ui-result-state] > [data-part-footer] {
838
831
  color: var(--slotted-text-muted);
839
832
  font-size: var(--slotted-font-size-sm, 0.8125rem);
840
833
  line-height: var(--slotted-line-height-sm, 1.45);
841
834
  min-inline-size: 0;
842
835
  }
843
836
 
844
- [data-ui='result-state'][data-reach='inline'] > [data-part='footer'] {
837
+ [data-ui-result-state][data-reach='inline'] > [data-part-footer] {
845
838
  grid-column: 2;
846
839
  grid-row: 2;
847
840
  }
@@ -854,7 +847,7 @@
854
847
  * is not animated: a focus indicator that fades in is a focus indicator that
855
848
  * is not there yet.
856
849
  */
857
- [data-ui='result-state'][data-part='root']:focus-visible {
850
+ [data-ui-result-state][data-part-root]:focus-visible {
858
851
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
859
852
  outline-offset: var(--slotted-focus-ring-offset, 2px);
860
853
  }
@@ -866,7 +859,7 @@
866
859
  * is the composition change the 240-pixel capture exists to check.
867
860
  */
868
861
  @container slotted-result-state (max-width: 20rem) {
869
- [data-ui='result-state'] > [data-part='actions'] {
862
+ [data-ui-result-state] > [data-part-actions] {
870
863
  /**
871
864
  * Stacked, and each control still its own width. How wide a control is
872
865
  * belongs to the control, and `button` already ships `fullWidth` for a
@@ -875,15 +868,15 @@
875
868
  flex-direction: column;
876
869
  }
877
870
 
878
- [data-ui='result-state'][data-align='center'] > [data-part='actions'] {
871
+ [data-ui-result-state][data-align='center'] > [data-part-actions] {
879
872
  align-items: center;
880
873
  }
881
874
 
882
- [data-ui='result-state'][data-align='start'] > [data-part='actions'] {
875
+ [data-ui-result-state][data-align='start'] > [data-part-actions] {
883
876
  align-items: flex-start;
884
877
  }
885
878
 
886
- [data-ui='result-state'][data-reach='inline'] {
879
+ [data-ui-result-state][data-reach='inline'] {
887
880
  grid-template-columns: auto minmax(0, 1fr);
888
881
  }
889
882
 
@@ -891,14 +884,14 @@
891
884
  * Below the words now, so the box goes back to its own height: a row of
892
885
  * controls held to one line box only makes sense while it is on that line.
893
886
  */
894
- [data-ui='result-state'][data-reach='inline'] > [data-part='actions'] {
887
+ [data-ui-result-state][data-reach='inline'] > [data-part-actions] {
895
888
  block-size: auto;
896
889
  grid-column: 2;
897
890
  grid-row: 2;
898
891
  margin-inline-start: 0;
899
892
  }
900
893
 
901
- [data-ui='result-state'][data-reach='inline'] > [data-part='footer'] {
894
+ [data-ui-result-state][data-reach='inline'] > [data-part-footer] {
902
895
  grid-column: 2;
903
896
  grid-row: 3;
904
897
  }
@@ -913,7 +906,7 @@
913
906
  * because the root's own `display: grid` would win over the user agent's
914
907
  * rule for `[hidden]`.
915
908
  */
916
- [data-ui='result-state'][data-part='root'][hidden] {
909
+ [data-ui-result-state][data-part-root][hidden] {
917
910
  display: none;
918
911
  opacity: 0;
919
912
  transition:
@@ -932,48 +925,48 @@
932
925
  * collapses under reduced motion.
933
926
  */
934
927
  @starting-style {
935
- [data-ui='result-state'][data-part='root']:is([data-live='polite'], [data-live='assertive']) {
928
+ [data-ui-result-state][data-part-root]:is([data-live='polite'], [data-live='assertive']) {
936
929
  opacity: 0;
937
930
  }
938
931
 
939
- [data-ui='result-state'][data-part='root']:is([data-live='polite'], [data-live='assertive'])
940
- > [data-part='media'] {
932
+ [data-ui-result-state][data-part-root]:is([data-live='polite'], [data-live='assertive'])
933
+ > [data-part-media] {
941
934
  --_step-x: 0px;
942
935
  --_step-y: 0px;
943
936
  }
944
937
 
945
- [data-ui='result-state'][data-part='root']:is(
938
+ [data-ui-result-state][data-part-root]:is(
946
939
  [data-live='polite'],
947
940
  [data-live='assertive']
948
941
  )[data-illustration='tile']
949
- > [data-part='media'] {
942
+ > [data-part-media] {
950
943
  opacity: 0;
951
944
  scale: 0.96;
952
945
  }
953
946
 
954
- [data-ui='result-state'][data-part='root']:is(
947
+ [data-ui-result-state][data-part-root]:is(
955
948
  [data-live='polite'],
956
949
  [data-live='assertive']
957
950
  )[data-illustration='cards']
958
- > [data-part='media']::before,
959
- [data-ui='result-state'][data-part='root']:is(
951
+ > [data-part-media]::before,
952
+ [data-ui-result-state][data-part-root]:is(
960
953
  [data-live='polite'],
961
954
  [data-live='assertive']
962
955
  )[data-illustration='cards']
963
- > [data-part='media']::after {
956
+ > [data-part-media]::after {
964
957
  translate: 0 0;
965
958
  }
966
959
  }
967
960
 
968
961
  /** The farther of two moving layers leaves a short step after the nearer. */
969
- [data-ui='result-state'][data-illustration='cards'] > [data-part='media']::before {
962
+ [data-ui-result-state][data-illustration='cards'] > [data-part-media]::before {
970
963
  transition-delay: var(--slotted-duration-short);
971
964
  }
972
965
 
973
- /* ── Forced colours ───────────────────────────────────────────────────
966
+ /* ── Forced colors ───────────────────────────────────────────────────
974
967
  *
975
968
  * Nothing beyond the drawings' own `forced-color-adjust`, above. The
976
- * operating system replaces every author colour, the theme already remaps
969
+ * operating system replaces every author color, the theme already remaps
977
970
  * `--slotted-text` and `--slotted-text-muted`, and the words carry the
978
971
  * region as they do everywhere else.
979
972
  */
@@ -1,4 +1,5 @@
1
1
  [
2
+ "--slotted-action-gap",
2
3
  "--slotted-border-strong",
3
4
  "--slotted-border-subtle",
4
5
  "--slotted-border-width-thin",
@@ -143,6 +143,8 @@ export const RUNTIME_PROPERTY_PREFIXES = [
143
143
  '--slotted-data-grid-pinned-bottom-offset',
144
144
  '--slotted-data-grid-window-start',
145
145
  '--slotted-data-grid-window-total',
146
+ /** The scroller's measured width, which holds a detail, a group row and the empty state to the frame. */
147
+ '--slotted-data-grid-viewport',
146
148
  /** The measured body row height, which the skeleton rows take while the rows load. */
147
149
  '--slotted-data-grid-loader-row-size',
148
150
  '--slotted-data-grid-leading',
@@ -239,7 +241,7 @@ export const RUNTIME_PROPERTY_PREFIXES = [
239
241
  /**
240
242
  * `rating` — where the spectrum places the mean and the two ends of its 95%
241
243
  * interval on the scale, from 1 to the maximum, written on the summary's
242
- * root from `summariseRatings`.
244
+ * root from `summarizeRatings`.
243
245
  */
244
246
  '--slotted-rating-mean',
245
247
  '--slotted-rating-low',
@@ -283,11 +285,11 @@ export const RUNTIME_PROPERTY_PREFIXES = [
283
285
  */
284
286
  '--slotted-carousel-overscroll',
285
287
  /**
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
288
+ * `color-picker` — the color this instance holds, with and without its
289
+ * alpha, the hue it remembers when the color has none, where the area's
290
+ * thumb stands (saturation and brightness, 0 to 1), how opaque the color
291
+ * is (0 to 1), and the color the panel opened with. Each is written on the
292
+ * root by the binding from the value `@slotted/core/color` parsed; a color
291
293
  * the reader picked is a fact about this instance, which no theme can hold.
292
294
  */
293
295
  '--slotted-color-picker-color',
@@ -313,6 +315,17 @@ export const RUNTIME_PROPERTY_PREFIXES = [
313
315
  '--slotted-navigation-menu-viewport-block-start',
314
316
  '--slotted-navigation-menu-arrow-offset',
315
317
  '--slotted-navigation-menu-available-inline-size',
318
+ /**
319
+ * `media-viewer` — the box the picture takes at the current level and its
320
+ * quarter turn, measured from the stage and the picture's own size by the
321
+ * binding. The family also owns theme tokens under the same prefix, so each
322
+ * is named one by one.
323
+ */
324
+ '--slotted-media-viewer-frame-inline-size',
325
+ '--slotted-media-viewer-frame-block-size',
326
+ '--slotted-media-viewer-media-inline-size',
327
+ '--slotted-media-viewer-media-block-size',
328
+ '--slotted-media-viewer-rotation',
316
329
  ];
317
330
 
318
331
  /** Whether a custom property is written by script rather than by a theme. */