@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
@@ -22,7 +22,7 @@
22
22
  * inline padding, `Blueberry` measured 70.03px marked against 63.17px plain,
23
23
  * and the run moved 6.86px as the query grew (CB6). Weight, spacing and
24
24
  * padding are therefore the label's own, and the mark is carried entirely by
25
- * colour: the accent's text tone over a band mixed from that same tone, with
25
+ * color: the accent's text tone over a band mixed from that same tone, with
26
26
  * a rule of the accent's border tone under it.
27
27
  *
28
28
  * The rule is `text-decoration` rather than a shadow, so it follows the
@@ -33,7 +33,7 @@
33
33
  * a ground is calibrated to sit under text on the page rather than to
34
34
  * separate from it: it measured 1.220 | 1.014 | 1.000:1 against the panel in
35
35
  * `light` | `dark` | `high-contrast`, so in two schemes out of three the band
36
- * did not exist and the mark was carried by its colour and its rule alone
36
+ * did not exist and the mark was carried by its color and its rule alone
37
37
  * (CB10, the same fact CK7 found under the pointer halo). The band is mixed
38
38
  * from `accent-text` instead — the one role every scheme keeps legible over
39
39
  * the surface — so one share gives one gesture in all three: 1.120 | 1.165 |
@@ -46,7 +46,7 @@
46
46
  * highlighted row — that caps the share: 0.075 leaves 7.078:1, 0.08 leaves
47
47
  * 7.001:1, and 0.12 leaves 6.540:1.
48
48
  */
