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

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 (199) 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 +96 -96
  7. package/src/alert/alert.tokens.json +5 -0
  8. package/src/app-shell/app-shell.css +455 -328
  9. package/src/app-shell/app-shell.tokens.json +5 -2
  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 +68 -65
  25. package/src/carousel/carousel.css +158 -169
  26. package/src/cascader/cascader.css +158 -157
  27. package/src/cascader/cascader.tokens.json +1 -0
  28. package/src/chart/chart.css +288 -267
  29. package/src/chart/chart.tokens.json +4 -0
  30. package/src/checkbox/checkbox.css +143 -148
  31. package/src/checkbox-group/checkbox-group.css +7 -7
  32. package/src/code-block/code-block.css +85 -89
  33. package/src/collapsible/collapsible.css +76 -80
  34. package/src/color-picker/color-picker.css +106 -114
  35. package/src/column-manager/column-manager.css +111 -119
  36. package/src/combobox/combobox.css +203 -130
  37. package/src/combobox/combobox.tokens.json +3 -0
  38. package/src/command-palette/command-palette.css +155 -102
  39. package/src/command-palette/command-palette.tokens.json +2 -0
  40. package/src/container/container.css +27 -27
  41. package/src/context-menu/context-menu.css +9 -9
  42. package/src/currency-field/currency-field.css +119 -119
  43. package/src/currency-field/currency-field.tokens.json +1 -0
  44. package/src/dashboard-grid/dashboard-grid.css +185 -115
  45. package/src/data-grid/data-grid.css +598 -496
  46. package/src/data-grid/data-grid.tokens.json +5 -1
  47. package/src/data-list/data-list.css +82 -71
  48. package/src/data-list/data-list.tokens.json +2 -1
  49. package/src/date-field/date-field.css +62 -57
  50. package/src/date-field/date-field.tokens.json +1 -0
  51. package/src/date-picker/date-picker.css +117 -58
  52. package/src/date-picker/date-picker.tokens.json +5 -0
  53. package/src/date-range-picker/date-range-picker.css +157 -127
  54. package/src/date-range-picker/date-range-picker.tokens.json +4 -0
  55. package/src/datetime-field/datetime-field.css +90 -90
  56. package/src/datetime-field/datetime-field.tokens.json +1 -0
  57. package/src/datetime-picker/datetime-picker.css +123 -70
  58. package/src/datetime-picker/datetime-picker.tokens.json +4 -1
  59. package/src/datetime-range-picker/datetime-range-picker.css +191 -163
  60. package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
  61. package/src/description-list/description-list.css +105 -75
  62. package/src/description-list/description-list.tokens.json +1 -0
  63. package/src/detail-panel/detail-panel.css +86 -71
  64. package/src/detail-panel/detail-panel.tokens.json +2 -0
  65. package/src/dialog/dialog.css +434 -198
  66. package/src/dialog/dialog.tokens.json +7 -0
  67. package/src/divider/divider.css +20 -20
  68. package/src/drawer/drawer.css +597 -236
  69. package/src/drawer/drawer.tokens.json +13 -0
  70. package/src/entity-picker/entity-picker.css +323 -270
  71. package/src/entity-picker/entity-picker.tokens.json +3 -0
  72. package/src/event-calendar/event-calendar.css +357 -399
  73. package/src/field/field.css +106 -93
  74. package/src/field/field.tokens.json +2 -0
  75. package/src/field-group/field-group.css +43 -33
  76. package/src/field-group/field-group.tokens.json +3 -0
  77. package/src/filter-bar/filter-bar.css +200 -216
  78. package/src/form/form.css +99 -25
  79. package/src/form/form.tokens.json +5 -0
  80. package/src/fullscreen/fullscreen.css +26 -27
  81. package/src/grid/grid.css +29 -29
  82. package/src/highlight/highlight.css +11 -11
  83. package/src/hover-card/hover-card.css +9 -9
  84. package/src/icon/icon.css +67 -20
  85. package/src/icon/icon.tokens.json +1 -0
  86. package/src/image/image.css +42 -42
  87. package/src/import-export-center/import-export-center.css +144 -165
  88. package/src/inline/inline.css +28 -28
  89. package/src/inline-message/inline-message.css +162 -86
  90. package/src/inline-message/inline-message.tokens.json +4 -0
  91. package/src/kbd/kbd.css +62 -50
  92. package/src/kbd/kbd.tokens.json +3 -0
  93. package/src/link/link.css +54 -33
  94. package/src/link/link.tokens.json +4 -0
  95. package/src/list/list.css +23 -23
  96. package/src/list-item/list-item.css +89 -75
  97. package/src/list-item/list-item.tokens.json +7 -0
  98. package/src/listbox/listbox.css +71 -70
  99. package/src/listbox/listbox.tokens.json +0 -1
  100. package/src/loading-overlay/loading-overlay.css +86 -103
  101. package/src/markdown/markdown.css +20 -20
  102. package/src/media-viewer/media-viewer.css +790 -0
  103. package/src/media-viewer/media-viewer.tokens.json +53 -0
  104. package/src/menu/menu.css +162 -82
  105. package/src/menu/menu.tokens.json +2 -1
  106. package/src/menubar/menubar.css +16 -16
  107. package/src/message/message.css +1250 -1253
  108. package/src/message/message.tokens.json +5 -0
  109. package/src/message-scroller/message-scroller.css +323 -320
  110. package/src/multi-select/multi-select.css +230 -172
  111. package/src/multi-select/multi-select.tokens.json +2 -0
  112. package/src/navigation-menu/navigation-menu.css +169 -190
  113. package/src/notification-center/notification-center.css +153 -161
  114. package/src/notification-center/notification-center.tokens.json +3 -0
  115. package/src/number-field/number-field.css +93 -93
  116. package/src/number-field/number-field.tokens.json +1 -0
  117. package/src/otp-input/otp-input.css +74 -64
  118. package/src/otp-input/otp-input.tokens.json +1 -0
  119. package/src/page/page.css +41 -27
  120. package/src/page/page.tokens.json +1 -0
  121. package/src/page-header/page-header.css +341 -286
  122. package/src/page-header/page-header.tokens.json +5 -0
  123. package/src/pagination/pagination.css +75 -79
  124. package/src/popover/popover.css +81 -64
  125. package/src/popover/popover.tokens.json +1 -0
  126. package/src/progress-indicator/progress-indicator.css +192 -136
  127. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  128. package/src/prompt-composer/prompt-composer.css +260 -113
  129. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  130. package/src/prose/prose.css +77 -82
  131. package/src/radio-group/radio-group.css +107 -112
  132. package/src/rating/rating.css +146 -142
  133. package/src/rating/rating.tokens.json +1 -0
  134. package/src/result-state/result-state.css +94 -101
  135. package/src/runtime-properties.mjs +19 -6
  136. package/src/saved-views/saved-views.css +43 -49
  137. package/src/scroll-area/scroll-area.css +44 -37
  138. package/src/section/section.css +178 -43
  139. package/src/section/section.tokens.json +8 -2
  140. package/src/segmented-control/segmented-control.css +210 -133
  141. package/src/segmented-control/segmented-control.tokens.json +7 -11
  142. package/src/select/select.css +210 -147
  143. package/src/select/select.tokens.json +3 -0
  144. package/src/side-navigation/side-navigation.css +193 -196
  145. package/src/side-navigation/side-navigation.tokens.json +1 -0
  146. package/src/skeleton/skeleton.css +57 -58
  147. package/src/slider/slider.css +101 -103
  148. package/src/sparkline/sparkline.css +75 -53
  149. package/src/sparkline/sparkline.tokens.json +2 -0
  150. package/src/spinner/spinner.css +83 -180
  151. package/src/spinner/spinner.tokens.json +0 -1
  152. package/src/split-button/split-button.css +34 -35
  153. package/src/split-button/split-button.tokens.json +1 -0
  154. package/src/splitter/splitter.css +47 -48
  155. package/src/stack/stack.css +25 -25
  156. package/src/stat-card/stat-card.css +415 -245
  157. package/src/stat-card/stat-card.tokens.json +8 -0
  158. package/src/status-indicator/status-indicator.css +124 -100
  159. package/src/status-indicator/status-indicator.tokens.json +0 -3
  160. package/src/stepper/stepper.css +78 -82
  161. package/src/switch/switch.css +100 -106
  162. package/src/table/table.css +270 -198
  163. package/src/table/table.tokens.json +2 -0
  164. package/src/table-of-contents/table-of-contents.css +60 -59
  165. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  166. package/src/tabs/tabs.css +327 -294
  167. package/src/tabs/tabs.tokens.json +7 -1
  168. package/src/tag/tag.css +109 -88
  169. package/src/tag/tag.tokens.json +10 -0
  170. package/src/tags-input/tags-input.css +152 -87
  171. package/src/tags-input/tags-input.tokens.json +7 -1
  172. package/src/text-field/text-field.css +146 -148
  173. package/src/text-field/text-field.tokens.json +1 -0
  174. package/src/textarea/textarea.css +38 -33
  175. package/src/textarea/textarea.tokens.json +1 -0
  176. package/src/time-field/time-field.css +82 -77
  177. package/src/time-field/time-field.tokens.json +1 -0
  178. package/src/time-picker/time-picker.css +116 -64
  179. package/src/time-picker/time-picker.tokens.json +4 -1
  180. package/src/time-range-picker/time-range-picker.css +168 -140
  181. package/src/time-range-picker/time-range-picker.tokens.json +4 -0
  182. package/src/timeline/timeline.css +280 -292
  183. package/src/timeline/timeline.tokens.json +5 -0
  184. package/src/toast/toast.css +138 -121
  185. package/src/toast/toast.tokens.json +6 -0
  186. package/src/toggle/toggle.css +34 -38
  187. package/src/toggle-group/toggle-group.css +73 -77
  188. package/src/toolbar/toolbar.css +33 -38
  189. package/src/tooltip/tooltip.css +65 -39
  190. package/src/tooltip/tooltip.tokens.json +1 -0
  191. package/src/top-navigation/top-navigation.css +252 -268
  192. package/src/tour/tour.css +64 -73
  193. package/src/transfer/transfer.css +164 -168
  194. package/src/tree/tree.css +113 -121
  195. package/src/typography/typography.css +42 -38
  196. package/src/typography/typography.tokens.json +1 -0
  197. package/src/upload/upload.css +256 -257
  198. package/src/visually-hidden/visually-hidden.css +1 -1
  199. package/src/wizard/wizard.css +187 -199
