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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/package.json +13 -1
  2. package/src/accordion/accordion.css +11 -11
  3. package/src/action-bar/action-bar.css +47 -44
  4. package/src/action-bar/action-bar.tokens.json +1 -0
  5. package/src/action-sheet/action-sheet.css +39 -39
  6. package/src/alert/alert.css +96 -96
  7. package/src/alert/alert.tokens.json +5 -0
  8. package/src/app-shell/app-shell.css +455 -328
  9. package/src/app-shell/app-shell.tokens.json +5 -2
  10. package/src/aspect-ratio/aspect-ratio.css +9 -9
  11. package/src/attachment/attachment.css +118 -114
  12. package/src/avatar/avatar.css +96 -66
  13. package/src/avatar/avatar.tokens.json +7 -0
  14. package/src/avatar-group/avatar-group.css +22 -23
  15. package/src/badge/badge.css +54 -46
  16. package/src/badge/badge.tokens.json +5 -0
  17. package/src/breadcrumb/breadcrumb.css +52 -52
  18. package/src/button/button.css +137 -89
  19. package/src/button/button.tokens.json +5 -0
  20. package/src/button-group/button-group.css +80 -79
  21. package/src/button-group/button-group.tokens.json +1 -0
  22. package/src/calendar/calendar.css +139 -109
  23. package/src/calendar/calendar.tokens.json +5 -1
  24. package/src/card/card.css +68 -65
  25. package/src/carousel/carousel.css +158 -169
  26. package/src/cascader/cascader.css +158 -157
  27. package/src/cascader/cascader.tokens.json +1 -0
  28. package/src/chart/chart.css +288 -267
  29. package/src/chart/chart.tokens.json +4 -0
  30. package/src/checkbox/checkbox.css +143 -148
  31. package/src/checkbox-group/checkbox-group.css +7 -7
  32. package/src/code-block/code-block.css +85 -89
  33. package/src/collapsible/collapsible.css +76 -80
  34. package/src/color-picker/color-picker.css +106 -114
  35. package/src/column-manager/column-manager.css +111 -119
  36. package/src/combobox/combobox.css +203 -130
  37. package/src/combobox/combobox.tokens.json +3 -0
  38. package/src/command-palette/command-palette.css +155 -102
  39. package/src/command-palette/command-palette.tokens.json +2 -0
  40. package/src/container/container.css +27 -27
  41. package/src/context-menu/context-menu.css +9 -9
  42. package/src/currency-field/currency-field.css +119 -119
  43. package/src/currency-field/currency-field.tokens.json +1 -0
  44. package/src/dashboard-grid/dashboard-grid.css +185 -115
  45. package/src/data-grid/data-grid.css +598 -496
  46. package/src/data-grid/data-grid.tokens.json +5 -1
  47. package/src/data-list/data-list.css +82 -71
  48. package/src/data-list/data-list.tokens.json +2 -1
  49. package/src/date-field/date-field.css +62 -57
  50. package/src/date-field/date-field.tokens.json +1 -0
  51. package/src/date-picker/date-picker.css +117 -58
  52. package/src/date-picker/date-picker.tokens.json +5 -0
  53. package/src/date-range-picker/date-range-picker.css +157 -127
  54. package/src/date-range-picker/date-range-picker.tokens.json +4 -0
  55. package/src/datetime-field/datetime-field.css +90 -90
  56. package/src/datetime-field/datetime-field.tokens.json +1 -0
  57. package/src/datetime-picker/datetime-picker.css +123 -70
  58. package/src/datetime-picker/datetime-picker.tokens.json +4 -1
  59. package/src/datetime-range-picker/datetime-range-picker.css +191 -163
  60. package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
  61. package/src/description-list/description-list.css +105 -75
  62. package/src/description-list/description-list.tokens.json +1 -0
  63. package/src/detail-panel/detail-panel.css +86 -71
  64. package/src/detail-panel/detail-panel.tokens.json +2 -0
  65. package/src/dialog/dialog.css +434 -198
  66. package/src/dialog/dialog.tokens.json +7 -0
  67. package/src/divider/divider.css +20 -20
  68. package/src/drawer/drawer.css +597 -236
  69. package/src/drawer/drawer.tokens.json +13 -0
  70. package/src/entity-picker/entity-picker.css +323 -270
  71. package/src/entity-picker/entity-picker.tokens.json +3 -0
  72. package/src/event-calendar/event-calendar.css +357 -399
  73. package/src/field/field.css +106 -93
  74. package/src/field/field.tokens.json +2 -0
  75. package/src/field-group/field-group.css +43 -33
  76. package/src/field-group/field-group.tokens.json +3 -0
  77. package/src/filter-bar/filter-bar.css +200 -216
  78. package/src/form/form.css +99 -25
  79. package/src/form/form.tokens.json +5 -0
  80. package/src/fullscreen/fullscreen.css +26 -27
  81. package/src/grid/grid.css +29 -29
  82. package/src/highlight/highlight.css +11 -11
  83. package/src/hover-card/hover-card.css +9 -9
  84. package/src/icon/icon.css +67 -20
  85. package/src/icon/icon.tokens.json +1 -0
  86. package/src/image/image.css +42 -42
  87. package/src/import-export-center/import-export-center.css +144 -165
  88. package/src/inline/inline.css +28 -28
  89. package/src/inline-message/inline-message.css +162 -86
  90. package/src/inline-message/inline-message.tokens.json +4 -0
  91. package/src/kbd/kbd.css +62 -50
  92. package/src/kbd/kbd.tokens.json +3 -0
  93. package/src/link/link.css +54 -33
  94. package/src/link/link.tokens.json +4 -0
  95. package/src/list/list.css +23 -23
  96. package/src/list-item/list-item.css +89 -75
  97. package/src/list-item/list-item.tokens.json +7 -0
  98. package/src/listbox/listbox.css +71 -70
  99. package/src/listbox/listbox.tokens.json +0 -1
  100. package/src/loading-overlay/loading-overlay.css +86 -103
  101. package/src/markdown/markdown.css +20 -20
  102. package/src/media-viewer/media-viewer.css +790 -0
  103. package/src/media-viewer/media-viewer.tokens.json +53 -0
  104. package/src/menu/menu.css +162 -82
  105. package/src/menu/menu.tokens.json +2 -1
  106. package/src/menubar/menubar.css +16 -16
  107. package/src/message/message.css +1250 -1253
  108. package/src/message/message.tokens.json +5 -0
  109. package/src/message-scroller/message-scroller.css +323 -320
  110. package/src/multi-select/multi-select.css +230 -172
  111. package/src/multi-select/multi-select.tokens.json +2 -0
  112. package/src/navigation-menu/navigation-menu.css +169 -190
  113. package/src/notification-center/notification-center.css +153 -161
  114. package/src/notification-center/notification-center.tokens.json +3 -0
  115. package/src/number-field/number-field.css +93 -93
  116. package/src/number-field/number-field.tokens.json +1 -0
  117. package/src/otp-input/otp-input.css +74 -64
  118. package/src/otp-input/otp-input.tokens.json +1 -0
  119. package/src/page/page.css +41 -27
  120. package/src/page/page.tokens.json +1 -0
  121. package/src/page-header/page-header.css +341 -286
  122. package/src/page-header/page-header.tokens.json +5 -0
  123. package/src/pagination/pagination.css +75 -79
  124. package/src/popover/popover.css +81 -64
  125. package/src/popover/popover.tokens.json +1 -0
  126. package/src/progress-indicator/progress-indicator.css +192 -136
  127. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  128. package/src/prompt-composer/prompt-composer.css +260 -113
  129. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  130. package/src/prose/prose.css +77 -82
  131. package/src/radio-group/radio-group.css +107 -112
  132. package/src/rating/rating.css +146 -142
  133. package/src/rating/rating.tokens.json +1 -0
  134. package/src/result-state/result-state.css +94 -101
  135. package/src/runtime-properties.mjs +19 -6
  136. package/src/saved-views/saved-views.css +43 -49
  137. package/src/scroll-area/scroll-area.css +44 -37
  138. package/src/section/section.css +178 -43
  139. package/src/section/section.tokens.json +8 -2
  140. package/src/segmented-control/segmented-control.css +210 -133
  141. package/src/segmented-control/segmented-control.tokens.json +7 -11
  142. package/src/select/select.css +210 -147
  143. package/src/select/select.tokens.json +3 -0
  144. package/src/side-navigation/side-navigation.css +193 -196
  145. package/src/side-navigation/side-navigation.tokens.json +1 -0
  146. package/src/skeleton/skeleton.css +57 -58
  147. package/src/slider/slider.css +101 -103
  148. package/src/sparkline/sparkline.css +75 -53
  149. package/src/sparkline/sparkline.tokens.json +2 -0
  150. package/src/spinner/spinner.css +83 -180
  151. package/src/spinner/spinner.tokens.json +0 -1
  152. package/src/split-button/split-button.css +34 -35
  153. package/src/split-button/split-button.tokens.json +1 -0
  154. package/src/splitter/splitter.css +47 -48
  155. package/src/stack/stack.css +25 -25
  156. package/src/stat-card/stat-card.css +415 -245
  157. package/src/stat-card/stat-card.tokens.json +8 -0
  158. package/src/status-indicator/status-indicator.css +124 -100
  159. package/src/status-indicator/status-indicator.tokens.json +0 -3
  160. package/src/stepper/stepper.css +78 -82
  161. package/src/switch/switch.css +100 -106
  162. package/src/table/table.css +270 -198
  163. package/src/table/table.tokens.json +2 -0
  164. package/src/table-of-contents/table-of-contents.css +60 -59
  165. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  166. package/src/tabs/tabs.css +327 -294
  167. package/src/tabs/tabs.tokens.json +7 -1
  168. package/src/tag/tag.css +109 -88
  169. package/src/tag/tag.tokens.json +10 -0
  170. package/src/tags-input/tags-input.css +152 -87
  171. package/src/tags-input/tags-input.tokens.json +7 -1
  172. package/src/text-field/text-field.css +146 -148
  173. package/src/text-field/text-field.tokens.json +1 -0
  174. package/src/textarea/textarea.css +38 -33
  175. package/src/textarea/textarea.tokens.json +1 -0
  176. package/src/time-field/time-field.css +82 -77
  177. package/src/time-field/time-field.tokens.json +1 -0
  178. package/src/time-picker/time-picker.css +116 -64
  179. package/src/time-picker/time-picker.tokens.json +4 -1
  180. package/src/time-range-picker/time-range-picker.css +168 -140
  181. package/src/time-range-picker/time-range-picker.tokens.json +4 -0
  182. package/src/timeline/timeline.css +280 -292
  183. package/src/timeline/timeline.tokens.json +5 -0
  184. package/src/toast/toast.css +138 -121
  185. package/src/toast/toast.tokens.json +6 -0
  186. package/src/toggle/toggle.css +34 -38
  187. package/src/toggle-group/toggle-group.css +73 -77
  188. package/src/toolbar/toolbar.css +33 -38
  189. package/src/tooltip/tooltip.css +65 -39
  190. package/src/tooltip/tooltip.tokens.json +1 -0
  191. package/src/top-navigation/top-navigation.css +252 -268
  192. package/src/tour/tour.css +64 -73
  193. package/src/transfer/transfer.css +164 -168
  194. package/src/tree/tree.css +113 -121
  195. package/src/typography/typography.css +42 -38
  196. package/src/typography/typography.tokens.json +1 -0
  197. package/src/upload/upload.css +256 -257
  198. package/src/visually-hidden/visually-hidden.css +1 -1
  199. package/src/wizard/wizard.css +187 -199
