@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
@@ -7,14 +7,14 @@
7
7
  * it for what the message is sent with — a model, a tool, the send itself.
8
8
  * The root paints the border, the ground, the lift and the ring; the
9
9
  * textarea inside gives up all four and keeps the value, the caret and the
10
- * selection (docs/history/designs/2026-09-30-prompt-composer-design.md § 3).
10
+ * selection.
11
11
  *
12
12
  * Three variants. `raised` is the chat composer: a surface lifted off the
13
13
  * page, round buttons, a corner derived from them. `outline` and `subtle`
14
14
  * are the composer inside a form — a comment, a reply — and keep the
15
15
  * geometry of a one-line control.
16
16
  */
17
- [data-ui='prompt-composer'][data-part='root'] {
17
+ [data-ui-prompt-composer][data-part-root] {
18
18
  --_font-size: var(--slotted-control-font-size-md, 13px);
19
19
  --_height: var(--slotted-control-height-md, 34px);
20
20
  --_icon-size: var(--slotted-control-icon-size-md, 16px);
@@ -78,18 +78,17 @@
78
78
  transition:
79
79
  background-color var(--slotted-duration-medium) var(--slotted-easing-standard),
80
80
  border-color var(--slotted-duration-medium) var(--slotted-easing-standard),
81
- box-shadow var(--slotted-duration-medium) var(--slotted-easing-standard),
82
- outline-color var(--slotted-duration-medium) var(--slotted-easing-standard);
81
+ box-shadow var(--slotted-duration-medium) var(--slotted-easing-standard);
83
82
  }
84
83
 
85
- [data-ui='prompt-composer'][data-part='root'][data-size='sm'] {
84
+ [data-ui-prompt-composer][data-part-root][data-size='sm'] {
86
85
  --_font-size: var(--slotted-control-font-size-sm, 12px);
87
86
  --_height: var(--slotted-control-height-sm, 30px);
88
87
  --_icon-size: var(--slotted-control-icon-size-sm, 14px);
89
88
  --_inner-size: var(--slotted-control-inner-size-sm, 22px);
90
89
  }
91
90
 
92
- [data-ui='prompt-composer'][data-part='root'][data-size='lg'] {
91
+ [data-ui-prompt-composer][data-part-root][data-size='lg'] {
93
92
  --_font-size: var(--slotted-control-font-size-lg, 14px);
94
93
  --_height: var(--slotted-control-height-lg, 38px);
95
94
  --_icon-size: var(--slotted-control-icon-size-lg, 18px);
@@ -110,7 +109,7 @@
110
109
  * card's corner, and a card's corner around a round send draws two curves
111
110
  * that do not agree.
112
111
  */
113
- [data-ui='prompt-composer'][data-part='root'][data-variant='raised'] {
112
+ [data-ui-prompt-composer][data-part-root][data-variant='raised'] {
114
113
  --_button: calc(var(--_inner-size) + var(--slotted-space-2, 0.25rem));
115
114
  --_inset: var(--slotted-space-4, 0.5rem);
116
115
  --_padding-block: calc(var(--_inset) + var(--slotted-space-2, 0.25rem));
@@ -123,7 +122,7 @@
123
122
  );
124
123
  }
125
124
 
126
- [data-ui='prompt-composer'][data-part='root'][data-variant='subtle'] {
125
+ [data-ui-prompt-composer][data-part-root][data-variant='subtle'] {
127
126
  background-color: var(
128
127
  --slotted-prompt-composer-subtle-background,
129
128
  var(--slotted-surface-sunken, Canvas)
@@ -141,7 +140,7 @@
141
140
  * script measures a line. The band below stays where the reader's thumb
142
141
  * expects it.
143
142
  */
144
- [data-ui='prompt-composer'] > [data-part='input'] {
143
+ [data-ui-prompt-composer] > [data-part-input] {
145
144
  appearance: none;
146
145
  background: transparent;
147
146
  border: 0;
@@ -171,11 +170,11 @@
171
170
  unicode-bidi: plaintext;
172
171
  }
173
172
 
174
- [data-ui='prompt-composer'] > [data-part='input']::placeholder {
173
+ [data-ui-prompt-composer] > [data-part-input]::placeholder {
175
174
  color: var(--slotted-prompt-composer-placeholder-color, var(--slotted-text-muted, GrayText));
176
175
  }
177
176
 
178
- [data-ui='prompt-composer'] > [data-part='input']::selection {
177
+ [data-ui-prompt-composer] > [data-part-input]::selection {
179
178
  background-color: var(
180
179
  --slotted-prompt-composer-selection-background,
181
180
  var(--slotted-tone-accent-surface, Highlight)
@@ -183,14 +182,13 @@
183
182
  }
184
183
 
185
184
  /* A band above the value gives it back the block padding it already has. */
186
- [data-ui='prompt-composer'] > [data-part='header'] + [data-part='input'] {
185
+ [data-ui-prompt-composer] > [data-part-header] + [data-part-input] {
187
186
  padding-block-start: var(--_inset);
188
187
  }
189
188
 
190
189
  /* The band below sits on the last line: the value keeps its own air above
191
190
  the text and hands the air below it to the band's inset. */
192
- [data-ui='prompt-composer'][data-variant='raised']
193
- > [data-part='input']:has(+ [data-part='footer']) {
191
+ [data-ui-prompt-composer][data-variant='raised'] > [data-part-input]:has(+ [data-part-footer]) {
194
192
  padding-block-end: var(--slotted-space-2, 0.25rem);
195
193
  }
196
194
 
@@ -201,7 +199,7 @@
201
199
  * does not: the send stays on the line, and a narrow composer gives up the
202
200
  * space between the tools first.
203
201
  */
204
- [data-ui='prompt-composer'] > :is([data-part='header'], [data-part='footer']) {
202
+ [data-ui-prompt-composer] > :is([data-part-header], [data-part-footer]) {
205
203
  --slotted-icon-size: var(--_icon-size);
206
204
  --slotted-control-inner-size: var(--_button);
207
205
 
@@ -212,19 +210,19 @@
212
210
  padding: var(--_inset);
213
211
  }
214
212
 
215
- [data-ui='prompt-composer'] > [data-part='header'] {
213
+ [data-ui-prompt-composer] > [data-part-header] {
216
214
  flex-wrap: wrap;
217
215
  padding-block-end: 0;
218
216
  }
219
217
 
220
218
  /* A strip of attachments is the width the band has and scrolls inside it;
221
219
  a flex item otherwise keeps its content's width and crosses the frame. */
222
- [data-ui='prompt-composer'] > [data-part='header'] > * {
220
+ [data-ui-prompt-composer] > [data-part-header] > * {
223
221
  max-inline-size: 100%;
224
222
  min-inline-size: 0;
225
223
  }
226
224
 
227
- [data-ui='prompt-composer'] > [data-part='footer'] {
225
+ [data-ui-prompt-composer] > [data-part-footer] {
228
226
  flex-wrap: nowrap;
229
227
  padding-block-start: 0;
230
228
  }
@@ -237,9 +235,9 @@
237
235
  * padded when named by their own words, the rule `text-field` set; round
238
236
  * in the chat composer, a pill when they carry words.
239
237
  */
240
- [data-ui='prompt-composer']
241
- > :is([data-part='header'], [data-part='footer'])
242
- > :is([data-part='action'], [data-part='attach']) {
238
+ [data-ui-prompt-composer]
239
+ > :is([data-part-header], [data-part-footer])
240
+ > :is([data-part-action], [data-part-attach], [data-part-dictate]) {
243
241
  align-items: center;
244
242
  appearance: none;
245
243
  background-color: transparent;
@@ -266,9 +264,9 @@
266
264
  -webkit-tap-highlight-color: transparent;
267
265
  }
268
266
 
269
- [data-ui='prompt-composer']
270
- > :is([data-part='header'], [data-part='footer'])
271
- > [data-part='action']:not([aria-label], [aria-labelledby]) {
267
+ [data-ui-prompt-composer]
268
+ > :is([data-part-header], [data-part-footer])
269
+ > [data-part-action]:not([aria-label], [aria-labelledby]) {
272
270
  color: var(--slotted-prompt-composer-action-label-color, var(--slotted-text, CanvasText));
273
271
  font-weight: var(--slotted-font-weight-medium, 500);
274
272
  padding-inline: var(--slotted-space-3, 0.375rem);
@@ -276,19 +274,19 @@
276
274
 
277
275
  /**
278
276
  * Words and a mark in one button — a country code over its chevron, a model
279
- * name, a notation. The mark is centred on the band the letters occupy, not
277
+ * name, a notation. The mark is centerd on the band the letters occupy, not
280
278
  * on the line box: the line box keeps room under the baseline for
281
- * descenders, so a box centred in it sits low beside the letters — every
279
+ * descenders, so a box centerd in it sits low beside the letters — every
282
280
  * chevron in these buttons did. The rule is the briefing's (_A mark beside a
283
281
  * line of text is aligned to the text_), here in a grid: items share the
284
282
  * baseline, the mark's synthesized baseline is its bottom edge, a negative
285
283
  * start margin takes back the height it would add above the letters, and a
286
- * translate puts its centre at `(1cap + 1ex) / 4` above the baseline — the
287
- * midpoint of the capitals' and the lowercase letters' own centres.
284
+ * translate puts its center at `(1cap + 1ex) / 4` above the baseline — the
285
+ * midpoint of the capitals' and the lowercase letters' own centers.
288
286
  */
289
- [data-ui='prompt-composer']
290
- > :is([data-part='header'], [data-part='footer'])
291
- > [data-part='action']:not([aria-label], [aria-labelledby]) {
287
+ [data-ui-prompt-composer]
288
+ > :is([data-part-header], [data-part-footer])
289
+ > [data-part-action]:not([aria-label], [aria-labelledby]) {
292
290
  align-content: center;
293
291
  align-items: baseline;
294
292
  display: inline-grid;
@@ -296,75 +294,91 @@
296
294
  justify-content: center;
297
295
  }
298
296
 
299
- [data-ui='prompt-composer']
300
- > :is([data-part='header'], [data-part='footer'])
301
- > [data-part='action']:not([aria-label], [aria-labelledby])
302
- > [data-ui='icon'] {
297
+ [data-ui-prompt-composer]
298
+ > :is([data-part-header], [data-part-footer])
299
+ > [data-part-action]:not([aria-label], [aria-labelledby])
300
+ > [data-ui-icon] {
303
301
  margin-block-start: calc((1cap + 1ex) / 4 - var(--_icon-size) / 2);
304
302
  translate: 0 calc(var(--_icon-size) / 2 - (1cap + 1ex) / 4);
305
303
  }
306
304
 
307
305
  /* A pill carries its words a step further from its round ends. */
308
- [data-ui='prompt-composer'][data-variant='raised']
309
- > :is([data-part='header'], [data-part='footer'])
310
- > [data-part='action']:not([aria-label], [aria-labelledby]) {
306
+ [data-ui-prompt-composer][data-variant='raised']
307
+ > :is([data-part-header], [data-part-footer])
308
+ > [data-part-action]:not([aria-label], [aria-labelledby]) {
311
309
  padding-inline: var(--slotted-space-4, 0.5rem);
312
310
  }
313
311
 
314
312
  /* The target, recovered outside the paint: 24 pixels on a mouse, 44 on a
315
313
  finger, and never across the edge two buttons share. */
316
- [data-ui='prompt-composer']
317
- > :is([data-part='header'], [data-part='footer'])
318
- > :is([data-part='action'], [data-part='attach'], [data-part='submit'])::after {
314
+ [data-ui-prompt-composer]
315
+ > :is([data-part-header], [data-part-footer])
316
+ > :is([data-part-action], [data-part-attach], [data-part-dictate], [data-part-submit])::after {
319
317
  content: '';
320
318
  inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
321
319
  position: absolute;
322
320
  }
323
321
 
324
322
  @media (pointer: coarse) {
325
- [data-ui='prompt-composer']
326
- > :is([data-part='header'], [data-part='footer'])
327
- > :is([data-part='action'], [data-part='attach'], [data-part='submit'])::after {
323
+ [data-ui-prompt-composer]
324
+ > :is([data-part-header], [data-part-footer])
325
+ > :is(
326
+ [data-part-action],
327
+ [data-part-attach],
328
+ [data-part-dictate],
329
+ [data-part-submit]
330
+ )::after {
328
331
  inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
329
332
  }
330
333
 
331
- [data-ui='prompt-composer']
332
- > :is([data-part='header'], [data-part='footer'])
333
- > :is([data-part='action'], [data-part='attach']):has(+ *)::after {
334
+ [data-ui-prompt-composer]
335
+ > :is([data-part-header], [data-part-footer])
336
+ > :is([data-part-action], [data-part-attach], [data-part-dictate]):has(+ *)::after {
334
337
  inset-inline-end: 0;
335
338
  }
336
339
 
337
- [data-ui='prompt-composer']
338
- > :is([data-part='header'], [data-part='footer'])
340
+ [data-ui-prompt-composer]
341
+ > :is([data-part-header], [data-part-footer])
339
342
  > *
340
- + :is([data-part='action'], [data-part='attach'], [data-part='submit'])::after {
343
+ + :is(
344
+ [data-part-action],
345
+ [data-part-attach],
346
+ [data-part-dictate],
347
+ [data-part-submit]
348
+ )::after {
341
349
  inset-inline-start: 0;
342
350
  }
343
351
  }
344
352
 
345
- [data-ui='prompt-composer']
346
- > :is([data-part='header'], [data-part='footer'])
347
- > :is([data-part='action'], [data-part='attach']):hover:not(:disabled, [aria-expanded='true']) {
353
+ [data-ui-prompt-composer]
354
+ > :is([data-part-header], [data-part-footer])
355
+ > :is([data-part-action], [data-part-attach], [data-part-dictate]):hover:not(
356
+ :disabled,
357
+ [aria-expanded='true'],
358
+ [aria-pressed='true']
359
+ ) {
348
360
  background-color: var(
349
361
  --slotted-prompt-composer-action-hover-background,
350
362
  var(--slotted-tone-secondary-subtle-hover)
351
363
  );
352
364
  }
353
365
 
354
- [data-ui='prompt-composer']
355
- > :is([data-part='header'], [data-part='footer'])
356
- > :is([data-part='action'], [data-part='attach']):is(:active, [aria-expanded='true']):not(
357
- :disabled
358
- ) {
366
+ [data-ui-prompt-composer]
367
+ > :is([data-part-header], [data-part-footer])
368
+ > :is([data-part-action], [data-part-attach], [data-part-dictate]):is(
369
+ :active,
370
+ [aria-expanded='true'],
371
+ [aria-pressed='true']
372
+ ):not(:disabled) {
359
373
  background-color: var(
360
374
  --slotted-prompt-composer-action-active-background,
361
375
  var(--slotted-tone-secondary-subtle-active)
362
376
  );
363
377
  }
364
378
 
365
- [data-ui='prompt-composer']
366
- > :is([data-part='header'], [data-part='footer'])
367
- > :is([data-part='action'], [data-part='attach']):disabled {
379
+ [data-ui-prompt-composer]
380
+ > :is([data-part-header], [data-part-footer])
381
+ > :is([data-part-action], [data-part-attach], [data-part-dictate]):disabled {
368
382
  color: var(--slotted-disabled-foreground);
369
383
  cursor: not-allowed;
370
384
  }
@@ -377,7 +391,7 @@
377
391
  * The mark and the ring share one grid cell, so the stop square stands in
378
392
  * the middle of the ring that says an answer is still arriving.
379
393
  */
380
- [data-ui='prompt-composer'] > [data-part='footer'] > [data-part='submit'] {
394
+ [data-ui-prompt-composer] > [data-part-footer] > [data-part-submit] {
381
395
  /* Alone, the ring is the glyph's size and stands where the arrow stood;
382
396
  around the stop square it grows to the disc (below). */
383
397
  --slotted-spinner-size: var(--_icon-size);
@@ -412,15 +426,15 @@
412
426
  -webkit-tap-highlight-color: transparent;
413
427
  }
414
428
 
415
- [data-ui='prompt-composer'] > [data-part='footer'] > [data-part='submit'] > * {
429
+ [data-ui-prompt-composer] > [data-part-footer] > [data-part-submit] > * {
416
430
  grid-area: 1 / 1;
417
431
  }
418
432
 
419
433
  /* Named by its own word — Comentar, Publicar — the send is a padded pill at
420
434
  the same height; named by aria-label it is the round mark. */
421
- [data-ui='prompt-composer']
422
- > [data-part='footer']
423
- > [data-part='submit']:not([aria-label], [aria-labelledby]) {
435
+ [data-ui-prompt-composer]
436
+ > [data-part-footer]
437
+ > [data-part-submit]:not([aria-label], [aria-labelledby]) {
424
438
  border-radius: var(--_action-radius);
425
439
  font: inherit;
426
440
  font-weight: var(--slotted-font-weight-medium, 500);
@@ -429,7 +443,7 @@
429
443
  padding-inline: var(--slotted-space-5, 0.75rem);
430
444
  }
431
445
 
432
- [data-ui='prompt-composer'] > [data-part='footer'] > [data-part='submit']:hover:not(:disabled) {
446
+ [data-ui-prompt-composer] > [data-part-footer] > [data-part-submit]:hover:not(:disabled) {
433
447
  background-color: var(
434
448
  --slotted-prompt-composer-submit-hover-background,
435
449
  var(--slotted-tone-accent-solid-hover, Highlight)
@@ -441,16 +455,16 @@
441
455
  * the button going in; the ground darkens a further step. A padded send
442
456
  * holds its words, so it takes the ground alone (R7).
443
457
  */
444
- [data-ui='prompt-composer'] > [data-part='footer'] > [data-part='submit']:active:not(:disabled) {
458
+ [data-ui-prompt-composer] > [data-part-footer] > [data-part-submit]:active:not(:disabled) {
445
459
  background-color: var(
446
460
  --slotted-prompt-composer-submit-active-background,
447
461
  var(--slotted-tone-accent-solid-active, Highlight)
448
462
  );
449
463
  }
450
464
 
451
- [data-ui='prompt-composer']
452
- > [data-part='footer']
453
- > [data-part='submit']:is([aria-label], [aria-labelledby]):active:not(:disabled) {
465
+ [data-ui-prompt-composer]
466
+ > [data-part-footer]
467
+ > [data-part-submit]:is([aria-label], [aria-labelledby]):active:not(:disabled) {
454
468
  scale: 0.9;
455
469
  }
456
470
 
@@ -459,23 +473,23 @@
459
473
  * over it: a hint of the movement the press will start, and nothing else
460
474
  * in the frame moves.
461
475
  */
462
- [data-ui='prompt-composer']
463
- > [data-part='footer']
464
- > [data-part='submit']
465
- > [data-ui='icon']:has([data-glyph='arrow-up']) {
476
+ [data-ui-prompt-composer]
477
+ > [data-part-footer]
478
+ > [data-part-submit]
479
+ > [data-ui-icon]:has([data-glyph='arrow-up']) {
466
480
  transition: translate var(--slotted-duration-short) var(--slotted-easing-standard);
467
481
  }
468
482
 
469
- [data-ui='prompt-composer']
470
- > [data-part='footer']
471
- > [data-part='submit']:hover:not(:disabled)
472
- > [data-ui='icon']:has([data-glyph='arrow-up']) {
483
+ [data-ui-prompt-composer]
484
+ > [data-part-footer]
485
+ > [data-part-submit]:hover:not(:disabled)
486
+ > [data-ui-icon]:has([data-glyph='arrow-up']) {
473
487
  translate: 0 calc(var(--slotted-border-width-thin, 1px) * -1);
474
488
  }
475
489
 
476
490
  /* Nothing to send: a quiet disc in the disabled ground, the arrow still
477
491
  legible, so the reader sees where the send will be before it wakes. */
478
- [data-ui='prompt-composer'] > [data-part='footer'] > [data-part='submit']:disabled {
492
+ [data-ui-prompt-composer] > [data-part-footer] > [data-part-submit]:disabled {
479
493
  background-color: var(
480
494
  --slotted-prompt-composer-submit-disabled-background,
481
495
  var(--slotted-disabled-background)
@@ -486,9 +500,7 @@
486
500
 
487
501
  /* While the request travels the button is busy, not unavailable: the ring
488
502
  stands where the arrow stood and the ground keeps the accent. */
489
- [data-ui='prompt-composer'][data-status='submitted']
490
- > [data-part='footer']
491
- > [data-part='submit'] {
503
+ [data-ui-prompt-composer][data-status='submitted'] > [data-part-footer] > [data-part-submit] {
492
504
  background-color: var(
493
505
  --slotted-prompt-composer-submit-background,
494
506
  var(--slotted-tone-accent-solid, Highlight)
@@ -502,9 +514,7 @@
502
514
 
503
515
  /* The ring around the stop square is drawn inside the disc, a stroke in
504
516
  from its edge, so the disc keeps its outline. */
505
- [data-ui='prompt-composer'][data-status='streaming']
506
- > [data-part='footer']
507
- > [data-part='submit'] {
517
+ [data-ui-prompt-composer][data-status='streaming'] > [data-part-footer] > [data-part-submit] {
508
518
  --slotted-spinner-size: calc(var(--_button) - 2 * var(--slotted-space-1, 2px));
509
519
  --slotted-icon-size: calc(var(--_icon-size) * 3 / 4);
510
520
  }
@@ -515,10 +525,10 @@
515
525
  * transparent, on the entering curve. The old mark is gone in the same
516
526
  * frame.
517
527
  */
518
- [data-ui='prompt-composer']
519
- > [data-part='footer']
520
- > [data-part='submit']
521
- > :is([data-ui='icon'], [data-ui='spinner']) {
528
+ [data-ui-prompt-composer]
529
+ > [data-part-footer]
530
+ > [data-part-submit]
531
+ > :is([data-ui-icon], [data-ui-spinner]) {
522
532
  transition:
523
533
  opacity var(--slotted-duration-short) var(--slotted-easing-enter),
524
534
  scale var(--slotted-duration-short) var(--slotted-easing-enter),
@@ -526,10 +536,10 @@
526
536
  }
527
537
 
528
538
  @starting-style {
529
- [data-ui='prompt-composer']
530
- > [data-part='footer']
531
- > [data-part='submit']
532
- > :is([data-ui='icon'], [data-ui='spinner']) {
539
+ [data-ui-prompt-composer]
540
+ > [data-part-footer]
541
+ > [data-part-submit]
542
+ > :is([data-ui-icon], [data-ui-spinner]) {
533
543
  opacity: 0;
534
544
  scale: 0.8;
535
545
  }
@@ -539,21 +549,21 @@
539
549
  inner control does: four pixels from the frame, an outward ring would
540
550
  land on the frame's edge. The solid send keeps it outside, where the
541
551
  ring stands against the frame's ground rather than against the accent. */
542
- [data-ui='prompt-composer']
543
- > :is([data-part='header'], [data-part='footer'])
544
- > :is([data-part='action'], [data-part='attach']):focus-visible {
552
+ [data-ui-prompt-composer]
553
+ > :is([data-part-header], [data-part-footer])
554
+ > :is([data-part-action], [data-part-attach], [data-part-dictate]):focus-visible {
545
555
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
546
556
  outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
547
557
  }
548
558
 
549
- [data-ui='prompt-composer'] > [data-part='footer'] > [data-part='submit']:focus-visible {
559
+ [data-ui-prompt-composer] > [data-part-footer] > [data-part-submit]:focus-visible {
550
560
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
551
561
  outline-offset: var(--slotted-focus-ring-offset, 2px);
552
562
  }
553
563
 
554
564
  /* ── States of the frame ─────────────────────────────────────────────── */
555
565
 
556
- [data-ui='prompt-composer'][data-part='root']:hover:not([data-disabled]):not([data-readonly]):not(
566
+ [data-ui-prompt-composer][data-part-root]:hover:not([data-disabled]):not([data-readonly]):not(
557
567
  [data-invalid]
558
568
  ):not([data-drop-target]) {
559
569
  border-color: var(
@@ -564,15 +574,152 @@
564
574
 
565
575
  /**
566
576
  * Writing lifts the surface: the ring the theme draws for focus, and the
567
- * shadow one step deeper — in a form the resting lift recoloured in the
577
+ * shadow one step deeper — in a form the resting lift recolored in the
568
578
  * ring's ink, the rule every framed control follows; in the chat composer
569
579
  * the theme's large shadow, because a surface that is being written on
570
580
  * comes forward.
571
581
  */
572
- [data-ui='prompt-composer'][data-part='root']:has(> [data-part='input']:focus-visible) {
582
+ [data-ui-prompt-composer][data-part-root]:has(> [data-part-input]:focus-visible) {
573
583
  box-shadow: var(--_lift-focus);
574
584
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
575
- outline-offset: var(--slotted-focus-ring-offset, 2px);
585
+ outline-offset: var(--slotted-control-focus-ring-offset, var(--slotted-focus-ring-offset, 2px));
586
+ }
587
+
588
+ /* ── Emphasis: the ring ──────────────────────────────────────────────
589
+ *
590
+ * An AI input marked by a ring of turning hues and a soft glow, as Gemini
591
+ * and AI Studio mark theirs. The ring replaces the frame's border, its focus
592
+ * outline and its raised shadow; the controls inside keep their own focus
593
+ * rings. Two marks the binding draws, both `aria-hidden`: the ring, a band
594
+ * the width of `--slotted-prompt-composer-ring-width` cut out of a turning
595
+ * conic gradient, and the glow, the same gradient blurred under the frame's
596
+ * surface, so only its halo outside the frame shows. Each turns a square larger than its box by a
597
+ * `transform`, which the compositor runs at a constant speed.
598
+ */
599
+ [data-ui-prompt-composer][data-part-root][data-emphasis='ring'] {
600
+ --_ring-width: var(
601
+ --slotted-prompt-composer-ring-width,
602
+ var(--slotted-border-width-thick, 2px)
603
+ );
604
+ --_ring-reach: var(--slotted-prompt-composer-ring-glow-reach, var(--slotted-space-8, 1.5rem));
605
+ --_glow: var(--slotted-prompt-composer-ring-glow-opacity, 0.3);
606
+
607
+ border-color: transparent;
608
+ box-shadow: none;
609
+ isolation: isolate;
610
+ }
611
+
612
+ [data-ui-prompt-composer][data-part-root][data-emphasis='ring']:has(
613
+ > [data-part-input]:focus-visible
614
+ ) {
615
+ --_glow: var(--slotted-prompt-composer-ring-glow-opacity-focus, 0.55);
616
+
617
+ box-shadow: none;
618
+ outline: none;
619
+ }
620
+
621
+ [data-ui-prompt-composer][data-part-root][data-emphasis='ring']:is(
622
+ [data-loading],
623
+ [data-status='submitted'],
624
+ [data-status='streaming']
625
+ ) {
626
+ --_glow: var(--slotted-prompt-composer-ring-glow-opacity-busy, 0.75);
627
+ }
628
+
629
+ [data-ui-prompt-composer] > :is([data-part-ring], [data-part-glow]) {
630
+ border-radius: var(--_radius);
631
+ container-type: size;
632
+ overflow: hidden;
633
+ pointer-events: none;
634
+ position: absolute;
635
+ }
636
+
637
+ [data-ui-prompt-composer] > [data-part-ring] {
638
+ inset: calc(-1 * var(--slotted-control-border-width, 1px));
639
+ mask:
640
+ linear-gradient(#000 0 0) content-box exclude,
641
+ linear-gradient(#000 0 0);
642
+ padding: var(--_ring-width);
643
+ z-index: 1;
644
+ }
645
+
646
+ /**
647
+ * The glow is the frame's own box, blurred: the halo is the blur's ink, which
648
+ * fades to nothing past the edge, and ink adds no overflow to a scrolling
649
+ * ancestor. A box the reach larger, cut by a mask, gave both a hard edge and
650
+ * that overflow. The frame's surface is restated on `::after`, which paints
651
+ * above the glow, so the halo shows outside the frame only.
652
+ */
653
+ [data-ui-prompt-composer] > [data-part-glow] {
654
+ filter: blur(calc(var(--_ring-reach) / 2));
655
+ inset: calc(-1 * var(--slotted-control-border-width, 1px));
656
+ opacity: var(--_glow);
657
+ transition: opacity var(--slotted-duration-medium) var(--slotted-easing-standard);
658
+ z-index: -1;
659
+ }
660
+
661
+ [data-ui-prompt-composer][data-part-root][data-emphasis='ring']::after {
662
+ background-color: inherit;
663
+ border-radius: inherit;
664
+ content: '';
665
+ inset: 0;
666
+ pointer-events: none;
667
+ position: absolute;
668
+ z-index: -1;
669
+ }
670
+
671
+ [data-ui-prompt-composer] > :is([data-part-ring], [data-part-glow])::before {
672
+ animation: slotted-prompt-composer-turn
673
+ var(--slotted-prompt-composer-ring-duration, var(--slotted-duration-loop-slow)) linear
674
+ infinite;
675
+ aspect-ratio: 1;
676
+ background: conic-gradient(
677
+ var(
678
+ --slotted-prompt-composer-ring-colors,
679
+ var(--slotted-data-1),
680
+ var(--slotted-data-3),
681
+ var(--slotted-data-5),
682
+ var(--slotted-data-2),
683
+ var(--slotted-data-1)
684
+ )
685
+ );
686
+ content: '';
687
+ inline-size: 150cqmax;
688
+ inset-block-start: 50%;
689
+ inset-inline-start: 50%;
690
+ position: absolute;
691
+ transform: translate(-50%, -50%) rotate(0turn);
692
+ }
693
+
694
+ @keyframes slotted-prompt-composer-turn {
695
+ to {
696
+ transform: translate(-50%, -50%) rotate(1turn);
697
+ }
698
+ }
699
+
700
+ @media (prefers-reduced-motion: reduce) {
701
+ [data-ui-prompt-composer] > :is([data-part-ring], [data-part-glow])::before {
702
+ animation: none;
703
+ }
704
+ }
705
+
706
+ /* The system's colors draw no gradient: the marks go, and the frame's own
707
+ border and focus outline return. */
708
+ @media (forced-colors: active) {
709
+ [data-ui-prompt-composer] > :is([data-part-ring], [data-part-glow]) {
710
+ display: none;
711
+ }
712
+
713
+ [data-ui-prompt-composer][data-part-root][data-emphasis='ring'] {
714
+ border-color: ButtonBorder;
715
+ }
716
+
717
+ [data-ui-prompt-composer][data-part-root][data-emphasis='ring']:has(
718
+ > [data-part-input]:focus-visible
719
+ ) {
720
+ outline: var(--slotted-focus-ring-width, 2px) solid Highlight;
721
+ outline-offset: var(--slotted-focus-ring-offset, 2px);
722
+ }
576
723
  }
577
724
 
578
725
  /**
@@ -583,13 +730,13 @@
583
730
  * moment. The dashed edge is a pseudo-element rather than an outline: the
584
731
  * outline is the focus ring's, and the two can be on at once.
585
732
  */
586
- [data-ui='prompt-composer'][data-part='root'] {
733
+ [data-ui-prompt-composer][data-part-root] {
587
734
  position: relative;
588
735
  }
589
736
 
590
- [data-ui='prompt-composer'][data-part='root']::before {
737
+ [data-ui-prompt-composer][data-part-root]::before {
591
738
  /* Unthemed, the dashed edge disappears rather than shouting in a system
592
- colour; the wash and the frame's edge still say where the drop lands. */
739
+ color; the wash and the frame's edge still say where the drop lands. */
593
740
  border: var(--slotted-border-width-medium, 1.5px) dashed
594
741
  var(
595
742
  --slotted-prompt-composer-drop-border-color,
@@ -606,12 +753,12 @@
606
753
  transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
607
754
  }
608
755
 
609
- [data-ui='prompt-composer'][data-part='root'][data-drop-target]::before {
756
+ [data-ui-prompt-composer][data-part-root][data-drop-target]::before {
610
757
  opacity: 1;
611
758
  transition-timing-function: var(--slotted-easing-enter);
612
759
  }
613
760
 
614
- [data-ui='prompt-composer'][data-part='root'][data-drop-target] {
761
+ [data-ui-prompt-composer][data-part-root][data-drop-target] {
615
762
  background-color: var(
616
763
  --slotted-prompt-composer-drop-background,
617
764
  var(--slotted-tone-accent-surface, Canvas)
@@ -622,7 +769,7 @@
622
769
  );
623
770
  }
624
771
 
625
- [data-ui='prompt-composer'][data-part='root'][data-invalid] {
772
+ [data-ui-prompt-composer][data-part-root][data-invalid] {
626
773
  --slotted-focus-ring-color: var(
627
774
  --slotted-prompt-composer-invalid-focus-ring-color,
628
775
  var(--slotted-focus-ring-color-invalid, Highlight)
@@ -639,14 +786,14 @@
639
786
  }
640
787
 
641
788
  /*
642
- * Width as well as colour (WCAG 1.4.1), the edge `text-field` draws: in
789
+ * Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
643
790
  * `high-contrast` the danger border is the resting edge's black. It is a
644
791
  * border on a box laid over the frame's padding box rather than a shadow on
645
792
  * the frame, so the frame keeps its own elevation at rest and under focus —
646
- * the large one in `raised` — and forced colours, which remove shadows, keep
793
+ * the large one in `raised` — and forced colors, which remove shadows, keep
647
794
  * a border. Nothing moves: the box is out of flow.
648
795
  */
649
- [data-ui='prompt-composer'][data-part='root'][data-invalid]::after {
796
+ [data-ui-prompt-composer][data-part-root][data-invalid]::after {
650
797
  border: var(--_invalid-edge-width) solid
651
798
  var(--slotted-prompt-composer-invalid-border-color, var(--slotted-tone-danger-border));
652
799
  border-radius: max(0px, calc(var(--_radius) - var(--slotted-control-border-width, 1px)));
@@ -656,7 +803,7 @@
656
803
  position: absolute;
657
804
  }
658
805
 
659
- [data-ui='prompt-composer'][data-part='root'][data-readonly] {
806
+ [data-ui-prompt-composer][data-part-root][data-readonly] {
660
807
  background-color: var(
661
808
  --slotted-prompt-composer-readonly-background,
662
809
  var(--slotted-tone-secondary-subtle-hover)
@@ -664,7 +811,7 @@
664
811
  cursor: default;
665
812
  }
666
813
 
667
- [data-ui='prompt-composer'][data-part='root'][data-disabled] {
814
+ [data-ui-prompt-composer][data-part-root][data-disabled] {
668
815
  background-color: var(
669
816
  --slotted-prompt-composer-disabled-background,
670
817
  var(--slotted-disabled-background)