@@ -39,7 +39,7 @@
39
39
  * The stylesheet's part in it is that no rule assumes a role: the same
40
40
  * picture is drawn whether a reader hears the words or reads them.
41
41
  */
42
- [data-ui='toast'][data-part='root'] {
42
+ [data-ui-toast][data-part-root] {
43
43
  /**
44
44
  * The distance from the edge of the screen, and the greatest width a
45
45
  * message is allowed. The width is the smaller of the two, so at 320
@@ -93,7 +93,7 @@
93
93
  * demonstrable on a documentation page: everything else about it is the
94
94
  * same, including the placement, which now names the edges of the panel.
95
95
  */
96
- [data-ui='toast'][data-part='root'][data-attach='inline'] {
96
+ [data-ui-toast][data-part-root][data-attach='inline'] {
97
97
  position: absolute;
98
98
  }
99
99
 
@@ -104,29 +104,29 @@
104
104
  * an Arabic one. Sonner's `bottom-right` is `bottom-right` in both.
105
105
  */
106
106
 
107
- [data-ui='toast'][data-part='root'][data-placement^='top'] {
107
+ [data-ui-toast][data-part-root][data-placement^='top'] {
108
108
  inset-block-start: var(--_offset);
109
109
  }
110
110
 
111
- [data-ui='toast'][data-part='root'][data-placement^='bottom'] {
111
+ [data-ui-toast][data-part-root][data-placement^='bottom'] {
112
112
  inset-block-end: var(--_offset);
113
113
  }
114
114
 
115
- [data-ui='toast'][data-part='root'][data-placement$='-start'] {
115
+ [data-ui-toast][data-part-root][data-placement$='-start'] {
116
116
  inset-inline-start: var(--_offset);
117
117
  }
118
118
 
119
- [data-ui='toast'][data-part='root'][data-placement$='-end'] {
119
+ [data-ui-toast][data-part-root][data-placement$='-end'] {
120
120
  inset-inline-end: var(--_offset);
121
121
  }
122
122
 
123
123
  /**
124
- * Centred by giving the box both insets and letting the automatic margins
125
- * divide what is left. It is the one centring that needs no transform, so
124
+ * Centerd by giving the box both insets and letting the automatic margins
125
+ * divide what is left. It is the one centering that needs no transform, so
126
126
  * the transform stays free for the enter, the exit and the swipe.
127
127
  */
128
- [data-ui='toast'][data-part='root'][data-placement='top'],
129
- [data-ui='toast'][data-part='root'][data-placement='bottom'] {
128
+ [data-ui-toast][data-part-root][data-placement='top'],
129
+ [data-ui-toast][data-part-root][data-placement='bottom'] {
130
130
  inset-inline: var(--_offset);
131
131
  margin-inline: auto;
132
132
  }
@@ -139,7 +139,7 @@
139
139
  * order, which puts the newest nearest the edge of the screen — where the
140
140
  * reader's eye already is — without moving it in the accessibility tree.
141
141
  */
142
- [data-ui='toast'] > [data-part='list'] {
142
+ [data-ui-toast] > [data-part-list] {
143
143
  display: flex;
144
144
  flex-direction: column;
145
145
  gap: var(--_gap);
@@ -149,7 +149,7 @@
149
149
  pointer-events: none;
150
150
  }
151
151
 
152
- [data-ui='toast'][data-placement^='bottom'] > [data-part='list'] {
152
+ [data-ui-toast][data-placement^='bottom'] > [data-part-list] {
153
153
  flex-direction: column-reverse;
154
154
  }
155
155
 
@@ -162,7 +162,7 @@
162
162
  * focus already inside a message can cause, so no press meant for the page
163
163
  * lands on an empty region.
164
164
  */
165
- [data-ui='toast'][data-expanded] > [data-part='list'] {
165
+ [data-ui-toast][data-expanded] > [data-part-list] {
166
166
  pointer-events: auto;
167
167
  }
168
168
 
@@ -172,7 +172,7 @@
172
172
  * the message away, with the actions under the words rather than beside
173
173
  * them so a second row exists only when there are actions to put in it.
174
174
  */
175
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] {
175
+ [data-ui-toast] > [data-part-list] > [data-part-item] {
176
176
  /* The tone's five roles, defaulted to `accent`, restated by each tone
177
177
  below. Every one of them is a role the theme's contrast test measures. */
178
178
  --_solid: var(--slotted-tone-accent-solid);
@@ -194,12 +194,12 @@
194
194
  * `alert` measured: on a tinted ground `subtle-hover` is lighter than the
195
195
  * ground it sits on, and on a solid one the ramp is calibrated against the
196
196
  * page instead. `currentcolor` is legible on whatever ground the control
197
- * already has, because it is the colour its own words are read in.
197
+ * already has, because it is the color its own words are read in.
198
198
  *
199
199
  * Ten and sixteen per cent, the pair `alert` settled: white at eight per
200
200
  * cent over the `danger` fill moved OKLab lightness by 0.019 in the light
201
201
  * and dark schemes, under the 0.02 a surface step has to reach
202
- * (`docs/history/designs/2026-09-29-toast-reui-dossier.md` § 4).
202
+ *.
203
203
  */
204
204
  --_state-hover: color-mix(
205
205
  in oklab,
@@ -221,7 +221,7 @@
221
221
  --_inner-size: var(--slotted-control-inner-size-md, 24px);
222
222
  /**
223
223
  * The status mark is `alert`'s: a filled disc a step above the title's
224
- * `1em`, rounded to an even number of pixels so its centre falls on a
224
+ * `1em`, rounded to an even number of pixels so its center falls on a
225
225
  * whole pixel — 16 at 13-pixel type, 14 at 12. A message about a failure
226
226
  * draws the same silhouette as the alert about it. A filled mark carries
227
227
  * more weight per pixel than an outline, so it stays within a few pixels
@@ -269,7 +269,7 @@
269
269
  * The line box is rounded to an even number of pixels, the rule `alert`
270
270
  * draws its lines with. At 13-pixel type the scale's 1.5 gave 19.5, so a
271
271
  * message of one line was 45.5 pixels tall and one with a description
272
- * 88.5 in the `content` scene; an even line also centres the 24-pixel
272
+ * 88.5 in the `content` scene; an even line also centers the 24-pixel
273
273
  * close control on a whole pixel: 20 at 13, 18 at 12.
274
274
  */
275
275
  line-height: round(nearest, calc(var(--_line-height) * 1em), 2px);
@@ -302,11 +302,11 @@
302
302
  * shift is the same distance in the other direction rather than a second
303
303
  * number, so the two placements are one motion seen twice.
304
304
  */
305
- [data-ui='toast'][data-placement^='top'] > [data-part='list'] > [data-part='item'] {
305
+ [data-ui-toast][data-placement^='top'] > [data-part-list] > [data-part-item] {
306
306
  translate: 0 calc(-1 * var(--_enter-shift));
307
307
  }
308
308
 
309
- [data-ui='toast'] > [data-part='list'] > [data-part='item'][data-open] {
309
+ [data-ui-toast] > [data-part-list] > [data-part-item][data-open] {
310
310
  opacity: 1;
311
311
  translate: 0;
312
312
  transition:
@@ -314,18 +314,18 @@
314
314
  translate var(--slotted-duration-medium) var(--slotted-easing-enter);
315
315
  }
316
316
 
317
- /* ── Tone: the colour, and the mark that says the same thing ───────────
317
+ /* ── Tone: the color, and the mark that says the same thing ───────────
318
318
  *
319
319
  * The map is `specs/components/toast/contract.json`, and it is the map
320
320
  * `alert` and `status-indicator` already share — so a message about a
321
321
  * failure draws the same silhouette as the alert about it. The binding
322
322
  * draws the mark as a `Glyph` from that map; this sheet gives it only the
323
- * tone's colour. Under forced
324
- * colours every ground becomes one system colour and the shape is all that
323
+ * tone's color. Under forced
324
+ * colors every ground becomes one system color and the shape is all that
325
325
  * is left, which is WCAG 2.2 SC 1.4.1 as well as a preference.
326
326
  */
327
327
 
328
- [data-ui='toast'] > [data-part='list'] > [data-part='item'][data-tone='accent'] {
328
+ [data-ui-toast] > [data-part-list] > [data-part-item][data-tone='accent'] {
329
329
  --_solid: var(--slotted-tone-accent-solid);
330
330
  --_on-solid: var(--slotted-tone-accent-on-solid);
331
331
  --_tone-surface: var(--slotted-tone-accent-surface);
@@ -333,7 +333,7 @@
333
333
  --_tone-text: var(--slotted-tone-accent-text);
334
334
  }
335
335
 
336
- [data-ui='toast'] > [data-part='list'] > [data-part='item'][data-tone='secondary'] {
336
+ [data-ui-toast] > [data-part-list] > [data-part-item][data-tone='secondary'] {
337
337
  --_solid: var(--slotted-tone-secondary-solid);
338
338
  --_on-solid: var(--slotted-tone-secondary-on-solid);
339
339
  --_tone-surface: var(--slotted-tone-secondary-surface);
@@ -341,7 +341,7 @@
341
341
  --_tone-text: var(--slotted-tone-secondary-text);
342
342
  }
343
343
 
344
- [data-ui='toast'] > [data-part='list'] > [data-part='item'][data-tone='success'] {
344
+ [data-ui-toast] > [data-part-list] > [data-part-item][data-tone='success'] {
345
345
  --_solid: var(--slotted-tone-success-solid);
346
346
  --_on-solid: var(--slotted-tone-success-on-solid);
347
347
  --_tone-surface: var(--slotted-tone-success-surface);
@@ -349,7 +349,15 @@
349
349
  --_tone-text: var(--slotted-tone-success-text);
350
350
  }
351
351
 
352
- [data-ui='toast'] > [data-part='list'] > [data-part='item'][data-tone='warning'] {
352
+ [data-ui-toast] > [data-part-list] > [data-part-item][data-tone='info'] {
353
+ --_solid: var(--slotted-tone-info-solid);
354
+ --_on-solid: var(--slotted-tone-info-on-solid);
355
+ --_tone-surface: var(--slotted-tone-info-surface);
356
+ --_tone-border: var(--slotted-tone-info-border);
357
+ --_tone-text: var(--slotted-tone-info-text);
358
+ }
359
+
360
+ [data-ui-toast] > [data-part-list] > [data-part-item][data-tone='warning'] {
353
361
  --_solid: var(--slotted-tone-warning-solid);
354
362
  --_on-solid: var(--slotted-tone-warning-on-solid);
355
363
  --_tone-surface: var(--slotted-tone-warning-surface);
@@ -357,7 +365,7 @@
357
365
  --_tone-text: var(--slotted-tone-warning-text);
358
366
  }
359
367
 
360
- [data-ui='toast'] > [data-part='list'] > [data-part='item'][data-tone='danger'] {
368
+ [data-ui-toast] > [data-part-list] > [data-part-item][data-tone='danger'] {
361
369
  --_solid: var(--slotted-tone-danger-solid);
362
370
  --_on-solid: var(--slotted-tone-danger-on-solid);
363
371
  --_tone-surface: var(--slotted-tone-danger-surface);
@@ -371,9 +379,28 @@
371
379
  * message floats over content this family does not own, and tinting that
372
380
  * content's corner is a decision the message has no standing to take. The
373
381
  * tone is in the mark and in nothing else, which is enough — it is the
374
- * silhouette that survives forced colours anyway.
382
+ * silhouette that survives forced colors anyway.
375
383
  */
376
- [data-ui='toast'] > [data-part='list'] > [data-part='item'][data-variant='soft'] {
384
+ /**
385
+ * A theme that paints the raised message with a surface that has alpha blurs
386
+ * what passes under it: `--slotted-toast-backdrop-filter`, `none` unless set.
387
+ * Only `raised` floats over content it does not own; `soft` and `solid` are
388
+ * tone grounds. A reader who asked for less transparency gets no filter, and
389
+ * under forced colors the ground is the system's.
390
+ */
391
+ [data-ui-toast] > [data-part-list] > [data-part-item][data-variant='raised'] {
392
+ -webkit-backdrop-filter: var(--slotted-toast-backdrop-filter, none);
393
+ backdrop-filter: var(--slotted-toast-backdrop-filter, none);
394
+ }
395
+
396
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
397
+ [data-ui-toast] > [data-part-list] > [data-part-item][data-variant='raised'] {
398
+ -webkit-backdrop-filter: none;
399
+ backdrop-filter: none;
400
+ }
401
+ }
402
+
403
+ [data-ui-toast] > [data-part-list] > [data-part-item][data-variant='soft'] {
377
404
  --_ground: var(--_tone-surface);
378
405
  --_edge: var(--_tone-border);
379
406
  /* The tone's own text on the tone's own surface is the pair the theme
@@ -383,7 +410,7 @@
383
410
  --_ink-muted: var(--_tone-text);
384
411
  }
385
412
 
386
- [data-ui='toast'] > [data-part='list'] > [data-part='item'][data-variant='solid'] {
413
+ [data-ui-toast] > [data-part-list] > [data-part-item][data-variant='solid'] {
387
414
  --_ground: var(--_solid);
388
415
  --_edge: var(--_solid);
389
416
  --_ink: var(--_on-solid);
@@ -394,40 +421,39 @@
394
421
  /* ── The mark ─────────────────────────────────────────────────────────
395
422
  *
396
423
  * `alert`'s mark, rule for rule: a filled disc on the title's first line,
397
- * the binding's `Glyph` in its `solid` form, which fills the glyph's ring
398
- * and cuts the tone's symbol out of the fill, so the ground shows through
399
- * the symbol on every variant. Every tone's glyph is a circle, so every
400
- * mark is the same round silhouette on the same centre, and the symbol
401
- * inside is what tells the five apart when colour is gone.
424
+ * the binding's `Glyph` drawing a hand-drawn status mark, the silhouette
425
+ * filled and the tone's symbol cut out of it, so the ground shows through
426
+ * the symbol on every variant. Every silhouette — the circle, the warning's
427
+ * diamond — is symmetric on both axes, so every mark has the same center,
428
+ * and the symbol inside is what tells the five apart when color is gone.
402
429
  *
403
- * The glyph's filled ring reaches radius 11 of its 24-unit box, so the box
404
- * is 12/11 of the mark and the disc is the mark's own size.
430
+ * The silhouette fills its box edge to edge, so the box is the mark.
405
431
  *
406
432
  * The mark hangs from the first line's baseline. Grid baseline alignment
407
433
  * puts the mark's bottom edge on the words' baseline, and a relative offset
408
- * lowers it by half of what the mark exceeds the capitals by, so its centre
409
- * is the centre of the capitals in whatever face the title is set in. The
434
+ * lowers it by half of what the mark exceeds the capitals by, so its center
435
+ * is the center of the capitals in whatever face the title is set in. The
410
436
  * offset is rounded to a whole pixel and the mark is a whole number of
411
437
  * pixels, so the glyphs and the drawing snap by the same amount. The
412
438
  * negative block-start margin takes the mark's own height out of the
413
439
  * baseline group, so the words sit where they sit with no mark at all, and
414
440
  * layout containment keeps the glyph's own baseline out of the box's.
415
441
  *
416
- * The slot carries the colour, and the disc is painted in `currentcolor`,
442
+ * The slot carries the color, and the disc is painted in `currentcolor`,
417
443
  * so on a `solid` message the mark takes the on-solid ink with the words,
418
- * and under forced colours one declaration repaints it.
444
+ * and under forced colors one declaration repaints it.
419
445
  *
420
446
  * A mark the page supplied instead of the tone's own — a spinner from
421
447
  * `progress-indicator` while a promise is in flight, a product's own
422
448
  * artwork — takes the same place: an icon a consumer wrote is an icon, and
423
- * the line it belongs to has not moved. The artwork is centred in the box,
449
+ * the line it belongs to has not moved. The artwork is centerd in the box,
424
450
  * so an icon drawn at the mark's size fills it and a larger one overhangs it
425
451
  * equally on both sides of the same axis rather than pushing the words along. A
426
452
  * message waiting on a promise with no mark of its own draws none, and the
427
453
  * box stays, so the layout does not jump when the spinner becomes a tick.
428
454
  */
429
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='icon'] {
430
- --slotted-icon-size: calc(var(--_mark-size) * 12 / 11);
455
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-icon] {
456
+ --slotted-icon-size: var(--_mark-size);
431
457
  /**
432
458
  * The loading mark is `progress-indicator`'s contained loader, and these
433
459
  * three are the whole of what this family says to it: the disc is the
@@ -466,7 +492,7 @@
466
492
  * to be clamped too, or an unbreakable word in the title sizes the track to
467
493
  * itself and the words run past the box that holds them.
468
494
  */
469
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='content'] {
495
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-content] {
470
496
  /* The other half of the mark's baseline group: see the mark above. */
471
497
  align-self: baseline;
472
498
  display: grid;
@@ -489,11 +515,7 @@
489
515
  * `Zwischenspeicherung` set the track to 183 pixels inside a box of 155, and
490
516
  * the words stood outside the message in every scheme.
491
517
  */
492
- [data-ui='toast']
493
- > [data-part='list']
494
- > [data-part='item']
495
- > [data-part='content']
496
- > [data-part='title'] {
518
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-content] > [data-part-title] {
497
519
  font-family: var(
498
520
  --slotted-toast-title-font-family,
499
521
  var(
@@ -507,11 +529,11 @@
507
529
  overflow-wrap: anywhere;
508
530
  }
509
531
 
510
- [data-ui='toast']
511
- > [data-part='list']
512
- > [data-part='item']
513
- > [data-part='content']
514
- > [data-part='description'] {
532
+ [data-ui-toast]
533
+ > [data-part-list]
534
+ > [data-part-item]
535
+ > [data-part-content]
536
+ > [data-part-description] {
515
537
  color: var(--_ink-muted);
516
538
  margin: 0;
517
539
  min-inline-size: 0;
@@ -525,7 +547,7 @@
525
547
  * the consumer's own buttons: `button` already owns what a button is, and
526
548
  * naming one of two controls `cancel` would privilege one arrangement.
527
549
  */
528
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='actions'] {
550
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-actions] {
529
551
  align-items: center;
530
552
  display: flex;
531
553
  flex-wrap: wrap;
@@ -543,7 +565,7 @@
543
565
  * margin box is exactly one line and the inset above the message equals the
544
566
  * inset below.
545
567
  */
546
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='close'] {
568
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close] {
547
569
  /* The cross is the binding's `Glyph` in an `icon` box at the glyph size
548
570
  the formula for this box reads. */
549
571
  --slotted-icon-size: var(--_glyph-size);
@@ -579,24 +601,24 @@
579
601
 
580
602
  /* `:enabled` is the guard the shared state test requires, and the reason it
581
603
  exists: a control the browser has already refused answers no pointer. */
582
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='close']:enabled:hover {
604
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:enabled:hover {
583
605
  background-color: var(--_state-hover);
584
606
  }
585
607
 
586
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='close']:enabled:active {
608
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:enabled:active {
587
609
  background-color: var(--_state-active);
588
610
  }
589
611
 
590
612
  /* On a finger the target is the comfortable size in both axes and the box
591
- is the one a mouse sees: a transparent box centred on the control reaches
613
+ is the one a mouse sees: a transparent box centerd on the control reaches
592
614
  44 pixels, and the ground and the ring stay square. The message clips its
593
615
  overflow, so the target ends at the message's padding edge. */
594
616
  @media (pointer: coarse) {
595
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='close'] {
617
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close] {
596
618
  position: relative;
597
619
  }
598
620
 
599
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='close']::after {
621
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]::after {
600
622
  content: '';
601
623
  inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
602
624
  position: absolute;
@@ -611,8 +633,8 @@
611
633
  * it exists because `F6` sends the keyboard here — a message the reader
612
634
  * cannot see they have arrived at is a message they cannot act on.
613
635
  */
614
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='close']:focus-visible,
615
- [data-ui='toast'] > [data-part='list'] > [data-part='item']:focus-visible {
636
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:focus-visible,
637
+ [data-ui-toast] > [data-part-list] > [data-part-item]:focus-visible {
616
638
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
617
639
  }
618
640
 
@@ -621,7 +643,7 @@
621
643
  * the remaining-time bar has to stop at the rounded corner — and a ring
622
644
  * outside a control at that corner would be cut in half by it.
623
645
  */
624
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='close']:focus-visible {
646
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:focus-visible {
625
647
  outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
626
648
  }
627
649
 
@@ -630,23 +652,23 @@
630
652
  * of the screen, and read on the box itself the ring was a thick blue border
631
653
  * rather than a ring around a card.
632
654
  */
633
- [data-ui='toast'] > [data-part='list'] > [data-part='item']:focus-visible {
655
+ [data-ui-toast] > [data-part-list] > [data-part-item]:focus-visible {
634
656
  outline-offset: var(--slotted-focus-ring-offset, 2px);
635
657
  }
636
658
 
637
659
  /**
638
660
  * Measured rather than assumed, and `alert` measured it first: the ring the
639
661
  * theme calibrated against the page's surface reads about 1.3 : 1 against a
640
- * tone's own fill. The ring keeps the theme's colour in every scheme (R3).
662
+ * tone's own fill. The ring keeps the theme's color in every scheme (R3).
641
663
  * The message's own ring sits outside it, against the page the theme
642
664
  * calibrated for, and needs nothing more. The control's ring is inset in the
643
665
  * fill, so a solid message adds a halo one ring-width wide just inside it,
644
666
  * in the ink its own words are in, for the ring to be read against.
645
667
  */
646
- [data-ui='toast']
647
- > [data-part='list']
648
- > [data-part='item'][data-variant='solid']
649
- > [data-part='close']:focus-visible {
668
+ [data-ui-toast]
669
+ > [data-part-list]
670
+ > [data-part-item][data-variant='solid']
671
+ > [data-part-close]:focus-visible {
650
672
  box-shadow: inset 0 0 0 calc(2 * var(--slotted-focus-ring-width, 2px)) var(--_on-solid);
651
673
  }
652
674
 
@@ -664,7 +686,7 @@
664
686
  * from the inline start in every writing direction with no origin to mirror.
665
687
  * The box is positioned, so nothing it does moves a word.
666
688
  */
667
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='progress'] {
689
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-progress] {
668
690
  animation-duration: var(--slotted-toast-duration, var(--slotted-duration-long));
669
691
  animation-fill-mode: forwards;
670
692
  animation-name: slotted-toast-countdown;
@@ -672,7 +694,7 @@
672
694
  animation-timing-function: linear;
673
695
  /**
674
696
  * The tone's saturated step rather than the ink its words are in. Read at
675
- * half opacity in the ink colour the bar was a grey smear under a message;
697
+ * half opacity in the ink color the bar was a grey smear under a message;
676
698
  * two pixels of the tone's own fill is the one mark on the box that is
677
699
  * allowed to be loud, because what it says is *this is about to go*.
678
700
  */
@@ -688,10 +710,10 @@
688
710
  * the one ink the contrast test holds against it, held back so it reads as a
689
711
  * measure rather than as a second border.
690
712
  */
691
- [data-ui='toast']
692
- > [data-part='list']
693
- > [data-part='item'][data-variant='solid']
694
- > [data-part='progress'] {
713
+ [data-ui-toast]
714
+ > [data-part-list]
715
+ > [data-part-item][data-variant='solid']
716
+ > [data-part-progress] {
695
717
  background-color: var(--_on-solid);
696
718
  opacity: 0.7;
697
719
  }
@@ -730,12 +752,12 @@
730
752
  * back in opacity, and the front one, which is the one being read, is at
731
753
  * full strength.
732
754
  */
733
- [data-ui='toast'][data-stacking='stack'] > [data-part='list'] {
755
+ [data-ui-toast][data-stacking='stack'] > [data-part-list] {
734
756
  display: block;
735
757
  position: relative;
736
758
  }
737
759
 
738
- [data-ui='toast'][data-stacking='stack'] > [data-part='list'] > [data-part='item'] {
760
+ [data-ui-toast][data-stacking='stack'] > [data-part-list] > [data-part-item] {
739
761
  block-size: var(--slotted-toast-front-height, auto);
740
762
  inset-inline: 0;
741
763
  position: absolute;
@@ -756,20 +778,20 @@
756
778
  * everything behind it share one strength: below that the pile is a stack of
757
779
  * ghosts, and only the front two edges are showing anyway.
758
780
  */
759
- [data-ui='toast'][data-stacking='stack'] > [data-part='list'] > [data-part='item'][data-open] {
781
+ [data-ui-toast][data-stacking='stack'] > [data-part-list] > [data-part-item][data-open] {
760
782
  opacity: calc(1 - min(var(--slotted-toast-index, 0), 2) * var(--_stack-fade));
761
783
  }
762
784
 
763
- [data-ui='toast'][data-stacking='stack'][data-placement^='bottom']
764
- > [data-part='list']
765
- > [data-part='item'] {
785
+ [data-ui-toast][data-stacking='stack'][data-placement^='bottom']
786
+ > [data-part-list]
787
+ > [data-part-item] {
766
788
  inset-block-end: 0;
767
789
  translate: 0 calc(-1 * var(--slotted-toast-index, 0) * var(--_stack-step));
768
790
  }
769
791
 
770
- [data-ui='toast'][data-stacking='stack'][data-placement^='top']
771
- > [data-part='list']
772
- > [data-part='item'] {
792
+ [data-ui-toast][data-stacking='stack'][data-placement^='top']
793
+ > [data-part-list]
794
+ > [data-part-item] {
773
795
  inset-block-start: 0;
774
796
  translate: 0 calc(var(--slotted-toast-index, 0) * var(--_stack-step));
775
797
  }
@@ -779,9 +801,7 @@
779
801
  * column, and the gap between two of them is the region's own gap — the
780
802
  * offset script writes already carries it.
781
803
  */
782
- [data-ui='toast'][data-stacking='stack'][data-expanded]
783
- > [data-part='list']
784
- > [data-part='item'] {
804
+ [data-ui-toast][data-stacking='stack'][data-expanded] > [data-part-list] > [data-part-item] {
785
805
  block-size: var(--slotted-toast-height, auto);
786
806
  }
787
807
 
@@ -793,25 +813,25 @@
793
813
  * messages hang from the list's edge at `placement`, so the list grows away
794
814
  * from that edge and nothing it holds moves.
795
815
  */
796
- [data-ui='toast'][data-stacking='stack'][data-expanded] > [data-part='list'] {
816
+ [data-ui-toast][data-stacking='stack'][data-expanded] > [data-part-list] {
797
817
  block-size: var(--slotted-toast-stack-height, auto);
798
818
  }
799
819
 
800
- [data-ui='toast'][data-stacking='stack'][data-expanded]
801
- > [data-part='list']
802
- > [data-part='item'][data-open] {
820
+ [data-ui-toast][data-stacking='stack'][data-expanded]
821
+ > [data-part-list]
822
+ > [data-part-item][data-open] {
803
823
  opacity: 1;
804
824
  }
805
825
 
806
- [data-ui='toast'][data-stacking='stack'][data-expanded][data-placement^='bottom']
807
- > [data-part='list']
808
- > [data-part='item'] {
826
+ [data-ui-toast][data-stacking='stack'][data-expanded][data-placement^='bottom']
827
+ > [data-part-list]
828
+ > [data-part-item] {
809
829
  translate: 0 calc(-1 * var(--slotted-toast-stack-offset, 0px));
810
830
  }
811
831
 
812
- [data-ui='toast'][data-stacking='stack'][data-expanded][data-placement^='top']
813
- > [data-part='list']
814
- > [data-part='item'] {
832
+ [data-ui-toast][data-stacking='stack'][data-expanded][data-placement^='top']
833
+ > [data-part-list]
834
+ > [data-part-item] {
815
835
  translate: 0 var(--slotted-toast-stack-offset, 0px);
816
836
  }
817
837
 
@@ -821,11 +841,11 @@
821
841
  * `min()` is what turns an index into that rule without a rule per depth —
822
842
  * the front message resolves to one and every other to zero.
823
843
  */
824
- [data-ui='toast'][data-stacking='stack'] > [data-part='list'] > [data-part='item'] > * {
844
+ [data-ui-toast][data-stacking='stack'] > [data-part-list] > [data-part-item] > * {
825
845
  transition: opacity var(--slotted-duration-medium) var(--slotted-easing-standard);
826
846
  }
827
847
 
828
- [data-ui='toast'][data-stacking='stack']:not([data-expanded]) [data-part='item'] > * {
848
+ [data-ui-toast][data-stacking='stack']:not([data-expanded]) [data-part-item] > * {
829
849
  opacity: calc(1 - min(1, var(--slotted-toast-index, 0)));
830
850
  }
831
851
 
@@ -837,7 +857,7 @@
837
857
  * message follows it exactly, with no transition in the way: a drag that
838
858
  * lags the finger reads as a stuck interface.
839
859
  */
840
- [data-ui='toast'] > [data-part='list'] > [data-part='item'][data-dragging] {
860
+ [data-ui-toast] > [data-part-list] > [data-part-item][data-dragging] {
841
861
  cursor: grabbing;
842
862
  transition: none;
843
863
  translate: var(--slotted-toast-swipe-x, 0px) var(--slotted-toast-swipe-y, 0px);
@@ -846,7 +866,7 @@
846
866
  user-select: none;
847
867
  }
848
868
 
849
- [data-ui='toast'][data-swipe='true'] > [data-part='list'] > [data-part='item'] {
869
+ [data-ui-toast][data-swipe='true'] > [data-part-list] > [data-part-item] {
850
870
  touch-action: none;
851
871
  }
852
872
 
@@ -859,7 +879,7 @@
859
879
  * container condition.
860
880
  */
861
881
  @container slotted-toast (max-width: 20rem) {
862
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] {
882
+ [data-ui-toast] > [data-part-list] > [data-part-item] {
863
883
  --_inset-block: var(--slotted-toast-padding-block, var(--slotted-space-4, 0.5rem));
864
884
  --_inset-inline: var(--slotted-toast-padding-inline, var(--slotted-space-5, 0.75rem));
865
885
  }
@@ -870,51 +890,48 @@
870
890
  * the control, and `button` already ships `fullWidth` for a consumer who
871
891
  * wants otherwise.
872
892
  */
873
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='actions'] {
893
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-actions] {
874
894
  align-items: flex-start;
875
895
  flex-direction: column;
876
896
  }
877
897
  }
878
898
 
879
- /* ── Forced colours ───────────────────────────────────────────────────
899
+ /* ── Forced colors ───────────────────────────────────────────────────
880
900
  *
881
- * The operating system replaces every author colour, so five tones become
901
+ * The operating system replaces every author color, so five tones become
882
902
  * one box and three variants become one painting. What is left to decide is
883
903
  * whether the box still has an edge and whether the mark is still there —
884
904
  * and the theme can answer neither, because `solid` draws its border in its
885
- * own fill and a transparent border is not a colour the system remaps.
905
+ * own fill and a transparent border is not a color the system remaps.
886
906
  */
887
907
  @media (forced-colors: active) {
888
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] {
908
+ [data-ui-toast] > [data-part-list] > [data-part-item] {
889
909
  border-color: CanvasText;
890
910
  }
891
911
 
892
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='icon'] {
912
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-icon] {
893
913
  color: CanvasText;
894
914
  }
895
915
 
896
916
  /**
897
917
  * The control's glyph is stroked in `currentcolor`, so giving the control
898
- * a system colour repaints it, and the mark's slot the same.
918
+ * a system color repaints it, and the mark's slot the same.
899
919
  */
900
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='close'] {
920
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close] {
901
921
  color: CanvasText;
902
922
  }
903
923
 
904
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='close']:enabled:hover,
905
- [data-ui='toast']
906
- > [data-part='list']
907
- > [data-part='item']
908
- > [data-part='close']:enabled:active {
924
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:enabled:hover,
925
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:enabled:active {
909
926
  background-color: Highlight;
910
927
  color: HighlightText;
911
928
  }
912
929
 
913
930
  /**
914
931
  * A bar of system ink under every message, shortening, is a moving line
915
- * with no colour to say what it belongs to. The message still expires.
932
+ * with no color to say what it belongs to. The message still expires.
916
933
  */
917
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='progress'] {
934
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-progress] {
918
935
  background-color: CanvasText;
919
936
  opacity: 1;
920
937
  }
@@ -935,7 +952,7 @@
935
952
  * reached over the declared one, and the `timing` scene froze at 80 per cent.
936
953
  */
937
954
  @media (prefers-reduced-motion: reduce) {
938
- [data-ui='toast'] > [data-part='list'] > [data-part='item'] > [data-part='progress'] {
955
+ [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-progress] {
939
956
  animation-name: none;
940
957
  inline-size: 100%;
941
958
  }