@@ -11,7 +11,7 @@
11
11
  * that retunes the control scale moves the whole stepper together instead of
12
12
  * leaving the connector behind.
13
13
  */
14
- [data-ui='stepper'] {
14
+ [data-ui-stepper] {
15
15
  --_marker: var(--slotted-stepper-marker-size, var(--slotted-control-height-md, 34px));
16
16
  --_gap: var(--slotted-stepper-gap, var(--slotted-control-gap-md, 8px));
17
17
  --_rule: var(--slotted-stepper-connector-thickness, var(--slotted-border-width-thick, 2px));
@@ -70,38 +70,38 @@
70
70
  * "Review" a quarter of the space it gives "Shipping and billing address"
71
71
  * and the markers would stop lining up with anything.
72
72
  *
73
- * Vertical is a column, and the connector runs down the marker's own centre
73
+ * Vertical is a column, and the connector runs down the marker's own center
74
74
  * line rather than beside it.
75
75
  */
76
76
 
77
- [data-ui='stepper'] [data-part='list'] {
77
+ [data-ui-stepper] [data-part-list] {
78
78
  display: flex;
79
79
  list-style: none;
80
80
  margin: 0;
81
81
  padding: 0;
82
82
  }
83
83
 
84
- [data-ui='stepper'][data-orientation='horizontal'] [data-part='list'] {
84
+ [data-ui-stepper][data-orientation='horizontal'] [data-part-list] {
85
85
  align-items: flex-start;
86
86
  flex-direction: row;
87
87
  }
88
88
 
89
- [data-ui='stepper'][data-orientation='vertical'] [data-part='list'] {
89
+ [data-ui-stepper][data-orientation='vertical'] [data-part-list] {
90
90
  flex-direction: column;
91
91
  }
92
92
 
93
- [data-ui='stepper'] [data-part='item'] {
93
+ [data-ui-stepper] [data-part-item] {
94
94
  display: flex;
95
95
  position: relative;
96
96
  }
97
97
 
98
- [data-ui='stepper'][data-orientation='horizontal'] [data-part='item'] {
98
+ [data-ui-stepper][data-orientation='horizontal'] [data-part-item] {
99
99
  flex: 1 1 0;
100
100
  /* A label longer than its column wraps instead of widening the column. */
101
101
  min-inline-size: 0;
102
102
  }
103
103
 
104
- [data-ui='stepper'][data-orientation='vertical'] [data-part='item'] {
104
+ [data-ui-stepper][data-orientation='vertical'] [data-part-item] {
105
105
  flex-direction: column;
106
106
  }
107
107
 
@@ -114,7 +114,7 @@
114
114
  * component.
115
115
  */
116
116
 
117
- [data-ui='stepper'] [data-part='trigger'] {
117
+ [data-ui-stepper] [data-part-trigger] {
118
118
  align-items: center;
119
119
  appearance: none;
120
120
  background: none;
@@ -131,18 +131,18 @@
131
131
  var(--slotted-control-transition-easing);
132
132
  }
133
133
 
134
- [data-ui='stepper'] button[data-part='trigger'],
135
- [data-ui='stepper'] a[data-part='trigger'] {
134
+ [data-ui-stepper] button[data-part-trigger],
135
+ [data-ui-stepper] a[data-part-trigger] {
136
136
  cursor: pointer;
137
137
  }
138
138
 
139
139
  /**
140
140
  * `end` puts the label beside the marker and `bottom` puts it under, which
141
141
  * is what a row of five steps needs once the labels are longer than a word.
142
- * The stack is centred so the marker sits over the middle of its own label
142
+ * The stack is centerd so the marker sits over the middle of its own label
143
143
  * rather than over the middle of the column.
144
144
  */
145
- [data-ui='stepper'][data-label-placement='bottom'] [data-part='trigger'] {
145
+ [data-ui-stepper][data-label-placement='bottom'] [data-part-trigger] {
146
146
  align-items: center;
147
147
  flex-direction: column;
148
148
  /**
@@ -156,7 +156,7 @@
156
156
  text-align: center;
157
157
  }
158
158
 
159
- [data-ui='stepper'] [data-part='trigger']:focus-visible {
159
+ [data-ui-stepper] [data-part-trigger]:focus-visible {
160
160
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
161
161
  outline-offset: var(--slotted-focus-ring-offset, 2px);
162
162
  }
@@ -165,18 +165,18 @@
165
165
  *
166
166
  * A circle holding the step's number, and the one part that never wraps,
167
167
  * never shrinks and never moves. Its four appearances are the four statuses,
168
- * and each of them is a fill and an edge rather than a colour alone: a
168
+ * and each of them is a fill and an edge rather than a color alone: a
169
169
  * pending step is an outline, the current one is a filled ring, a complete
170
170
  * one is a solid disc with a check, and a step in error is a solid disc with
171
171
  * an alert. `docs/component-features.md` section 7 requires exactly this —
172
- * progress that does not depend on colour.
172
+ * progress that does not depend on color.
173
173
  */
174
174
 
175
- [data-ui='stepper'] [data-part='marker'] {
175
+ [data-ui-stepper] [data-part-marker] {
176
176
  /**
177
- * The colour of the glyph drawn over the number, held on the marker rather
177
+ * The color of the glyph drawn over the number, held on the marker rather
178
178
  * than stated on the glyph's box. Reading it through one custom property
179
- * keeps the family's system-colour last resort on the element where the
179
+ * keeps the family's system-color last resort on the element where the
180
180
  * theme's own tokens live, and lets the invalid step restate it once.
181
181
  */
182
182
  --_mark: var(
@@ -192,11 +192,11 @@
192
192
  border-radius: var(--slotted-radius-full, 9999px);
193
193
  /**
194
194
  * The marker measures `--_marker` including its ring, because every other
195
- * rule in this sheet is written as though it does: the connector's centre,
195
+ * rule in this sheet is written as though it does: the connector's center,
196
196
  * the panel's indent and the vertical track all read that one length. With
197
197
  * the ring outside it the circle stood four pixels wider than the number
198
198
  * the rest of the family was using, and the connector ran two pixels off
199
- * every marker centre it was supposed to be on — in both orientations and
199
+ * every marker center it was supposed to be on — in both orientations and
200
200
  * at all three densities (ST2).
201
201
  */
202
202
  box-sizing: border-box;
@@ -221,10 +221,10 @@
221
221
 
222
222
  /**
223
223
  * The step the reader is on. The ring thickens to the accent and the number
224
- * takes the accent's text colour: it is where they are, not where they have
224
+ * takes the accent's text color: it is where they are, not where they have
225
225
  * been, so it stays an outline and does not fill.
226
226
  */
227
- [data-ui='stepper'] [data-current] [data-part='marker'] {
227
+ [data-ui-stepper] [data-current] [data-part-marker] {
228
228
  border-color: var(--slotted-stepper-marker-border-current, var(--_done-line));
229
229
  color: var(--slotted-stepper-marker-color-current, var(--slotted-tone-accent-text, Highlight));
230
230
  }
@@ -234,12 +234,12 @@
234
234
  * check, because a reader scanning the row counts filled discs rather than
235
235
  * reading five numbers.
236
236
  */
237
- [data-ui='stepper'] [data-complete]:not([data-current], [data-invalid]) [data-part='marker'] {
237
+ [data-ui-stepper] [data-complete]:not([data-current], [data-invalid]) [data-part-marker] {
238
238
  background-color: var(--slotted-stepper-marker-surface-complete, var(--_done-line));
239
239
  border-color: var(--slotted-stepper-marker-surface-complete, var(--_done-line));
240
240
  }
241
241
 
242
- [data-ui='stepper'] [data-invalid] [data-part='marker'] {
242
+ [data-ui-stepper] [data-invalid] [data-part-marker] {
243
243
  --_mark: var(
244
244
  --slotted-stepper-marker-color-invalid,
245
245
  var(--slotted-tone-danger-on-solid, MarkText)
@@ -255,7 +255,7 @@
255
255
  );
256
256
  }
257
257
 
258
- [data-ui='stepper'] [data-disabled]:not([data-invalid]) [data-part='marker'] {
258
+ [data-ui-stepper] [data-disabled]:not([data-invalid]) [data-part-marker] {
259
259
  background-color: transparent;
260
260
  border-color: var(--slotted-disabled-border, GrayText);
261
261
  color: var(--slotted-disabled-foreground, GrayText);
@@ -279,25 +279,25 @@
279
279
  /**
280
280
  * The number gives way to the mark. Neither the complete rule nor the
281
281
  * invalid one paints the number any more, and that is the fix rather than
282
- * the tidying: both used to set a colour for it, both outranked this rule on
282
+ * the tidying: both used to set a color for it, both outranked this rule on
283
283
  * specificity, and a finished step drew its number and its check on top of
284
284
  * each other. The capture is what said so — the two marks overlap into a
285
285
  * shape that is neither.
286
286
  */
287
- [data-ui='stepper'] :is([data-complete], [data-invalid]) [data-part='marker'] {
287
+ [data-ui-stepper] :is([data-complete], [data-invalid]) [data-part-marker] {
288
288
  color: transparent;
289
289
  }
290
290
 
291
- [data-ui='stepper'] [data-part='marker'] > [data-ui='icon'] {
291
+ [data-ui-stepper] [data-part-marker] > [data-ui-icon] {
292
292
  --slotted-icon-size: var(--_mark-size);
293
293
 
294
294
  color: var(--_mark);
295
295
  /**
296
- * Centred by its own box rather than by the flex container's alignment.
296
+ * Centerd by its own box rather than by the flex container's alignment.
297
297
  * An absolutely positioned child takes a static position the engines do
298
298
  * not agree on inside a flex container, and the capture showed the result:
299
299
  * the check drawn from the marker's top corner, with half of it outside
300
- * the disc. `inset` plus automatic margins centres a fixed-size box in
300
+ * the disc. `inset` plus automatic margins centers a fixed-size box in
301
301
  * every engine.
302
302
  */
303
303
  inset: 0;
@@ -310,7 +310,7 @@
310
310
  * complete, because the number is what says where the reader is in a
311
311
  * sequence and a check would say they had left it.
312
312
  */
313
- [data-ui='stepper'] [data-current]:not([data-invalid]) [data-part='marker'] {
313
+ [data-ui-stepper] [data-current]:not([data-invalid]) [data-part-marker] {
314
314
  color: var(--slotted-stepper-marker-color-current, var(--slotted-tone-accent-text, Highlight));
315
315
  }
316
316
 
@@ -321,7 +321,7 @@
321
321
  * where it was.
322
322
  */
323
323
 
324
- [data-ui='stepper'] [data-part='label'] {
324
+ [data-ui-stepper] [data-part-label] {
325
325
  color: var(--_muted);
326
326
  font-weight: var(--slotted-stepper-label-weight, var(--slotted-font-weight-medium, 500));
327
327
  line-height: var(--slotted-stepper-line-height, var(--slotted-line-height-sm, 1.45));
@@ -329,19 +329,19 @@
329
329
  overflow-wrap: anywhere;
330
330
  }
331
331
 
332
- [data-ui='stepper'] :is([data-current], [data-complete]) [data-part='label'] {
332
+ [data-ui-stepper] :is([data-current], [data-complete]) [data-part-label] {
333
333
  color: var(--_strong);
334
334
  }
335
335
 
336
- [data-ui='stepper'] [data-invalid] [data-part='label'] {
336
+ [data-ui-stepper] [data-invalid] [data-part-label] {
337
337
  color: var(--slotted-stepper-label-color-invalid, var(--slotted-tone-danger-text, MarkText));
338
338
  }
339
339
 
340
- [data-ui='stepper'] [data-disabled]:not([data-invalid]) [data-part='label'] {
340
+ [data-ui-stepper] [data-disabled]:not([data-invalid]) [data-part-label] {
341
341
  color: var(--slotted-disabled-foreground, GrayText);
342
342
  }
343
343
 
344
- [data-ui='stepper'] [data-part='description'] {
344
+ [data-ui-stepper] [data-part-description] {
345
345
  color: var(--_muted);
346
346
  display: block;
347
347
  font-size: var(--slotted-stepper-description-font-size, var(--slotted-font-size-xs, 0.75rem));
@@ -354,10 +354,10 @@
354
354
  * on the label rather than on the whole column: the column is mostly empty
355
355
  * space, and a fill across it would read as a selected row.
356
356
  */
357
- [data-ui='stepper']
358
- [data-part='item']:not([data-disabled], [data-loading])
359
- :is(button, a)[data-part='trigger']:hover
360
- [data-part='label'] {
357
+ [data-ui-stepper]
358
+ [data-part-item]:not([data-disabled], [data-loading])
359
+ :is(button, a)[data-part-trigger]:hover
360
+ [data-part-label] {
361
361
  color: var(--_strong);
362
362
  text-decoration-color: currentColor;
363
363
  text-decoration-line: underline;
@@ -378,10 +378,10 @@
378
378
  * the danger tone, and a press that replaced either would be a press that
379
379
  * also changed what the step is.
380
380
  */
381
- [data-ui='stepper']
382
- [data-part='item']:not([data-disabled], [data-loading])
383
- :is(button, a)[data-part='trigger']:active
384
- [data-part='marker'] {
381
+ [data-ui-stepper]
382
+ [data-part-item]:not([data-disabled], [data-loading])
383
+ :is(button, a)[data-part-trigger]:active
384
+ [data-part-marker] {
385
385
  box-shadow: inset 0 0 0 var(--_marker) var(--_state-press);
386
386
  }
387
387
 
@@ -392,14 +392,14 @@
392
392
  * reader has reached, so the row reads as a filled track rather than as five
393
393
  * separate marks.
394
394
  *
395
- * Horizontally it runs across the marker's own centre line, which is half a
395
+ * Horizontally it runs across the marker's own center line, which is half a
396
396
  * marker below the top of the item; vertically it runs down the marker's
397
- * centre, which is half a marker in from the item's start edge. Both are
397
+ * center, which is half a marker in from the item's start edge. Both are
398
398
  * derived from the marker rather than stated, so the rule stays on the
399
- * centre at every density.
399
+ * center at every density.
400
400
  */
401
401
 
402
- [data-ui='stepper'] [data-part='separator'] {
402
+ [data-ui-stepper] [data-part-separator] {
403
403
  background-color: var(--_pending-line);
404
404
  display: block;
405
405
  flex: none;
@@ -415,7 +415,7 @@
415
415
  * consumer marked completion would stay grey through every flow that never
416
416
  * claims it.
417
417
  */
418
- [data-ui='stepper'] [data-part='separator'][data-complete] {
418
+ [data-ui-stepper] [data-part-separator][data-complete] {
419
419
  background-color: var(--_done-line);
420
420
  }
421
421
 
@@ -427,8 +427,8 @@
427
427
  * knows how wide a label is, so nothing can position around it — but a flex
428
428
  * item can be told to take the rest.
429
429
  */
430
- [data-ui='stepper'][data-orientation='horizontal'][data-label-placement='end']
431
- [data-part='separator'] {
430
+ [data-ui-stepper][data-orientation='horizontal'][data-label-placement='end']
431
+ [data-part-separator] {
432
432
  align-self: center;
433
433
  block-size: var(--_rule);
434
434
  flex: 1 1 auto;
@@ -437,19 +437,18 @@
437
437
  position: static;
438
438
  }
439
439
 
440
- [data-ui='stepper'][data-orientation='horizontal'][data-label-placement='end']
441
- [data-part='trigger'] {
440
+ [data-ui-stepper][data-orientation='horizontal'][data-label-placement='end'] [data-part-trigger] {
442
441
  flex: 0 1 auto;
443
442
  min-inline-size: 0;
444
443
  }
445
444
 
446
445
  /**
447
446
  * With the label under the marker, the connector runs between two marker
448
- * centres. The columns are equal, so the next centre is exactly one column
447
+ * centers. The columns are equal, so the next center is exactly one column
449
448
  * away, and both ends are derived from the marker rather than stated.
450
449
  */
451
- [data-ui='stepper'][data-orientation='horizontal'][data-label-placement='bottom']
452
- [data-part='separator'] {
450
+ [data-ui-stepper][data-orientation='horizontal'][data-label-placement='bottom']
451
+ [data-part-separator] {
453
452
  block-size: var(--_rule);
454
453
  inset-block-start: calc(0.5 * (var(--_marker) - var(--_rule)));
455
454
  inset-inline-end: calc(-50% + 0.5 * var(--_marker) + var(--_gap));
@@ -458,7 +457,7 @@
458
457
  }
459
458
 
460
459
  /**
461
- * Down the marker's own centre line, from below this marker to above the
460
+ * Down the marker's own center line, from below this marker to above the
462
461
  * next one, with the same room at both ends. The bottom of the item is where
463
462
  * the next marker begins, so the end inset is that room and not zero: at
464
463
  * zero the rule stopped short of the marker above and ran into the marker
@@ -469,7 +468,7 @@
469
468
  * tall, and `--_gap` at both ends of a step gap of one rem left a rule of
470
469
  * no length at all; a quarter rem leaves half the step gap drawn.
471
470
  */
472
- [data-ui='stepper'][data-orientation='vertical'] [data-part='separator'] {
471
+ [data-ui-stepper][data-orientation='vertical'] [data-part-separator] {
473
472
  --_rule-room: var(--slotted-stepper-connector-gap, var(--slotted-space-2, 0.25rem));
474
473
 
475
474
  inline-size: var(--_rule);
@@ -484,18 +483,18 @@
484
483
  * binding does not render the element at all; this is what a consumer who
485
484
  * renders one anyway gets, and it is nothing.
486
485
  */
487
- [data-ui='stepper'] [data-part='item']:last-child [data-part='separator'] {
486
+ [data-ui-stepper] [data-part-item]:last-child [data-part-separator] {
488
487
  display: none;
489
488
  }
490
489
 
491
490
  /* ── Horizontal geometry ────────────────────────────────────────────────
492
491
  *
493
492
  * With the label under the marker the header fills its column, so the marker
494
- * centres over the column and the connector runs between two centres.
493
+ * centers over the column and the connector runs between two centers.
495
494
  */
496
495
 
497
- [data-ui='stepper'][data-orientation='horizontal'][data-label-placement='bottom']
498
- [data-part='trigger'] {
496
+ [data-ui-stepper][data-orientation='horizontal'][data-label-placement='bottom']
497
+ [data-part-trigger] {
499
498
  inline-size: 100%;
500
499
  }
501
500
 
@@ -505,24 +504,24 @@
505
504
  * step lines up with its name rather than with its number.
506
505
  */
507
506
 
508
- [data-ui='stepper'][data-orientation='vertical'] [data-part='item'] {
507
+ [data-ui-stepper][data-orientation='vertical'] [data-part-item] {
509
508
  padding-block-end: var(--slotted-stepper-step-gap, var(--slotted-space-6, 1rem));
510
509
  }
511
510
 
512
- [data-ui='stepper'][data-orientation='vertical'] [data-part='item']:last-child {
511
+ [data-ui-stepper][data-orientation='vertical'] [data-part-item]:last-child {
513
512
  padding-block-end: 0;
514
513
  }
515
514
 
516
- [data-ui='stepper'][data-orientation='vertical'] [data-part='panel'] {
515
+ [data-ui-stepper][data-orientation='vertical'] [data-part-panel] {
517
516
  margin-inline-start: calc(var(--_marker) + var(--_gap));
518
517
  padding-block-start: var(--slotted-stepper-panel-gap, var(--slotted-space-4, 0.5rem));
519
518
  }
520
519
 
521
- [data-ui='stepper'][data-orientation='horizontal'] [data-part='panel'] {
520
+ [data-ui-stepper][data-orientation='horizontal'] [data-part-panel] {
522
521
  padding-block-start: var(--slotted-stepper-panel-gap, var(--slotted-space-6, 1rem));
523
522
  }
524
523
 
525
- [data-ui='stepper'] [data-part='panel']:focus-visible {
524
+ [data-ui-stepper] [data-part-panel]:focus-visible {
526
525
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
527
526
  outline-offset: var(--slotted-focus-ring-offset, 2px);
528
527
  }
@@ -540,23 +539,23 @@
540
539
  */
541
540
 
542
541
  @container slotted-stepper (max-width: 30rem) {
543
- [data-ui='stepper'][data-orientation='horizontal'] [data-part='list'] {
542
+ [data-ui-stepper][data-orientation='horizontal'] [data-part-list] {
544
543
  align-items: stretch;
545
544
  flex-direction: column;
546
545
  }
547
546
 
548
- [data-ui='stepper'][data-orientation='horizontal'] [data-part='item'] {
547
+ [data-ui-stepper][data-orientation='horizontal'] [data-part-item] {
549
548
  flex: none;
550
549
  flex-direction: column;
551
550
  padding-block-end: var(--slotted-stepper-step-gap, var(--slotted-space-6, 1rem));
552
551
  padding-inline-end: 0;
553
552
  }
554
553
 
555
- [data-ui='stepper'][data-orientation='horizontal'] [data-part='item']:last-child {
554
+ [data-ui-stepper][data-orientation='horizontal'] [data-part-item]:last-child {
556
555
  padding-block-end: 0;
557
556
  }
558
557
 
559
- [data-ui='stepper'][data-orientation='horizontal'][data-label-placement] [data-part='trigger'] {
558
+ [data-ui-stepper][data-orientation='horizontal'][data-label-placement] [data-part-trigger] {
560
559
  align-items: center;
561
560
  flex-direction: row;
562
561
  inline-size: auto;
@@ -578,8 +577,7 @@
578
577
  * adds no weight of its own. Without it the row's own connector geometry
579
578
  * survived the reflow and the column drew four-pixel dots down its side.
580
579
  */
581
- [data-ui='stepper'][data-orientation='horizontal'][data-label-placement]
582
- [data-part='separator'] {
580
+ [data-ui-stepper][data-orientation='horizontal'][data-label-placement] [data-part-separator] {
583
581
  block-size: auto;
584
582
  flex: none;
585
583
  inline-size: var(--_rule);
@@ -592,34 +590,32 @@
592
590
  position: absolute;
593
591
  }
594
592
 
595
- [data-ui='stepper'][data-orientation='horizontal'][data-label-placement] [data-part='panel'] {
593
+ [data-ui-stepper][data-orientation='horizontal'][data-label-placement] [data-part-panel] {
596
594
  margin-inline-start: calc(var(--_marker) + var(--_gap));
597
595
  padding-block-start: var(--slotted-stepper-panel-gap, var(--slotted-space-4, 0.5rem));
598
596
  }
599
597
  }
600
598
 
601
- /* ── Forced colours ─────────────────────────────────────────────────────
599
+ /* ── Forced colors ─────────────────────────────────────────────────────
602
600
  *
603
601
  * The system replaces every painted surface with the page's own background,
604
602
  * which would flatten the four statuses into one outline. Three things need
605
603
  * restating: the connector, which is a painted rule; the fill that separates
606
604
  * a finished step from a pending one; and the glyph inside it, which keeps
607
605
  * its paint through the marker's own `forced-color-adjust` rather than
608
- * through a system colour this family would have to choose.
606
+ * through a system color this family would have to choose.
609
607
  */
610
608
 
611
609
  @media (forced-colors: active) {
612
- [data-ui='stepper'] [data-part='separator'] {
610
+ [data-ui-stepper] [data-part-separator] {
613
611
  background-color: GrayText;
614
612
  }
615
613
 
616
- [data-ui='stepper'] [data-part='separator'][data-complete] {
614
+ [data-ui-stepper] [data-part-separator][data-complete] {
617
615
  background-color: Highlight;
618
616
  }
619
617
 
620
- [data-ui='stepper']
621
- :is([data-complete], [data-invalid]):not([data-current])
622
- [data-part='marker'] {
618
+ [data-ui-stepper] :is([data-complete], [data-invalid]):not([data-current]) [data-part-marker] {
623
619
  background-color: Highlight;
624
620
  border-color: Highlight;
625
621
  color: HighlightText;