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

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 (205) 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 +97 -97
  7. package/src/alert/alert.tokens.json +6 -1
  8. package/src/app-shell/app-shell.css +456 -329
  9. package/src/app-shell/app-shell.tokens.json +6 -3
  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 +70 -67
  25. package/src/card/card.tokens.json +1 -0
  26. package/src/carousel/carousel.css +158 -169
  27. package/src/cascader/cascader.css +161 -159
  28. package/src/cascader/cascader.tokens.json +2 -0
  29. package/src/chart/chart.css +288 -267
  30. package/src/chart/chart.tokens.json +4 -0
  31. package/src/checkbox/checkbox.css +143 -148
  32. package/src/checkbox-group/checkbox-group.css +7 -7
  33. package/src/code-block/code-block.css +85 -89
  34. package/src/collapsible/collapsible.css +81 -80
  35. package/src/collapsible/collapsible.tokens.json +1 -0
  36. package/src/color-picker/color-picker.css +106 -114
  37. package/src/column-manager/column-manager.css +111 -119
  38. package/src/combobox/combobox.css +206 -132
  39. package/src/combobox/combobox.tokens.json +4 -0
  40. package/src/command-palette/command-palette.css +155 -102
  41. package/src/command-palette/command-palette.tokens.json +2 -0
  42. package/src/container/container.css +27 -27
  43. package/src/context-menu/context-menu.css +9 -9
  44. package/src/currency-field/currency-field.css +119 -119
  45. package/src/currency-field/currency-field.tokens.json +1 -0
  46. package/src/dashboard-grid/dashboard-grid.css +204 -115
  47. package/src/data-grid/data-grid.css +598 -496
  48. package/src/data-grid/data-grid.tokens.json +5 -1
  49. package/src/data-list/data-list.css +82 -71
  50. package/src/data-list/data-list.tokens.json +2 -1
  51. package/src/date-field/date-field.css +62 -57
  52. package/src/date-field/date-field.tokens.json +1 -0
  53. package/src/date-picker/date-picker.css +117 -58
  54. package/src/date-picker/date-picker.tokens.json +5 -0
  55. package/src/date-range-picker/date-range-picker.css +157 -127
  56. package/src/date-range-picker/date-range-picker.tokens.json +4 -0
  57. package/src/datetime-field/datetime-field.css +90 -90
  58. package/src/datetime-field/datetime-field.tokens.json +1 -0
  59. package/src/datetime-picker/datetime-picker.css +123 -70
  60. package/src/datetime-picker/datetime-picker.tokens.json +4 -1
  61. package/src/datetime-range-picker/datetime-range-picker.css +191 -163
  62. package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
  63. package/src/description-list/description-list.css +105 -75
  64. package/src/description-list/description-list.tokens.json +1 -0
  65. package/src/detail-panel/detail-panel.css +86 -71
  66. package/src/detail-panel/detail-panel.tokens.json +2 -0
  67. package/src/dialog/dialog.css +435 -199
  68. package/src/dialog/dialog.tokens.json +9 -0
  69. package/src/divider/divider.css +20 -20
  70. package/src/drawer/drawer.css +598 -237
  71. package/src/drawer/drawer.tokens.json +14 -0
  72. package/src/entity-picker/entity-picker.css +326 -272
  73. package/src/entity-picker/entity-picker.tokens.json +4 -0
  74. package/src/event-calendar/event-calendar.css +357 -399
  75. package/src/field/field.css +106 -93
  76. package/src/field/field.tokens.json +2 -0
  77. package/src/field-group/field-group.css +43 -33
  78. package/src/field-group/field-group.tokens.json +3 -0
  79. package/src/filter-bar/filter-bar.css +200 -216
  80. package/src/form/form.css +100 -26
  81. package/src/form/form.tokens.json +6 -1
  82. package/src/fullscreen/fullscreen.css +26 -27
  83. package/src/grid/grid.css +29 -29
  84. package/src/highlight/highlight.css +11 -11
  85. package/src/hover-card/hover-card.css +9 -9
  86. package/src/icon/icon.css +67 -20
  87. package/src/icon/icon.tokens.json +1 -0
  88. package/src/image/image.css +42 -42
  89. package/src/import-export-center/import-export-center.css +147 -168
  90. package/src/import-export-center/import-export-center.tokens.json +1 -0
  91. package/src/inline/inline.css +28 -28
  92. package/src/inline-message/inline-message.css +162 -86
  93. package/src/inline-message/inline-message.tokens.json +4 -0
  94. package/src/kbd/kbd.css +62 -50
  95. package/src/kbd/kbd.tokens.json +3 -0
  96. package/src/link/link.css +54 -33
  97. package/src/link/link.tokens.json +4 -0
  98. package/src/list/list.css +23 -23
  99. package/src/list-item/list-item.css +89 -75
  100. package/src/list-item/list-item.tokens.json +7 -0
  101. package/src/listbox/listbox.css +71 -70
  102. package/src/listbox/listbox.tokens.json +0 -1
  103. package/src/loading-overlay/loading-overlay.css +86 -103
  104. package/src/markdown/markdown.css +20 -20
  105. package/src/media-viewer/media-viewer.css +790 -0
  106. package/src/media-viewer/media-viewer.tokens.json +53 -0
  107. package/src/menu/menu.css +166 -83
  108. package/src/menu/menu.tokens.json +3 -1
  109. package/src/menubar/menubar.css +16 -16
  110. package/src/message/message.css +1253 -1246
  111. package/src/message/message.tokens.json +5 -0
  112. package/src/message-scroller/message-scroller.css +323 -320
  113. package/src/multi-select/multi-select.css +233 -174
  114. package/src/multi-select/multi-select.tokens.json +3 -0
  115. package/src/navigation-menu/navigation-menu.css +170 -191
  116. package/src/navigation-menu/navigation-menu.tokens.json +1 -0
  117. package/src/notification-center/notification-center.css +155 -163
  118. package/src/notification-center/notification-center.tokens.json +4 -0
  119. package/src/number-field/number-field.css +93 -93
  120. package/src/number-field/number-field.tokens.json +1 -0
  121. package/src/otp-input/otp-input.css +74 -64
  122. package/src/otp-input/otp-input.tokens.json +1 -0
  123. package/src/page/page.css +41 -27
  124. package/src/page/page.tokens.json +1 -0
  125. package/src/page-header/page-header.css +342 -287
  126. package/src/page-header/page-header.tokens.json +6 -1
  127. package/src/pagination/pagination.css +75 -79
  128. package/src/popover/popover.css +85 -65
  129. package/src/popover/popover.tokens.json +2 -0
  130. package/src/progress-indicator/progress-indicator.css +192 -136
  131. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  132. package/src/prompt-composer/prompt-composer.css +260 -113
  133. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  134. package/src/prose/prose.css +77 -82
  135. package/src/radio-group/radio-group.css +107 -112
  136. package/src/rating/rating.css +146 -142
  137. package/src/rating/rating.tokens.json +1 -0
  138. package/src/result-state/result-state.css +95 -102
  139. package/src/result-state/result-state.tokens.json +1 -0
  140. package/src/runtime-properties.mjs +19 -6
  141. package/src/saved-views/saved-views.css +43 -49
  142. package/src/scroll-area/scroll-area.css +50 -37
  143. package/src/section/section.css +179 -44
  144. package/src/section/section.tokens.json +9 -3
  145. package/src/segmented-control/segmented-control.css +210 -133
  146. package/src/segmented-control/segmented-control.tokens.json +7 -11
  147. package/src/select/select.css +213 -149
  148. package/src/select/select.tokens.json +4 -0
  149. package/src/side-navigation/side-navigation.css +201 -198
  150. package/src/side-navigation/side-navigation.tokens.json +1 -0
  151. package/src/skeleton/skeleton.css +57 -58
  152. package/src/slider/slider.css +101 -103
  153. package/src/sparkline/sparkline.css +75 -53
  154. package/src/sparkline/sparkline.tokens.json +2 -0
  155. package/src/spinner/spinner.css +83 -180
  156. package/src/spinner/spinner.tokens.json +0 -1
  157. package/src/split-button/split-button.css +34 -35
  158. package/src/split-button/split-button.tokens.json +1 -0
  159. package/src/splitter/splitter.css +47 -48
  160. package/src/stack/stack.css +25 -25
  161. package/src/stat-card/stat-card.css +415 -245
  162. package/src/stat-card/stat-card.tokens.json +8 -0
  163. package/src/status-indicator/status-indicator.css +124 -100
  164. package/src/status-indicator/status-indicator.tokens.json +0 -3
  165. package/src/stepper/stepper.css +78 -82
  166. package/src/switch/switch.css +100 -106
  167. package/src/table/table.css +270 -198
  168. package/src/table/table.tokens.json +2 -0
  169. package/src/table-of-contents/table-of-contents.css +60 -59
  170. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  171. package/src/tabs/tabs.css +327 -294
  172. package/src/tabs/tabs.tokens.json +7 -1
  173. package/src/tag/tag.css +109 -88
  174. package/src/tag/tag.tokens.json +10 -0
  175. package/src/tags-input/tags-input.css +152 -87
  176. package/src/tags-input/tags-input.tokens.json +7 -1
  177. package/src/text-field/text-field.css +146 -148
  178. package/src/text-field/text-field.tokens.json +1 -0
  179. package/src/textarea/textarea.css +38 -33
  180. package/src/textarea/textarea.tokens.json +1 -0
  181. package/src/time-field/time-field.css +82 -77
  182. package/src/time-field/time-field.tokens.json +1 -0
  183. package/src/time-picker/time-picker.css +116 -64
  184. package/src/time-picker/time-picker.tokens.json +4 -1
  185. package/src/time-range-picker/time-range-picker.css +168 -140
  186. package/src/time-range-picker/time-range-picker.tokens.json +4 -0
  187. package/src/timeline/timeline.css +280 -292
  188. package/src/timeline/timeline.tokens.json +5 -0
  189. package/src/toast/toast.css +139 -122
  190. package/src/toast/toast.tokens.json +7 -0
  191. package/src/toggle/toggle.css +34 -38
  192. package/src/toggle-group/toggle-group.css +73 -77
  193. package/src/toolbar/toolbar.css +33 -38
  194. package/src/tooltip/tooltip.css +65 -39
  195. package/src/tooltip/tooltip.tokens.json +1 -0
  196. package/src/top-navigation/top-navigation.css +252 -268
  197. package/src/tour/tour.css +68 -74
  198. package/src/tour/tour.tokens.json +1 -0
  199. package/src/transfer/transfer.css +164 -168
  200. package/src/tree/tree.css +113 -121
  201. package/src/typography/typography.css +42 -38
  202. package/src/typography/typography.tokens.json +1 -0
  203. package/src/upload/upload.css +256 -257
  204. package/src/visually-hidden/visually-hidden.css +1 -1
  205. package/src/wizard/wizard.css +187 -199
