@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
@@ -31,6 +31,7 @@
31
31
  "--slotted-disabled-background",
32
32
  "--slotted-disabled-border",
33
33
  "--slotted-disabled-foreground",
34
+ "--slotted-duration-medium",
34
35
  "--slotted-duration-short",
35
36
  "--slotted-easing-enter",
36
37
  "--slotted-focus-ring-color",
@@ -39,7 +40,6 @@
39
40
  "--slotted-radius-full",
40
41
  "--slotted-radius-md",
41
42
  "--slotted-radius-sm",
42
- "--slotted-radius-xs",
43
43
  "--slotted-shadow-xs",
44
44
  "--slotted-space-1",
45
45
  "--slotted-space-2",
@@ -63,8 +63,14 @@
63
63
  "--slotted-tabs-hover-background",
64
64
  "--slotted-tabs-hover-color",
65
65
  "--slotted-tabs-hover-marker-color",
66
+ "--slotted-tabs-hover-marker-opacity",
66
67
  "--slotted-tabs-list-gap",
67
68
  "--slotted-tabs-marker-color",
69
+ "--slotted-tabs-marker-easing",
70
+ "--slotted-tabs-marker-inset",
71
+ "--slotted-tabs-marker-offset",
72
+ "--slotted-tabs-marker-radius",
73
+ "--slotted-tabs-marker-size",
68
74
  "--slotted-tabs-scroll-color",
69
75
  "--slotted-tabs-selected-color",
70
76
  "--slotted-tabs-track-color",
package/src/tag/tag.css CHANGED
@@ -23,10 +23,10 @@
23
23
  * disagrees with the type it contains and no density can leave one of its
24
24
  * controls unhittable.
25
25
  */
26
- [data-ui='tag'][data-part='root'] {
26
+ [data-ui-tag][data-part-root] {
27
27
  /**
28
28
  * Tone. The neutral fill is the tone's `solid-hover` step rather than its
29
- * `solid` one, for the reason `badge` recorded: `solid` is the colour of
29
+ * `solid` one, for the reason `badge` recorded: `solid` is the color of
30
30
  * the surface itself in all three schemes, so a filled neutral chip and a
31
31
  * tinted one were the same rectangle and neither read as filled.
32
32
  */
@@ -43,7 +43,7 @@
43
43
  * What a filled chip draws around itself, and for four of the five tones
44
44
  * the answer is its own fill: the edge is the ground, so the chip is one
45
45
  * shape. `secondary` overrides it below, because its fill is the page's
46
- * own colour in `high-contrast` and a chip with neither edge nor contrast
46
+ * own color in `high-contrast` and a chip with neither edge nor contrast
47
47
  * is a run of text.
48
48
  */
49
49
  --_edge: var(--_solid);
@@ -65,10 +65,11 @@
65
65
  * `tags-input` set it from the room their frame has left); and the edge,
66
66
  * so a host can mark one chip — the one that answered a duplicate —
67
67
  * without reaching into this sheet. Both are read here, once, and a host
68
- * writes `[data-ui='tag']` nowhere.
68
+ * writes `[data-ui-tag]` nowhere. The inline inset is a theme's: the room
69
+ * between the edge and the text at every size, which a host leaves alone.
69
70
  */
70
71
  --_inset-block: var(--slotted-tag-inset-block, var(--slotted-space-2, 0.25rem));
71
- --_inset-inline: var(--slotted-space-4, 0.5rem);
72
+ --_inset-inline: var(--slotted-tag-inset-inline, var(--slotted-space-4, 0.5rem));
72
73
  --_gap: var(--slotted-space-2, 0.25rem);
73
74
 
74
75
  --_line-height: var(--slotted-line-height-xs, 1.4);
@@ -131,7 +132,10 @@
131
132
  */
132
133
  max-inline-size: 100%;
133
134
  min-block-size: var(--_block-size);
134
- /* Written inside a sentence, a tag sits on the text's centre. */
135
+ /* A flex item keeps min-inline-size: auto and never shrinks below its
136
+ text, so the label's ellipsis would never apply in a row. */
137
+ min-inline-size: 0;
138
+ /* Written inside a sentence, a tag sits on the text's center. */
135
139
  vertical-align: middle;
136
140
  white-space: nowrap;
137
141
  }
