@slotted/styles 0.1.0-beta.2 → 0.1.0-beta.20

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 (191) hide show
  1. package/package.json +1 -1
  2. package/src/accordion/accordion.css +10 -10
  3. package/src/action-bar/action-bar.css +45 -42
  4. package/src/action-bar/action-bar.tokens.json +1 -0
  5. package/src/action-sheet/action-sheet.css +36 -36
  6. package/src/alert/alert.css +68 -67
  7. package/src/alert/alert.tokens.json +5 -0
  8. package/src/app-shell/app-shell.css +452 -314
  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 +91 -99
  12. package/src/avatar/avatar.css +71 -41
  13. package/src/avatar/avatar.tokens.json +7 -0
  14. package/src/avatar-group/avatar-group.css +21 -22
  15. package/src/badge/badge.css +45 -37
  16. package/src/badge/badge.tokens.json +5 -0
  17. package/src/breadcrumb/breadcrumb.css +37 -37
  18. package/src/button/button.css +149 -68
  19. package/src/button/button.tokens.json +10 -0
  20. package/src/button-group/button-group.css +79 -74
  21. package/src/button-group/button-group.tokens.json +2 -0
  22. package/src/calendar/calendar.css +133 -103
  23. package/src/calendar/calendar.tokens.json +5 -1
  24. package/src/card/card.css +54 -61
  25. package/src/carousel/carousel.css +150 -161
  26. package/src/cascader/cascader.css +152 -153
  27. package/src/cascader/cascader.tokens.json +1 -0
  28. package/src/chart/chart.css +258 -248
  29. package/src/chart/chart.tokens.json +1 -0
  30. package/src/checkbox/checkbox.css +119 -124
  31. package/src/checkbox-group/checkbox-group.css +7 -7
  32. package/src/code-block/code-block.css +81 -85
  33. package/src/collapsible/collapsible.css +72 -76
  34. package/src/color-picker/color-picker.css +83 -91
  35. package/src/column-manager/column-manager.css +106 -114
  36. package/src/combobox/combobox.css +155 -124
  37. package/src/combobox/combobox.tokens.json +2 -0
  38. package/src/command-palette/command-palette.css +103 -90
  39. package/src/command-palette/command-palette.tokens.json +1 -0
  40. package/src/container/container.css +24 -24
  41. package/src/context-menu/context-menu.css +8 -8
  42. package/src/currency-field/currency-field.css +210 -88
  43. package/src/currency-field/currency-field.tokens.json +13 -0
  44. package/src/dashboard-grid/dashboard-grid.css +184 -114
  45. package/src/data-grid/data-grid.css +535 -470
  46. package/src/data-grid/data-grid.tokens.json +4 -0
  47. package/src/data-list/data-list.css +81 -70
  48. package/src/data-list/data-list.tokens.json +2 -1
  49. package/src/date-field/date-field.css +55 -52
  50. package/src/date-field/date-field.tokens.json +1 -0
  51. package/src/date-picker/date-picker.css +75 -59
  52. package/src/date-picker/date-picker.tokens.json +1 -0
  53. package/src/date-range-picker/date-range-picker.css +114 -118
  54. package/src/datetime-field/datetime-field.css +78 -80
  55. package/src/datetime-field/datetime-field.tokens.json +1 -0
  56. package/src/datetime-picker/datetime-picker.css +61 -63
  57. package/src/datetime-range-picker/datetime-range-picker.css +149 -156
  58. package/src/description-list/description-list.css +80 -65
  59. package/src/detail-panel/detail-panel.css +86 -71
  60. package/src/detail-panel/detail-panel.tokens.json +2 -0
  61. package/src/dialog/dialog.css +376 -153
  62. package/src/dialog/dialog.tokens.json +6 -0
  63. package/src/divider/divider.css +18 -18
  64. package/src/drawer/drawer.css +513 -217
  65. package/src/drawer/drawer.tokens.json +6 -0
  66. package/src/entity-picker/entity-picker.css +271 -256
  67. package/src/entity-picker/entity-picker.tokens.json +2 -0
  68. package/src/event-calendar/event-calendar.css +343 -385
  69. package/src/field/field.css +74 -78
  70. package/src/field-group/field-group.css +22 -25
  71. package/src/filter-bar/filter-bar.css +193 -209
  72. package/src/form/form.css +34 -24
  73. package/src/form/form.tokens.json +1 -0
  74. package/src/fullscreen/fullscreen.css +24 -25
  75. package/src/grid/grid.css +28 -28
  76. package/src/highlight/highlight.css +6 -6
  77. package/src/hover-card/hover-card.css +6 -6
  78. package/src/icon/icon.css +62 -15
  79. package/src/icon/icon.tokens.json +1 -0
  80. package/src/image/image.css +39 -39
  81. package/src/import-export-center/import-export-center.css +135 -156
  82. package/src/inline/inline.css +27 -27
  83. package/src/inline-message/inline-message.css +153 -77
  84. package/src/inline-message/inline-message.tokens.json +4 -0
  85. package/src/kbd/kbd.css +48 -36
  86. package/src/kbd/kbd.tokens.json +3 -0
  87. package/src/link/link.css +36 -15
  88. package/src/link/link.tokens.json +4 -0
  89. package/src/list/list.css +44 -17
  90. package/src/list/list.tokens.json +4 -0
  91. package/src/list-item/list-item.css +80 -66
  92. package/src/list-item/list-item.tokens.json +7 -0
  93. package/src/listbox/listbox.css +56 -59
  94. package/src/loading-overlay/loading-overlay.css +75 -92
  95. package/src/markdown/markdown.css +17 -17
  96. package/src/menu/menu.css +117 -74
  97. package/src/menu/menu.tokens.json +1 -0
  98. package/src/menubar/menubar.css +13 -13
  99. package/src/message/message.css +192 -202
  100. package/src/message/message.tokens.json +5 -0
  101. package/src/message-scroller/message-scroller.css +41 -42
  102. package/src/multi-select/multi-select.css +175 -160
  103. package/src/multi-select/multi-select.tokens.json +1 -0
  104. package/src/navigation-menu/navigation-menu.css +167 -188
  105. package/src/notification-center/notification-center.css +140 -148
  106. package/src/notification-center/notification-center.tokens.json +3 -0
  107. package/src/number-field/number-field.css +81 -83
  108. package/src/number-field/number-field.tokens.json +1 -0
  109. package/src/otp-input/otp-input.css +67 -57
  110. package/src/otp-input/otp-input.tokens.json +1 -0
  111. package/src/page/page.css +39 -23
  112. package/src/page/page.tokens.json +1 -0
  113. package/src/page-header/page-header.css +339 -284
  114. package/src/page-header/page-header.tokens.json +5 -0
  115. package/src/pagination/pagination.css +68 -72
  116. package/src/popover/popover.css +73 -61
  117. package/src/popover/popover.tokens.json +1 -0
  118. package/src/progress-indicator/progress-indicator.css +169 -113
  119. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  120. package/src/prompt-composer/prompt-composer.css +251 -104
  121. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  122. package/src/prose/prose.css +71 -75
  123. package/src/radio-group/radio-group.css +98 -103
  124. package/src/rating/rating.css +136 -132
  125. package/src/rating/rating.tokens.json +1 -0
  126. package/src/result-state/result-state.css +74 -77
  127. package/src/runtime-properties.mjs +2 -0
  128. package/src/saved-views/saved-views.css +41 -47
  129. package/src/scroll-area/scroll-area.css +39 -32
  130. package/src/section/section.css +178 -43
  131. package/src/section/section.tokens.json +8 -2
  132. package/src/segmented-control/segmented-control.css +254 -97
  133. package/src/segmented-control/segmented-control.tokens.json +15 -11
  134. package/src/select/select.css +154 -133
  135. package/src/select/select.tokens.json +2 -0
  136. package/src/side-navigation/side-navigation.css +179 -182
  137. package/src/side-navigation/side-navigation.tokens.json +1 -0
  138. package/src/skeleton/skeleton.css +47 -48
  139. package/src/slider/slider.css +86 -88
  140. package/src/sparkline/sparkline.css +62 -40
  141. package/src/sparkline/sparkline.tokens.json +2 -0
  142. package/src/spinner/spinner.css +83 -180
  143. package/src/spinner/spinner.tokens.json +0 -1
  144. package/src/split-button/split-button.css +30 -31
  145. package/src/split-button/split-button.tokens.json +1 -0
  146. package/src/splitter/splitter.css +35 -35
  147. package/src/stack/stack.css +24 -24
  148. package/src/stat-card/stat-card.css +380 -241
  149. package/src/stat-card/stat-card.tokens.json +5 -0
  150. package/src/status-indicator/status-indicator.css +107 -82
  151. package/src/status-indicator/status-indicator.tokens.json +0 -3
  152. package/src/stepper/stepper.css +58 -62
  153. package/src/switch/switch.css +86 -92
  154. package/src/table/table.css +340 -175
  155. package/src/table/table.tokens.json +6 -0
  156. package/src/table-of-contents/table-of-contents.css +57 -56
  157. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  158. package/src/tabs/tabs.css +322 -289
  159. package/src/tabs/tabs.tokens.json +7 -1
  160. package/src/tag/tag.css +79 -71
  161. package/src/tag/tag.tokens.json +9 -0
  162. package/src/tags-input/tags-input.css +145 -82
  163. package/src/tags-input/tags-input.tokens.json +7 -1
  164. package/src/text-field/text-field.css +132 -136
  165. package/src/text-field/text-field.tokens.json +1 -0
  166. package/src/textarea/textarea.css +31 -28
  167. package/src/textarea/textarea.tokens.json +1 -0
  168. package/src/time-field/time-field.css +72 -69
  169. package/src/time-field/time-field.tokens.json +1 -0
  170. package/src/time-picker/time-picker.css +56 -58
  171. package/src/time-range-picker/time-range-picker.css +126 -133
  172. package/src/timeline/timeline.css +254 -266
  173. package/src/timeline/timeline.tokens.json +5 -0
  174. package/src/toast/toast.css +115 -98
  175. package/src/toast/toast.tokens.json +6 -0
  176. package/src/toggle/toggle.css +62 -25
  177. package/src/toggle/toggle.tokens.json +8 -0
  178. package/src/toggle-group/toggle-group.css +106 -60
  179. package/src/toggle-group/toggle-group.tokens.json +10 -0
  180. package/src/toolbar/toolbar.css +30 -35
  181. package/src/tooltip/tooltip.css +59 -38
  182. package/src/tooltip/tooltip.tokens.json +1 -0
  183. package/src/top-navigation/top-navigation.css +243 -259
  184. package/src/tour/tour.css +51 -60
  185. package/src/transfer/transfer.css +160 -164
  186. package/src/tree/tree.css +103 -111
  187. package/src/typography/typography.css +40 -36
  188. package/src/typography/typography.tokens.json +1 -0
  189. package/src/upload/upload.css +224 -224
  190. package/src/visually-hidden/visually-hidden.css +1 -1
  191. package/src/wizard/wizard.css +185 -197