@@ -9,7 +9,7 @@
9
9
  * transfers files; this family does neither. The two share the file
10
10
  * vocabulary of `@slotted/core/upload` and the kind scale
11
11
  * `--slotted-upload-kind-*`, and nothing else
12
- * (`docs/history/designs/2026-09-30-attachment-design.md` §1).
12
+ *.
13
13
  *
14
14
  * **The whole attachment is the target, and the actions stay beside it.**
15
15
  * The trigger is a real `a` or `button` holding the file name, and a
@@ -23,8 +23,8 @@
23
23
  * resolves the same size step its attachments do, because a grid of cards
24
24
  * sizes its tracks from the card.
25
25
  */
26
- [data-ui='attachment'][data-part='root'],
27
- [data-ui='attachment'][data-part='group'] {
26
+ [data-ui-attachment][data-part-root],
27
+ [data-ui-attachment][data-part-group] {
28
28
  /**
29
29
  * Type and glyph come from the control scales, the ones the theme restates
30
30
  * per density, so an attachment inside a dense form shrinks with the
@@ -87,14 +87,14 @@
87
87
  );
88
88
  }
89
89
 
90
- [data-ui='attachment'][data-size='sm']:is([data-part='root'], [data-part='group']) {
90
+ [data-ui-attachment][data-size='sm']:is([data-part-root], [data-part-group]) {
91
91
  --_font-size: var(--slotted-control-font-size-sm, 12px);
92
92
  --_glyph-size: var(--slotted-control-icon-size-sm, 14px);
93
93
  --_gap: var(--slotted-control-gap-sm, 6px);
94
94
  --_inset: var(--slotted-attachment-padding-sm, var(--slotted-space-3, 0.375rem));
95
95
  }
96
96
 
97
- [data-ui='attachment'][data-size='lg']:is([data-part='root'], [data-part='group']) {
97
+ [data-ui-attachment][data-size='lg']:is([data-part-root], [data-part-group]) {
98
98
  --_font-size: var(--slotted-control-font-size-lg, 14px);
99
99
  --_glyph-size: var(--slotted-control-icon-size-lg, 18px);
100
100
  --_gap: var(--slotted-control-gap-lg, 8px);
@@ -104,12 +104,12 @@
104
104
  /* ── One attachment ────────────────────────────────────────────────────
105
105
  *
106
106
  * Laid out as a grid rather than a flex line, for the reason `upload` gives
107
- * its row: the tile and the actions are centred on the name and its detail,
107
+ * its row: the tile and the actions are centerd on the name and its detail,
108
108
  * and a sentence under them — the message — grows the attachment downwards
109
109
  * without moving either. The message starts under the name, not under the
110
110
  * tile, so its first letter lines up with the name's.
111
111
  */
112
- [data-ui='attachment'][data-part='root'] {
112
+ [data-ui-attachment][data-part-root] {
113
113
  /**
114
114
  * What the attachment is painted with at rest. A state of the file —
115
115
  * invalid — moves these two; a pointer on the trigger moves `--_fill`,
@@ -187,22 +187,22 @@
187
187
  * the gap beside it, and an attachment without actions ended its name eight
188
188
  * pixels short of the edge it could have used.
189
189
  */
190
- [data-ui='attachment'][data-part='root']:not(:has(> [data-part='actions'])) {
190
+ [data-ui-attachment][data-part-root]:not(:has(> [data-part-actions])) {
191
191
  grid-template-areas:
192
192
  'preview body'
193
193
  '. message';
194
194
  grid-template-columns: auto minmax(0, 1fr);
195
195
  }
196
196
 
197
- [data-ui='attachment'][data-part='root']:not(:has(> [data-part='preview'])) {
197
+ [data-ui-attachment][data-part-root]:not(:has(> [data-part-preview])) {
198
198
  grid-template-areas:
199
199
  'body actions'
200
200
  'message message';
201
201
  grid-template-columns: minmax(0, 1fr) auto;
202
202
  }
203
203
 
204
- [data-ui='attachment'][data-part='root']:not(:has(> [data-part='preview'])):not(
205
- :has(> [data-part='actions'])
204
+ [data-ui-attachment][data-part-root]:not(:has(> [data-part-preview])):not(
205
+ :has(> [data-part-actions])
206
206
  ) {
207
207
  grid-template-areas:
208
208
  'body'
@@ -220,7 +220,7 @@
220
220
  * list beside the consumer's — the debt `upload` records for its rows.
221
221
  */
222
222
  @starting-style {
223
- [data-ui='attachment'][data-part='root'] {
223
+ [data-ui-attachment][data-part-root] {
224
224
  opacity: 0;
225
225
  translate: 0 calc(-1 * var(--slotted-space-2, 0.25rem));
226
226
  }
@@ -228,12 +228,12 @@
228
228
 
229
229
  /* ── The tile ──────────────────────────────────────────────────────────
230
230
  *
231
- * A solid tile in the file's own colour with the mark knocked out of it, or
232
- * the picture when the page has one. The colour argument and its
231
+ * A solid tile in the file's own color with the mark knocked out of it, or
232
+ * the picture when the page has one. The color argument and its
233
233
  * measurements are under **File kind** in `docs/token-foundation.md`; the
234
234
  * scale is `upload`'s and is read here under its own name.
235
235
  */
236
- [data-ui='attachment'] [data-part='preview'] {
236
+ [data-ui-attachment] [data-part-preview] {
237
237
  --_kind-tile: var(--slotted-upload-kind-other);
238
238
 
239
239
  align-items: center;
@@ -250,7 +250,7 @@
250
250
  overflow: hidden;
251
251
  }
252
252
 
253
- [data-ui='attachment'] [data-part='preview'] > img {
253
+ [data-ui-attachment] [data-part-preview] > img {
254
254
  block-size: 100%;
255
255
  display: block;
256
256
  inline-size: 100%;
@@ -261,39 +261,39 @@
261
261
  * Half the tile, rounded to a whole pixel: 20 in a 40 tile. The row glyph
262
262
  * (16) in a tile two lines tall read as a mark lost in its box.
263
263
  */
264
- [data-ui='attachment'] [data-part='preview'] > [data-ui='icon'] {
264
+ [data-ui-attachment] [data-part-preview] > [data-ui-icon] {
265
265
  --slotted-icon-size: round(calc(var(--_preview-size) / 2), 1px);
266
266
  }
267
267
 
268
- [data-ui='attachment'] [data-part='preview'][data-kind='pdf'] {
268
+ [data-ui-attachment] [data-part-preview][data-kind='pdf'] {
269
269
  --_kind-tile: var(--slotted-upload-kind-pdf);
270
270
  }
271
271
 
272
- [data-ui='attachment'] [data-part='preview'][data-kind='document'] {
272
+ [data-ui-attachment] [data-part-preview][data-kind='document'] {
273
273
  --_kind-tile: var(--slotted-upload-kind-document);
274
274
  }
275
275
 
276
- [data-ui='attachment'] [data-part='preview'][data-kind='spreadsheet'] {
276
+ [data-ui-attachment] [data-part-preview][data-kind='spreadsheet'] {
277
277
  --_kind-tile: var(--slotted-upload-kind-spreadsheet);
278
278
  }
279
279
 
280
- [data-ui='attachment'] [data-part='preview'][data-kind='presentation'] {
280
+ [data-ui-attachment] [data-part-preview][data-kind='presentation'] {
281
281
  --_kind-tile: var(--slotted-upload-kind-presentation);
282
282
  }
283
283
 
284
- [data-ui='attachment'] [data-part='preview'][data-kind='image'] {
284
+ [data-ui-attachment] [data-part-preview][data-kind='image'] {
285
285
  --_kind-tile: var(--slotted-upload-kind-image);
286
286
  }
287
287
 
288
- [data-ui='attachment'] [data-part='preview'][data-kind='video'] {
288
+ [data-ui-attachment] [data-part-preview][data-kind='video'] {
289
289
  --_kind-tile: var(--slotted-upload-kind-video);
290
290
  }
291
291
 
292
- [data-ui='attachment'] [data-part='preview'][data-kind='audio'] {
292
+ [data-ui-attachment] [data-part-preview][data-kind='audio'] {
293
293
  --_kind-tile: var(--slotted-upload-kind-audio);
294
294
  }
295
295
 
296
- [data-ui='attachment'] [data-part='preview'][data-kind='archive'] {
296
+ [data-ui-attachment] [data-part-preview][data-kind='archive'] {
297
297
  --_kind-tile: var(--slotted-upload-kind-archive);
298
298
  }
299
299
 
@@ -303,7 +303,7 @@
303
303
  * `min-inline-size: 0`, which is what makes a long name truncate instead of
304
304
  * pushing the actions off the end.
305
305
  */
306
- [data-ui='attachment'] [data-part='body'] {
306
+ [data-ui-attachment] [data-part-body] {
307
307
  display: flex;
308
308
  flex-direction: column;
309
309
  gap: var(--_line-gap);
@@ -318,7 +318,7 @@
318
318
  * about it looks like a control at rest; the attachment is the control, and
319
319
  * it answers as one.
320
320
  */
321
- [data-ui='attachment'] [data-part='trigger'] {
321
+ [data-ui-attachment] [data-part-trigger] {
322
322
  appearance: none;
323
323
  background: none;
324
324
  border: 0;
@@ -332,14 +332,13 @@
332
332
  padding: 0;
333
333
  text-align: start;
334
334
  text-decoration: none;
335
- transition: translate var(--slotted-duration-instant) var(--slotted-control-transition-easing);
336
335
  }
337
336
 
338
337
  /**
339
338
  * The stretched target. Transparent, over the whole attachment, and below
340
339
  * `actions`, which is positioned after it in the same stacking context.
341
340
  */
342
- [data-ui='attachment'] [data-part='trigger']::after {
341
+ [data-ui-attachment] [data-part-trigger]::after {
343
342
  content: '';
344
343
  inset: 0;
345
344
  position: absolute;
@@ -352,18 +351,31 @@
352
351
  * by a hairline — the answer `upload` gives its file name — so press and
353
352
  * hover differ on the trigger itself and not only on the attachment.
354
353
  */
355
- [data-ui='attachment'] [data-part='trigger']:not(:disabled):not([aria-disabled='true']):hover {
354
+ [data-ui-attachment] [data-part-trigger]:not(:disabled):not([aria-disabled='true']):hover {
356
355
  text-decoration-line: underline;
357
356
  text-underline-offset: 0.2em;
358
357
  }
359
358
 
360
- [data-ui='attachment'] [data-part='trigger']:not(:disabled):not([aria-disabled='true']):active {
359
+ [data-ui-attachment] [data-part-trigger]:not(:disabled):not([aria-disabled='true']):active {
361
360
  text-decoration-line: underline;
362
361
  text-underline-offset: 0.2em;
362
+ }
363
+
364
+ /*
365
+ * The settle moves what the trigger holds, never the trigger: a `translate`
366
+ * on the trigger makes it the containing block of its `::after`, and for
367
+ * the press the target shrank to the name, so a release on the preview
368
+ * clicked the root instead.
369
+ */
370
+ [data-ui-attachment] [data-part-trigger] > * {
371
+ transition: translate var(--slotted-duration-instant) var(--slotted-control-transition-easing);
372
+ }
373
+
374
+ [data-ui-attachment] [data-part-trigger]:not(:disabled):not([aria-disabled='true']):active > * {
363
375
  translate: 0 var(--slotted-border-width-thin, 1px);
364
376
  }
365
377
 
366
- [data-ui='attachment'] [data-part='trigger']:is(:disabled, [aria-disabled='true']) {
378
+ [data-ui-attachment] [data-part-trigger]:is(:disabled, [aria-disabled='true']) {
367
379
  cursor: default;
368
380
  }
369
381
 
@@ -373,13 +385,11 @@
373
385
  * the words can be pressed. The browser's own ring on the trigger is
374
386
  * suppressed so the two are never drawn at once.
375
387
  */
376
- [data-ui='attachment'] [data-part='trigger']:focus-visible {
388
+ [data-ui-attachment] [data-part-trigger]:focus-visible {
377
389
  outline: none;
378
390
  }
379
391
 
380
- [data-ui='attachment'][data-part='root']:has(
381
- > [data-part='body'] > [data-part='trigger']:focus-visible
382
- ) {
392
+ [data-ui-attachment][data-part-root]:has(> [data-part-body] > [data-part-trigger]:focus-visible) {
383
393
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
384
394
  outline-offset: var(--slotted-focus-ring-offset, 2px);
385
395
  }
@@ -389,14 +399,14 @@
389
399
  * cannot be opened: a disabled or loading attachment refuses its trigger,
390
400
  * and a fill would promise the press it refuses.
391
401
  */
392
- [data-ui='attachment'][data-part='root']:not([data-disabled]):not([data-loading]):has(
393
- > [data-part='body'] > [data-part='trigger']:hover
402
+ [data-ui-attachment][data-part-root]:not([data-disabled]):not([data-loading]):has(
403
+ > [data-part-body] > [data-part-trigger]:hover
394
404
  ) {
395
405
  --_fill: var(--_fill-hover);
396
406
  }
397
407
 
398
- [data-ui='attachment'][data-part='root']:not([data-disabled]):not([data-loading]):has(
399
- > [data-part='body'] > [data-part='trigger']:active
408
+ [data-ui-attachment][data-part-root]:not([data-disabled]):not([data-loading]):has(
409
+ > [data-part-body] > [data-part-trigger]:active
400
410
  ) {
401
411
  --_fill: var(--_fill-active);
402
412
  }
@@ -407,7 +417,7 @@
407
417
  * that order inside a right-to-left page instead of `pdf.claim-form` — the
408
418
  * defect `upload` found in its capture at `dir="rtl"`.
409
419
  */
410
- [data-ui='attachment'] [data-part='filename'] {
420
+ [data-ui-attachment] [data-part-filename] {
411
421
  display: flex;
412
422
  font-weight: var(--slotted-attachment-name-font-weight, var(--slotted-font-weight-medium, 500));
413
423
  line-height: var(--_title-leading);
@@ -422,8 +432,8 @@
422
432
  * gives the run its own direction, so it must also be only as wide as the run.
423
433
  * Found in the capture at `dir="rtl"`.
424
434
  */
425
- [data-ui='attachment'] [data-part='body'] > [data-part='filename'],
426
- [data-ui='attachment'] [data-part='body'] > [data-part='trigger'] {
435
+ [data-ui-attachment] [data-part-body] > [data-part-filename],
436
+ [data-ui-attachment] [data-part-body] > [data-part-trigger] {
427
437
  align-self: start;
428
438
  max-inline-size: 100%;
429
439
  }
@@ -434,7 +444,7 @@
434
444
  * middle; `splitName` makes the split in the binding, and the whole name
435
445
  * stays in the document and in the trigger's `title`.
436
446
  */
437
- [data-ui='attachment'] [data-part='name'] {
447
+ [data-ui-attachment] [data-part-name] {
438
448
  flex: 0 1 auto;
439
449
  min-inline-size: 0;
440
450
  overflow: hidden;
@@ -442,13 +452,13 @@
442
452
  white-space: nowrap;
443
453
  }
444
454
 
445
- [data-ui='attachment'] [data-part='extension'] {
455
+ [data-ui-attachment] [data-part-extension] {
446
456
  flex: none;
447
457
  white-space: nowrap;
448
458
  }
449
459
 
450
460
  /** The second line: a size, a date, a sender — whatever the page says. */
451
- [data-ui='attachment'] [data-part='detail'] {
461
+ [data-ui-attachment] [data-part-detail] {
452
462
  color: var(--slotted-text-muted);
453
463
  font-size: var(--_detail-size);
454
464
  font-variant-numeric: tabular-nums;
@@ -465,7 +475,7 @@
465
475
  * length than a line of detail. It wraps, because a reason cut off by an
466
476
  * ellipsis is a reason nobody reads.
467
477
  */
468
- [data-ui='attachment'] [data-part='message'] {
478
+ [data-ui-attachment] [data-part-message] {
469
479
  color: var(--_message-color);
470
480
  font-size: var(--_detail-size);
471
481
  grid-area: message;
@@ -487,10 +497,10 @@
487
497
  * placement — it ran under the tile, and on a failed attachment the danger
488
498
  * bar sat against the danger edge and its inset second line: three red
489
499
  * lines at the bottom, read as the edge doubled wherever the bar reached.
490
- * Centred in the inset, the bar clears the edge by the same distance it
500
+ * Centerd in the inset, the bar clears the edge by the same distance it
491
501
  * clears the detail line above it.
492
502
  */
493
- [data-ui='attachment'] [data-part='progress'] {
503
+ [data-ui-attachment] [data-part-progress] {
494
504
  display: block;
495
505
  inset-block-end: round(
496
506
  down,
@@ -505,14 +515,13 @@
505
515
  }
506
516
 
507
517
  /* Without a tile, or on a card, the text's column starts at the inset. */
508
- [data-ui='attachment'][data-part='root']:not(:has(> [data-part='preview']))
509
- > [data-part='progress'],
510
- [data-ui='attachment'][data-orientation='vertical'] > [data-part='progress'] {
518
+ [data-ui-attachment][data-part-root]:not(:has(> [data-part-preview])) > [data-part-progress],
519
+ [data-ui-attachment][data-orientation='vertical'] > [data-part-progress] {
511
520
  inset-inline-start: var(--_inset);
512
521
  }
513
522
 
514
523
  @starting-style {
515
- [data-ui='attachment'] [data-part='progress'] {
524
+ [data-ui-attachment] [data-part-progress] {
516
525
  opacity: 0;
517
526
  }
518
527
  }
@@ -521,7 +530,7 @@
521
530
  *
522
531
  * Above the stretched target, so a press on a control is the control's.
523
532
  */
524
- [data-ui='attachment'] [data-part='actions'] {
533
+ [data-ui-attachment] [data-part-actions] {
525
534
  align-items: center;
526
535
  display: inline-flex;
527
536
  gap: var(--slotted-space-1, 0.125rem);
@@ -538,8 +547,8 @@
538
547
  * controls: it is legible on whatever ground the attachment has, including
539
548
  * a failed one's tint.
540
549
  */
541
- [data-ui='attachment'] [data-part='action'],
542
- [data-ui='attachment'] [data-part='remove'] {
550
+ [data-ui-attachment] [data-part-action],
551
+ [data-ui-attachment] [data-part-remove] {
543
552
  --_state-hover: color-mix(
544
553
  in oklab,
545
554
  currentcolor var(--slotted-attachment-action-state-layer-hover, 8%),
@@ -574,8 +583,8 @@
574
583
  color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);
575
584
  }
576
585
 
577
- [data-ui='attachment'] [data-part='action'] > [data-ui='icon'],
578
- [data-ui='attachment'] [data-part='remove'] > [data-ui='icon'] {
586
+ [data-ui-attachment] [data-part-action] > [data-ui-icon],
587
+ [data-ui-attachment] [data-part-remove] > [data-ui-icon] {
579
588
  --slotted-icon-size: var(--_action-glyph-size);
580
589
  }
581
590
 
@@ -584,18 +593,18 @@
584
593
  * has no native disabled state. A control that cannot act does not answer a
585
594
  * pointer.
586
595
  */
587
- [data-ui='attachment'] [data-part='action']:not(:disabled):not([aria-disabled='true']):hover,
588
- [data-ui='attachment'] [data-part='remove']:not(:disabled):not([aria-disabled='true']):hover {
596
+ [data-ui-attachment] [data-part-action]:not(:disabled):not([aria-disabled='true']):hover,
597
+ [data-ui-attachment] [data-part-remove]:not(:disabled):not([aria-disabled='true']):hover {
589
598
  background-color: var(--_state-hover);
590
599
  }
591
600
 
592
- [data-ui='attachment'] [data-part='action']:not(:disabled):not([aria-disabled='true']):active,
593
- [data-ui='attachment'] [data-part='remove']:not(:disabled):not([aria-disabled='true']):active {
601
+ [data-ui-attachment] [data-part-action]:not(:disabled):not([aria-disabled='true']):active,
602
+ [data-ui-attachment] [data-part-remove]:not(:disabled):not([aria-disabled='true']):active {
594
603
  background-color: var(--_state-active);
595
604
  }
596
605
 
597
- [data-ui='attachment'] [data-part='action']:is(:disabled, [aria-disabled='true']),
598
- [data-ui='attachment'] [data-part='remove']:is(:disabled, [aria-disabled='true']) {
606
+ [data-ui-attachment] [data-part-action]:is(:disabled, [aria-disabled='true']),
607
+ [data-ui-attachment] [data-part-remove]:is(:disabled, [aria-disabled='true']) {
599
608
  color: var(--slotted-disabled-foreground);
600
609
  cursor: default;
601
610
  }
@@ -605,24 +614,24 @@
605
614
  * stand two pixels apart, and an outward ring would be drawn over the
606
615
  * neighbour's box.
607
616
  */
608
- [data-ui='attachment'] [data-part='action']:focus-visible,
609
- [data-ui='attachment'] [data-part='remove']:focus-visible {
617
+ [data-ui-attachment] [data-part-action]:focus-visible,
618
+ [data-ui-attachment] [data-part-remove]:focus-visible {
610
619
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
611
620
  outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
612
621
  }
613
622
 
614
623
  /**
615
624
  * On a finger the target is the comfortable size and the box is the one a
616
- * mouse sees: a transparent `::after` centred on each control reaches 44
625
+ * mouse sees: a transparent `::after` centerd on each control reaches 44
617
626
  * pixels in both axes, and the ground and the ring stay square. The rule is
618
627
  * `upload`'s.
619
628
  */
620
629
  @media (pointer: coarse) {
621
- [data-ui='attachment'] :is([data-part='action'], [data-part='remove']) {
630
+ [data-ui-attachment] :is([data-part-action], [data-part-remove]) {
622
631
  position: relative;
623
632
  }
624
633
 
625
- [data-ui='attachment'] :is([data-part='action'], [data-part='remove'])::after {
634
+ [data-ui-attachment] :is([data-part-action], [data-part-remove])::after {
626
635
  content: '';
627
636
  inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
628
637
  position: absolute;
@@ -632,12 +641,12 @@
632
641
  /* ── States of the file ────────────────────────────────────────────────
633
642
  *
634
643
  * A file that failed: its ground, its edge and its sentence turn, and the
635
- * tile keeps the kind's colour. `upload` measured why — a refused archive
644
+ * tile keeps the kind's color. `upload` measured why — a refused archive
636
645
  * that turned red stopped saying it was an archive, on the one row whose
637
646
  * message was about archives — and every kind clears 4.03 : 1 against the
638
647
  * failed ground in `light` (`default-theme.test.mjs`).
639
648
  */
640
- [data-ui='attachment'][data-part='root'][data-invalid] {
649
+ [data-ui-attachment][data-part-root][data-invalid] {
641
650
  --_surface: var(--slotted-tone-danger-surface);
642
651
  --_edge: var(--slotted-tone-danger-border);
643
652
  --_message-color: var(--slotted-tone-danger-text);
@@ -645,7 +654,7 @@
645
654
  /*
646
655
  * The edge doubles inward. Every tone surface is the page's own white in
647
656
  * `high-contrast`, so the failed attachment's tint vanished there and the
648
- * sentence's colour was the one signal left — colour alone, which WCAG 2.2
657
+ * sentence's color was the one signal left — color alone, which WCAG 2.2
649
658
  * SC 1.4.1 refuses. A second pixel of edge says it in line, in every
650
659
  * scheme, and moves nothing: an inset shadow takes no room.
651
660
  */
@@ -656,29 +665,29 @@
656
665
 
657
666
  /**
658
667
  * An unavailable file. The words take the disabled ink the foundation holds
659
- * at its contrast, and the tile gives up the kind's colour, because a file
668
+ * at its contrast, and the tile gives up the kind's color, because a file
660
669
  * that cannot be opened should not still be the brightest thing in the row.
661
670
  */
662
- [data-ui='attachment'][data-part='root'][data-disabled] {
671
+ [data-ui-attachment][data-part-root][data-disabled] {
663
672
  --_ink: var(--slotted-disabled-foreground);
664
673
  }
665
674
 
666
- [data-ui='attachment'][data-part='root'][data-disabled] [data-part='detail'] {
675
+ [data-ui-attachment][data-part-root][data-disabled] [data-part-detail] {
667
676
  color: var(--slotted-disabled-foreground);
668
677
  }
669
678
 
670
- [data-ui='attachment'][data-part='root'][data-disabled] [data-part='preview'] {
679
+ [data-ui-attachment][data-part-root][data-disabled] [data-part-preview] {
671
680
  --_kind-tile: var(--slotted-disabled-background);
672
681
 
673
682
  color: var(--slotted-disabled-foreground);
674
683
  }
675
684
 
676
685
  /*
677
- * A picture has no ground to give up, so it gives up its colour: the
686
+ * A picture has no ground to give up, so it gives up its color: the
678
687
  * whole-strength grey is the one value that says unavailable without
679
688
  * dimming the thumbnail below legibility.
680
689
  */
681
- [data-ui='attachment'][data-part='root'][data-disabled] [data-part='preview'] > img {
690
+ [data-ui-attachment][data-part-root][data-disabled] [data-part-preview] > img {
682
691
  filter: grayscale(1);
683
692
  }
684
693
 
@@ -687,10 +696,10 @@
687
696
  * The same attachment stood on end: the picture takes the card and the name
688
697
  * sits under it. The actions move onto the picture's corner, over the thing
689
698
  * the reader is pointing at, on a plate of their own — the consumer's
690
- * photograph is any colour, and a dark mark on a mid-blue sky was what
699
+ * photograph is any color, and a dark mark on a mid-blue sky was what
691
700
  * `upload`'s first grid capture showed.
692
701
  */
693
- [data-ui='attachment'][data-part='root'][data-orientation='vertical'] {
702
+ [data-ui-attachment][data-part-root][data-orientation='vertical'] {
694
703
  align-items: stretch;
695
704
  grid-template-areas:
696
705
  'preview'
@@ -705,14 +714,14 @@
705
714
  * the card rather than from `aspect-ratio`, which carried a fractional
706
715
  * width into a fractional height in `upload`'s grid.
707
716
  */
708
- [data-ui='attachment'][data-orientation='vertical'] > [data-part='preview'] {
717
+ [data-ui-attachment][data-orientation='vertical'] > [data-part-preview] {
709
718
  --_preview-radius: var(--slotted-attachment-card-preview-radius, var(--slotted-radius-md, 6px));
710
719
 
711
720
  block-size: calc(var(--_card-size) - 2 * var(--_inset) - 2 * var(--_border-width));
712
721
  inline-size: 100%;
713
722
  }
714
723
 
715
- [data-ui='attachment'][data-orientation='vertical'] > [data-part='preview'] > [data-ui='icon'] {
724
+ [data-ui-attachment][data-orientation='vertical'] > [data-part-preview] > [data-ui-icon] {
716
725
  --slotted-icon-size: calc(2 * var(--_glyph-size));
717
726
  }
718
727
 
@@ -721,8 +730,7 @@
721
730
  * of thumbnails for the one PDF finds it faster by the three letters than by
722
731
  * the silhouette. It is text, drawn from the attribute the binding writes.
723
732
  */
724
- [data-ui='attachment'][data-orientation='vertical']
725
- > [data-part='preview']:not(:has(img))::after {
733
+ [data-ui-attachment][data-orientation='vertical'] > [data-part-preview]:not(:has(img))::after {
726
734
  content: attr(data-extension);
727
735
  font-size: var(--_detail-size);
728
736
  font-weight: var(--slotted-font-weight-semibold, 600);
@@ -733,11 +741,11 @@
733
741
  margin-block-start: var(--slotted-space-2, 0.25rem);
734
742
  }
735
743
 
736
- [data-ui='attachment'][data-orientation='vertical'] > [data-part='body'] {
744
+ [data-ui-attachment][data-orientation='vertical'] > [data-part-body] {
737
745
  margin-block-start: var(--_gap);
738
746
  }
739
747
 
740
- [data-ui='attachment'][data-orientation='vertical'] > [data-part='actions'] {
748
+ [data-ui-attachment][data-orientation='vertical'] > [data-part-actions] {
741
749
  background-color: color-mix(
742
750
  in oklab,
743
751
  var(--slotted-surface) var(--slotted-attachment-card-actions-opacity, 96%),
@@ -755,7 +763,7 @@
755
763
 
756
764
  /*
757
765
  * On a card three glyphs wide the plate stands over the kind's mark: at 120
758
- * pixels the mark is centred at 51 and the plate reaches 36 from the top
766
+ * pixels the mark is centerd at 51 and the plate reaches 36 from the top
759
767
  * across the inline end, so a PDF card showed half its page under the
760
768
  * controls. Where there is a pointer that can hover, the plate appears with
761
769
  * the pointer or with focus anywhere in the card — the keyboard reaches the
@@ -764,17 +772,13 @@
764
772
  * card it stays too: a card that answers no pointer cannot summon it either.
765
773
  */
766
774
  @media (hover: hover) and (pointer: fine) {
767
- [data-ui='attachment'][data-orientation='vertical']:not([data-disabled])
768
- > [data-part='actions'] {
775
+ [data-ui-attachment][data-orientation='vertical']:not([data-disabled]) > [data-part-actions] {
769
776
  opacity: 0;
770
777
  transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
771
778
  }
772
779
 
773
- [data-ui='attachment'][data-orientation='vertical']:not([data-disabled]):is(
774
- :hover,
775
- :focus-within
776
- )
777
- > [data-part='actions'] {
780
+ [data-ui-attachment][data-orientation='vertical']:not([data-disabled]):is(:hover, :focus-within)
781
+ > [data-part-actions] {
778
782
  opacity: 1;
779
783
  transition: opacity var(--slotted-duration-short) var(--slotted-easing-enter);
780
784
  }
@@ -785,7 +789,7 @@
785
789
  * A native list. It takes focus only when its last attachment is removed
786
790
  * with the keyboard, which is what `tabindex="-1"` is for.
787
791
  */
788
- [data-ui='attachment'][data-part='group'] {
792
+ [data-ui-attachment][data-part-group] {
789
793
  box-sizing: border-box;
790
794
  display: flex;
791
795
  flex-direction: column;
@@ -796,7 +800,7 @@
796
800
  padding: 0;
797
801
  }
798
802
 
799
- [data-ui='attachment'][data-part='group']:focus-visible {
803
+ [data-ui-attachment][data-part-group]:focus-visible {
800
804
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
801
805
  outline-offset: var(--slotted-focus-ring-offset, 2px);
802
806
  }
@@ -805,12 +809,12 @@
805
809
  * An empty set takes no room: a message whose last file was removed does
806
810
  * not keep a gap where the files were.
807
811
  */
808
- [data-ui='attachment'][data-part='group']:empty {
812
+ [data-ui-attachment][data-part-group]:empty {
809
813
  display: none;
810
814
  }
811
815
 
812
816
  /** Rows that share the width: two or three to a line, never narrower than a name. */
813
- [data-ui='attachment'][data-part='group'][data-layout='grid'] {
817
+ [data-ui-attachment][data-part-group][data-layout='grid'] {
814
818
  display: grid;
815
819
  grid-template-columns: repeat(
816
820
  auto-fill,
@@ -819,7 +823,7 @@
819
823
  }
820
824
 
821
825
  /* Cards keep their own width, so every card is a whole pixel wide. */
822
- [data-ui='attachment'][data-part='group'][data-layout='grid'][data-orientation='vertical'] {
826
+ [data-ui-attachment][data-part-group][data-layout='grid'][data-orientation='vertical'] {
823
827
  grid-template-columns: repeat(auto-fill, var(--_card-size));
824
828
  }
825
829
 
@@ -829,7 +833,7 @@
829
833
  * at either end keeps its whole ring inside the scroll box instead of
830
834
  * losing two pixels of it to the clip.
831
835
  */
832
- [data-ui='attachment'][data-part='group'][data-layout='strip'] {
836
+ [data-ui-attachment][data-part-group][data-layout='strip'] {
833
837
  --_ring-reach: calc(
834
838
  var(--slotted-focus-ring-width, 2px) + var(--slotted-focus-ring-offset, 2px)
835
839
  );
@@ -845,17 +849,17 @@
845
849
  scrollbar-width: thin;
846
850
  }
847
851
 
848
- [data-ui='attachment'][data-part='group'][data-layout='strip'] > [data-part='root'] {
852
+ [data-ui-attachment][data-part-group][data-layout='strip'] > [data-part-root] {
849
853
  flex: none;
850
854
  scroll-snap-align: start;
851
855
  }
852
856
 
853
- [data-ui='attachment'][data-part='group'][data-layout='strip']
854
- > [data-part='root'][data-orientation='horizontal'] {
857
+ [data-ui-attachment][data-part-group][data-layout='strip']
858
+ > [data-part-root][data-orientation='horizontal'] {
855
859
  inline-size: var(--slotted-attachment-strip-item-size, 15rem);
856
860
  }
857
861
 
858
- /* ── Forced colours ────────────────────────────────────────────────────
862
+ /* ── Forced colors ────────────────────────────────────────────────────
859
863
  *
860
864
  * The theme remaps every token this sheet reads. What it cannot reach is a
861
865
  * state said by a mix into a ground the system flattens to `Canvas`: the
@@ -864,38 +868,38 @@
864
868
  * `upload`'s controls, and the failed attachment keeps its edge.
865
869
  */
866
870
  @media (forced-colors: active) {
867
- [data-ui='attachment'][data-part='root'][data-invalid] {
871
+ [data-ui-attachment][data-part-root][data-invalid] {
868
872
  --_edge: CanvasText;
869
873
  }
870
874
 
871
- /* The doubled edge is a shadow, which forced colours remove: it comes back
875
+ /* The doubled edge is a shadow, which forced colors remove: it comes back
872
876
  as an outline inside the border, and a focused failed attachment draws
873
877
  its ring double. */
874
- [data-ui='attachment'][data-part='root'][data-invalid] {
878
+ [data-ui-attachment][data-part-root][data-invalid] {
875
879
  outline: var(--_invalid-edge-width) solid CanvasText;
876
880
  outline-offset: calc(-1 * (var(--_border-width) + var(--_invalid-edge-width)));
877
881
  }
878
882
 
879
- [data-ui='attachment'][data-part='root'][data-invalid]:has(
880
- > [data-part='body'] > [data-part='trigger']:focus-visible
883
+ [data-ui-attachment][data-part-root][data-invalid]:has(
884
+ > [data-part-body] > [data-part-trigger]:focus-visible
881
885
  ) {
882
886
  outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
883
887
  var(--slotted-focus-ring-color, Highlight);
884
888
  outline-offset: var(--slotted-focus-ring-offset, 2px);
885
889
  }
886
890
 
887
- [data-ui='attachment'][data-part='root']:not([data-disabled]):not([data-loading]):has(
888
- > [data-part='body'] > [data-part='trigger']:is(:hover, :active)
891
+ [data-ui-attachment][data-part-root]:not([data-disabled]):not([data-loading]):has(
892
+ > [data-part-body] > [data-part-trigger]:is(:hover, :active)
889
893
  ) {
890
894
  border-color: Highlight;
891
895
  }
892
896
 
893
- [data-ui='attachment'] [data-part='preview'] {
897
+ [data-ui-attachment] [data-part-preview] {
894
898
  border: var(--_border-width) solid ButtonBorder;
895
899
  }
896
900
 
897
- [data-ui='attachment']
898
- :is([data-part='action'], [data-part='remove']):not(:disabled):not([aria-disabled='true']):is(
901
+ [data-ui-attachment]
902
+ :is([data-part-action], [data-part-remove]):not(:disabled):not([aria-disabled='true']):is(
899
903
  :hover,
900
904
  :active
901
905
  ) {