@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
@@ -23,14 +23,10 @@
23
23
  }
24
24
 
25
25
  /**
26
- * Where the travelling bar of an indeterminate indicator starts and how long
27
- * it is, as percentages of the track.
28
- *
29
- * The keyframes move these two numbers rather than the bar's own box, because
30
- * two things read them: the plain bar sets its inset and its length from them,
31
- * and the wavy bar cuts a window out of its path at the same two numbers. One
32
- * clock, read twice, is what keeps a wavy bar and a plain one travelling the
33
- * same journey.
26
+ * Where the travelling bar of an indeterminate wavy indicator starts and how
27
+ * long it is, as percentages of the track: the wavy bar cuts a window out of
28
+ * its path at the two numbers. The plain bar travels the same journey by
29
+ * `translate` and `scale`, which the compositor runs.
34
30
  */
35
31
  @property --slotted-progress-indicator-travel-start {
36
32
  syntax: '<number>';
@@ -97,14 +93,14 @@
97
93
  * authored stylesheet has to know which of three things it is painting, and
98
94
  * a prop would be a fourth way to pick a component already picked.
99
95
  */
100
- [data-ui='progress-indicator'][data-part='root'] {
96
+ [data-ui-progress-indicator][data-part-root] {
101
97
  /**
102
98
  * The ink, and it is the tone's `text` role rather than its `solid` one.
103
99
  * Two reasons, and the second is the one that decides it. The indicator is
104
100
  * a graphic bearing meaning, so WCAG 2.2 1.4.11 binds it at 3:1; the tone
105
101
  * `text` roles are the steps the theme's contrast test holds to the 4.5:1
106
102
  * reading ratio against every surface, which clears it with room over.
107
- * And `--slotted-tone-secondary-solid` is the surface's own colour in
103
+ * And `--slotted-tone-secondary-solid` is the surface's own color in
108
104
  * `light` and the page's own white in `high-contrast` — a secondary bar
109
105
  * painted from it would be an invisible bar in two schemes out of three,
110
106
  * which is the deviation `button` recorded and could not fix inside its
@@ -133,8 +129,8 @@
133
129
  );
134
130
  /**
135
131
  * The second quantity, halfway between the two: received but not yet
136
- * processed. It has to be legible as *neither* — a buffer the colour of
137
- * the track says nothing has arrived, and a buffer the colour of the
132
+ * processed. It has to be legible as *neither* — a buffer the color of
133
+ * the track says nothing has arrived, and a buffer the color of the
138
134
  * indicator says the work is done.
139
135
  */
140
136
  --_buffer-color: var(--slotted-progress-indicator-buffer-color, transparent);
@@ -229,15 +225,16 @@
229
225
  * report yet and nothing is drawn — no box, no role, no reserved band. The
230
226
  * rule exists because the root's own `display` would otherwise win over the
231
227
  * user agent's `[hidden]`, and a family that painted through its own
232
- * withdrawal would flash exactly what the delay exists to prevent.
228
+ * withdrawal would flash exactly what the delay exists to prevent. It names
229
+ * the shape to outrank the rule that gives each shape its `display`.
233
230
  */
234
- [data-ui='progress-indicator'][hidden] {
231
+ [data-ui-progress-indicator][data-part-root][data-shape][hidden] {
235
232
  display: none;
236
233
  }
237
234
 
238
235
  /* ── Tone ─────────────────────────────────────────────────────────────
239
236
  *
240
- * Five colours the theme owns, and the family adds none. Only the ink is
237
+ * Five colors the theme owns, and the family adds none. Only the ink is
241
238
  * stated: the track and the buffer are derived from it, so a sixth tone
242
239
  * added by an application is one declaration rather than three.
243
240
  */
@@ -253,23 +250,27 @@
253
250
  * It is the same substitution `badge` and `status-indicator` make for their
254
251
  * own neutral marks, for the same reason.
255
252
  */
256
- [data-ui='progress-indicator'][data-part='root'][data-tone='secondary'] {
253
+ [data-ui-progress-indicator][data-part-root][data-tone='secondary'] {
257
254
  --_ink: var(--slotted-progress-indicator-indicator-color, var(--slotted-border-strong));
258
255
  }
259
256
 
260
- [data-ui='progress-indicator'][data-part='root'][data-tone='success'] {
257
+ [data-ui-progress-indicator][data-part-root][data-tone='success'] {
261
258
  --_ink: var(--slotted-progress-indicator-indicator-color, var(--slotted-tone-success-text));
262
259
  }
263
260
 
264
- [data-ui='progress-indicator'][data-part='root'][data-tone='warning'] {
261
+ [data-ui-progress-indicator][data-part-root][data-tone='info'] {
262
+ --_ink: var(--slotted-progress-indicator-indicator-color, var(--slotted-tone-info-text));
263
+ }
264
+
265
+ [data-ui-progress-indicator][data-part-root][data-tone='warning'] {
265
266
  --_ink: var(--slotted-progress-indicator-indicator-color, var(--slotted-tone-warning-text));
266
267
  }
267
268
 
268
- [data-ui='progress-indicator'][data-part='root'][data-tone='danger'] {
269
+ [data-ui-progress-indicator][data-part-root][data-tone='danger'] {
269
270
  --_ink: var(--slotted-progress-indicator-indicator-color, var(--slotted-tone-danger-text));
270
271
  }
271
272
 
272
- [data-ui='progress-indicator'][data-part='root'][data-buffered] {
273
+ [data-ui-progress-indicator][data-part-root][data-buffered] {
273
274
  --_buffer-color: var(
274
275
  --slotted-progress-indicator-buffer-color,
275
276
  color-mix(in oklab, var(--_ink) 52%, var(--slotted-surface))
@@ -286,14 +287,14 @@
286
287
  * component layer of the token contract stays as `avatar` left it.
287
288
  */
288
289
 
289
- [data-ui='progress-indicator'][data-part='root'][data-size='sm'] {
290
+ [data-ui-progress-indicator][data-part-root][data-size='sm'] {
290
291
  --_font-size: var(--slotted-control-font-size-sm, 12px);
291
292
  --_text-gap: var(--slotted-space-3, 0.375rem);
292
293
  --_thickness: var(--slotted-progress-indicator-thickness, var(--slotted-space-2, 0.25rem));
293
294
  --_size: var(--slotted-progress-indicator-size, var(--slotted-control-height-sm, 30px));
294
295
  }
295
296
 
296
- [data-ui='progress-indicator'][data-part='root'][data-size='lg'] {
297
+ [data-ui-progress-indicator][data-part-root][data-size='lg'] {
297
298
  --_font-size: var(--slotted-control-font-size-lg, 14px);
298
299
  --_row-gap: var(--slotted-space-4, 0.5rem);
299
300
  --_thickness: var(--slotted-progress-indicator-thickness, var(--slotted-space-4, 0.5rem));
@@ -313,7 +314,7 @@
313
314
  * character, so a grid column sized to its content collapses to that
314
315
  * character.
315
316
  */
316
- [data-ui='progress-indicator'] [data-part='label'] {
317
+ [data-ui-progress-indicator] [data-part-label] {
317
318
  color: var(--slotted-text, CanvasText);
318
319
  min-inline-size: 0;
319
320
  overflow-wrap: break-word;
@@ -322,11 +323,11 @@
322
323
  /**
323
324
  * Tabular figures, and the reason is the whole point of the part: the value
324
325
  * changes while the reader is looking at it, and a proportional `1` is
325
- * narrower than a `7`, so a counting bar jitters its own label. The colour
326
+ * narrower than a `7`, so a counting bar jitters its own label. The color
326
327
  * is the muted step, because the number annotates the bar rather than
327
328
  * naming it.
328
329
  */
329
- [data-ui='progress-indicator'] [data-part='value'] {
330
+ [data-ui-progress-indicator] [data-part-value] {
330
331
  color: var(--slotted-text-muted, GrayText);
331
332
  font-variant-numeric: tabular-nums;
332
333
  white-space: nowrap;
@@ -344,7 +345,7 @@
344
345
  * inline end, which is the right edge of an English page and the left edge
345
346
  * of an Arabic one, with no mirrored rule to write.
346
347
  */
347
- [data-ui='progress-indicator'][data-part='root'][data-shape='linear'] {
348
+ [data-ui-progress-indicator][data-part-root][data-shape='linear'] {
348
349
  align-items: baseline;
349
350
  column-gap: var(--_text-gap);
350
351
  display: grid;
@@ -352,16 +353,16 @@
352
353
  row-gap: var(--_row-gap);
353
354
  }
354
355
 
355
- [data-ui='progress-indicator'][data-shape='linear'] > [data-part='label'] {
356
+ [data-ui-progress-indicator][data-shape='linear'] > [data-part-label] {
356
357
  grid-column: 1;
357
358
  }
358
359
 
359
- [data-ui='progress-indicator'][data-shape='linear'] > [data-part='value'] {
360
+ [data-ui-progress-indicator][data-shape='linear'] > [data-part-value] {
360
361
  grid-column: 2;
361
362
  justify-self: end;
362
363
  }
363
364
 
364
- [data-ui='progress-indicator'][data-shape='linear'] > [data-part='track'] {
365
+ [data-ui-progress-indicator][data-shape='linear'] > [data-part-track] {
365
366
  grid-column: 1 / -1;
366
367
  }
367
368
 
@@ -379,7 +380,7 @@
379
380
  * block axis has to let a crest out. A single `clip` is what sliced the
380
381
  * crests flat in the first capture of this family.
381
382
  */
382
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='track'] {
383
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track] {
383
384
  background-color: var(--_buffer-color);
384
385
  block-size: var(--_thickness);
385
386
  border-radius: var(--_radius);
@@ -397,7 +398,7 @@
397
398
  * notch — the shape M3 took in 2024 and the one no other surveyed
398
399
  * implementation draws.
399
400
  */
400
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='track']::before {
401
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track]::before {
401
402
  background-color: var(--_track-color);
402
403
  border-radius: inherit;
403
404
  content: '';
@@ -413,7 +414,7 @@
413
414
  * and it is the detail that makes a bar at four per cent read as four per
414
415
  * cent of something rather than as a stray mark.
415
416
  */
416
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='track']::after {
417
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track]::after {
417
418
  background-color: var(--_ink);
418
419
  border-radius: var(--slotted-radius-full, 9999px);
419
420
  content: '';
@@ -423,7 +424,7 @@
423
424
  position: absolute;
424
425
  }
425
426
 
426
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='indicator'] {
427
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-indicator] {
427
428
  background-color: var(--_ink);
428
429
  block-size: 100%;
429
430
  border-radius: inherit;
@@ -435,7 +436,7 @@
435
436
 
436
437
  /**
437
438
  * Complete, and there is nothing left to separate. The remaining track goes
438
- * and the stop indicator goes with it: a dot in the indicator's colour on
439
+ * and the stop indicator goes with it: a dot in the indicator's color on
439
440
  * top of a full indicator is a dot nobody can see, and leaving the gap
440
441
  * would put a notch a whole thickness wide at the end of a finished bar.
441
442
  *
@@ -446,47 +447,95 @@
446
447
  * way along it. Keyed on the number, it goes when the fill arrives.
447
448
  */
448
449
  @container style(--slotted-progress-indicator-percent: 100) {
449
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='track']::before,
450
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='track']::after {
450
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track]::before,
451
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track]::after {
451
452
  content: none;
452
453
  }
453
454
  }
454
455
 
455
456
  /**
456
457
  * Indeterminate: the whole track shows, there is no end to mark, and the
457
- * indicator becomes a short bar travelling the length of it. It is absolutely
458
- * positioned so the travel is one property — the decision the family this
459
- * one replaces recorded, and `inset-inline-start` is why a translation runs
460
- * the way the document reads instead of the way the screen does.
458
+ * indicator becomes a short bar travelling the length of it.
461
459
  */
462
- [data-ui='progress-indicator'][data-shape='linear'][data-indeterminate]
463
- [data-part='track']::before {
460
+ [data-ui-progress-indicator][data-shape='linear'][data-indeterminate] [data-part-track]::before {
464
461
  inset-inline-start: 0;
465
462
  }
466
463
 
467
- [data-ui='progress-indicator'][data-shape='linear'][data-indeterminate]
468
- [data-part='track']::after {
464
+ [data-ui-progress-indicator][data-shape='linear'][data-indeterminate] [data-part-track]::after {
469
465
  content: none;
470
466
  }
471
467
 
472
- [data-ui='progress-indicator'][data-shape='linear'][data-indeterminate] [data-part='indicator'] {
473
- animation: slotted-progress-indicator-travel var(--slotted-duration-loop-slow)
468
+ /**
469
+ * The bar is the whole track, scaled to its length from the inline start
470
+ * and translated along it. `translate` and `scale` are the only properties
471
+ * the animation moves, so the compositor runs it: the bar is the sign that
472
+ * the page is busy, and a bar moved by its inset and its width needed a
473
+ * layout on the main thread every frame and froze under any long task.
474
+ * Two properties with keyframes of their own keep the journey the
475
+ * registered numbers draw for the wavy bar: the travel eases once from end
476
+ * to end, the length swells and shrinks in two steps.
477
+ */
478
+ [data-ui-progress-indicator][data-shape='linear'][data-indeterminate]:not([data-wave])
479
+ [data-part-indicator] {
480
+ animation: slotted-progress-indicator-glide var(--slotted-duration-loop-slow)
474
481
  var(--slotted-easing-standard) infinite;
475
- inline-size: calc(1% * var(--slotted-progress-indicator-travel-size));
482
+ inline-size: 100%;
476
483
  inset-block: 0;
477
- inset-inline-start: calc(1% * var(--slotted-progress-indicator-travel-start));
484
+ inset-inline-start: 0;
478
485
  position: absolute;
486
+ scale: 0.14 1;
487
+ transform-origin: left;
488
+ translate: -14% 0;
489
+ }
490
+
491
+ /* Translation and origin are physical: a right-to-left track runs the
492
+ mirrored journey from its right edge. */
493
+ [data-ui-progress-indicator][data-shape='linear'][data-indeterminate]:not([data-wave])
494
+ [data-part-indicator]:dir(rtl) {
495
+ animation-name: slotted-progress-indicator-glide-rtl;
496
+ transform-origin: right;
497
+ translate: 14% 0;
498
+ }
499
+
500
+ @keyframes slotted-progress-indicator-glide {
501
+ 0% {
502
+ scale: 0.14 1;
503
+ translate: -14% 0;
504
+ }
505
+
506
+ 45% {
507
+ scale: 0.46 1;
508
+ }
509
+
510
+ 100% {
511
+ scale: 0.14 1;
512
+ translate: 100% 0;
513
+ }
514
+ }
515
+
516
+ @keyframes slotted-progress-indicator-glide-rtl {
517
+ 0% {
518
+ scale: 0.14 1;
519
+ translate: 14% 0;
520
+ }
521
+
522
+ 45% {
523
+ scale: 0.46 1;
524
+ }
525
+
526
+ 100% {
527
+ scale: 0.14 1;
528
+ translate: -100% 0;
529
+ }
479
530
  }
480
531
 
481
532
  /**
482
- * A short bar that grows as it crosses and shrinks as it leaves, which is
483
- * M3's disjoint indicator drawn with one bar rather than two. The width
484
- * changes because a bar of constant length reads as a scrollbar being
485
- * dragged; a bar that swells in the middle of its journey reads as
486
- * something in progress.
487
- *
488
- * The keyframes move the two registered numbers rather than the box, so the
489
- * wavy bar can cut its window at the same two numbers.
533
+ * The journey as two registered numbers, for the wavy bar, which cuts a
534
+ * window out of its path at them: a short bar that grows as it crosses and
535
+ * shrinks as it leaves, M3's disjoint indicator drawn with one bar rather
536
+ * than two. The width changes because a bar of constant length reads as a
537
+ * scrollbar being dragged; a bar that swells in the middle of its journey
538
+ * reads as something in progress. `glide` draws the same journey.
490
539
  */
491
540
  @keyframes slotted-progress-indicator-travel {
492
541
  0% {
@@ -515,7 +564,7 @@
515
564
  * The stacking layer is a token, so an application's own stacking contract
516
565
  * still decides. Every router progress bar in the field types a number here.
517
566
  */
518
- [data-ui='progress-indicator'][data-part='root'][data-placement='page'] {
567
+ [data-ui-progress-indicator][data-part-root][data-placement='page'] {
519
568
  --_radius: var(--slotted-progress-indicator-radius, var(--slotted-radius-none, 0px));
520
569
  --_track-color: var(--slotted-progress-indicator-track-color, transparent);
521
570
  --_gap: var(--slotted-progress-indicator-gap, 0);
@@ -526,7 +575,7 @@
526
575
  z-index: var(--slotted-z-index-sticky, 100);
527
576
  }
528
577
 
529
- [data-ui='progress-indicator'][data-placement='page'] [data-part='track']::after {
578
+ [data-ui-progress-indicator][data-placement='page'] [data-part-track]::after {
530
579
  content: none;
531
580
  }
532
581
 
@@ -548,7 +597,7 @@
548
597
  * the edge. `app-shell` writes it for a content region that scrolls with
549
598
  * the document. It is a composition value, not a design token.
550
599
  */
551
- [data-ui='progress-indicator'][data-part='root']:is(
600
+ [data-ui-progress-indicator][data-part-root]:is(
552
601
  [data-placement='edge-start'],
553
602
  [data-placement='edge-end']
554
603
  ) {
@@ -560,16 +609,16 @@
560
609
  position: var(--slotted-progress-indicator-position, absolute);
561
610
  }
562
611
 
563
- [data-ui='progress-indicator'][data-part='root'][data-placement='edge-start'] {
612
+ [data-ui-progress-indicator][data-part-root][data-placement='edge-start'] {
564
613
  inset-block-start: 0;
565
614
  }
566
615
 
567
- [data-ui='progress-indicator'][data-part='root'][data-placement='edge-end'] {
616
+ [data-ui-progress-indicator][data-part-root][data-placement='edge-end'] {
568
617
  inset-block-end: 0;
569
618
  }
570
619
 
571
- [data-ui='progress-indicator']:is([data-placement='edge-start'], [data-placement='edge-end'])
572
- [data-part='track']::after {
620
+ [data-ui-progress-indicator]:is([data-placement='edge-start'], [data-placement='edge-end'])
621
+ [data-part-track]::after {
573
622
  content: none;
574
623
  }
575
624
 
@@ -596,7 +645,7 @@
596
645
  * back into its edge rather than on the frame it is asked to. The theme
597
646
  * collapses both steps under `prefers-reduced-motion`.
598
647
  */
599
- [data-ui='progress-indicator'][data-part='root']:is(
648
+ [data-ui-progress-indicator][data-part-root]:is(
600
649
  [data-placement='page'],
601
650
  [data-placement='edge-start'],
602
651
  [data-placement='edge-end']
@@ -616,11 +665,11 @@
616
665
  }
617
666
  }
618
667
 
619
- [data-ui='progress-indicator'][data-part='root'][data-placement='edge-end'] {
668
+ [data-ui-progress-indicator][data-part-root][data-placement='edge-end'] {
620
669
  --_withdrawn: inset(100% 0 0 0);
621
670
  }
622
671
 
623
- [data-ui='progress-indicator'][data-part='root']:is(
672
+ [data-ui-progress-indicator][data-part-root]:is(
624
673
  [data-placement='page'],
625
674
  [data-placement='edge-start'],
626
675
  [data-placement='edge-end']
@@ -639,11 +688,11 @@
639
688
  * ring rather than inside it, and that is a measurement rather than a
640
689
  * preference: the largest ring this family draws is 38 pixels across with a
641
690
  * 4.75-pixel stroke, which leaves 28 pixels of hole, and a percentage
642
- * centred in it would be four-pixel type. Ant Design and MUI both put it
691
+ * centerd in it would be four-pixel type. Ant Design and MUI both put it
643
692
  * inside because both draw rings twice this size.
644
693
  */
645
- [data-ui='progress-indicator'][data-part='root'][data-shape='circular'],
646
- [data-ui='progress-indicator'][data-part='root'][data-shape='morph'] {
694
+ [data-ui-progress-indicator][data-part-root][data-shape='circular'],
695
+ [data-ui-progress-indicator][data-part-root][data-shape='morph'] {
647
696
  align-items: center;
648
697
  column-gap: var(--_text-gap);
649
698
  display: inline-flex;
@@ -657,7 +706,7 @@
657
706
  * and this family's circle are the same object, and Button can stop drawing
658
707
  * its own.
659
708
  */
660
- [data-ui='progress-indicator'][data-shape='circular'] svg {
709
+ [data-ui-progress-indicator][data-shape='circular'] svg {
661
710
  --_stroke: var(--slotted-progress-indicator-stroke, 6);
662
711
 
663
712
  block-size: var(--_size);
@@ -669,8 +718,8 @@
669
718
  rotate: -90deg;
670
719
  }
671
720
 
672
- [data-ui='progress-indicator'][data-shape='circular'] [data-part='track'],
673
- [data-ui='progress-indicator'][data-shape='circular'] [data-part='indicator'] {
721
+ [data-ui-progress-indicator][data-shape='circular'] [data-part-track],
722
+ [data-ui-progress-indicator][data-shape='circular'] [data-part-indicator] {
674
723
  fill: none;
675
724
  stroke-linecap: round;
676
725
  stroke-width: var(--_stroke);
@@ -680,7 +729,7 @@
680
729
  it by a second smoothing. */
681
730
  }
682
731
 
683
- [data-ui='progress-indicator'][data-shape='circular'] [data-part='indicator'] {
732
+ [data-ui-progress-indicator][data-shape='circular'] [data-part-indicator] {
684
733
  stroke: var(--_ink);
685
734
  stroke-dasharray: var(--_percent) 100;
686
735
  /**
@@ -698,7 +747,7 @@
698
747
  * path is four device pixels of a 44-pixel ring, which is the gap M3
699
748
  * specifies for the bar.
700
749
  */
701
- [data-ui='progress-indicator'][data-shape='circular'] [data-part='track'] {
750
+ [data-ui-progress-indicator][data-shape='circular'] [data-part-track] {
702
751
  /**
703
752
  * Three and two tenths of the path is four device pixels of a 44-pixel
704
753
  * ring, and it collapses to nothing at nought per cent by the same clamp
@@ -720,14 +769,14 @@
720
769
  * travel, not the stated value.
721
770
  */
722
771
  @container style(--slotted-progress-indicator-percent: 100) {
723
- [data-ui='progress-indicator'][data-shape='circular'] [data-part='track'] {
772
+ [data-ui-progress-indicator][data-shape='circular'] [data-part-track] {
724
773
  stroke: transparent;
725
774
  }
726
775
  }
727
776
 
728
777
  /**
729
778
  * Indeterminate: no track at all, which is M3's own answer — its circular
730
- * track colour is transparent — and the reason is sound. An arc with no
779
+ * track color is transparent — and the reason is sound. An arc with no
731
780
  * value has no remainder to show, and a ring behind it would claim there is
732
781
  * one.
733
782
  *
@@ -735,16 +784,15 @@
735
784
  * do not divide into each other, so the sweep never repeats the same shape
736
785
  * in the same orientation.
737
786
  */
738
- [data-ui='progress-indicator'][data-shape='circular'][data-indeterminate] [data-part='track'] {
787
+ [data-ui-progress-indicator][data-shape='circular'][data-indeterminate] [data-part-track] {
739
788
  stroke: transparent;
740
789
  }
741
790
 
742
- [data-ui='progress-indicator'][data-shape='circular'][data-indeterminate] svg {
791
+ [data-ui-progress-indicator][data-shape='circular'][data-indeterminate] svg {
743
792
  animation: slotted-progress-indicator-turn var(--slotted-duration-loop) linear infinite;
744
793
  }
745
794
 
746
- [data-ui='progress-indicator'][data-shape='circular'][data-indeterminate]
747
- [data-part='indicator'] {
795
+ [data-ui-progress-indicator][data-shape='circular'][data-indeterminate] [data-part-indicator] {
748
796
  animation: slotted-progress-indicator-sweep var(--slotted-duration-loop-slow)
749
797
  var(--slotted-easing-standard) infinite;
750
798
  stroke-opacity: 1;
@@ -818,7 +866,7 @@
818
866
  * at fast and slow loads, and the geometry below carries the sign once per
819
867
  * shape.
820
868
  */
821
- [data-ui='progress-indicator'][data-part='root'][data-wave] {
869
+ [data-ui-progress-indicator][data-part-root][data-wave] {
822
870
  --slotted-progress-indicator-wave-amplitude: min(
823
871
  clamp(0, calc((var(--_percent) - 6) / 10), 1),
824
872
  clamp(0, calc((96 - var(--_percent)) / 12), 1)
@@ -832,7 +880,7 @@
832
880
  * throughout, which is what M3 draws: `hasWavyEffect(isDeterminate)` is the
833
881
  * flag that separates the two.
834
882
  */
835
- [data-ui='progress-indicator'][data-part='root'][data-wave][data-indeterminate] {
883
+ [data-ui-progress-indicator][data-part-root][data-wave][data-indeterminate] {
836
884
  --slotted-progress-indicator-wave-amplitude: 1;
837
885
  }
838
886
 
@@ -854,7 +902,7 @@
854
902
  * stroke are ten thicknesses and three quarters of one, and the viewBox is
855
903
  * sized so a unit *is* a thickness at every size and density — the box is
856
904
  * twelve hundred thicknesses long and two and a half tall, which is the
857
- * crest plus half the stroke either side of the centre line.
905
+ * crest plus half the stroke either side of the center line.
858
906
  *
859
907
  * The crest needs room the band does not have. `margin-block` reserves it on
860
908
  * the track, and the track's block axis does not clip, so the wave is
@@ -862,12 +910,12 @@
862
910
  * container the path measures itself against: `cqi` is how a dash stated in
863
911
  * thicknesses learns how many thicknesses the track is.
864
912
  */
865
- [data-ui='progress-indicator'][data-shape='linear'][data-wave] [data-part='track'] {
913
+ [data-ui-progress-indicator][data-shape='linear'][data-wave] [data-part-track] {
866
914
  container-type: inline-size;
867
915
  margin-block: calc(0.75 * var(--_thickness));
868
916
  }
869
917
 
870
- [data-ui='progress-indicator'][data-shape='linear'][data-wave] [data-part='indicator'] {
918
+ [data-ui-progress-indicator][data-shape='linear'][data-wave] [data-part-indicator] {
871
919
  /** One wavelength, in thicknesses. */
872
920
  --_wave-length: 10;
873
921
 
@@ -884,11 +932,11 @@
884
932
 
885
933
  /**
886
934
  * The crest travels with the text. The path is drawn from its own left, so
887
- * a right-to-left document mirrors the box about its centre — the box is
888
- * anchored to the inline start, and its centre is the one point that stays
935
+ * a right-to-left document mirrors the box about its center — the box is
936
+ * anchored to the inline start, and its center is the one point that stays
889
937
  * inside the track.
890
938
  */
891
- [data-ui='progress-indicator'][data-shape='linear'][data-wave] [data-part='indicator']:dir(rtl) {
939
+ [data-ui-progress-indicator][data-shape='linear'][data-wave] [data-part-indicator]:dir(rtl) {
892
940
  transform: scaleX(-1);
893
941
  }
894
942
 
@@ -897,7 +945,7 @@
897
945
  *
898
946
  * The path carries `pathLength` equal to its extent along the inline axis,
899
947
  * so a dash of one unit is one thickness of travel whatever the amplitude —
900
- * the arc length of a sine is longer than its span, and normalising the
948
+ * the arc length of a sine is longer than its span, and normalizing the
901
949
  * length to the span is what lets the end sit at the value while `d` is
902
950
  * mid-transition between flat and wavy.
903
951
  *
@@ -915,7 +963,7 @@
915
963
  * one thickness, and at nought it is not painted at all, by the same clamp
916
964
  * the ring uses on its own cap.
917
965
  */
918
- [data-ui='progress-indicator'][data-shape='linear'][data-wave] [data-part='indicator'] path {
966
+ [data-ui-progress-indicator][data-shape='linear'][data-wave] [data-part-indicator] path {
919
967
  /** The track's length, in thicknesses: a ratio of two lengths, read as a number. */
920
968
  --_track-units: tan(atan2(100cqi, var(--_thickness)));
921
969
  --_window-start: 0;
@@ -941,8 +989,8 @@
941
989
  * says at every moment of the fill's own transition. An indeterminate bar
942
990
  * carries a different path and is left to the markup.
943
991
  */
944
- [data-ui='progress-indicator'][data-shape='linear'][data-wave]:not([data-indeterminate])
945
- [data-part='indicator']
992
+ [data-ui-progress-indicator][data-shape='linear'][data-wave]:not([data-indeterminate])
993
+ [data-part-indicator]
946
994
  path {
947
995
  animation: slotted-progress-indicator-flatten-bar var(--_scrub) var(--_taper) both paused;
948
996
  animation-delay: calc(
@@ -955,16 +1003,16 @@
955
1003
  * is unknown — `IndeterminateActiveWaveWavelength` — so the markup carries
956
1004
  * the tighter path, and the window is the travelling bar's own two numbers.
957
1005
  */
958
- [data-ui='progress-indicator'][data-shape='linear'][data-wave][data-indeterminate]
959
- [data-part='indicator'] {
1006
+ [data-ui-progress-indicator][data-shape='linear'][data-wave][data-indeterminate]
1007
+ [data-part-indicator] {
960
1008
  --_wave-length: 5;
961
1009
 
962
1010
  animation: slotted-progress-indicator-travel var(--slotted-duration-loop-slow)
963
1011
  var(--slotted-easing-standard) infinite;
964
1012
  }
965
1013
 
966
- [data-ui='progress-indicator'][data-shape='linear'][data-wave][data-indeterminate]
967
- [data-part='indicator']
1014
+ [data-ui-progress-indicator][data-shape='linear'][data-wave][data-indeterminate]
1015
+ [data-part-indicator]
968
1016
  path {
969
1017
  --_window-start: var(--slotted-progress-indicator-travel-start);
970
1018
  --_window-size: var(--slotted-progress-indicator-travel-size);
@@ -984,7 +1032,7 @@
984
1032
  * wavy keeps its weight, and the crest may pass the viewBox by the tenth of
985
1033
  * a unit the stroke needs.
986
1034
  */
987
- [data-ui='progress-indicator'][data-shape='circular'][data-wave] svg {
1035
+ [data-ui-progress-indicator][data-shape='circular'][data-wave] svg {
988
1036
  --_stroke: var(--slotted-progress-indicator-stroke, 5);
989
1037
 
990
1038
  block-size: calc(1.2 * var(--_size));
@@ -1010,18 +1058,18 @@
1010
1058
  * far end fell into the gap as the pattern shifted, and a full ring opened
1011
1059
  * a hole at twelve o'clock.
1012
1060
  */
1013
- [data-ui='progress-indicator'][data-shape='circular'][data-wave] [data-part='indicator'] {
1061
+ [data-ui-progress-indicator][data-shape='circular'][data-wave] [data-part-indicator] {
1014
1062
  rotate: calc(-45deg * var(--slotted-progress-indicator-wave-phase));
1015
1063
  stroke-dasharray: var(--_percent) calc(100 - var(--_percent));
1016
1064
  stroke-dashoffset: calc(-12.5 * var(--slotted-progress-indicator-wave-phase));
1017
- /* The rotation is about the viewBox's own centre, which is where the ring
1065
+ /* The rotation is about the viewBox's own center, which is where the ring
1018
1066
  is; a fill box would turn it about the path's bounding box instead. */
1019
1067
  transform-box: view-box;
1020
1068
  transform-origin: 50% 50%;
1021
1069
  }
1022
1070
 
1023
- [data-ui='progress-indicator'][data-shape='circular'][data-wave]:not([data-indeterminate])
1024
- [data-part='indicator'] {
1071
+ [data-ui-progress-indicator][data-shape='circular'][data-wave]:not([data-indeterminate])
1072
+ [data-part-indicator] {
1025
1073
  animation: slotted-progress-indicator-flatten-ring var(--_scrub) var(--_taper) both paused;
1026
1074
  animation-delay: calc(
1027
1075
  -1 * var(--_scrub) * (1 - var(--slotted-progress-indicator-wave-amplitude))
@@ -1046,7 +1094,7 @@
1046
1094
  * each pair must share a command list, and `progress.test.ts` holds both
1047
1095
  * copies to `@slotted/core/progress`.
1048
1096
  */
1049
- [data-ui='progress-indicator'][data-part='root'][data-wave] {
1097
+ [data-ui-progress-indicator][data-part-root][data-wave] {
1050
1098
  --_scrub: var(--slotted-duration-long);
1051
1099
  --_taper: cubic-bezier(0.45, 0, 0.55, 1);
1052
1100
  }
@@ -1090,7 +1138,7 @@
1090
1138
  * never shows the same shape in the same orientation twice — which is what
1091
1139
  * makes a five-second wait bearable to watch and a spinning ring not.
1092
1140
  */
1093
- [data-ui='progress-indicator'][data-shape='morph'] [data-part='track'] {
1141
+ [data-ui-progress-indicator][data-shape='morph'] [data-part-track] {
1094
1142
  block-size: var(--_size);
1095
1143
  border-radius: var(--slotted-radius-full, 9999px);
1096
1144
  display: grid;
@@ -1106,7 +1154,7 @@
1106
1154
  * pair the bar's own track holds and clears the 3:1 the loading indicator
1107
1155
  * documentation asks for between a contained shape and its container.
1108
1156
  */
1109
- [data-ui='progress-indicator'][data-shape='morph'][data-contained] [data-part='track'] {
1157
+ [data-ui-progress-indicator][data-shape='morph'][data-contained] [data-part-track] {
1110
1158
  background-color: var(--_track-color);
1111
1159
  }
1112
1160
 
@@ -1123,7 +1171,7 @@
1123
1171
  * fifty is the minority parcel and exists so it never freezes between forms.
1124
1172
  *
1125
1173
  * A single constant turn — this family's first answer — is the *old*
1126
- * circular indicator's behaviour, and it is what the loading indicator was
1174
+ * circular indicator's behavior, and it is what the loading indicator was
1127
1175
  * introduced to replace.
1128
1176
  *
1129
1177
  * CSS has no way to add two animations of one property without
@@ -1137,7 +1185,7 @@
1137
1185
  * each target and settle. Both animations take it, at the same period and on
1138
1186
  * the same keyframe boundaries, because in M3 they are one spring.
1139
1187
  */
1140
- [data-ui='progress-indicator'][data-shape='morph'] [data-part='track'] {
1188
+ [data-ui-progress-indicator][data-shape='morph'] [data-part-track] {
1141
1189
  animation: slotted-progress-indicator-drift calc(2 * var(--slotted-duration-loop-slow)) linear
1142
1190
  infinite;
1143
1191
  }
@@ -1151,7 +1199,7 @@
1151
1199
  * hurry, and a multiple of one inherits that where a fourth token would be a
1152
1200
  * scale step added for a single family.
1153
1201
  */
1154
- [data-ui='progress-indicator'][data-shape='morph'] [data-part='indicator'] {
1202
+ [data-ui-progress-indicator][data-shape='morph'] [data-part-indicator] {
1155
1203
  animation:
1156
1204
  slotted-progress-indicator-morph calc(2 * var(--slotted-duration-loop-slow))
1157
1205
  var(--slotted-easing-emphasized) infinite,
@@ -1166,10 +1214,10 @@
1166
1214
  * M3's 38-in-48, rounded to an even number of pixels — and the rounding is
1167
1215
  * the whole rule rather than a tidy-up.
1168
1216
  *
1169
- * A grid centres a box by splitting the remainder in half, so a shape whose
1217
+ * A grid centers a box by splitting the remainder in half, so a shape whose
1170
1218
  * size leaves an odd remainder inside its container sits half a pixel off
1171
- * centre and the browser rasterises that half-pixel to one side. At `lg` the
1172
- * ratio happens to land on 30 inside 38 and the shape is centred; at `md` it
1219
+ * center and the browser rasterises that half-pixel to one side. At `lg` the
1220
+ * ratio happens to land on 30 inside 38 and the shape is centerd; at `md` it
1173
1221
  * lands on 26.86 inside 34, and the capture showed it low and to one side.
1174
1222
  *
1175
1223
  * Every control height this family reads is an even number at every density,
@@ -1177,7 +1225,7 @@
1177
1225
  * pixels. `round()` is what states that, and it states it once for the three
1178
1226
  * steps rather than as three numbers.
1179
1227
  */
1180
- [data-ui='progress-indicator'][data-shape='morph'][data-contained] [data-part='indicator'] {
1228
+ [data-ui-progress-indicator][data-shape='morph'][data-contained] [data-part-indicator] {
1181
1229
  --_shape: round(nearest, calc(0.79 * var(--_size)), 2px);
1182
1230
 
1183
1231
  block-size: var(--_shape);
@@ -1469,10 +1517,10 @@
1469
1517
  * `path` is left out: the wave's paths carry the paused ramp below, which
1470
1518
  * is a value and survives.
1471
1519
  */
1472
- [data-ui='progress-indicator'][data-part='root'],
1473
- [data-ui='progress-indicator'] [data-part='indicator']:not(path),
1474
- [data-ui='progress-indicator'] [data-part='track'],
1475
- [data-ui='progress-indicator'] svg {
1520
+ [data-ui-progress-indicator][data-part-root],
1521
+ [data-ui-progress-indicator] [data-part-indicator]:not(path),
1522
+ [data-ui-progress-indicator] [data-part-track],
1523
+ [data-ui-progress-indicator] svg {
1476
1524
  animation: none !important;
1477
1525
  }
1478
1526
 
@@ -1482,19 +1530,28 @@
1482
1530
  * than as a value: pinned to either end it would read as nought per cent
1483
1531
  * or as a hundred, which is a number this indicator does not have.
1484
1532
  */
1485
- [data-ui='progress-indicator'][data-shape='linear'][data-indeterminate]
1486
- [data-part='indicator'] {
1533
+ [data-ui-progress-indicator][data-shape='linear'][data-indeterminate] [data-part-indicator] {
1487
1534
  --slotted-progress-indicator-travel-size: 46;
1488
1535
  --slotted-progress-indicator-travel-start: 27;
1489
1536
  }
1490
1537
 
1538
+ [data-ui-progress-indicator][data-shape='linear'][data-indeterminate]:not([data-wave])
1539
+ [data-part-indicator] {
1540
+ scale: 0.46 1;
1541
+ translate: 27% 0;
1542
+ }
1543
+
1544
+ [data-ui-progress-indicator][data-shape='linear'][data-indeterminate]:not([data-wave])
1545
+ [data-part-indicator]:dir(rtl) {
1546
+ translate: -27% 0;
1547
+ }
1548
+
1491
1549
  /**
1492
1550
  * The same question for the arc, and the same answer: a third of the ring
1493
1551
  * is unmistakably a fraction of something rather than a full circle or an
1494
1552
  * empty one.
1495
1553
  */
1496
- [data-ui='progress-indicator'][data-shape='circular'][data-indeterminate]
1497
- [data-part='indicator'] {
1554
+ [data-ui-progress-indicator][data-shape='circular'][data-indeterminate] [data-part-indicator] {
1498
1555
  stroke-dasharray: 34 100;
1499
1556
  }
1500
1557
 
@@ -1503,51 +1560,51 @@
1503
1560
  * range survives, because it is a value rather than motion: a ring at four
1504
1561
  * per cent is a circle whether or not anything moves.
1505
1562
  */
1506
- [data-ui='progress-indicator'][data-part='root'][data-wave] {
1563
+ [data-ui-progress-indicator][data-part-root][data-wave] {
1507
1564
  animation: none;
1508
1565
  }
1509
1566
  }
1510
1567
 
1511
- /* ── Forced colours ───────────────────────────────────────────────────
1568
+ /* ── Forced colors ───────────────────────────────────────────────────
1512
1569
  *
1513
- * The operating system replaces every author colour, so the tone is gone
1570
+ * The operating system replaces every author color, so the tone is gone
1514
1571
  * whatever the family writes and the five tones become one indicator. What
1515
1572
  * is left to decide is whether the geometry survives, and three things do
1516
- * not survive on their own: a `color-mix` of two forced colours is still a
1517
- * mix and paints an author colour the system did not choose; a masked
1573
+ * not survive on their own: a `color-mix` of two forced colors is still a
1574
+ * mix and paints an author color the system did not choose; a masked
1518
1575
  * indicator is masked by artwork the system does not replace; and a
1519
1576
  * `clip-path` shape has no edge of its own to be seen by.
1520
1577
  *
1521
1578
  * The remaining track therefore moves from the pseudo-element to the track
1522
1579
  * itself, which is a real element the system palette reaches — a decorative
1523
- * rule may not name a system colour at all, and
1580
+ * rule may not name a system color at all, and
1524
1581
  * `packages/styles/src/fallbacks.test.mjs` is what holds that. The gap goes
1525
1582
  * with it, and a gap is a refinement rather than a meaning.
1526
1583
  */
1527
1584
  @media (forced-colors: active) {
1528
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='track'] {
1585
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track] {
1529
1586
  background-color: Canvas;
1530
1587
  outline: var(--slotted-border-width-thin, 1px) solid ButtonBorder;
1531
1588
  outline-offset: calc(-1 * var(--slotted-border-width-thin, 1px));
1532
1589
  }
1533
1590
 
1534
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='track']::before,
1535
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='track']::after {
1591
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track]::before,
1592
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track]::after {
1536
1593
  content: none;
1537
1594
  }
1538
1595
 
1539
1596
  /**
1540
1597
  * An edge bar keeps no track of its own. The box it stands on already
1541
- * draws its edge in a system colour, and an outline here would be a
1598
+ * draws its edge in a system color, and an outline here would be a
1542
1599
  * second line beside the first.
1543
1600
  */
1544
- [data-ui='progress-indicator']:is([data-placement='edge-start'], [data-placement='edge-end'])
1545
- [data-part='track'] {
1601
+ [data-ui-progress-indicator]:is([data-placement='edge-start'], [data-placement='edge-end'])
1602
+ [data-part-track] {
1546
1603
  background-color: transparent;
1547
1604
  outline: none;
1548
1605
  }
1549
1606
 
1550
- [data-ui='progress-indicator'] [data-part='indicator'] {
1607
+ [data-ui-progress-indicator] [data-part-indicator] {
1551
1608
  background-color: Highlight;
1552
1609
  }
1553
1610
 
@@ -1556,20 +1613,20 @@
1556
1613
  * way the ring does: the box behind it stays clear and the path takes
1557
1614
  * the highlight.
1558
1615
  */
1559
- [data-ui='progress-indicator'][data-shape='linear'][data-wave] [data-part='indicator'] {
1616
+ [data-ui-progress-indicator][data-shape='linear'][data-wave] [data-part-indicator] {
1560
1617
  background-color: transparent;
1561
1618
  }
1562
1619
 
1563
- [data-ui='progress-indicator'][data-shape='linear'][data-wave] [data-part='indicator'] path {
1620
+ [data-ui-progress-indicator][data-shape='linear'][data-wave] [data-part-indicator] path {
1564
1621
  stroke: Highlight;
1565
1622
  }
1566
1623
 
1567
- [data-ui='progress-indicator'][data-shape='circular'] [data-part='indicator'] {
1624
+ [data-ui-progress-indicator][data-shape='circular'] [data-part-indicator] {
1568
1625
  background-color: transparent;
1569
1626
  stroke: Highlight;
1570
1627
  }
1571
1628
 
1572
- [data-ui='progress-indicator'][data-shape='circular'] [data-part='track'] {
1629
+ [data-ui-progress-indicator][data-shape='circular'] [data-part-track] {
1573
1630
  stroke: ButtonBorder;
1574
1631
  }
1575
1632
 
@@ -1578,7 +1635,7 @@
1578
1635
  * loader exists — and loses the container behind it, which in a forced
1579
1636
  * palette would be a `Canvas` disc on a `Canvas` page.
1580
1637
  */
1581
- [data-ui='progress-indicator'][data-shape='morph'][data-contained] [data-part='track'] {
1638
+ [data-ui-progress-indicator][data-shape='morph'][data-contained] [data-part-track] {
1582
1639
  background-color: Canvas;
1583
1640
  }
1584
1641
  }