@@ -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,7 +93,7 @@
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
@@ -231,7 +227,7 @@
231
227
  * user agent's `[hidden]`, and a family that painted through its own
232
228
  * withdrawal would flash exactly what the delay exists to prevent.
233
229
  */
234
- [data-ui='progress-indicator'][hidden] {
230
+ [data-ui-progress-indicator][hidden] {
235
231
  display: none;
236
232
  }
237
233
 
@@ -253,23 +249,27 @@
253
249
  * It is the same substitution `badge` and `status-indicator` make for their
254
250
  * own neutral marks, for the same reason.
255
251
  */
256
- [data-ui='progress-indicator'][data-part='root'][data-tone='secondary'] {
252
+ [data-ui-progress-indicator][data-part-root][data-tone='secondary'] {
257
253
  --_ink: var(--slotted-progress-indicator-indicator-color, var(--slotted-border-strong));
258
254
  }
259
255
 
260
- [data-ui='progress-indicator'][data-part='root'][data-tone='success'] {
256
+ [data-ui-progress-indicator][data-part-root][data-tone='success'] {
261
257
  --_ink: var(--slotted-progress-indicator-indicator-color, var(--slotted-tone-success-text));
262
258
  }
263
259
 
264
- [data-ui='progress-indicator'][data-part='root'][data-tone='warning'] {
260
+ [data-ui-progress-indicator][data-part-root][data-tone='info'] {
261
+ --_ink: var(--slotted-progress-indicator-indicator-color, var(--slotted-tone-info-text));
262
+ }
263
+
264
+ [data-ui-progress-indicator][data-part-root][data-tone='warning'] {
265
265
  --_ink: var(--slotted-progress-indicator-indicator-color, var(--slotted-tone-warning-text));
266
266
  }
267
267
 
268
- [data-ui='progress-indicator'][data-part='root'][data-tone='danger'] {
268
+ [data-ui-progress-indicator][data-part-root][data-tone='danger'] {
269
269
  --_ink: var(--slotted-progress-indicator-indicator-color, var(--slotted-tone-danger-text));
270
270
  }
271
271
 
272
- [data-ui='progress-indicator'][data-part='root'][data-buffered] {
272
+ [data-ui-progress-indicator][data-part-root][data-buffered] {
273
273
  --_buffer-color: var(
274
274
  --slotted-progress-indicator-buffer-color,
275
275
  color-mix(in oklab, var(--_ink) 52%, var(--slotted-surface))
@@ -286,14 +286,14 @@
286
286
  * component layer of the token contract stays as `avatar` left it.
287
287
  */
288
288
 
289
- [data-ui='progress-indicator'][data-part='root'][data-size='sm'] {
289
+ [data-ui-progress-indicator][data-part-root][data-size='sm'] {
290
290
  --_font-size: var(--slotted-control-font-size-sm, 12px);
291
291
  --_text-gap: var(--slotted-space-3, 0.375rem);
292
292
  --_thickness: var(--slotted-progress-indicator-thickness, var(--slotted-space-2, 0.25rem));
293
293
  --_size: var(--slotted-progress-indicator-size, var(--slotted-control-height-sm, 30px));
294
294
  }
295
295
 
296
- [data-ui='progress-indicator'][data-part='root'][data-size='lg'] {
296
+ [data-ui-progress-indicator][data-part-root][data-size='lg'] {
297
297
  --_font-size: var(--slotted-control-font-size-lg, 14px);
298
298
  --_row-gap: var(--slotted-space-4, 0.5rem);
299
299
  --_thickness: var(--slotted-progress-indicator-thickness, var(--slotted-space-4, 0.5rem));
@@ -313,7 +313,7 @@
313
313
  * character, so a grid column sized to its content collapses to that
314
314
  * character.
315
315
  */
316
- [data-ui='progress-indicator'] [data-part='label'] {
316
+ [data-ui-progress-indicator] [data-part-label] {
317
317
  color: var(--slotted-text, CanvasText);
318
318
  min-inline-size: 0;
319
319
  overflow-wrap: break-word;
@@ -326,7 +326,7 @@
326
326
  * is the muted step, because the number annotates the bar rather than
327
327
  * naming it.
328
328
  */
329
- [data-ui='progress-indicator'] [data-part='value'] {
329
+ [data-ui-progress-indicator] [data-part-value] {
330
330
  color: var(--slotted-text-muted, GrayText);
331
331
  font-variant-numeric: tabular-nums;
332
332
  white-space: nowrap;
@@ -344,7 +344,7 @@
344
344
  * inline end, which is the right edge of an English page and the left edge
345
345
  * of an Arabic one, with no mirrored rule to write.
346
346
  */
347
- [data-ui='progress-indicator'][data-part='root'][data-shape='linear'] {
347
+ [data-ui-progress-indicator][data-part-root][data-shape='linear'] {
348
348
  align-items: baseline;
349
349
  column-gap: var(--_text-gap);
350
350
  display: grid;
@@ -352,16 +352,16 @@
352
352
  row-gap: var(--_row-gap);
353
353
  }
354
354
 
355
- [data-ui='progress-indicator'][data-shape='linear'] > [data-part='label'] {
355
+ [data-ui-progress-indicator][data-shape='linear'] > [data-part-label] {
356
356
  grid-column: 1;
357
357
  }
358
358
 
359
- [data-ui='progress-indicator'][data-shape='linear'] > [data-part='value'] {
359
+ [data-ui-progress-indicator][data-shape='linear'] > [data-part-value] {
360
360
  grid-column: 2;
361
361
  justify-self: end;
362
362
  }
363
363
 
364
- [data-ui='progress-indicator'][data-shape='linear'] > [data-part='track'] {
364
+ [data-ui-progress-indicator][data-shape='linear'] > [data-part-track] {
365
365
  grid-column: 1 / -1;
366
366
  }
367
367
 
@@ -379,7 +379,7 @@
379
379
  * block axis has to let a crest out. A single `clip` is what sliced the
380
380
  * crests flat in the first capture of this family.
381
381
  */
382
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='track'] {
382
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track] {
383
383
  background-color: var(--_buffer-color);
384
384
  block-size: var(--_thickness);
385
385
  border-radius: var(--_radius);
@@ -397,7 +397,7 @@
397
397
  * notch — the shape M3 took in 2024 and the one no other surveyed
398
398
  * implementation draws.
399
399
  */
400
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='track']::before {
400
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track]::before {
401
401
  background-color: var(--_track-color);
402
402
  border-radius: inherit;
403
403
  content: '';
@@ -413,7 +413,7 @@
413
413
  * and it is the detail that makes a bar at four per cent read as four per
414
414
  * cent of something rather than as a stray mark.
415
415
  */
416
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='track']::after {
416
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track]::after {
417
417
  background-color: var(--_ink);
418
418
  border-radius: var(--slotted-radius-full, 9999px);
419
419
  content: '';
@@ -423,7 +423,7 @@
423
423
  position: absolute;
424
424
  }
425
425
 
426
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='indicator'] {
426
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-indicator] {
427
427
  background-color: var(--_ink);
428
428
  block-size: 100%;
429
429
  border-radius: inherit;
@@ -446,47 +446,95 @@
446
446
  * way along it. Keyed on the number, it goes when the fill arrives.
447
447
  */
448
448
  @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 {
449
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track]::before,
450
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track]::after {
451
451
  content: none;
452
452
  }
453
453
  }
454
454
 
455
455
  /**
456
456
  * 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.
457
+ * indicator becomes a short bar travelling the length of it.
461
458
  */
462
- [data-ui='progress-indicator'][data-shape='linear'][data-indeterminate]
463
- [data-part='track']::before {
459
+ [data-ui-progress-indicator][data-shape='linear'][data-indeterminate] [data-part-track]::before {
464
460
  inset-inline-start: 0;
465
461
  }
466
462
 
467
- [data-ui='progress-indicator'][data-shape='linear'][data-indeterminate]
468
- [data-part='track']::after {
463
+ [data-ui-progress-indicator][data-shape='linear'][data-indeterminate] [data-part-track]::after {
469
464
  content: none;
470
465
  }
471
466
 
472
- [data-ui='progress-indicator'][data-shape='linear'][data-indeterminate] [data-part='indicator'] {
473
- animation: slotted-progress-indicator-travel var(--slotted-duration-loop-slow)
467
+ /**
468
+ * The bar is the whole track, scaled to its length from the inline start
469
+ * and translated along it. `translate` and `scale` are the only properties
470
+ * the animation moves, so the compositor runs it: the bar is the sign that
471
+ * the page is busy, and a bar moved by its inset and its width needed a
472
+ * layout on the main thread every frame and froze under any long task.
473
+ * Two properties with keyframes of their own keep the journey the
474
+ * registered numbers draw for the wavy bar: the travel eases once from end
475
+ * to end, the length swells and shrinks in two steps.
476
+ */
477
+ [data-ui-progress-indicator][data-shape='linear'][data-indeterminate]:not([data-wave])
478
+ [data-part-indicator] {
479
+ animation: slotted-progress-indicator-glide var(--slotted-duration-loop-slow)
474
480
  var(--slotted-easing-standard) infinite;
475
- inline-size: calc(1% * var(--slotted-progress-indicator-travel-size));
481
+ inline-size: 100%;
476
482
  inset-block: 0;
477
- inset-inline-start: calc(1% * var(--slotted-progress-indicator-travel-start));
483
+ inset-inline-start: 0;
478
484
  position: absolute;
485
+ scale: 0.14 1;
486
+ transform-origin: left;
487
+ translate: -14% 0;
488
+ }
489
+
490
+ /* Translation and origin are physical: a right-to-left track runs the
491
+ mirrored journey from its right edge. */
492
+ [data-ui-progress-indicator][data-shape='linear'][data-indeterminate]:not([data-wave])
493
+ [data-part-indicator]:dir(rtl) {
494
+ animation-name: slotted-progress-indicator-glide-rtl;
495
+ transform-origin: right;
496
+ translate: 14% 0;
497
+ }
498
+
499
+ @keyframes slotted-progress-indicator-glide {
500
+ 0% {
501
+ scale: 0.14 1;
502
+ translate: -14% 0;
503
+ }
504
+
505
+ 45% {
506
+ scale: 0.46 1;
507
+ }
508
+
509
+ 100% {
510
+ scale: 0.14 1;
511
+ translate: 100% 0;
512
+ }
513
+ }
514
+
515
+ @keyframes slotted-progress-indicator-glide-rtl {
516
+ 0% {
517
+ scale: 0.14 1;
518
+ translate: 14% 0;
519
+ }
520
+
521
+ 45% {
522
+ scale: 0.46 1;
523
+ }
524
+
525
+ 100% {
526
+ scale: 0.14 1;
527
+ translate: -100% 0;
528
+ }
479
529
  }
480
530
 
481
531
  /**
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.
532
+ * The journey as two registered numbers, for the wavy bar, which cuts a
533
+ * window out of its path at them: a short bar that grows as it crosses and
534
+ * shrinks as it leaves, M3's disjoint indicator drawn with one bar rather
535
+ * than two. The width changes because a bar of constant length reads as a
536
+ * scrollbar being dragged; a bar that swells in the middle of its journey
537
+ * reads as something in progress. `glide` draws the same journey.
490
538
  */
491
539
  @keyframes slotted-progress-indicator-travel {
492
540
  0% {
@@ -515,7 +563,7 @@
515
563
  * The stacking layer is a token, so an application's own stacking contract
516
564
  * still decides. Every router progress bar in the field types a number here.
517
565
  */
518
- [data-ui='progress-indicator'][data-part='root'][data-placement='page'] {
566
+ [data-ui-progress-indicator][data-part-root][data-placement='page'] {
519
567
  --_radius: var(--slotted-progress-indicator-radius, var(--slotted-radius-none, 0px));
520
568
  --_track-color: var(--slotted-progress-indicator-track-color, transparent);
521
569
  --_gap: var(--slotted-progress-indicator-gap, 0);
@@ -526,7 +574,7 @@
526
574
  z-index: var(--slotted-z-index-sticky, 100);
527
575
  }
528
576
 
529
- [data-ui='progress-indicator'][data-placement='page'] [data-part='track']::after {
577
+ [data-ui-progress-indicator][data-placement='page'] [data-part-track]::after {
530
578
  content: none;
531
579
  }
532
580
 
@@ -548,7 +596,7 @@
548
596
  * the edge. `app-shell` writes it for a content region that scrolls with
549
597
  * the document. It is a composition value, not a design token.
550
598
  */
551
- [data-ui='progress-indicator'][data-part='root']:is(
599
+ [data-ui-progress-indicator][data-part-root]:is(
552
600
  [data-placement='edge-start'],
553
601
  [data-placement='edge-end']
554
602
  ) {
@@ -560,16 +608,16 @@
560
608
  position: var(--slotted-progress-indicator-position, absolute);
561
609
  }
562
610
 
563
- [data-ui='progress-indicator'][data-part='root'][data-placement='edge-start'] {
611
+ [data-ui-progress-indicator][data-part-root][data-placement='edge-start'] {
564
612
  inset-block-start: 0;
565
613
  }
566
614
 
567
- [data-ui='progress-indicator'][data-part='root'][data-placement='edge-end'] {
615
+ [data-ui-progress-indicator][data-part-root][data-placement='edge-end'] {
568
616
  inset-block-end: 0;
569
617
  }
570
618
 
571
- [data-ui='progress-indicator']:is([data-placement='edge-start'], [data-placement='edge-end'])
572
- [data-part='track']::after {
619
+ [data-ui-progress-indicator]:is([data-placement='edge-start'], [data-placement='edge-end'])
620
+ [data-part-track]::after {
573
621
  content: none;
574
622
  }
575
623
 
@@ -596,7 +644,7 @@
596
644
  * back into its edge rather than on the frame it is asked to. The theme
597
645
  * collapses both steps under `prefers-reduced-motion`.
598
646
  */
599
- [data-ui='progress-indicator'][data-part='root']:is(
647
+ [data-ui-progress-indicator][data-part-root]:is(
600
648
  [data-placement='page'],
601
649
  [data-placement='edge-start'],
602
650
  [data-placement='edge-end']
@@ -616,11 +664,11 @@
616
664
  }
617
665
  }
618
666
 
619
- [data-ui='progress-indicator'][data-part='root'][data-placement='edge-end'] {
667
+ [data-ui-progress-indicator][data-part-root][data-placement='edge-end'] {
620
668
  --_withdrawn: inset(100% 0 0 0);
621
669
  }
622
670
 
623
- [data-ui='progress-indicator'][data-part='root']:is(
671
+ [data-ui-progress-indicator][data-part-root]:is(
624
672
  [data-placement='page'],
625
673
  [data-placement='edge-start'],
626
674
  [data-placement='edge-end']
@@ -642,8 +690,8 @@
642
690
  * centred in it would be four-pixel type. Ant Design and MUI both put it
643
691
  * inside because both draw rings twice this size.
644
692
  */
645
- [data-ui='progress-indicator'][data-part='root'][data-shape='circular'],
646
- [data-ui='progress-indicator'][data-part='root'][data-shape='morph'] {
693
+ [data-ui-progress-indicator][data-part-root][data-shape='circular'],
694
+ [data-ui-progress-indicator][data-part-root][data-shape='morph'] {
647
695
  align-items: center;
648
696
  column-gap: var(--_text-gap);
649
697
  display: inline-flex;
@@ -657,7 +705,7 @@
657
705
  * and this family's circle are the same object, and Button can stop drawing
658
706
  * its own.
659
707
  */
660
- [data-ui='progress-indicator'][data-shape='circular'] svg {
708
+ [data-ui-progress-indicator][data-shape='circular'] svg {
661
709
  --_stroke: var(--slotted-progress-indicator-stroke, 6);
662
710
 
663
711
  block-size: var(--_size);
@@ -669,8 +717,8 @@
669
717
  rotate: -90deg;
670
718
  }
671
719
 
672
- [data-ui='progress-indicator'][data-shape='circular'] [data-part='track'],
673
- [data-ui='progress-indicator'][data-shape='circular'] [data-part='indicator'] {
720
+ [data-ui-progress-indicator][data-shape='circular'] [data-part-track],
721
+ [data-ui-progress-indicator][data-shape='circular'] [data-part-indicator] {
674
722
  fill: none;
675
723
  stroke-linecap: round;
676
724
  stroke-width: var(--_stroke);
@@ -680,7 +728,7 @@
680
728
  it by a second smoothing. */
681
729
  }
682
730
 
683
- [data-ui='progress-indicator'][data-shape='circular'] [data-part='indicator'] {
731
+ [data-ui-progress-indicator][data-shape='circular'] [data-part-indicator] {
684
732
  stroke: var(--_ink);
685
733
  stroke-dasharray: var(--_percent) 100;
686
734
  /**
@@ -698,7 +746,7 @@
698
746
  * path is four device pixels of a 44-pixel ring, which is the gap M3
699
747
  * specifies for the bar.
700
748
  */
701
- [data-ui='progress-indicator'][data-shape='circular'] [data-part='track'] {
749
+ [data-ui-progress-indicator][data-shape='circular'] [data-part-track] {
702
750
  /**
703
751
  * Three and two tenths of the path is four device pixels of a 44-pixel
704
752
  * ring, and it collapses to nothing at nought per cent by the same clamp
@@ -720,7 +768,7 @@
720
768
  * travel, not the stated value.
721
769
  */
722
770
  @container style(--slotted-progress-indicator-percent: 100) {
723
- [data-ui='progress-indicator'][data-shape='circular'] [data-part='track'] {
771
+ [data-ui-progress-indicator][data-shape='circular'] [data-part-track] {
724
772
  stroke: transparent;
725
773
  }
726
774
  }
@@ -735,16 +783,15 @@
735
783
  * do not divide into each other, so the sweep never repeats the same shape
736
784
  * in the same orientation.
737
785
  */
738
- [data-ui='progress-indicator'][data-shape='circular'][data-indeterminate] [data-part='track'] {
786
+ [data-ui-progress-indicator][data-shape='circular'][data-indeterminate] [data-part-track] {
739
787
  stroke: transparent;
740
788
  }
741
789
 
742
- [data-ui='progress-indicator'][data-shape='circular'][data-indeterminate] svg {
790
+ [data-ui-progress-indicator][data-shape='circular'][data-indeterminate] svg {
743
791
  animation: slotted-progress-indicator-turn var(--slotted-duration-loop) linear infinite;
744
792
  }
745
793
 
746
- [data-ui='progress-indicator'][data-shape='circular'][data-indeterminate]
747
- [data-part='indicator'] {
794
+ [data-ui-progress-indicator][data-shape='circular'][data-indeterminate] [data-part-indicator] {
748
795
  animation: slotted-progress-indicator-sweep var(--slotted-duration-loop-slow)
749
796
  var(--slotted-easing-standard) infinite;
750
797
  stroke-opacity: 1;
@@ -818,7 +865,7 @@
818
865
  * at fast and slow loads, and the geometry below carries the sign once per
819
866
  * shape.
820
867
  */
821
- [data-ui='progress-indicator'][data-part='root'][data-wave] {
868
+ [data-ui-progress-indicator][data-part-root][data-wave] {
822
869
  --slotted-progress-indicator-wave-amplitude: min(
823
870
  clamp(0, calc((var(--_percent) - 6) / 10), 1),
824
871
  clamp(0, calc((96 - var(--_percent)) / 12), 1)
@@ -832,7 +879,7 @@
832
879
  * throughout, which is what M3 draws: `hasWavyEffect(isDeterminate)` is the
833
880
  * flag that separates the two.
834
881
  */
835
- [data-ui='progress-indicator'][data-part='root'][data-wave][data-indeterminate] {
882
+ [data-ui-progress-indicator][data-part-root][data-wave][data-indeterminate] {
836
883
  --slotted-progress-indicator-wave-amplitude: 1;
837
884
  }
838
885
 
@@ -862,12 +909,12 @@
862
909
  * container the path measures itself against: `cqi` is how a dash stated in
863
910
  * thicknesses learns how many thicknesses the track is.
864
911
  */
865
- [data-ui='progress-indicator'][data-shape='linear'][data-wave] [data-part='track'] {
912
+ [data-ui-progress-indicator][data-shape='linear'][data-wave] [data-part-track] {
866
913
  container-type: inline-size;
867
914
  margin-block: calc(0.75 * var(--_thickness));
868
915
  }
869
916
 
870
- [data-ui='progress-indicator'][data-shape='linear'][data-wave] [data-part='indicator'] {
917
+ [data-ui-progress-indicator][data-shape='linear'][data-wave] [data-part-indicator] {
871
918
  /** One wavelength, in thicknesses. */
872
919
  --_wave-length: 10;
873
920
 
@@ -888,7 +935,7 @@
888
935
  * anchored to the inline start, and its centre is the one point that stays
889
936
  * inside the track.
890
937
  */
891
- [data-ui='progress-indicator'][data-shape='linear'][data-wave] [data-part='indicator']:dir(rtl) {
938
+ [data-ui-progress-indicator][data-shape='linear'][data-wave] [data-part-indicator]:dir(rtl) {
892
939
  transform: scaleX(-1);
893
940
  }
894
941
 
@@ -915,7 +962,7 @@
915
962
  * one thickness, and at nought it is not painted at all, by the same clamp
916
963
  * the ring uses on its own cap.
917
964
  */
918
- [data-ui='progress-indicator'][data-shape='linear'][data-wave] [data-part='indicator'] path {
965
+ [data-ui-progress-indicator][data-shape='linear'][data-wave] [data-part-indicator] path {
919
966
  /** The track's length, in thicknesses: a ratio of two lengths, read as a number. */
920
967
  --_track-units: tan(atan2(100cqi, var(--_thickness)));
921
968
  --_window-start: 0;
@@ -941,8 +988,8 @@
941
988
  * says at every moment of the fill's own transition. An indeterminate bar
942
989
  * carries a different path and is left to the markup.
943
990
  */
944
- [data-ui='progress-indicator'][data-shape='linear'][data-wave]:not([data-indeterminate])
945
- [data-part='indicator']
991
+ [data-ui-progress-indicator][data-shape='linear'][data-wave]:not([data-indeterminate])
992
+ [data-part-indicator]
946
993
  path {
947
994
  animation: slotted-progress-indicator-flatten-bar var(--_scrub) var(--_taper) both paused;
948
995
  animation-delay: calc(
@@ -955,16 +1002,16 @@
955
1002
  * is unknown — `IndeterminateActiveWaveWavelength` — so the markup carries
956
1003
  * the tighter path, and the window is the travelling bar's own two numbers.
957
1004
  */
958
- [data-ui='progress-indicator'][data-shape='linear'][data-wave][data-indeterminate]
959
- [data-part='indicator'] {
1005
+ [data-ui-progress-indicator][data-shape='linear'][data-wave][data-indeterminate]
1006
+ [data-part-indicator] {
960
1007
  --_wave-length: 5;
961
1008
 
962
1009
  animation: slotted-progress-indicator-travel var(--slotted-duration-loop-slow)
963
1010
  var(--slotted-easing-standard) infinite;
964
1011
  }
965
1012
 
966
- [data-ui='progress-indicator'][data-shape='linear'][data-wave][data-indeterminate]
967
- [data-part='indicator']
1013
+ [data-ui-progress-indicator][data-shape='linear'][data-wave][data-indeterminate]
1014
+ [data-part-indicator]
968
1015
  path {
969
1016
  --_window-start: var(--slotted-progress-indicator-travel-start);
970
1017
  --_window-size: var(--slotted-progress-indicator-travel-size);
@@ -984,7 +1031,7 @@
984
1031
  * wavy keeps its weight, and the crest may pass the viewBox by the tenth of
985
1032
  * a unit the stroke needs.
986
1033
  */
987
- [data-ui='progress-indicator'][data-shape='circular'][data-wave] svg {
1034
+ [data-ui-progress-indicator][data-shape='circular'][data-wave] svg {
988
1035
  --_stroke: var(--slotted-progress-indicator-stroke, 5);
989
1036
 
990
1037
  block-size: calc(1.2 * var(--_size));
@@ -1010,7 +1057,7 @@
1010
1057
  * far end fell into the gap as the pattern shifted, and a full ring opened
1011
1058
  * a hole at twelve o'clock.
1012
1059
  */
1013
- [data-ui='progress-indicator'][data-shape='circular'][data-wave] [data-part='indicator'] {
1060
+ [data-ui-progress-indicator][data-shape='circular'][data-wave] [data-part-indicator] {
1014
1061
  rotate: calc(-45deg * var(--slotted-progress-indicator-wave-phase));
1015
1062
  stroke-dasharray: var(--_percent) calc(100 - var(--_percent));
1016
1063
  stroke-dashoffset: calc(-12.5 * var(--slotted-progress-indicator-wave-phase));
@@ -1020,8 +1067,8 @@
1020
1067
  transform-origin: 50% 50%;
1021
1068
  }
1022
1069
 
1023
- [data-ui='progress-indicator'][data-shape='circular'][data-wave]:not([data-indeterminate])
1024
- [data-part='indicator'] {
1070
+ [data-ui-progress-indicator][data-shape='circular'][data-wave]:not([data-indeterminate])
1071
+ [data-part-indicator] {
1025
1072
  animation: slotted-progress-indicator-flatten-ring var(--_scrub) var(--_taper) both paused;
1026
1073
  animation-delay: calc(
1027
1074
  -1 * var(--_scrub) * (1 - var(--slotted-progress-indicator-wave-amplitude))
@@ -1046,7 +1093,7 @@
1046
1093
  * each pair must share a command list, and `progress.test.ts` holds both
1047
1094
  * copies to `@slotted/core/progress`.
1048
1095
  */
1049
- [data-ui='progress-indicator'][data-part='root'][data-wave] {
1096
+ [data-ui-progress-indicator][data-part-root][data-wave] {
1050
1097
  --_scrub: var(--slotted-duration-long);
1051
1098
  --_taper: cubic-bezier(0.45, 0, 0.55, 1);
1052
1099
  }
@@ -1090,7 +1137,7 @@
1090
1137
  * never shows the same shape in the same orientation twice — which is what
1091
1138
  * makes a five-second wait bearable to watch and a spinning ring not.
1092
1139
  */
1093
- [data-ui='progress-indicator'][data-shape='morph'] [data-part='track'] {
1140
+ [data-ui-progress-indicator][data-shape='morph'] [data-part-track] {
1094
1141
  block-size: var(--_size);
1095
1142
  border-radius: var(--slotted-radius-full, 9999px);
1096
1143
  display: grid;
@@ -1106,7 +1153,7 @@
1106
1153
  * pair the bar's own track holds and clears the 3:1 the loading indicator
1107
1154
  * documentation asks for between a contained shape and its container.
1108
1155
  */
1109
- [data-ui='progress-indicator'][data-shape='morph'][data-contained] [data-part='track'] {
1156
+ [data-ui-progress-indicator][data-shape='morph'][data-contained] [data-part-track] {
1110
1157
  background-color: var(--_track-color);
1111
1158
  }
1112
1159
 
@@ -1137,7 +1184,7 @@
1137
1184
  * each target and settle. Both animations take it, at the same period and on
1138
1185
  * the same keyframe boundaries, because in M3 they are one spring.
1139
1186
  */
1140
- [data-ui='progress-indicator'][data-shape='morph'] [data-part='track'] {
1187
+ [data-ui-progress-indicator][data-shape='morph'] [data-part-track] {
1141
1188
  animation: slotted-progress-indicator-drift calc(2 * var(--slotted-duration-loop-slow)) linear
1142
1189
  infinite;
1143
1190
  }
@@ -1151,7 +1198,7 @@
1151
1198
  * hurry, and a multiple of one inherits that where a fourth token would be a
1152
1199
  * scale step added for a single family.
1153
1200
  */
1154
- [data-ui='progress-indicator'][data-shape='morph'] [data-part='indicator'] {
1201
+ [data-ui-progress-indicator][data-shape='morph'] [data-part-indicator] {
1155
1202
  animation:
1156
1203
  slotted-progress-indicator-morph calc(2 * var(--slotted-duration-loop-slow))
1157
1204
  var(--slotted-easing-emphasized) infinite,
@@ -1177,7 +1224,7 @@
1177
1224
  * pixels. `round()` is what states that, and it states it once for the three
1178
1225
  * steps rather than as three numbers.
1179
1226
  */
1180
- [data-ui='progress-indicator'][data-shape='morph'][data-contained] [data-part='indicator'] {
1227
+ [data-ui-progress-indicator][data-shape='morph'][data-contained] [data-part-indicator] {
1181
1228
  --_shape: round(nearest, calc(0.79 * var(--_size)), 2px);
1182
1229
 
1183
1230
  block-size: var(--_shape);
@@ -1469,10 +1516,10 @@
1469
1516
  * `path` is left out: the wave's paths carry the paused ramp below, which
1470
1517
  * is a value and survives.
1471
1518
  */
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 {
1519
+ [data-ui-progress-indicator][data-part-root],
1520
+ [data-ui-progress-indicator] [data-part-indicator]:not(path),
1521
+ [data-ui-progress-indicator] [data-part-track],
1522
+ [data-ui-progress-indicator] svg {
1476
1523
  animation: none !important;
1477
1524
  }
1478
1525
 
@@ -1482,19 +1529,28 @@
1482
1529
  * than as a value: pinned to either end it would read as nought per cent
1483
1530
  * or as a hundred, which is a number this indicator does not have.
1484
1531
  */
1485
- [data-ui='progress-indicator'][data-shape='linear'][data-indeterminate]
1486
- [data-part='indicator'] {
1532
+ [data-ui-progress-indicator][data-shape='linear'][data-indeterminate] [data-part-indicator] {
1487
1533
  --slotted-progress-indicator-travel-size: 46;
1488
1534
  --slotted-progress-indicator-travel-start: 27;
1489
1535
  }
1490
1536
 
1537
+ [data-ui-progress-indicator][data-shape='linear'][data-indeterminate]:not([data-wave])
1538
+ [data-part-indicator] {
1539
+ scale: 0.46 1;
1540
+ translate: 27% 0;
1541
+ }
1542
+
1543
+ [data-ui-progress-indicator][data-shape='linear'][data-indeterminate]:not([data-wave])
1544
+ [data-part-indicator]:dir(rtl) {
1545
+ translate: -27% 0;
1546
+ }
1547
+
1491
1548
  /**
1492
1549
  * The same question for the arc, and the same answer: a third of the ring
1493
1550
  * is unmistakably a fraction of something rather than a full circle or an
1494
1551
  * empty one.
1495
1552
  */
1496
- [data-ui='progress-indicator'][data-shape='circular'][data-indeterminate]
1497
- [data-part='indicator'] {
1553
+ [data-ui-progress-indicator][data-shape='circular'][data-indeterminate] [data-part-indicator] {
1498
1554
  stroke-dasharray: 34 100;
1499
1555
  }
1500
1556
 
@@ -1503,7 +1559,7 @@
1503
1559
  * range survives, because it is a value rather than motion: a ring at four
1504
1560
  * per cent is a circle whether or not anything moves.
1505
1561
  */
1506
- [data-ui='progress-indicator'][data-part='root'][data-wave] {
1562
+ [data-ui-progress-indicator][data-part-root][data-wave] {
1507
1563
  animation: none;
1508
1564
  }
1509
1565
  }
@@ -1525,14 +1581,14 @@
1525
1581
  * with it, and a gap is a refinement rather than a meaning.
1526
1582
  */
1527
1583
  @media (forced-colors: active) {
1528
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='track'] {
1584
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track] {
1529
1585
  background-color: Canvas;
1530
1586
  outline: var(--slotted-border-width-thin, 1px) solid ButtonBorder;
1531
1587
  outline-offset: calc(-1 * var(--slotted-border-width-thin, 1px));
1532
1588
  }
1533
1589
 
1534
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='track']::before,
1535
- [data-ui='progress-indicator'][data-shape='linear'] [data-part='track']::after {
1590
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track]::before,
1591
+ [data-ui-progress-indicator][data-shape='linear'] [data-part-track]::after {
1536
1592
  content: none;
1537
1593
  }
1538
1594
 
@@ -1541,13 +1597,13 @@
1541
1597
  * draws its edge in a system colour, and an outline here would be a
1542
1598
  * second line beside the first.
1543
1599
  */
1544
- [data-ui='progress-indicator']:is([data-placement='edge-start'], [data-placement='edge-end'])
1545
- [data-part='track'] {
1600
+ [data-ui-progress-indicator]:is([data-placement='edge-start'], [data-placement='edge-end'])
1601
+ [data-part-track] {
1546
1602
  background-color: transparent;
1547
1603
  outline: none;
1548
1604
  }
1549
1605
 
1550
- [data-ui='progress-indicator'] [data-part='indicator'] {
1606
+ [data-ui-progress-indicator] [data-part-indicator] {
1551
1607
  background-color: Highlight;
1552
1608
  }
1553
1609
 
@@ -1556,20 +1612,20 @@
1556
1612
  * way the ring does: the box behind it stays clear and the path takes
1557
1613
  * the highlight.
1558
1614
  */
1559
- [data-ui='progress-indicator'][data-shape='linear'][data-wave] [data-part='indicator'] {
1615
+ [data-ui-progress-indicator][data-shape='linear'][data-wave] [data-part-indicator] {
1560
1616
  background-color: transparent;
1561
1617
  }
1562
1618
 
1563
- [data-ui='progress-indicator'][data-shape='linear'][data-wave] [data-part='indicator'] path {
1619
+ [data-ui-progress-indicator][data-shape='linear'][data-wave] [data-part-indicator] path {
1564
1620
  stroke: Highlight;
1565
1621
  }
1566
1622
 
1567
- [data-ui='progress-indicator'][data-shape='circular'] [data-part='indicator'] {
1623
+ [data-ui-progress-indicator][data-shape='circular'] [data-part-indicator] {
1568
1624
  background-color: transparent;
1569
1625
  stroke: Highlight;
1570
1626
  }
1571
1627
 
1572
- [data-ui='progress-indicator'][data-shape='circular'] [data-part='track'] {
1628
+ [data-ui-progress-indicator][data-shape='circular'] [data-part-track] {
1573
1629
  stroke: ButtonBorder;
1574
1630
  }
1575
1631
 
@@ -1578,7 +1634,7 @@
1578
1634
  * loader exists — and loses the container behind it, which in a forced
1579
1635
  * palette would be a `Canvas` disc on a `Canvas` page.
1580
1636
  */
1581
- [data-ui='progress-indicator'][data-shape='morph'][data-contained] [data-part='track'] {
1637
+ [data-ui-progress-indicator][data-shape='morph'][data-contained] [data-part-track] {
1582
1638
  background-color: Canvas;
1583
1639
  }
1584
1640
  }