49
- [data-ui='highlight'] [data-part='match'] {
49
+ [data-ui-highlight] [data-part-match] {
50
50
  background-color: var(
51
51
  --slotted-highlight-background,
52
52
  color-mix(
@@ -87,7 +87,7 @@
87
87
  * sits inside the fill and reads as nothing, which the capture showed. An
88
88
  * outline is not used: R3 reserves it for the focus ring.
89
89
  */
90
- [data-ui='highlight'] [data-part='match'][data-current] {
90
+ [data-ui-highlight] [data-part-match][data-current] {
91
91
  background-color: var(--slotted-highlight-current-background, var(--slotted-tone-accent-solid));
92
92
  color: var(--slotted-highlight-current-color, var(--slotted-tone-accent-on-solid));
93
93
  text-decoration-line: none;
@@ -98,13 +98,13 @@
98
98
  * is why the option is here", and saying it in the accent tone on a row that
99
99
  * answers nothing puts the loudest thing on the surface on the one option a
100
100
  * reader cannot take. The rule stays: the reader still has to see which span
101
- * matched, and it is the part of the mark that costs no colour.
101
+ * matched, and it is the part of the mark that costs no color.
102
102
  *
103
103
  * The state is the root's own, or any row's above it: the host's option
104
104
  * already carries `data-disabled`, and the family reads it from there rather
105
105
  * than asking the host to say it twice.
106
106
  */
107
- [data-ui='highlight']:is([data-disabled], [data-disabled] *) [data-part='match'] {
107
+ [data-ui-highlight]:is([data-disabled], [data-disabled] *) [data-part-match] {
108
108
  background-color: var(--slotted-highlight-disabled-background, transparent);
109
109
  color: inherit;
110
110
  /* Restated for the current match, which gave the rule up for its fill. */
@@ -112,22 +112,22 @@
112
112
  }
113
113
 
114
114
  /**
115
- * Under forced colours the accent ground becomes `Canvas` and the mark would
115
+ * Under forced colors the accent ground becomes `Canvas` and the mark would
116
116
  * vanish. `Mark` and `MarkText` are the system pair for exactly this element,
117
- * and they are the one case where this sheet names a system colour because
117
+ * and they are the one case where this sheet names a system color because
118
118
  * the theme has no token that maps to it. The current match takes
119
119
  * `Highlight` and `HighlightText`, the pair the user agent draws its own
120
120
  * active find match in.
121
121
  */
122
122
  @media (forced-colors: active) {
123
- [data-ui='highlight'] [data-part='match'],
124
- [data-ui='highlight']:is([data-disabled], [data-disabled] *) [data-part='match'] {
123
+ [data-ui-highlight] [data-part-match],
124
+ [data-ui-highlight]:is([data-disabled], [data-disabled] *) [data-part-match] {
125
125
  background-color: Mark;
126
126
  color: MarkText;
127
127
  forced-color-adjust: none;
128
128
  }
129
129
 
130
- [data-ui='highlight'] [data-part='match'][data-current] {
130
+ [data-ui-highlight] [data-part-match][data-current] {
131
131
  background-color: Highlight;
132
132
  color: HighlightText;
133
133
  }
@@ -4,7 +4,7 @@
4
4
  * preview of where it goes, or of who it names.
5
5
  *
6
6
  * root ─ the trigger ─ <a> ─ data-open
7
- * └─ [data-ui='popover'] ─ unchanged, autoFocus off ─┐
7
+ * └─ [data-ui-popover] ─ unchanged, autoFocus off ─┐
8
8
  * │ header / body / footer — the consumer's │
9
9
  * │ arrow │
10
10
  * └───────────────────────────────────────────────┘
@@ -20,7 +20,7 @@
20
20
  * the family renders its own anchor, it owes the reader a link that reads as
21
21
  * one and says, while the card shows, which word the card is about.
22
22
  */
23
- [data-ui='hover-card'] {
23
+ [data-ui-hover-card] {
24
24
  --_text: var(--slotted-hover-card-color, var(--slotted-tone-accent-text, LinkText));
25
25
  /* The underline at rest is the text at less than half strength, as
26
26
  `link` draws it: present enough to say "link", quiet enough that a
@@ -59,34 +59,34 @@
59
59
 
60
60
  /* Hover fills the underline. The card itself waits for `openDelay`, so this
61
61
  is the only thing that answers the pointer at once. */
62
- [data-ui='hover-card']:not([data-disabled]):hover {
62
+ [data-ui-hover-card]:not([data-disabled]):hover {
63
63
  text-decoration-color: currentColor;
64
64
  }
65
65
 
66
66
  /**
67
67
  * While the card shows, the word it is about is marked: the tint behind it
68
- * and a halo of the same colour drawn as a spread shadow, so the inline box
68
+ * and a halo of the same color drawn as a spread shadow, so the inline box
69
69
  * grows by one step of space without moving the line it sits on. A padding
70
70
  * would have reflowed the paragraph on every open.
71
71
  */
72
- [data-ui='hover-card'][data-open] {
72
+ [data-ui-hover-card][data-open] {
73
73
  background-color: var(--_tint);
74
74
  box-shadow: 0 0 0 var(--_halo) var(--_tint);
75
75
  text-decoration-color: currentColor;
76
76
  }
77
77
 
78
- [data-ui='hover-card']:focus-visible {
78
+ [data-ui-hover-card]:focus-visible {
79
79
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
80
80
  outline-offset: var(--slotted-focus-ring-offset, 2px);
81
81
  }
82
82
 
83
83
  /**
84
- * Forced colours remove backgrounds, so the open mark would vanish with them;
84
+ * Forced colors remove backgrounds, so the open mark would vanish with them;
85
85
  * a link the reader is looking at is underlined in the system's own link
86
- * colour instead, which is the one thing forced colours keep.
86
+ * color instead, which is the one thing forced colors keep.
87
87
  */
88
88
  @media (forced-colors: active) {
89
- [data-ui='hover-card'][data-open] {
89
+ [data-ui-hover-card][data-open] {
90
90
  text-decoration-thickness: var(--slotted-border-width-thick, 2px);
91
91
  }
92
92
  }
package/src/icon/icon.css CHANGED
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * Icon is the box a glyph is drawn in, not the glyph. The library ships no
4
4
  * catalogue: the artwork is the consumer's, and this family owns the size it
5
- * is drawn at, the colour it inherits, where it sits against a line of text,
5
+ * is drawn at, the color it inherits, where it sits against a line of text,
6
6
  * and whether it mirrors in a right-to-left document.
7
7
  *
8
8
  * The size is read through the family token rather than stated, so a
@@ -11,7 +11,7 @@
11
11
  * this family. An instance overrides that container through `data-size`,
12
12
  * which sets the same token on the element itself.
13
13
  */
14
- [data-ui='icon'] {
14
+ [data-ui-icon] {
15
15
  --_size: var(--slotted-icon-size, var(--slotted-control-icon-size-md, 16px));
16
16
 
17
17
  align-items: center;
@@ -24,7 +24,7 @@
24
24
  line-height: 1;
25
25
  /**
26
26
  * An inline box sits with its bottom edge on the baseline, which puts its
27
- * centre half its own height above the line while text reads centred
27
+ * center half its own height above the line while text reads centerd
28
28
  * between the baseline and the cap height. The icon reads high without a
29
29
  * correction, and by more the larger it is relative to the type around it:
30
30
  * a constant shift is right at one ratio and wrong at every other, which a
@@ -32,7 +32,7 @@
32
32
  *
33
33
  * The default is therefore computed rather than stated. `cap` is the cap
34
34
  * height of the font the icon inherits and `--_size` is the box, so the
35
- * expression puts the box's centre on the text's optical centre at every
35
+ * expression puts the box's center on the text's optical center at every
36
36
  * combination of the two. At `1em` it resolves near the `-0.125em` this
37
37
  * family used to state, which is why that constant looked right until the
38
38
  * ratio changed. A theme still overrides the whole thing through the token.
@@ -58,8 +58,8 @@
58
58
  * is on the child and not on the box, because `vertical-align` above reads
59
59
  * `cap` from the text the box sits in.
60
60
  */
61
- [data-ui='icon'] > *,
62
- [data-ui='icon'] svg {
61
+ [data-ui-icon] > *,
62
+ [data-ui-icon] svg {
63
63
  block-size: 100%;
64
64
  display: block;
65
65
  font-size: var(--_size);
@@ -72,54 +72,101 @@
72
72
  * the type it sits in, because sixteen pixels inside a display heading is
73
73
  * not an icon.
74
74
  */
75
- [data-ui='icon'][data-size='text'] {
75
+ /**
76
+ * A status mark is drawn on three grids (`@slotted/core/glyph`), and the box
77
+ * shows the one it is sized for, so every cut lands on whole pixels. The box
78
+ * is a size container for that question alone: its size is its own and never
79
+ * its content's. Under 1dppx — a page zoomed out — the 12-unit drawing is
80
+ * the heaviest per pixel, and the one that stays legible.
81
+ */
82
+ [data-ui-icon]:has(> svg > svg[data-grid]) {
83
+ container-type: size;
84
+ }
85
+
86
+ [data-ui-icon] svg[data-grid] {
87
+ display: none;
88
+ }
89
+
90
+ @container (width < 13px) {
91
+ [data-ui-icon] svg[data-grid='12'] {
92
+ display: block;
93
+ }
94
+ }
95
+
96
+ @container (13px <= width < 15px) {
97
+ [data-ui-icon] svg[data-grid='14'] {
98
+ display: block;
99
+ }
100
+ }
101
+
102
+ @container (width >= 15px) {
103
+ [data-ui-icon] svg[data-grid='16'] {
104
+ display: block;
105
+ }
106
+ }
107
+
108
+ @media (max-resolution: 0.99dppx) {
109
+ [data-ui-icon] svg[data-grid] {
110
+ display: none;
111
+ }
112
+
113
+ [data-ui-icon] svg[data-grid='12'] {
114
+ display: block;
115
+ }
116
+ }
117
+
118
+ [data-ui-icon][data-size='text'] {
76
119
  --slotted-icon-size: 1em;
77
120
  }
78
121
 
79
- [data-ui='icon'][data-size='sm'] {
122
+ [data-ui-icon][data-size='sm'] {
80
123
  --slotted-icon-size: var(--slotted-control-icon-size-sm, 14px);
81
124
  }
82
125
 
83
- [data-ui='icon'][data-size='md'] {
126
+ [data-ui-icon][data-size='md'] {
84
127
  --slotted-icon-size: var(--slotted-control-icon-size-md, 16px);
85
128
  }
86
129
 
87
- [data-ui='icon'][data-size='lg'] {
130
+ [data-ui-icon][data-size='lg'] {
88
131
  --slotted-icon-size: var(--slotted-control-icon-size-lg, 18px);
89
132
  }
90
133
 
91
134
  /**
92
- * Colour is inherited rather than painted, so an icon beside a label is the
93
- * colour of that label without anyone deciding it. The family sets `color`
135
+ * Color is inherited rather than painted, so an icon beside a label is the
136
+ * color of that label without anyone deciding it. The family sets `color`
94
137
  * and never `fill` or `stroke`: stroked artwork declares
95
138
  * `stroke="currentColor"` and filled artwork declares `fill="currentColor"`,
96
139
  * and imposing either would break the other.
97
140
  */
98
- [data-ui='icon'][data-tone='default'] {
141
+ [data-ui-icon][data-tone='default'] {
99
142
  color: var(--slotted-text, CanvasText);
100
143
  }
101
144
 
102
- [data-ui='icon'][data-tone='muted'] {
145
+ [data-ui-icon][data-tone='muted'] {
103
146
  color: var(--slotted-text-muted, GrayText);
104
147
  }
105
148
 
106
- [data-ui='icon'][data-tone='accent'] {
149
+ [data-ui-icon][data-tone='accent'] {
107
150
  color: var(--slotted-tone-accent-text, LinkText);
108
151
  }
109
152
 
110
- [data-ui='icon'][data-tone='success'] {
153
+ [data-ui-icon][data-tone='success'] {
111
154
  color: var(--slotted-tone-success-text, CanvasText);
112
155
  }
113
156
 
114
- [data-ui='icon'][data-tone='warning'] {
157
+ [data-ui-icon][data-tone='info'] {
158
+ color: var(--slotted-tone-info-text, CanvasText);
159
+ }
160
+
161
+ [data-ui-icon][data-tone='warning'] {
115
162
  color: var(--slotted-tone-warning-text, CanvasText);
116
163
  }
117
164
 
118
- [data-ui='icon'][data-tone='danger'] {
165
+ [data-ui-icon][data-tone='danger'] {
119
166
  color: var(--slotted-tone-danger-text, CanvasText);
120
167
  }
121
168
 
122
- [data-ui='icon'][data-tone='inverse'] {
169
+ [data-ui-icon][data-tone='inverse'] {
123
170
  color: var(--slotted-text-inverse, Canvas);
124
171
  }
125
172
 
@@ -130,7 +177,7 @@
130
177
  * right-to-left page has to read the directionality that actually applies to
131
178
  * it.
132
179
  */
133
- [data-ui='icon'][data-directional]:dir(rtl) {
180
+ [data-ui-icon][data-directional]:dir(rtl) {
134
181
  scale: -1 1;
135
182
  }
136
183
  }
@@ -9,6 +9,7 @@
9
9
  "--slotted-text-muted",
10
10
  "--slotted-tone-accent-text",
11
11
  "--slotted-tone-danger-text",
12
+ "--slotted-tone-info-text",
12
13
  "--slotted-tone-success-text",
13
14
  "--slotted-tone-warning-text"
14
15
  ]
@@ -15,12 +15,12 @@
15
15
  *
16
16
  * Nothing is reserved without a decision. A root with no ratio and an
17
17
  * `<img>` with no `width`/`height` has no height until the picture reports,
18
- * which is the platform's own behaviour and the honest one: a family that
18
+ * which is the platform's own behavior and the honest one: a family that
19
19
  * guessed a ratio would guess it wrong for half its consumers. `width` and
20
20
  * `height` on the element, or `ratio` on the root, are the two ways to
21
21
  * decide, and both reserve the box before the first byte arrives.
22
22
  */
23
- [data-ui='image'][data-part='root'] {
23
+ [data-ui-image][data-part-root] {
24
24
  --_fit: cover;
25
25
  --_position: var(--slotted-image-position, center);
26
26
  --_radius: var(--slotted-image-radius, var(--slotted-radius-none, 0px));
@@ -106,7 +106,7 @@
106
106
  * stood 0.016 pixels tall above the picture instead of over it (measured
107
107
  * with hover forced on the `interactive` scene).
108
108
  */
109
- [data-ui='image'][data-part='root'] > * {
109
+ [data-ui-image][data-part-root] > * {
110
110
  grid-area: 1 / 1;
111
111
  min-inline-size: 0;
112
112
  }
@@ -121,7 +121,7 @@
121
121
  * picture keeps its intrinsic height; the family does not measure the
122
122
  * parent to do otherwise.
123
123
  */
124
- [data-ui='image'][data-part='root'][data-layout='fill'] {
124
+ [data-ui-image][data-part-root][data-layout='fill'] {
125
125
  block-size: 100%;
126
126
  inline-size: 100%;
127
127
  }
@@ -134,7 +134,7 @@
134
134
  * pushed the caption under the picture out of the item (measured in the
135
135
  * first capture of the `in-context` scene).
136
136
  */
137
- [data-ui='image'][data-part='root'][data-layout='framed'] {
137
+ [data-ui-image][data-part-root][data-layout='framed'] {
138
138
  inline-size: 100%;
139
139
  }
140
140
 
@@ -145,19 +145,19 @@
145
145
  * the blurred preview both read, so the preview is cropped exactly where
146
146
  * the picture will be. `cover` is stated in the base rule.
147
147
  */
148
- [data-ui='image'][data-part='root'][data-fit='contain'] {
148
+ [data-ui-image][data-part-root][data-fit='contain'] {
149
149
  --_fit: contain;
150
150
  }
151
151
 
152
- [data-ui='image'][data-part='root'][data-fit='fill'] {
152
+ [data-ui-image][data-part-root][data-fit='fill'] {
153
153
  --_fit: fill;
154
154
  }
155
155
 
156
- [data-ui='image'][data-part='root'][data-fit='none'] {
156
+ [data-ui-image][data-part-root][data-fit='none'] {
157
157
  --_fit: none;
158
158
  }
159
159
 
160
- [data-ui='image'][data-part='root'][data-fit='scale-down'] {
160
+ [data-ui-image][data-part-root][data-fit='scale-down'] {
161
161
  --_fit: scale-down;
162
162
  }
163
163
 
@@ -170,41 +170,41 @@
170
170
  * page is mirrored. `center` is stated in the base rule; `custom` is the
171
171
  * token written on the instance, read there.
172
172
  */
173
- [data-ui='image'][data-part='root'][data-position='top'] {
173
+ [data-ui-image][data-part-root][data-position='top'] {
174
174
  --_position: top;
175
175
  }
176
176
 
177
- [data-ui='image'][data-part='root'][data-position='bottom'] {
177
+ [data-ui-image][data-part-root][data-position='bottom'] {
178
178
  --_position: bottom;
179
179
  }
180
180
 
181
- [data-ui='image'][data-part='root'][data-position='start'] {
181
+ [data-ui-image][data-part-root][data-position='start'] {
182
182
  --_position: left;
183
183
  }
184
184
 
185
- [data-ui='image'][data-part='root'][data-position='end'] {
185
+ [data-ui-image][data-part-root][data-position='end'] {
186
186
  --_position: right;
187
187
  }
188
188
 
189
- [data-ui='image'][data-part='root'][data-position='start']:dir(rtl) {
189
+ [data-ui-image][data-part-root][data-position='start']:dir(rtl) {
190
190
  --_position: right;
191
191
  }
192
192
 
193
- [data-ui='image'][data-part='root'][data-position='end']:dir(rtl) {
193
+ [data-ui-image][data-part-root][data-position='end']:dir(rtl) {
194
194
  --_position: left;
195
195
  }
196
196
 
197
197
  /* ── Radius ───────────────────────────────────────────────────────────── */
198
198
 
199
- [data-ui='image'][data-part='root'][data-radius='sm'] {
199
+ [data-ui-image][data-part-root][data-radius='sm'] {
200
200
  --_radius: var(--slotted-image-radius, var(--slotted-radius-sm, 4px));
201
201
  }
202
202
 
203
- [data-ui='image'][data-part='root'][data-radius='md'] {
203
+ [data-ui-image][data-part-root][data-radius='md'] {
204
204
  --_radius: var(--slotted-image-radius, var(--slotted-radius-md, 6px));
205
205
  }
206
206
 
207
- [data-ui='image'][data-part='root'][data-radius='lg'] {
207
+ [data-ui-image][data-part-root][data-radius='lg'] {
208
208
  --_radius: var(--slotted-image-radius, var(--slotted-radius-lg, 8px));
209
209
  }
210
210
 
@@ -216,7 +216,7 @@
216
216
  * everywhere else. Drawn as the inset ring the base rule already holds, so
217
217
  * the picture is the same size with the edge as without it.
218
218
  */
219
- [data-ui='image'][data-part='root'][data-bordered] {
219
+ [data-ui-image][data-part-root][data-bordered] {
220
220
  --_edge: var(--slotted-border-subtle, ButtonBorder);
221
221
  }
222
222
 
@@ -228,7 +228,7 @@
228
228
  * last and so painted last, and takes no pointer, so a press on the edge
229
229
  * is a press on the link the root may be.
230
230
  */
231
- [data-ui='image'][data-part='root']::after {
231
+ [data-ui-image][data-part-root]::after {
232
232
  border-radius: inherit;
233
233
  box-shadow: inset 0 0 0 var(--_edge-width) var(--_edge);
234
234
  content: '';
@@ -244,7 +244,7 @@
244
244
  * takes its box away, so the `<img>` inside it is the grid item and every
245
245
  * rule below reaches it the same way with sources and without.
246
246
  */
247
- [data-ui='image'] [data-part='picture'] {
247
+ [data-ui-image] [data-part-picture] {
248
248
  display: contents;
249
249
  }
250
250
 
@@ -262,7 +262,7 @@
262
262
  * own `contain` — `aspect-ratio` reserves without cropping, and this
263
263
  * family is the one that decides to.
264
264
  */
265
- [data-ui='image'][data-part='root'] [data-part='image'] {
265
+ [data-ui-image][data-part-root] [data-part-image] {
266
266
  block-size: auto;
267
267
  display: block;
268
268
  grid-area: 1 / 1;
@@ -274,13 +274,13 @@
274
274
  transition: opacity var(--slotted-duration-short) var(--slotted-easing-standard);
275
275
  }
276
276
 
277
- [data-ui='image'][data-part='root'][data-layout='fill'] [data-part='image'],
278
- [data-ui='image'][data-part='root'][data-layout='framed'] [data-part='image'] {
277
+ [data-ui-image][data-part-root][data-layout='fill'] [data-part-image],
278
+ [data-ui-image][data-part-root][data-layout='framed'] [data-part-image] {
279
279
  block-size: 100%;
280
280
  inline-size: 100%;
281
281
  }
282
282
 
283
- [data-ui='image'][data-part='root'][data-status='loaded'] [data-part='image'] {
283
+ [data-ui-image][data-part-root][data-status='loaded'] [data-part-image] {
284
284
  opacity: 1;
285
285
  }
286
286
 
@@ -290,7 +290,7 @@
290
290
  * width of the sentence (measured in the `error` scene). The element stays
291
291
  * in the tree with its name and takes no box; the fallback is the box.
292
292
  */
293
- [data-ui='image'][data-part='root'][data-status='error'] [data-part='image'] {
293
+ [data-ui-image][data-part-root][data-status='error'] [data-part-image] {
294
294
  block-size: 0;
295
295
  inline-size: 0;
296
296
  min-block-size: 0;
@@ -306,7 +306,7 @@
306
306
  * flicker. It never takes a pointer: a press on a loading thumbnail is a
307
307
  * press on the link the root may be.
308
308
  */
309
- [data-ui='image'][data-part='root'] [data-part='placeholder'] {
309
+ [data-ui-image][data-part-root] [data-part-placeholder] {
310
310
  background-color: var(--_ground);
311
311
  block-size: 100%;
312
312
  box-shadow: var(--_ground-edge);
@@ -327,7 +327,7 @@
327
327
  transition: opacity var(--slotted-duration-short) var(--slotted-easing-standard);
328
328
  }
329
329
 
330
- [data-ui='image'][data-part='root'][data-placeholder='none'] [data-part='placeholder'] {
330
+ [data-ui-image][data-part-root][data-placeholder='none'] [data-part-placeholder] {
331
331
  background-color: transparent;
332
332
  box-shadow: none;
333
333
  }
@@ -342,7 +342,7 @@
342
342
  * blur's, in a length rather than a scale step, because a scale step is a
343
343
  * distance between things and this is how far a pixel bleeds.
344
344
  */
345
- [data-ui='image'][data-part='root'][data-placeholder='blur'] [data-part='placeholder'] > img {
345
+ [data-ui-image][data-part-root][data-placeholder='blur'] [data-part-placeholder] > img {
346
346
  block-size: 100%;
347
347
  display: block;
348
348
  filter: blur(var(--slotted-image-placeholder-blur, 1.25rem));
@@ -352,11 +352,11 @@
352
352
  transform: scale(1.08);
353
353
  }
354
354
 
355
- [data-ui='image'][data-part='root'][data-status='loaded'] [data-part='placeholder'] {
355
+ [data-ui-image][data-part-root][data-status='loaded'] [data-part-placeholder] {
356
356
  opacity: 0;
357
357
  }
358
358
 
359
- [data-ui='image'][data-part='root'][data-status='error'] [data-part='placeholder'] {
359
+ [data-ui-image][data-part-root][data-status='error'] [data-part-placeholder] {
360
360
  visibility: hidden;
361
361
  }
362
362
 
@@ -368,7 +368,7 @@
368
368
  * while the picture is fine. Given a minimum of its own because a picture
369
369
  * that reserved nothing and then failed has no box, and a glyph needs one.
370
370
  */
371
- [data-ui='image'][data-part='root'] [data-part='fallback'] {
371
+ [data-ui-image][data-part-root] [data-part-fallback] {
372
372
  /**
373
373
  * The mark a picture leaves behind: the binding draws `image-off` in an
374
374
  * `Icon` unless the consumer projected content of their own, which
@@ -383,7 +383,7 @@
383
383
  display: none;
384
384
  }
385
385
 
386
- [data-ui='image'][data-part='root'][data-status='error'] [data-part='fallback'] {
386
+ [data-ui-image][data-part-root][data-status='error'] [data-part-fallback] {
387
387
  background-color: var(--_ground);
388
388
  block-size: 100%;
389
389
  box-shadow: var(--_ground-edge);
@@ -412,15 +412,15 @@
412
412
  * that belongs to the control that holds the picture — but a `<button
413
413
  * disabled>` is the platform's, and a weak state holds itself back for it.
414
414
  */
415
- [data-ui='image'][data-part='root']:any-link,
416
- button[data-ui='image'][data-part='root'],
417
- [data-ui='image'][data-part='root'][tabindex] {
415
+ [data-ui-image][data-part-root]:any-link,
416
+ button[data-ui-image][data-part-root],
417
+ [data-ui-image][data-part-root][tabindex] {
418
418
  cursor: pointer;
419
419
  }
420
420
 
421
- [data-ui='image'][data-part='root']:any-link:not([data-disabled]):hover,
422
- button[data-ui='image'][data-part='root']:not(:disabled):hover,
423
- [data-ui='image'][data-part='root'][tabindex]:not([data-disabled]):hover {
421
+ [data-ui-image][data-part-root]:any-link:not([data-disabled]):hover,
422
+ button[data-ui-image][data-part-root]:not(:disabled):hover,
423
+ [data-ui-image][data-part-root][tabindex]:not([data-disabled]):hover {
424
424
  --_edge: var(--slotted-border-strong, CanvasText);
425
425
  /* Two pixels rather than one: a hairline over a photograph's own bright
426
426
  edge is not a hover anyone sees, and the ring is inset, so the width
@@ -433,17 +433,17 @@
433
433
  * missing the first time a consumer makes a picture a link. Drawn outside
434
434
  * the box at the theme's offset, over whatever the picture is on.
435
435
  */
436
- [data-ui='image'][data-part='root']:focus-visible {
436
+ [data-ui-image][data-part-root]:focus-visible {
437
437
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
438
438
  outline-offset: var(--slotted-focus-ring-offset, 2px);
439
439
  }
440
440
 
441
441
  /**
442
- * ── Forced colours ─────────────────────────────────────────────────────
442
+ * ── Forced colors ─────────────────────────────────────────────────────
443
443
  *
444
444
  * The theme maps the ground to `Canvas` and the edge to `ButtonBorder`, so
445
445
  * nothing here needs restating for them. The picture is exempt by the user
446
446
  * agent's own rule: `forced-color-adjust` does not apply to images, and a
447
- * photograph reduced to two system colours is not a photograph.
447
+ * photograph reduced to two system colors is not a photograph.
448
448
  */
449
449
  }