@@ -147,21 +151,21 @@
147
151
  * the sheet that was missing it, and the two hosts that collapse a row of
148
152
  * chips both write the attribute and neither could have known.
149
153
  */
150
- [data-ui='tag'][data-part='root'][hidden] {
154
+ [data-ui-tag][data-part-root][hidden] {
151
155
  display: none;
152
156
  }
153
157
 
154
- /* ── Tone: which of the five semantic colours the tag speaks in ────────── */
158
+ /* ── Tone: which of the five semantic colors the tag speaks in ────────── */
155
159
 
156
160
  /**
157
- * The one tone whose fill is the colour of the page. It keeps the tone's own
161
+ * The one tone whose fill is the color of the page. It keeps the tone's own
158
162
  * border, where the other four let their fill be their edge.
159
163
  */
160
- [data-ui='tag'][data-part='root'][data-tone='secondary'] {
164
+ [data-ui-tag][data-part-root][data-tone='secondary'] {
161
165
  --_edge: var(--_border);
162
166
  }
163
167
 
164
- [data-ui='tag'][data-part='root'][data-tone='accent'] {
168
+ [data-ui-tag][data-part-root][data-tone='accent'] {
165
169
  --_solid: var(--slotted-tone-accent-solid);
166
170
  --_solid-hover: var(--slotted-tone-accent-solid-hover);
167
171
  --_solid-active: var(--slotted-tone-accent-solid-active);
@@ -173,7 +177,7 @@
173
177
  --_text: var(--slotted-tone-accent-text);
174
178
  }
175
179
 
176
- [data-ui='tag'][data-part='root'][data-tone='success'] {
180
+ [data-ui-tag][data-part-root][data-tone='success'] {
177
181
  --_solid: var(--slotted-tone-success-solid);
178
182
  --_solid-hover: var(--slotted-tone-success-solid-hover);
179
183
  --_solid-active: var(--slotted-tone-success-solid-active);
@@ -185,7 +189,19 @@
185
189
  --_text: var(--slotted-tone-success-text);
186
190
  }
187
191
 
188
- [data-ui='tag'][data-part='root'][data-tone='warning'] {
192
+ [data-ui-tag][data-part-root][data-tone='info'] {
193
+ --_solid: var(--slotted-tone-info-solid);
194
+ --_solid-hover: var(--slotted-tone-info-solid-hover);
195
+ --_solid-active: var(--slotted-tone-info-solid-active);
196
+ --_on-solid: var(--slotted-tone-info-on-solid);
197
+ --_surface: var(--slotted-tone-info-surface);
198
+ --_subtle-hover: var(--slotted-tone-info-subtle-hover);
199
+ --_subtle-active: var(--slotted-tone-info-subtle-active);
200
+ --_border: var(--slotted-tag-border-color, var(--slotted-tone-info-border));
201
+ --_text: var(--slotted-tone-info-text);
202
+ }
203
+
204
+ [data-ui-tag][data-part-root][data-tone='warning'] {
189
205
  --_solid: var(--slotted-tone-warning-solid);
190
206
  --_solid-hover: var(--slotted-tone-warning-solid-hover);
191
207
  --_solid-active: var(--slotted-tone-warning-solid-active);
@@ -197,7 +213,7 @@
197
213
  --_text: var(--slotted-tone-warning-text);
198
214
  }
199
215
 
200
- [data-ui='tag'][data-part='root'][data-tone='danger'] {
216
+ [data-ui-tag][data-part-root][data-tone='danger'] {
201
217
  --_solid: var(--slotted-tone-danger-solid);
202
218
  --_solid-hover: var(--slotted-tone-danger-solid-hover);
203
219
  --_solid-active: var(--slotted-tone-danger-solid-active);
@@ -218,32 +234,39 @@
218
234
  * with nothing behind it. `soft` keeps its edge because in `high-contrast`
219
235
  * every tone surface collapses to the page's own white, and there it
220
236
  * converges with `outline` — which is what a high-contrast scheme is for.
237
+ * `dashed` is `outline` with the edge drawn in dashes; a selected tag fills,
238
+ * and its edge is solid again.
221
239
  */
222
240
 
223
- [data-ui='tag'][data-part='root'][data-variant='solid'] {
241
+ [data-ui-tag][data-part-root][data-variant='solid'] {
224
242
  background-color: var(--_solid, ButtonFace);
225
243
  border-color: var(--_edge, ButtonFace);
226
244
  color: var(--_on-solid, ButtonText);
227
245
  }
228
246
 
229
- [data-ui='tag'][data-part='root'][data-variant='soft'] {
247
+ [data-ui-tag][data-part-root][data-variant='soft'] {
230
248
  background-color: var(--_surface, ButtonFace);
231
249
  border-color: var(--_border, ButtonBorder);
232
250
  color: var(--_text, ButtonText);
233
251
  }
234
252
 
235
- [data-ui='tag'][data-part='root'][data-variant='outline'] {
253
+ [data-ui-tag][data-part-root][data-variant='outline'],
254
+ [data-ui-tag][data-part-root][data-variant='dashed'] {
236
255
  background-color: transparent;
237
256
  border-color: var(--_border, ButtonBorder);
238
257
  color: var(--_text, ButtonText);
239
258
  }
240
259
 
260
+ [data-ui-tag][data-part-root][data-variant='dashed']:not([data-selected]) {
261
+ border-style: dashed;
262
+ }
263
+
241
264
  /* ── Size ─────────────────────────────────────────────────────────────── */
242
265
 
243
- [data-ui='tag'][data-part='root'][data-size='sm'] {
266
+ [data-ui-tag][data-part-root][data-size='sm'] {
244
267
  --_font-size: var(--slotted-control-font-size-sm, 12px);
245
268
  --_inset-block: var(--slotted-tag-inset-block, var(--slotted-space-1, 0.125rem));
246
- --_inset-inline: var(--slotted-space-3, 0.375rem);
269
+ --_inset-inline: var(--slotted-tag-inset-inline, var(--slotted-space-3, 0.375rem));
247
270
  }
248
271
 
249
272
  /**
@@ -252,18 +275,18 @@
252
275
  * the same reason: a 12px chip and a 13px chip should not carry visibly
253
276
  * different glyphs.
254
277
  */
255
- [data-ui='tag'][data-part='root'][data-size='lg'] {
278
+ [data-ui-tag][data-part-root][data-size='lg'] {
256
279
  --_font-size: var(--slotted-control-font-size-lg, 14px);
257
280
  --_icon-size: var(--slotted-control-icon-size-md, 16px);
258
281
  --_inner-size: var(--slotted-control-inner-size-md, 24px);
259
282
  --_inset-block: var(--slotted-tag-inset-block, var(--slotted-space-3, 0.375rem));
260
- --_inset-inline: var(--slotted-space-5, 0.75rem);
283
+ --_inset-inline: var(--slotted-tag-inset-inline, var(--slotted-space-5, 0.75rem));
261
284
  --_gap: var(--slotted-space-3, 0.375rem);
262
285
  }
263
286
 
264
287
  /* ── Shape ────────────────────────────────────────────────────────────── */
265
288
 
266
- [data-ui='tag'][data-part='root'][data-shape='square'] {
289
+ [data-ui-tag][data-part-root][data-shape='square'] {
267
290
  --_radius: var(--slotted-radius-sm, 4px);
268
291
  }
269
292
 
@@ -275,7 +298,7 @@
275
298
  * ground around itself. It is a `span` when the tag does nothing and the
276
299
  * element its member names when it does.
277
300
  */
278
- [data-ui='tag'] [data-part='body'] {
301
+ [data-ui-tag] [data-part-body] {
279
302
  align-items: center;
280
303
  /* The root paints the ground; the body paints only its own states. */
281
304
  background-color: transparent;
@@ -304,25 +327,25 @@
304
327
  }
305
328
 
306
329
  /* The only child rounds both ends, which is every tag that cannot be removed. */
307
- [data-ui='tag'] [data-part='body']:last-child {
330
+ [data-ui-tag] [data-part-body]:last-child {
308
331
  border-end-end-radius: var(--_inner-radius);
309
332
  border-start-end-radius: var(--_inner-radius);
310
333
  }
311
334
 
312
335
  /**
313
336
  * A body followed by a remove control gives back most of its trailing inset.
314
- * The control is a square as tall as the chip, so its own centring already
337
+ * The control is a square as tall as the chip, so its own centering already
315
338
  * puts seven pixels between the words and the glyph at the medium step; the
316
339
  * full inset on top of that made the label sit closer to the start edge than
317
340
  * to the X, which the capture of a one-character chip showed as a pill made
318
341
  * mostly of air. What is left is the gap the chip uses between any two things
319
342
  * inside it.
320
343
  */
321
- [data-ui='tag'] [data-part='body']:has(+ [data-part='remove']) {
344
+ [data-ui-tag] [data-part-body]:has(+ [data-part-remove]) {
322
345
  padding-inline-end: var(--_gap);
323
346
  }
324
347
 
325
- [data-ui='tag'] [data-part='body']:is(a, button) {
348
+ [data-ui-tag] [data-part-body]:is(a, button) {
326
349
  cursor: pointer;
327
350
  }
328
351
 
@@ -332,7 +355,7 @@
332
355
  * Where the line is clipped. `min-inline-size: 0` is what lets the box
333
356
  * shrink below its content inside the flex body.
334
357
  */
335
- [data-ui='tag'] [data-part='label'] {
358
+ [data-ui-tag] [data-part-label] {
336
359
  min-inline-size: 0;
337
360
  overflow: hidden;
338
361
  text-overflow: ellipsis;
@@ -349,12 +372,12 @@
349
372
  }
350
373
 
351
374
  @supports (text-box: trim-both cap alphabetic) {
352
- [data-ui='tag'] [data-part='label'] {
375
+ [data-ui-tag] [data-part-label] {
353
376
  /**
354
- * The line box a flex container centres is not symmetric around the
377
+ * The line box a flex container centers is not symmetric around the
355
378
  * letters inside it: the ascender reaches further above the cap than the
356
379
  * descender reaches below the baseline, so a word with no descender sits
357
- * high in its chip and a word with one looks right. `text-box` centres
380
+ * high in its chip and a word with one looks right. `text-box` centers
358
381
  * the ink instead of the font's metrics.
359
382
  *
360
383
  * The padding gives `overflow: hidden` room for the descenders and the
@@ -366,7 +389,7 @@
366
389
  */
367
390
  margin-block: -0.3em;
368
391
  padding-block: 0.3em;
369
- text-box: trim-both cap alphabetic;
392
+ text-box: trim-both var(--slotted-text-box-edge, cap alphabetic);
370
393
  }
371
394
  }
372
395
 
@@ -375,8 +398,8 @@
375
398
  * from its container, and a bare glyph host such as `ng-icon` reads the
376
399
  * slot's font-size, so both are the glyph scale.
377
400
  */
378
- [data-ui='tag'] [data-part='start'],
379
- [data-ui='tag'] [data-part='end'] {
401
+ [data-ui-tag] [data-part-start],
402
+ [data-ui-tag] [data-part-end] {
380
403
  --slotted-icon-size: var(--_icon-size);
381
404
 
382
405
  align-items: center;
@@ -390,8 +413,8 @@
390
413
  line-height: 1;
391
414
  }
392
415
 
393
- [data-ui='tag'] [data-part='start'] > *,
394
- [data-ui='tag'] [data-part='end'] > * {
416
+ [data-ui-tag] [data-part-start] > *,
417
+ [data-ui-tag] [data-part-end] > * {
395
418
  block-size: 100%;
396
419
  display: block;
397
420
  inline-size: 100%;
@@ -400,7 +423,7 @@
400
423
  /**
401
424
  * ── The selection mark ─────────────────────────────────────────────────
402
425
  *
403
- * A selected chip changes its ground, and a ground is a colour. WCAG 2.2
426
+ * A selected chip changes its ground, and a ground is a color. WCAG 2.2
404
427
  * 1.4.1 asks for a second signal, so the check is drawn as well — the
405
428
  * `check` glyph the binding renders in an icon box, never a character.
406
429
  *
@@ -410,7 +433,7 @@
410
433
  * `hideSingleSelectionIndicator` to avoid it; the transition is the third
411
434
  * answer, and the theme collapses its duration under reduced motion.
412
435
  */
413
- [data-ui='tag'] [data-part='indicator'] {
436
+ [data-ui-tag] [data-part-indicator] {
414
437
  --slotted-icon-size: var(--_icon-size);
415
438
 
416
439
  align-items: center;
@@ -418,7 +441,7 @@
418
441
  display: inline-flex;
419
442
  flex: none;
420
443
  inline-size: 0;
421
- /* The icon keeps its size while the box grows round it, centred and
444
+ /* The icon keeps its size while the box grows round it, centerd and
422
445
  clipped, so the check is uncovered from its middle outwards. */
423
446
  justify-content: center;
424
447
  /* A flex gap is drawn beside a zero-width item as readily as beside a wide
@@ -433,7 +456,7 @@
433
456
  opacity var(--slotted-duration-short) var(--slotted-easing-standard);
434
457
  }
435
458
 
436
- [data-ui='tag'][data-part='root'][data-selected] [data-part='indicator'] {
459
+ [data-ui-tag][data-part-root][data-selected] [data-part-indicator] {
437
460
  inline-size: var(--_icon-size);
438
461
  margin-inline-end: 0;
439
462
  opacity: 1;
@@ -457,7 +480,7 @@
457
480
  * The mark is the `x` glyph the binding renders; the control hands its icon
458
481
  * box the chip's glyph size.
459
482
  */
460
- [data-ui='tag'] [data-part='remove'] {
483
+ [data-ui-tag] [data-part-remove] {
461
484
  --slotted-icon-size: var(--_icon-size);
462
485
 
463
486
  align-items: center;
@@ -491,7 +514,7 @@
491
514
  * falls short and is inert on the two larger sizes, where the chip is already
492
515
  * taller than the minimum.
493
516
  */
494
- [data-ui='tag'] [data-part='remove']::after {
517
+ [data-ui-tag] [data-part-remove]::after {
495
518
  content: '';
496
519
  inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
497
520
  position: absolute;
@@ -504,7 +527,7 @@
504
527
  * segment 24 wide and 32 tall. The halo above grows to 44 pixels around it.
505
528
  */
506
529
  @media (pointer: coarse) {
507
- [data-ui='tag'] [data-part='remove'] {
530
+ [data-ui-tag] [data-part-remove] {
508
531
  inline-size: max(
509
532
  var(--slotted-target-min, 24px),
510
533
  min(calc(var(--_icon-size) + 2 * var(--slotted-space-2, 0.25rem)), var(--_inner-size)),
@@ -512,14 +535,14 @@
512
535
  );
513
536
  }
514
537
 
515
- [data-ui='tag'] [data-part='remove']::after {
538
+ [data-ui-tag] [data-part-remove]::after {
516
539
  inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
517
540
  }
518
541
  }
519
542
 
520
543
  /* A tag that is only a remove control is not a tag, but the rounding is one
521
544
  rule either way rather than a case the sheet has to know about. */
522
- [data-ui='tag'] [data-part='remove']:first-child {
545
+ [data-ui-tag] [data-part-remove]:first-child {
523
546
  border-end-start-radius: var(--_inner-radius);
524
547
  border-start-start-radius: var(--_inner-radius);
525
548
  }
@@ -531,7 +554,7 @@
531
554
  * is the rule `button` set for `pressed`: "on" is never one shade away from
532
555
  * "hovered".
533
556
  */
534
- [data-ui='tag'][data-part='root'][data-selected]:not([data-disabled]) {
557
+ [data-ui-tag][data-part-root][data-selected]:not([data-disabled]) {
535
558
  background-color: var(--_solid, ButtonFace);
536
559
  border-color: var(--_edge, ButtonBorder);
537
560
  color: var(--_on-solid, ButtonText);
@@ -551,14 +574,14 @@
551
574
  * tinted role either lightened or did nothing, and the first hover capture
552
575
  * showed the remove segment reading paler than the chip it sits in.
553
576
  *
554
- * Its step is a state layer instead: the chip's own text colour, at a low
577
+ * Its step is a state layer instead: the chip's own text color, at a low
555
578
  * strength, over whatever ground it already has. It darkens a tinted chip
556
579
  * and never depends on a role the foundation does not carry. The cost is
557
- * that a theme retunes it by strength rather than by colour, which is what
580
+ * that a theme retunes it by strength rather than by color, which is what
558
581
  * the two component tokens are for.
559
582
  */
560
583
 
561
- [data-ui='tag'][data-part='root'] {
584
+ [data-ui-tag][data-part-root] {
562
585
  --_state-hover: color-mix(
563
586
  in oklab,
564
587
  currentColor var(--slotted-tag-state-layer-hover, 8%),
@@ -571,27 +594,27 @@
571
594
  );
572
595
  }
573
596
 
574
- [data-ui='tag'][data-part='root'][data-variant='soft']:not([data-disabled]):not([data-selected])
575
- :is([data-part='body']:is(a, button), [data-part='remove']):hover:not(:disabled) {
597
+ [data-ui-tag][data-part-root][data-variant='soft']:not([data-disabled]):not([data-selected])
598
+ :is([data-part-body]:is(a, button), [data-part-remove]):hover:not(:disabled) {
576
599
  background-color: var(--_state-hover);
577
600
  }
578
601
 
579
- [data-ui='tag'][data-part='root'][data-variant='soft']:not([data-disabled]):not([data-selected])
580
- :is([data-part='body']:is(a, button), [data-part='remove']):active:not(:disabled) {
602
+ [data-ui-tag][data-part-root][data-variant='soft']:not([data-disabled]):not([data-selected])
603
+ :is([data-part-body]:is(a, button), [data-part-remove]):active:not(:disabled) {
581
604
  background-color: var(--_state-active);
582
605
  }
583
606
 
584
- [data-ui='tag'][data-part='root'][data-variant='outline']:not([data-disabled]):not(
585
- [data-selected]
586
- )
587
- :is([data-part='body']:is(a, button), [data-part='remove']):hover:not(:disabled) {
607
+ [data-ui-tag][data-part-root][data-variant='outline']:not([data-disabled]):not([data-selected])
608
+ :is([data-part-body]:is(a, button), [data-part-remove]):hover:not(:disabled),
609
+ [data-ui-tag][data-part-root][data-variant='dashed']:not([data-disabled]):not([data-selected])
610
+ :is([data-part-body]:is(a, button), [data-part-remove]):hover:not(:disabled) {
588
611
  background-color: var(--_subtle-hover, ButtonFace);
589
612
  }
590
613
 
591
- [data-ui='tag'][data-part='root'][data-variant='outline']:not([data-disabled]):not(
592
- [data-selected]
593
- )
594
- :is([data-part='body']:is(a, button), [data-part='remove']):active:not(:disabled) {
614
+ [data-ui-tag][data-part-root][data-variant='outline']:not([data-disabled]):not([data-selected])
615
+ :is([data-part-body]:is(a, button), [data-part-remove]):active:not(:disabled),
616
+ [data-ui-tag][data-part-root][data-variant='dashed']:not([data-disabled]):not([data-selected])
617
+ :is([data-part-body]:is(a, button), [data-part-remove]):active:not(:disabled) {
595
618
  background-color: var(--_subtle-active, ButtonFace);
596
619
  }
597
620
 
@@ -599,17 +622,17 @@
599
622
  * A filled chip washes along its own ramp, as `button` does — and a selected
600
623
  * chip is a filled chip whatever its variant, so the two share these rules.
601
624
  */
602
- [data-ui='tag'][data-part='root'][data-variant='solid']:not([data-disabled])
603
- :is([data-part='body']:is(a, button), [data-part='remove']):hover:not(:disabled),
604
- [data-ui='tag'][data-part='root'][data-selected]:not([data-disabled])
605
- :is([data-part='body']:is(a, button), [data-part='remove']):hover:not(:disabled) {
625
+ [data-ui-tag][data-part-root][data-variant='solid']:not([data-disabled])
626
+ :is([data-part-body]:is(a, button), [data-part-remove]):hover:not(:disabled),
627
+ [data-ui-tag][data-part-root][data-selected]:not([data-disabled])
628
+ :is([data-part-body]:is(a, button), [data-part-remove]):hover:not(:disabled) {
606
629
  background-color: var(--_solid-hover, Highlight);
607
630
  }
608
631
 
609
- [data-ui='tag'][data-part='root'][data-variant='solid']:not([data-disabled])
610
- :is([data-part='body']:is(a, button), [data-part='remove']):active:not(:disabled),
611
- [data-ui='tag'][data-part='root'][data-selected]:not([data-disabled])
612
- :is([data-part='body']:is(a, button), [data-part='remove']):active:not(:disabled) {
632
+ [data-ui-tag][data-part-root][data-variant='solid']:not([data-disabled])
633
+ :is([data-part-body]:is(a, button), [data-part-remove]):active:not(:disabled),
634
+ [data-ui-tag][data-part-root][data-selected]:not([data-disabled])
635
+ :is([data-part-body]:is(a, button), [data-part-remove]):active:not(:disabled) {
613
636
  background-color: var(--_solid-active, Highlight);
614
637
  }
615
638
 
@@ -637,8 +660,8 @@
637
660
  * target: a rounded rectangle floating inside the segment would be prettier
638
661
  * and would say the hit area is somewhere it is not.
639
662
  */
640
- [data-ui='tag'] [data-part='body']:focus-visible,
641
- [data-ui='tag'] [data-part='remove']:focus-visible {
663
+ [data-ui-tag] [data-part-body]:focus-visible,
664
+ [data-ui-tag] [data-part-remove]:focus-visible {
642
665
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
643
666
  outline-offset: calc(-2 * var(--slotted-focus-ring-width, 2px));
644
667
  }
@@ -648,7 +671,7 @@
648
671
  * It is drawn for one moment: the group takes focus when the last tag it
649
672
  * held is removed, so the keyboard is not returned to the top of the page.
650
673
  */
651
- [data-ui='tag'][data-part='group']:focus-visible {
674
+ [data-ui-tag][data-part-group]:focus-visible {
652
675
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
653
676
  outline-offset: var(--slotted-focus-ring-offset, 2px);
654
677
  }
@@ -664,7 +687,7 @@
664
687
  * a control and a control that keeps its place in the tab sequence carries
665
688
  * `aria-disabled` and no `:disabled`.
666
689
  */
667
- [data-ui='tag'][data-part='root'][data-disabled] {
690
+ [data-ui-tag][data-part-root][data-disabled] {
668
691
  color: var(--slotted-disabled-foreground, GrayText);
669
692
  }
670
693
 
@@ -676,30 +699,31 @@
676
699
  * capture showed "Disabled selected" as a check and two words floating on
677
700
  * the page with no box around them.
678
701
  */
679
- [data-ui='tag'][data-part='root'][data-variant='solid'][data-disabled],
680
- [data-ui='tag'][data-part='root'][data-variant='soft'][data-disabled],
681
- [data-ui='tag'][data-part='root'][data-selected][data-disabled] {
702
+ [data-ui-tag][data-part-root][data-variant='solid'][data-disabled],
703
+ [data-ui-tag][data-part-root][data-variant='soft'][data-disabled],
704
+ [data-ui-tag][data-part-root][data-selected][data-disabled] {
682
705
  background-color: var(--slotted-disabled-background, Canvas);
683
706
  border-color: var(--slotted-disabled-border, GrayText);
684
707
  }
685
708
 
686
- [data-ui='tag'][data-part='root'][data-variant='outline'][data-disabled] {
709
+ [data-ui-tag][data-part-root][data-variant='outline'][data-disabled],
710
+ [data-ui-tag][data-part-root][data-variant='dashed'][data-disabled] {
687
711
  background-color: transparent;
688
712
  border-color: var(--slotted-disabled-border, GrayText);
689
713
  }
690
714
 
691
- [data-ui='tag'][data-part='root'][data-disabled] :is([data-part='body'], [data-part='remove']),
692
- [data-ui='tag'] [data-part='body']:disabled,
693
- [data-ui='tag'] [data-part='remove']:disabled {
715
+ [data-ui-tag][data-part-root][data-disabled] :is([data-part-body], [data-part-remove]),
716
+ [data-ui-tag] [data-part-body]:disabled,
717
+ [data-ui-tag] [data-part-remove]:disabled {
694
718
  background-color: transparent;
695
719
  cursor: not-allowed;
696
720
  }
697
721
 
698
722
  /**
699
723
  * A remove control the consumer disabled on its own, inside a chip that is
700
- * otherwise operable. It loses its colour rather than the whole chip's.
724
+ * otherwise operable. It loses its color rather than the whole chip's.
701
725
  */
702
- [data-ui='tag'] [data-part='remove']:disabled {
726
+ [data-ui-tag] [data-part-remove]:disabled {
703
727
  color: var(--slotted-disabled-foreground, GrayText);
704
728
  }
705
729
 
@@ -711,14 +735,14 @@
711
735
  * the arrow keys move between the controls inside it — the APG Toolbar
712
736
  * pattern, which is a container for grouping a set of controls.
713
737
  */
714
- [data-ui='tag'][data-part='group'] {
738
+ [data-ui-tag][data-part-group] {
715
739
  align-items: center;
716
740
  display: flex;
717
741
  flex-wrap: wrap;
718
742
  gap: var(--slotted-tag-group-gap, var(--slotted-space-2, 0.25rem));
719
743
  }
720
744
 
721
- [data-ui='tag'][data-part='group'][data-orientation='vertical'] {
745
+ [data-ui-tag][data-part-group][data-orientation='vertical'] {
722
746
  align-items: start;
723
747
  flex-direction: column;
724
748
  flex-wrap: nowrap;
@@ -731,12 +755,12 @@
731
755
  * that holds it — the defect `button-group` recorded when it found the same
732
756
  * thing.
733
757
  */
734
- [data-ui='tag'][data-part='group']:empty {
758
+ [data-ui-tag][data-part-group]:empty {
735
759
  display: none;
736
760
  }
737
761
 
738
762
  /**
739
- * ── Forced colours ─────────────────────────────────────────────────────
763
+ * ── Forced colors ─────────────────────────────────────────────────────
740
764
  *
741
765
  * The one place a family may write its own rule. The theme maps every tone
742
766
  * ground to `ButtonFace` or `Canvas` and every tone border to
@@ -750,17 +774,17 @@
750
774
  * pair instead.
751
775
  */
752
776
  @media (forced-colors: active) {
753
- [data-ui='tag'][data-part='root'] {
777
+ [data-ui-tag][data-part-root] {
754
778
  border-color: currentColor;
755
779
  }
756
780
 
757
- [data-ui='tag'][data-part='root'][data-selected]:not([data-disabled]) {
781
+ [data-ui-tag][data-part-root][data-selected]:not([data-disabled]) {
758
782
  background-color: Highlight;
759
783
  color: HighlightText;
760
784
  forced-color-adjust: none;
761
785
  }
762
786
 
763
- [data-ui='tag'][data-part='root'][data-disabled] {
787
+ [data-ui-tag][data-part-root][data-disabled] {
764
788
  border-color: GrayText;
765
789
  color: GrayText;
766
790
  }
@@ -34,10 +34,12 @@
34
34
  "--slotted-tag-font-weight",
35
35
  "--slotted-tag-group-gap",
36
36
  "--slotted-tag-inset-block",
37
+ "--slotted-tag-inset-inline",
37
38
  "--slotted-tag-state-layer-active",
38
39
  "--slotted-tag-state-layer-hover",
39
40
  "--slotted-target-comfortable",
40
41
  "--slotted-target-min",
42
+ "--slotted-text-box-edge",
41
43
  "--slotted-tone-accent-border",
42
44
  "--slotted-tone-accent-on-solid",
43
45
  "--slotted-tone-accent-solid",
@@ -56,6 +58,15 @@
56
58
  "--slotted-tone-danger-subtle-hover",
57
59
  "--slotted-tone-danger-surface",
58
60
  "--slotted-tone-danger-text",
61
+ "--slotted-tone-info-border",
62
+ "--slotted-tone-info-on-solid",
63
+ "--slotted-tone-info-solid",
64
+ "--slotted-tone-info-solid-active",
65
+ "--slotted-tone-info-solid-hover",
66
+ "--slotted-tone-info-subtle-active",
67
+ "--slotted-tone-info-subtle-hover",
68
+ "--slotted-tone-info-surface",
69
+ "--slotted-tone-info-text",
59
70
  "--slotted-tone-secondary-border",
60
71
  "--slotted-tone-secondary-on-solid",
61
72
  "--slotted-tone-secondary-solid-active",