@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
@@ -16,13 +16,13 @@
16
16
  * that keeps an icon-only badge the same height as a text one, and the
17
17
  * minimum inline size that makes a one-figure pill a circle.
18
18
  */
19
- [data-ui='badge'][data-part='root'] {
19
+ [data-ui-badge][data-part-root] {
20
20
  /**
21
21
  * Tone. The default is the one a badge carrying a value should speak in: a
22
22
  * badge with no tone stated is holding a number, not an opinion.
23
23
  *
24
24
  * The neutral fill is the tone's `solid-hover` step rather than its
25
- * `solid` one. `solid` is the same colour as `surface` in all three
25
+ * `solid` one. `solid` is the same color as `surface` in all three
26
26
  * schemes, so a filled neutral badge and a tinted one were the same
27
27
  * rectangle, and neither of them read as filled. One step down the tone's
28
28
  * own ramp — 1.48:1 against the light surface where `solid` is 1.23:1,
@@ -64,7 +64,7 @@
64
64
  * The disc is as wide as the type it stands beside, rather than a step of
65
65
  * the space scale chosen for it. Two readings of the harness produced the
66
66
  * rule: at six pixels the 3:1 rim left four pixels of tone and every small
67
- * dot read as dark rather than as its own colour, and at a free sixteen the
67
+ * dot read as dark rather than as its own color, and at a free sixteen the
68
68
  * large dot stood taller than the fourteen-pixel words next to it. A mark
69
69
  * that accompanies text is the height of that text, it can never outgrow
70
70
  * it, and it answers density without a third scale saying how.
@@ -116,18 +116,18 @@
116
116
  * the affordance; the underline belongs to `link`, on a link.
117
117
  */
118
118
  text-decoration: none;
119
- /* Written inside a sentence, a badge sits on the text's centre. */
119
+ /* Written inside a sentence, a badge sits on the text's center. */
120
120
  vertical-align: middle;
121
121
  white-space: nowrap;
122
122
  }
123
123
 
124
- /* ── Tone: which of the five semantic colours the badge speaks in ─────── */
124
+ /* ── Tone: which of the five semantic colors the badge speaks in ─────── */
125
125
 
126
- [data-ui='badge'][data-part='root'][data-tone='secondary'] {
126
+ [data-ui-badge][data-part-root][data-tone='secondary'] {
127
127
  --_edge: var(--_border);
128
128
  }
129
129
 
130
- [data-ui='badge'][data-part='root'][data-tone='accent'] {
130
+ [data-ui-badge][data-part-root][data-tone='accent'] {
131
131
  --_solid: var(--slotted-tone-accent-solid);
132
132
  --_on-solid: var(--slotted-tone-accent-on-solid);
133
133
  --_surface: var(--slotted-tone-accent-surface);
@@ -135,7 +135,7 @@
135
135
  --_text: var(--slotted-tone-accent-text);
136
136
  }
137
137
 
138
- [data-ui='badge'][data-part='root'][data-tone='success'] {
138
+ [data-ui-badge][data-part-root][data-tone='success'] {
139
139
  --_solid: var(--slotted-tone-success-solid);
140
140
  --_on-solid: var(--slotted-tone-success-on-solid);
141
141
  --_surface: var(--slotted-tone-success-surface);
@@ -143,7 +143,15 @@
143
143
  --_text: var(--slotted-tone-success-text);
144
144
  }
145
145
 
146
- [data-ui='badge'][data-part='root'][data-tone='warning'] {
146
+ [data-ui-badge][data-part-root][data-tone='info'] {
147
+ --_solid: var(--slotted-tone-info-solid);
148
+ --_on-solid: var(--slotted-tone-info-on-solid);
149
+ --_surface: var(--slotted-tone-info-surface);
150
+ --_border: var(--slotted-tone-info-border);
151
+ --_text: var(--slotted-tone-info-text);
152
+ }
153
+
154
+ [data-ui-badge][data-part-root][data-tone='warning'] {
147
155
  --_solid: var(--slotted-tone-warning-solid);
148
156
  --_on-solid: var(--slotted-tone-warning-on-solid);
149
157
  --_surface: var(--slotted-tone-warning-surface);
@@ -151,7 +159,7 @@
151
159
  --_text: var(--slotted-tone-warning-text);
152
160
  }
153
161
 
154
- [data-ui='badge'][data-part='root'][data-tone='danger'] {
162
+ [data-ui-badge][data-part-root][data-tone='danger'] {
155
163
  --_solid: var(--slotted-tone-danger-solid);
156
164
  --_on-solid: var(--slotted-tone-danger-on-solid);
157
165
  --_surface: var(--slotted-tone-danger-surface);
@@ -180,19 +188,19 @@
180
188
  * border looks like and disagree about which of them should wear it.
181
189
  */
182
190
 
183
- [data-ui='badge'][data-part='root'][data-variant='solid'] {
191
+ [data-ui-badge][data-part-root][data-variant='solid'] {
184
192
  background-color: var(--_solid, ButtonFace);
185
193
  border-color: var(--_edge, ButtonFace);
186
194
  color: var(--_on-solid, ButtonText);
187
195
  }
188
196
 
189
- [data-ui='badge'][data-part='root'][data-variant='soft'] {
197
+ [data-ui-badge][data-part-root][data-variant='soft'] {
190
198
  background-color: var(--_surface, ButtonFace);
191
199
  border-color: var(--_border, ButtonBorder);
192
200
  color: var(--_text, ButtonText);
193
201
  }
194
202
 
195
- [data-ui='badge'][data-part='root'][data-variant='outline'] {
203
+ [data-ui-badge][data-part-root][data-variant='outline'] {
196
204
  background-color: transparent;
197
205
  border-color: var(--_border, ButtonBorder);
198
206
  color: var(--_text, ButtonText);
@@ -200,7 +208,7 @@
200
208
 
201
209
  /* ── Size ─────────────────────────────────────────────────────────────── */
202
210
 
203
- [data-ui='badge'][data-part='root'][data-size='sm'] {
211
+ [data-ui-badge][data-part-root][data-size='sm'] {
204
212
  --_font-size: var(--slotted-control-font-size-sm, 12px);
205
213
  /* `0px` rather than `0`: a unitless zero inside the `--_block-size` sum
206
214
  makes the whole calculation invalid, and `min-block-size` silently fell
@@ -216,7 +224,7 @@
216
224
  * a rounding error: a 12px badge and a 13px badge should not carry visibly
217
225
  * different glyphs.
218
226
  */
219
- [data-ui='badge'][data-part='root'][data-size='lg'] {
227
+ [data-ui-badge][data-part-root][data-size='lg'] {
220
228
  --_font-size: var(--slotted-control-font-size-lg, 14px);
221
229
  --_icon-size: var(--slotted-control-icon-size-md, 16px);
222
230
  --_inset-block: var(--slotted-space-2, 0.25rem);
@@ -226,7 +234,7 @@
226
234
 
227
235
  /* ── Shape ────────────────────────────────────────────────────────────── */
228
236
 
229
- [data-ui='badge'][data-part='root'][data-shape='square'] {
237
+ [data-ui-badge][data-part-root][data-shape='square'] {
230
238
  border-radius: var(--slotted-badge-radius, var(--slotted-radius-sm, 4px));
231
239
  }
232
240
 
@@ -244,7 +252,7 @@
244
252
  * A dot renders no value, so nothing is clipped. Text a consumer forces into
245
253
  * one overflows rather than disappearing.
246
254
  */
247
- [data-ui='badge'][data-part='root'][data-shape='dot'] {
255
+ [data-ui-badge][data-part-root][data-shape='dot'] {
248
256
  block-size: var(--_dot-size);
249
257
  border-color: var(--slotted-badge-dot-border-color, var(--slotted-border-strong, CanvasText));
250
258
  border-radius: var(--slotted-radius-full, 9999px);
@@ -262,7 +270,7 @@
262
270
  * can make the root an `<a>` and a ring that appears only where a family
263
271
  * expects focus is a ring that goes missing.
264
272
  */
265
- [data-ui='badge'][data-part='root']:focus-visible {
273
+ [data-ui-badge][data-part-root]:focus-visible {
266
274
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
267
275
  outline-offset: var(--slotted-focus-ring-offset, 2px);
268
276
  }
@@ -273,13 +281,13 @@
273
281
  * The text has a box of its own, as it does in `button`, and that box is what
274
282
  * makes the badge's one real typographic problem solvable.
275
283
  *
276
- * A flex container centres the *line box*, and a line box is not symmetric
284
+ * A flex container centers the *line box*, and a line box is not symmetric
277
285
  * around the letters inside it: the ascender reaches further above the cap
278
286
  * than the descender reaches below the baseline. Measured on this family
279
287
  * before the part existed, a word with no descender sat 2.19 pixels high in a
280
288
  * 24-pixel badge — six pixels of clearance above the ink and eight below it —
281
289
  * while a word with a descender looked correct. `text-box` trims the line box
282
- * to the cap and the baseline, so what is centred is the ink rather than the
290
+ * to the cap and the baseline, so what is centerd is the ink rather than the
283
291
  * font's metrics, and every word sits the same way whatever letters it holds.
284
292
  *
285
293
  * It is applied here rather than on the root because `text-box-trim` needs a
@@ -293,20 +301,20 @@
293
301
  * below its content inside the flex root, which is the condition
294
302
  * `text-overflow` needs to have anything to do.
295
303
  */
296
- [data-ui='badge'] [data-part='label'] {
304
+ [data-ui-badge] [data-part-label] {
297
305
  min-inline-size: 0;
298
306
  overflow: hidden;
299
307
  text-overflow: ellipsis;
300
308
  }
301
309
 
302
310
  @supports (text-box: trim-both cap alphabetic) {
303
- [data-ui='badge'] [data-part='label'] {
311
+ [data-ui-badge] [data-part-label] {
304
312
  /**
305
313
  * A descender and a tall diacritic both live outside a box trimmed to the
306
314
  * cap and the baseline, and `overflow: hidden` cut them off — visible in
307
315
  * the first capture as a beheaded `g` in `Awaiting`. The padding gives
308
316
  * the clip region room for them and the negative margin gives the space
309
- * straight back, so the box the root centres is still the trimmed one and
317
+ * straight back, so the box the root centers is still the trimmed one and
310
318
  * the badge is the height it was.
311
319
  *
312
320
  * A proportion of the type rather than a step of any scale: what has to
@@ -314,7 +322,7 @@
314
322
  */
315
323
  margin-block: -0.3em;
316
324
  padding-block: 0.3em;
317
- text-box: trim-both cap alphabetic;
325
+ text-box: trim-both var(--slotted-text-box-edge, cap alphabetic);
318
326
  }
319
327
  }
320
328
 
@@ -323,8 +331,8 @@
323
331
  * from its container, and a bare glyph host such as `ng-icon` reads the
324
332
  * slot's font-size, so both are the glyph scale.
325
333
  */
326
- [data-ui='badge'] [data-part='start'],
327
- [data-ui='badge'] [data-part='end'] {
334
+ [data-ui-badge] [data-part-start],
335
+ [data-ui-badge] [data-part-end] {
328
336
  --slotted-icon-size: var(--_icon-size);
329
337
 
330
338
  align-items: center;
@@ -338,8 +346,8 @@
338
346
  line-height: 1;
339
347
  }
340
348
 
341
- [data-ui='badge'] [data-part='start'] > *,
342
- [data-ui='badge'] [data-part='end'] > * {
349
+ [data-ui-badge] [data-part-start] > *,
350
+ [data-ui-badge] [data-part-end] > * {
343
351
  block-size: 100%;
344
352
  display: block;
345
353
  inline-size: 100%;
@@ -358,7 +366,7 @@
358
366
  * frame is read in. Everything else — which corner, how far in from it — is
359
367
  * written in logical insets and mirrors on its own.
360
368
  */
361
- [data-ui='badge'][data-part='anchor'] {
369
+ [data-ui-badge][data-part-anchor] {
362
370
  --_dir: 1;
363
371
  /* Half the badge's own size. A proportion of the box rather than a step of
364
372
  any scale, which is why it is geometry here and not a token. */
@@ -387,31 +395,34 @@
387
395
  display: inline-flex;
388
396
  position: relative;
389
397
  vertical-align: middle;
398
+ /* The corner is the host's: a flex or grid parent stretches an auto size. */
399
+ block-size: fit-content;
400
+ inline-size: fit-content;
390
401
  }
391
402
 
392
- [data-ui='badge'][data-part='anchor']:dir(rtl) {
403
+ [data-ui-badge][data-part-anchor]:dir(rtl) {
393
404
  --_dir: -1;
394
405
  }
395
406
 
396
- [data-ui='badge'][data-part='anchor'][data-overlap='circle'] {
407
+ [data-ui-badge][data-part-anchor][data-overlap='circle'] {
397
408
  --_anchor-inset: 14%;
398
409
  }
399
410
 
400
- [data-ui='badge'][data-part='anchor'][data-placement='top-start'],
401
- [data-ui='badge'][data-part='anchor'][data-placement='bottom-start'] {
411
+ [data-ui-badge][data-part-anchor][data-placement='top-start'],
412
+ [data-ui-badge][data-part-anchor][data-placement='bottom-start'] {
402
413
  --_overhang-inline: -50%;
403
414
  }
404
415
 
405
- [data-ui='badge'][data-part='anchor'][data-placement='bottom-start'],
406
- [data-ui='badge'][data-part='anchor'][data-placement='bottom-end'] {
416
+ [data-ui-badge][data-part-anchor][data-placement='bottom-start'],
417
+ [data-ui-badge][data-part-anchor][data-placement='bottom-end'] {
407
418
  --_overhang-block: 50%;
408
419
  }
409
420
 
410
- [data-ui='badge'][data-part='anchor'] > [data-ui='badge'][data-part='root'] {
421
+ [data-ui-badge][data-part-anchor] > [data-ui-badge][data-part-root] {
411
422
  /**
412
423
  * The ring is what separates the badge from whatever it is sitting on.
413
424
  * It is a token rather than a boolean, because a badge inside a card, a
414
- * toolbar or a coloured row is not sitting on the page's own surface.
425
+ * toolbar or a colored row is not sitting on the page's own surface.
415
426
  */
416
427
  box-shadow: 0 0 0 var(--slotted-badge-ring-width, var(--slotted-border-width-thick, 2px))
417
428
  var(--slotted-badge-ring-color, var(--slotted-surface, Canvas));
@@ -424,28 +435,28 @@
424
435
  z-index: 1;
425
436
  }
426
437
 
427
- [data-ui='badge'][data-part='anchor'][data-placement='top-end'] > [data-part='root'],
428
- [data-ui='badge'][data-part='anchor'][data-placement='top-start'] > [data-part='root'] {
438
+ [data-ui-badge][data-part-anchor][data-placement='top-end'] > [data-part-root],
439
+ [data-ui-badge][data-part-anchor][data-placement='top-start'] > [data-part-root] {
429
440
  inset-block-start: var(--_anchor-inset);
430
441
  }
431
442
 
432
- [data-ui='badge'][data-part='anchor'][data-placement='bottom-end'] > [data-part='root'],
433
- [data-ui='badge'][data-part='anchor'][data-placement='bottom-start'] > [data-part='root'] {
443
+ [data-ui-badge][data-part-anchor][data-placement='bottom-end'] > [data-part-root],
444
+ [data-ui-badge][data-part-anchor][data-placement='bottom-start'] > [data-part-root] {
434
445
  inset-block-end: var(--_anchor-inset);
435
446
  }
436
447
 
437
- [data-ui='badge'][data-part='anchor'][data-placement='top-end'] > [data-part='root'],
438
- [data-ui='badge'][data-part='anchor'][data-placement='bottom-end'] > [data-part='root'] {
448
+ [data-ui-badge][data-part-anchor][data-placement='top-end'] > [data-part-root],
449
+ [data-ui-badge][data-part-anchor][data-placement='bottom-end'] > [data-part-root] {
439
450
  inset-inline-end: var(--_anchor-inset);
440
451
  }
441
452
 
442
- [data-ui='badge'][data-part='anchor'][data-placement='top-start'] > [data-part='root'],
443
- [data-ui='badge'][data-part='anchor'][data-placement='bottom-start'] > [data-part='root'] {
453
+ [data-ui-badge][data-part-anchor][data-placement='top-start'] > [data-part-root],
454
+ [data-ui-badge][data-part-anchor][data-placement='bottom-start'] > [data-part-root] {
444
455
  inset-inline-start: var(--_anchor-inset);
445
456
  }
446
457
 
447
458
  /**
448
- * ── Forced colours ─────────────────────────────────────────────────────
459
+ * ── Forced colors ─────────────────────────────────────────────────────
449
460
  *
450
461
  * The one place a family may write its own rule: the theme maps every tone
451
462
  * ground to `ButtonFace` or `Canvas` and every tone border to `ButtonBorder`,
@@ -455,7 +466,7 @@
455
466
  * from the page.
456
467
  */
457
468
  @media (forced-colors: active) {
458
- [data-ui='badge'][data-part='root'] {
469
+ [data-ui-badge][data-part-root] {
459
470
  border-color: currentColor;
460
471
  }
461
472
  }
@@ -30,6 +30,7 @@
30
30
  "--slotted-space-4",
31
31
  "--slotted-space-5",
32
32
  "--slotted-surface",
33
+ "--slotted-text-box-edge",
33
34
  "--slotted-tone-accent-border",
34
35
  "--slotted-tone-accent-on-solid",
35
36
  "--slotted-tone-accent-solid",
@@ -40,6 +41,11 @@
40
41
  "--slotted-tone-danger-solid",
41
42
  "--slotted-tone-danger-surface",
42
43
  "--slotted-tone-danger-text",
44
+ "--slotted-tone-info-border",
45
+ "--slotted-tone-info-on-solid",
46
+ "--slotted-tone-info-solid",
47
+ "--slotted-tone-info-surface",
48
+ "--slotted-tone-info-text",
43
49
  "--slotted-tone-secondary-border",
44
50
  "--slotted-tone-secondary-on-solid",
45
51
  "--slotted-tone-secondary-solid-hover",
@@ -5,14 +5,14 @@
5
5
  * from the control scale is the gap and the type size, so a trail sitting
6
6
  * above a toolbar reads at the same weight as the toolbar's own labels.
7
7
  *
8
- * Two colours carry the whole family. `--_rest` is the muted step every
9
- * ancestor is painted in, and `--_strong` is the page's own text colour,
8
+ * Two colors carry the whole family. `--_rest` is the muted step every
9
+ * ancestor is painted in, and `--_strong` is the page's own text color,
10
10
  * which is where hover goes and where the current page sits already. Mixing
11
- * toward a colour the theme holds to a contrast ratio in every scheme is the
11
+ * toward a color the theme holds to a contrast ratio in every scheme is the
12
12
  * rule `link` arrived at after painting hover with a fill role; a trail is
13
13
  * text for the same reason a link is.
14
14
  */
15
- [data-ui='breadcrumb'] {
15
+ [data-ui-breadcrumb] {
16
16
  --_rest: var(--slotted-breadcrumb-color, var(--slotted-text-muted, GrayText));
17
17
  --_strong: var(--slotted-breadcrumb-color-current, var(--slotted-text, CanvasText));
18
18
  --_hover: var(
@@ -59,7 +59,7 @@
59
59
  * inline gap because two wrapped lines of one type size need less air between
60
60
  * them than two words do beside each other.
61
61
  */
62
- [data-ui='breadcrumb'] [data-part='list'] {
62
+ [data-ui-breadcrumb] [data-part-list] {
63
63
  align-items: center;
64
64
  display: flex;
65
65
  flex-wrap: wrap;
@@ -79,7 +79,7 @@
79
79
  );
80
80
  }
81
81
 
82
- [data-ui='breadcrumb'] [data-part='item'] {
82
+ [data-ui-breadcrumb] [data-part-item] {
83
83
  align-items: center;
84
84
  column-gap: var(--_gap);
85
85
  display: flex;
@@ -104,7 +104,7 @@
104
104
  * crumb rendered and the collapse did nothing at all. The capture is what
105
105
  * said so; both bindings write the attribute and neither could have known.
106
106
  */
107
- [data-ui='breadcrumb'] [data-part='item'][hidden] {
107
+ [data-ui-breadcrumb] [data-part-item][hidden] {
108
108
  display: none;
109
109
  }
110
110
 
@@ -120,26 +120,26 @@
120
120
  * frame of a drag, and the ellipsis returns in the same frame to the place
121
121
  * the crumbs leave.
122
122
  */
123
- [data-ui='breadcrumb'][data-expanded] [data-part='item'] {
123
+ [data-ui-breadcrumb][data-expanded] [data-part-item] {
124
124
  transition: opacity var(--slotted-duration-medium) var(--slotted-easing-enter);
125
125
  }
126
126
 
127
127
  @starting-style {
128
- [data-ui='breadcrumb'][data-expanded] [data-part='item'] {
128
+ [data-ui-breadcrumb][data-expanded] [data-part-item] {
129
129
  opacity: 0;
130
130
  }
131
131
  }
132
132
 
133
133
  /* ── The crumbs ─────────────────────────────────────────────────────────
134
134
  *
135
- * An ancestor is a muted label that reaches the page's text colour under the
136
- * pointer, and the current page is that colour already. Neither is
135
+ * An ancestor is a muted label that reaches the page's text color under the
136
+ * pointer, and the current page is that color already. Neither is
137
137
  * underlined at rest: a trail is a row of eight rules stacked above a
138
138
  * heading, and the underline arrives with the pointer and with focus, where
139
139
  * it distinguishes the one crumb being addressed from the seven beside it.
140
140
  */
141
141
 
142
- [data-ui='breadcrumb'] :is([data-part='link'], [data-part='page'], [data-part='trigger']) {
142
+ [data-ui-breadcrumb] :is([data-part-link], [data-part-page], [data-part-trigger]) {
143
143
  border-radius: var(--slotted-breadcrumb-radius, var(--slotted-control-radius, 4px));
144
144
  display: block;
145
145
  /**
@@ -165,7 +165,7 @@
165
165
  white-space: nowrap;
166
166
  }
167
167
 
168
- [data-ui='breadcrumb'] [data-part='link'] {
168
+ [data-ui-breadcrumb] [data-part-link] {
169
169
  color: inherit;
170
170
  }
171
171
 
@@ -175,7 +175,7 @@
175
175
  * the pointer, and a chevron after the label that says a list opens here
176
176
  * rather than a page. It keeps the line's height; the menu is the consumer's.
177
177
  */
178
- [data-ui='breadcrumb'] [data-part='trigger'] {
178
+ [data-ui-breadcrumb] [data-part-trigger] {
179
179
  appearance: none;
180
180
  background-color: transparent;
181
181
  border: 0;
@@ -187,7 +187,7 @@
187
187
  }
188
188
 
189
189
  /* The switcher of the page the reader is on is still the page. */
190
- [data-ui='breadcrumb'] [data-part='trigger'][aria-current='page'] {
190
+ [data-ui-breadcrumb] [data-part-trigger][aria-current='page'] {
191
191
  color: var(--_strong);
192
192
  font-weight: var(--slotted-breadcrumb-page-weight, var(--slotted-font-weight-medium, 500));
193
193
  }
@@ -196,70 +196,70 @@
196
196
  * What a crumb carries beside its label: a glyph or an avatar before it, a
197
197
  * count after it, the chevron at the end of a switcher. They stay inline so
198
198
  * the label keeps its ellipsis — a flex crumb would put the text in an
199
- * anonymous box that cannot truncate — and `icon` already centres itself on
199
+ * anonymous box that cannot truncate — and `icon` already centers itself on
200
200
  * the text. The trail only decides the distance, a step of 6 either side.
201
201
  * An atomic inline box takes no underline, so the hover rule marks the words
202
202
  * and not the glyph.
203
203
  */
204
- [data-ui='breadcrumb']
205
- :is([data-part='link'], [data-part='page'], [data-part='trigger'])
206
- > :is([data-ui='icon'], [data-ui='avatar']) {
204
+ [data-ui-breadcrumb]
205
+ :is([data-part-link], [data-part-page], [data-part-trigger])
206
+ > :is([data-ui-icon], [data-ui-avatar]) {
207
207
  margin-inline-end: var(--slotted-breadcrumb-content-gap, var(--slotted-space-3, 6px));
208
208
  }
209
209
 
210
- [data-ui='breadcrumb']
211
- :is([data-part='link'], [data-part='page'], [data-part='trigger'])
212
- > [data-ui='badge'] {
210
+ [data-ui-breadcrumb]
211
+ :is([data-part-link], [data-part-page], [data-part-trigger])
212
+ > [data-ui-badge] {
213
213
  margin-inline-start: var(--slotted-breadcrumb-content-gap, var(--slotted-space-3, 6px));
214
214
  }
215
215
 
216
216
  /* The switcher's chevron is its last element, after the label. */
217
- [data-ui='breadcrumb'] [data-part='trigger'] > [data-ui='icon']:last-child {
217
+ [data-ui-breadcrumb] [data-part-trigger] > [data-ui-icon]:last-child {
218
218
  margin-inline: var(--slotted-space-2, 4px) 0;
219
219
  transition: rotate var(--slotted-duration-short) var(--slotted-easing-standard);
220
220
  }
221
221
 
222
222
  /* The chevron turns while the menu it opened is up, and back when it closes. */
223
- [data-ui='breadcrumb'] [data-part='trigger'][data-open] > [data-ui='icon']:last-child {
223
+ [data-ui-breadcrumb] [data-part-trigger][data-open] > [data-ui-icon]:last-child {
224
224
  rotate: 180deg;
225
225
  }
226
226
 
227
227
  /**
228
- * The page the reader is on. It takes the strongest text colour and gains
228
+ * The page the reader is on. It takes the strongest text color and gains
229
229
  * weight, so the end of the trail is legible without reading it — and the
230
230
  * weight is on the one crumb that never moves, so nothing beside it shifts
231
231
  * when the pointer arrives.
232
232
  */
233
- [data-ui='breadcrumb'] [data-part='page'] {
233
+ [data-ui-breadcrumb] [data-part-page] {
234
234
  color: var(--_strong);
235
235
  font-weight: var(--slotted-breadcrumb-page-weight, var(--slotted-font-weight-medium, 500));
236
236
  }
237
237
 
238
- [data-ui='breadcrumb'] :is([data-part='link'], [data-part='trigger']):not([data-disabled]):hover {
238
+ [data-ui-breadcrumb] :is([data-part-link], [data-part-trigger]):not([data-disabled]):hover {
239
239
  color: var(--_hover);
240
240
  text-decoration-color: currentColor;
241
241
  }
242
242
 
243
- /* An open switcher holds the pressed colour for as long as its menu is up. */
244
- [data-ui='breadcrumb']
245
- :is([data-part='link'], [data-part='trigger']):not([data-disabled]):is(:active, [data-open]) {
243
+ /* An open switcher holds the pressed color for as long as its menu is up. */
244
+ [data-ui-breadcrumb]
245
+ :is([data-part-link], [data-part-trigger]):not([data-disabled]):is(:active, [data-open]) {
246
246
  color: var(--_strong);
247
247
  /* Without the pointer over it an open switcher would read as the page:
248
- same colour, no mark. The underline says which crumb the menu is from. */
248
+ same color, no mark. The underline says which crumb the menu is from. */
249
249
  text-decoration-color: currentColor;
250
250
  }
251
251
 
252
252
  /**
253
- * The page's own switcher is already at the strongest colour, so the pointer
253
+ * The page's own switcher is already at the strongest color, so the pointer
254
254
  * brings only the underline, and a press — or the menu it opened — steps the
255
255
  * label back to the hover mix. Hover and press still differ, as on a link.
256
256
  */
257
- [data-ui='breadcrumb'] [data-part='trigger'][aria-current='page']:not([data-disabled]):hover {
257
+ [data-ui-breadcrumb] [data-part-trigger][aria-current='page']:not([data-disabled]):hover {
258
258
  color: var(--_strong);
259
259
  }
260
260
 
261
- [data-ui='breadcrumb']
262
- [data-part='trigger'][aria-current='page']:not([data-disabled]):is(:active, [data-open]) {
261
+ [data-ui-breadcrumb]
262
+ [data-part-trigger][aria-current='page']:not([data-disabled]):is(:active, [data-open]) {
263
263
  color: var(--_hover);
264
264
  }
265
265
 
@@ -273,13 +273,13 @@
273
273
  * box, so a ring drawn outside crossed both separators — at two pixels out,
274
274
  * and on its own edge at dense.
275
275
  */
276
- [data-ui='breadcrumb'] :is([data-part='link'], [data-part='trigger']):focus-visible {
276
+ [data-ui-breadcrumb] :is([data-part-link], [data-part-trigger]):focus-visible {
277
277
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
278
278
  outline-offset: var(--slotted-breadcrumb-focus-ring-offset, 1px);
279
279
  text-decoration-color: currentColor;
280
280
  }
281
281
 
282
- [data-ui='breadcrumb'] [data-part='ellipsis']:focus-visible {
282
+ [data-ui-breadcrumb] [data-part-ellipsis]:focus-visible {
283
283
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
284
284
  outline-offset: var(
285
285
  --slotted-breadcrumb-ellipsis-focus-ring-offset,
@@ -300,7 +300,7 @@
300
300
  * with children shows the children and the empty one shows the rule.
301
301
  */
302
302
 
303
- [data-ui='breadcrumb'] [data-part='separator'] {
303
+ [data-ui-breadcrumb] [data-part-separator] {
304
304
  align-items: center;
305
305
  color: var(--_separator);
306
306
  display: flex;
@@ -308,7 +308,7 @@
308
308
  justify-content: center;
309
309
  }
310
310
 
311
- [data-ui='breadcrumb'] [data-part='separator']:empty {
311
+ [data-ui-breadcrumb] [data-part-separator]:empty {
312
312
  background-color: currentColor;
313
313
  /* Rounded, so a rule of `0.9em` ends on a whole pixel: 12 at 13px, 11 dense. */
314
314
  block-size: round(nearest, var(--slotted-breadcrumb-separator-length, 0.9em), 1px);
@@ -325,7 +325,7 @@
325
325
  * trail itself runs the other way. `:dir()` rather than an ancestor `[dir]`,
326
326
  * so a trail inside a left-to-right island leans the way that island reads.
327
327
  */
328
- [data-ui='breadcrumb'] [data-part='separator']:empty:dir(rtl) {
328
+ [data-ui-breadcrumb] [data-part-separator]:empty:dir(rtl) {
329
329
  rotate: calc(-1 * var(--slotted-breadcrumb-separator-skew, 20deg));
330
330
  }
331
331
 
@@ -333,7 +333,7 @@
333
333
  *
334
334
  * What the collapse hides, and the control that reveals it. It is an inner
335
335
  * control, not a button (R2, BC1): one line of the trail tall, so it sits
336
- * on the crumbs' own line and not on a taller box centred over it; the
336
+ * on the crumbs' own line and not on a taller box centerd over it; the
337
337
  * control glyph plus a step of air wide, floored at the WCAG 2.2 minimum;
338
338
  * and the rest of that minimum in the block axis is a transparent halo
339
339
  * around the paint, so the target is whole without the box being tall.
@@ -353,13 +353,13 @@
353
353
  *
354
354
  * The box still keeps the trail's type, because `1lh` is the trail's line
355
355
  * and that is the alignment BC1 asks for: the box is one line of the trail
356
- * tall and the mark is centred in it.
356
+ * tall and the mark is centerd in it.
357
357
  *
358
358
  * The button's accessible name says how many crumbs it hides, so what a
359
359
  * reader hears is a count rather than three dots.
360
360
  */
361
361
 
362
- [data-ui='breadcrumb'] [data-part='ellipsis'] {
362
+ [data-ui-breadcrumb] [data-part-ellipsis] {
363
363
  --slotted-icon-size: var(--_icon-size);
364
364
 
365
365
  align-items: center;
@@ -394,7 +394,7 @@
394
394
  }
395
395
 
396
396
  /* The halo that completes the target where the line is shorter than it. */
397
- [data-ui='breadcrumb'] [data-part='ellipsis']::after {
397
+ [data-ui-breadcrumb] [data-part-ellipsis]::after {
398
398
  content: '';
399
399
  inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
400
400
  position: absolute;
@@ -403,38 +403,38 @@
403
403
  /* On a finger the halo reaches the comfortable size in both axes; the box
404
404
  keeps the line's height, so the trail does not grow. */
405
405
  @media (pointer: coarse) {
406
- [data-ui='breadcrumb'] [data-part='ellipsis']::after {
406
+ [data-ui-breadcrumb] [data-part-ellipsis]::after {
407
407
  inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
408
408
  }
409
409
  }
410
410
 
411
411
  /* The ground moves under the pointer and nothing else does (R2). */
412
- [data-ui='breadcrumb'] [data-part='ellipsis']:not([data-disabled]):hover {
412
+ [data-ui-breadcrumb] [data-part-ellipsis]:not([data-disabled]):hover {
413
413
  background-color: var(--slotted-breadcrumb-ellipsis-background-hover, var(--_ellipsis-hover));
414
414
  }
415
415
 
416
- [data-ui='breadcrumb'] [data-part='ellipsis']:not([data-disabled]):active {
416
+ [data-ui-breadcrumb] [data-part-ellipsis]:not([data-disabled]):active {
417
417
  background-color: var(--slotted-breadcrumb-ellipsis-background-active, var(--_ellipsis-active));
418
418
  }
419
419
 
420
- /* ── Forced colours ─────────────────────────────────────────────────────
420
+ /* ── Forced colors ─────────────────────────────────────────────────────
421
421
  *
422
422
  * The theme remaps every token it owns, so this block covers only what the
423
423
  * family paints itself, which is one thing: the separator is a painted rule,
424
424
  * and a painted surface is replaced by the page's own background when the
425
- * system takes the palette over. It is restated against a system colour so
425
+ * system takes the palette over. It is restated against a system color so
426
426
  * the trail keeps its marks.
427
427
  *
428
428
  * The ellipsis mark is an `svg` stroked in `currentColor`, which is the
429
- * button's own ink, and the system forces that ink to its text colour.
429
+ * button's own ink, and the system forces that ink to its text color.
430
430
  */
431
431
 
432
432
  @media (forced-colors: active) {
433
- [data-ui='breadcrumb'] [data-part='separator']:empty {
433
+ [data-ui-breadcrumb] [data-part-separator]:empty {
434
434
  background-color: GrayText;
435
435
  }
436
436
 
437
- [data-ui='breadcrumb'] [data-part='ellipsis'] {
437
+ [data-ui-breadcrumb] [data-part-ellipsis] {
438
438
  border: var(--slotted-border-width-thin, 1px) solid ButtonBorder;
439
439
  }
440
440
  }