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