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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/package.json +13 -1
  2. package/src/accordion/accordion.css +11 -11
  3. package/src/action-bar/action-bar.css +47 -44
  4. package/src/action-bar/action-bar.tokens.json +1 -0
  5. package/src/action-sheet/action-sheet.css +39 -39
  6. package/src/alert/alert.css +97 -97
  7. package/src/alert/alert.tokens.json +6 -1
  8. package/src/app-shell/app-shell.css +456 -329
  9. package/src/app-shell/app-shell.tokens.json +6 -3
  10. package/src/aspect-ratio/aspect-ratio.css +9 -9
  11. package/src/attachment/attachment.css +118 -114
  12. package/src/avatar/avatar.css +96 -66
  13. package/src/avatar/avatar.tokens.json +7 -0
  14. package/src/avatar-group/avatar-group.css +22 -23
  15. package/src/badge/badge.css +54 -46
  16. package/src/badge/badge.tokens.json +5 -0
  17. package/src/breadcrumb/breadcrumb.css +52 -52
  18. package/src/button/button.css +137 -89
  19. package/src/button/button.tokens.json +5 -0
  20. package/src/button-group/button-group.css +80 -79
  21. package/src/button-group/button-group.tokens.json +1 -0
  22. package/src/calendar/calendar.css +139 -109
  23. package/src/calendar/calendar.tokens.json +5 -1
  24. package/src/card/card.css +70 -67
  25. package/src/card/card.tokens.json +1 -0
  26. package/src/carousel/carousel.css +158 -169
  27. package/src/cascader/cascader.css +161 -159
  28. package/src/cascader/cascader.tokens.json +2 -0
  29. package/src/chart/chart.css +288 -267
  30. package/src/chart/chart.tokens.json +4 -0
  31. package/src/checkbox/checkbox.css +143 -148
  32. package/src/checkbox-group/checkbox-group.css +7 -7
  33. package/src/code-block/code-block.css +85 -89
  34. package/src/collapsible/collapsible.css +81 -80
  35. package/src/collapsible/collapsible.tokens.json +1 -0
  36. package/src/color-picker/color-picker.css +106 -114
  37. package/src/column-manager/column-manager.css +111 -119
  38. package/src/combobox/combobox.css +206 -132
  39. package/src/combobox/combobox.tokens.json +4 -0
  40. package/src/command-palette/command-palette.css +155 -102
  41. package/src/command-palette/command-palette.tokens.json +2 -0
  42. package/src/container/container.css +27 -27
  43. package/src/context-menu/context-menu.css +9 -9
  44. package/src/currency-field/currency-field.css +119 -119
  45. package/src/currency-field/currency-field.tokens.json +1 -0
  46. package/src/dashboard-grid/dashboard-grid.css +204 -115
  47. package/src/data-grid/data-grid.css +598 -496
  48. package/src/data-grid/data-grid.tokens.json +5 -1
  49. package/src/data-list/data-list.css +82 -71
  50. package/src/data-list/data-list.tokens.json +2 -1
  51. package/src/date-field/date-field.css +62 -57
  52. package/src/date-field/date-field.tokens.json +1 -0
  53. package/src/date-picker/date-picker.css +117 -58
  54. package/src/date-picker/date-picker.tokens.json +5 -0
  55. package/src/date-range-picker/date-range-picker.css +157 -127
  56. package/src/date-range-picker/date-range-picker.tokens.json +4 -0
  57. package/src/datetime-field/datetime-field.css +90 -90
  58. package/src/datetime-field/datetime-field.tokens.json +1 -0
  59. package/src/datetime-picker/datetime-picker.css +123 -70
  60. package/src/datetime-picker/datetime-picker.tokens.json +4 -1
  61. package/src/datetime-range-picker/datetime-range-picker.css +191 -163
  62. package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
  63. package/src/description-list/description-list.css +105 -75
  64. package/src/description-list/description-list.tokens.json +1 -0
  65. package/src/detail-panel/detail-panel.css +86 -71
  66. package/src/detail-panel/detail-panel.tokens.json +2 -0
  67. package/src/dialog/dialog.css +435 -199
  68. package/src/dialog/dialog.tokens.json +9 -0
  69. package/src/divider/divider.css +20 -20
  70. package/src/drawer/drawer.css +598 -237
  71. package/src/drawer/drawer.tokens.json +14 -0
  72. package/src/entity-picker/entity-picker.css +326 -272
  73. package/src/entity-picker/entity-picker.tokens.json +4 -0
  74. package/src/event-calendar/event-calendar.css +357 -399
  75. package/src/field/field.css +106 -93
  76. package/src/field/field.tokens.json +2 -0
  77. package/src/field-group/field-group.css +43 -33
  78. package/src/field-group/field-group.tokens.json +3 -0
  79. package/src/filter-bar/filter-bar.css +200 -216
  80. package/src/form/form.css +100 -26
  81. package/src/form/form.tokens.json +6 -1
  82. package/src/fullscreen/fullscreen.css +26 -27
  83. package/src/grid/grid.css +29 -29
  84. package/src/highlight/highlight.css +11 -11
  85. package/src/hover-card/hover-card.css +9 -9
  86. package/src/icon/icon.css +67 -20
  87. package/src/icon/icon.tokens.json +1 -0
  88. package/src/image/image.css +42 -42
  89. package/src/import-export-center/import-export-center.css +147 -168
  90. package/src/import-export-center/import-export-center.tokens.json +1 -0
  91. package/src/inline/inline.css +28 -28
  92. package/src/inline-message/inline-message.css +162 -86
  93. package/src/inline-message/inline-message.tokens.json +4 -0
  94. package/src/kbd/kbd.css +62 -50
  95. package/src/kbd/kbd.tokens.json +3 -0
  96. package/src/link/link.css +54 -33
  97. package/src/link/link.tokens.json +4 -0
  98. package/src/list/list.css +23 -23
  99. package/src/list-item/list-item.css +89 -75
  100. package/src/list-item/list-item.tokens.json +7 -0
  101. package/src/listbox/listbox.css +71 -70
  102. package/src/listbox/listbox.tokens.json +0 -1
  103. package/src/loading-overlay/loading-overlay.css +86 -103
  104. package/src/markdown/markdown.css +20 -20
  105. package/src/media-viewer/media-viewer.css +790 -0
  106. package/src/media-viewer/media-viewer.tokens.json +53 -0
  107. package/src/menu/menu.css +166 -83
  108. package/src/menu/menu.tokens.json +3 -1
  109. package/src/menubar/menubar.css +16 -16
  110. package/src/message/message.css +1253 -1246
  111. package/src/message/message.tokens.json +5 -0
  112. package/src/message-scroller/message-scroller.css +323 -320
  113. package/src/multi-select/multi-select.css +233 -174
  114. package/src/multi-select/multi-select.tokens.json +3 -0
  115. package/src/navigation-menu/navigation-menu.css +170 -191
  116. package/src/navigation-menu/navigation-menu.tokens.json +1 -0
  117. package/src/notification-center/notification-center.css +155 -163
  118. package/src/notification-center/notification-center.tokens.json +4 -0
  119. package/src/number-field/number-field.css +93 -93
  120. package/src/number-field/number-field.tokens.json +1 -0
  121. package/src/otp-input/otp-input.css +74 -64
  122. package/src/otp-input/otp-input.tokens.json +1 -0
  123. package/src/page/page.css +41 -27
  124. package/src/page/page.tokens.json +1 -0
  125. package/src/page-header/page-header.css +342 -287
  126. package/src/page-header/page-header.tokens.json +6 -1
  127. package/src/pagination/pagination.css +75 -79
  128. package/src/popover/popover.css +85 -65
  129. package/src/popover/popover.tokens.json +2 -0
  130. package/src/progress-indicator/progress-indicator.css +192 -136
  131. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  132. package/src/prompt-composer/prompt-composer.css +260 -113
  133. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  134. package/src/prose/prose.css +77 -82
  135. package/src/radio-group/radio-group.css +107 -112
  136. package/src/rating/rating.css +146 -142
  137. package/src/rating/rating.tokens.json +1 -0
  138. package/src/result-state/result-state.css +95 -102
  139. package/src/result-state/result-state.tokens.json +1 -0
  140. package/src/runtime-properties.mjs +19 -6
  141. package/src/saved-views/saved-views.css +43 -49
  142. package/src/scroll-area/scroll-area.css +50 -37
  143. package/src/section/section.css +179 -44
  144. package/src/section/section.tokens.json +9 -3
  145. package/src/segmented-control/segmented-control.css +210 -133
  146. package/src/segmented-control/segmented-control.tokens.json +7 -11
  147. package/src/select/select.css +213 -149
  148. package/src/select/select.tokens.json +4 -0
  149. package/src/side-navigation/side-navigation.css +201 -198
  150. package/src/side-navigation/side-navigation.tokens.json +1 -0
  151. package/src/skeleton/skeleton.css +57 -58
  152. package/src/slider/slider.css +101 -103
  153. package/src/sparkline/sparkline.css +75 -53
  154. package/src/sparkline/sparkline.tokens.json +2 -0
  155. package/src/spinner/spinner.css +83 -180
  156. package/src/spinner/spinner.tokens.json +0 -1
  157. package/src/split-button/split-button.css +34 -35
  158. package/src/split-button/split-button.tokens.json +1 -0
  159. package/src/splitter/splitter.css +47 -48
  160. package/src/stack/stack.css +25 -25
  161. package/src/stat-card/stat-card.css +415 -245
  162. package/src/stat-card/stat-card.tokens.json +8 -0
  163. package/src/status-indicator/status-indicator.css +124 -100
  164. package/src/status-indicator/status-indicator.tokens.json +0 -3
  165. package/src/stepper/stepper.css +78 -82
  166. package/src/switch/switch.css +100 -106
  167. package/src/table/table.css +270 -198
  168. package/src/table/table.tokens.json +2 -0
  169. package/src/table-of-contents/table-of-contents.css +60 -59
  170. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  171. package/src/tabs/tabs.css +327 -294
  172. package/src/tabs/tabs.tokens.json +7 -1
  173. package/src/tag/tag.css +109 -88
  174. package/src/tag/tag.tokens.json +10 -0
  175. package/src/tags-input/tags-input.css +152 -87
  176. package/src/tags-input/tags-input.tokens.json +7 -1
  177. package/src/text-field/text-field.css +146 -148
  178. package/src/text-field/text-field.tokens.json +1 -0
  179. package/src/textarea/textarea.css +38 -33
  180. package/src/textarea/textarea.tokens.json +1 -0
  181. package/src/time-field/time-field.css +82 -77
  182. package/src/time-field/time-field.tokens.json +1 -0
  183. package/src/time-picker/time-picker.css +116 -64
  184. package/src/time-picker/time-picker.tokens.json +4 -1
  185. package/src/time-range-picker/time-range-picker.css +168 -140
  186. package/src/time-range-picker/time-range-picker.tokens.json +4 -0
  187. package/src/timeline/timeline.css +280 -292
  188. package/src/timeline/timeline.tokens.json +5 -0
  189. package/src/toast/toast.css +139 -122
  190. package/src/toast/toast.tokens.json +7 -0
  191. package/src/toggle/toggle.css +34 -38
  192. package/src/toggle-group/toggle-group.css +73 -77
  193. package/src/toolbar/toolbar.css +33 -38
  194. package/src/tooltip/tooltip.css +65 -39
  195. package/src/tooltip/tooltip.tokens.json +1 -0
  196. package/src/top-navigation/top-navigation.css +252 -268
  197. package/src/tour/tour.css +68 -74
  198. package/src/tour/tour.tokens.json +1 -0
  199. package/src/transfer/transfer.css +164 -168
  200. package/src/tree/tree.css +113 -121
  201. package/src/typography/typography.css +42 -38
  202. package/src/typography/typography.tokens.json +1 -0
  203. package/src/upload/upload.css +256 -257
  204. package/src/visually-hidden/visually-hidden.css +1 -1
  205. package/src/wizard/wizard.css +187 -199
@@ -39,7 +39,7 @@
39
39
  * itself;
40
40
  * - only focus is raised.
41
41
  */
42
- [data-ui='split-button'][data-part='root'] {
42
+ [data-ui-split-button][data-part-root] {
43
43
  --_radius: var(--slotted-split-button-radius, var(--slotted-control-radius, 4px));
44
44
  --_overlap: calc(-1 * var(--slotted-control-border-width, 1px));
45
45
 
@@ -57,7 +57,7 @@
57
57
  * label wrap inside its own control, which is `button`'s rule.
58
58
  */
59
59
  min-inline-size: 0;
60
- /* A control written inside a sentence sits on the text's centre. */
60
+ /* A control written inside a sentence sits on the text's center. */
61
61
  vertical-align: middle;
62
62
  }
63
63
 
@@ -68,19 +68,19 @@
68
68
  * square from the control height and stays so, because a wide chevron is a
69
69
  * second button nobody asked for.
70
70
  */
71
- [data-ui='split-button'][data-part='root'][data-full-width] {
71
+ [data-ui-split-button][data-part-root][data-full-width] {
72
72
  display: flex;
73
73
  inline-size: 100%;
74
74
  }
75
75
 
76
- [data-ui='split-button'][data-part='root'][data-full-width] > [data-part='primary'] {
76
+ [data-ui-split-button][data-part-root][data-full-width] > [data-part-primary] {
77
77
  flex: 1 1 0;
78
78
  min-inline-size: 0;
79
79
  }
80
80
 
81
81
  /* ── The shape ────────────────────────────────────────────────────────── */
82
82
 
83
- [data-ui='split-button'][data-part='root'] > [data-part='primary'] {
83
+ [data-ui-split-button][data-part-root] > [data-part-primary] {
84
84
  border-end-end-radius: 0;
85
85
  border-end-start-radius: var(--_radius);
86
86
  border-start-end-radius: 0;
@@ -90,7 +90,7 @@
90
90
  min-inline-size: 0;
91
91
  }
92
92
 
93
- [data-ui='split-button'][data-part='root'] > [data-part='menu-trigger'] {
93
+ [data-ui-split-button][data-part-root] > [data-part-menu-trigger] {
94
94
  border-end-end-radius: var(--_radius);
95
95
  border-end-start-radius: 0;
96
96
  border-start-end-radius: var(--_radius);
@@ -113,19 +113,15 @@
113
113
  * `button-group` records: the rule has to outrank every border rule `button`
114
114
  * writes for the same control whatever order the two sheets load in.
115
115
  */
116
- [data-ui='split-button'][data-part='root']
117
- > [data-ui='button'][data-variant='outline'][data-pressed],
118
- [data-ui='split-button'][data-part='root']
119
- > [data-ui='button'][data-variant='outline'][data-disabled],
120
- [data-ui='split-button'][data-part='root'] > [data-ui='button'][data-variant='outline']:disabled {
116
+ [data-ui-split-button][data-part-root] > [data-ui-button][data-variant='outline'][data-pressed],
117
+ [data-ui-split-button][data-part-root] > [data-ui-button][data-variant='outline'][data-disabled],
118
+ [data-ui-split-button][data-part-root] > [data-ui-button][data-variant='outline']:disabled {
121
119
  border-color: var(--slotted-control-border-color, ButtonBorder);
122
120
  }
123
121
 
124
- [data-ui='split-button'][data-part='root']
125
- > [data-ui='button'][data-variant='ghost'][data-pressed],
126
- [data-ui='split-button'][data-part='root']
127
- > [data-ui='button'][data-variant='ghost'][data-disabled],
128
- [data-ui='split-button'][data-part='root'] > [data-ui='button'][data-variant='ghost']:disabled {
122
+ [data-ui-split-button][data-part-root] > [data-ui-button][data-variant='ghost'][data-pressed],
123
+ [data-ui-split-button][data-part-root] > [data-ui-button][data-variant='ghost'][data-disabled],
124
+ [data-ui-split-button][data-part-root] > [data-ui-button][data-variant='ghost']:disabled {
129
125
  border-color: transparent;
130
126
  }
131
127
 
@@ -136,8 +132,7 @@
136
132
  * narrowed, because a narrower border box would move its label by half a
137
133
  * pixel — and the trigger's leading edge is the one seen.
138
134
  */
139
- [data-ui='split-button'][data-part='root']
140
- > [data-ui='button'][data-part='primary'][data-variant] {
135
+ [data-ui-split-button][data-part-root] > [data-ui-button][data-part-primary][data-variant] {
141
136
  border-inline-end-color: transparent;
142
137
  }
143
138
 
@@ -153,28 +148,32 @@
153
148
  * one. It is painted on the trigger's leading edge, the one edge the rule
154
149
  * above leaves in the column.
155
150
  */
156
- [data-ui='split-button'][data-part='root'] > [data-tone='accent'] {
151
+ [data-ui-split-button][data-part-root] > [data-tone='accent'] {
157
152
  --_seam: var(--slotted-tone-accent-solid-active);
158
153
  }
159
154
 
160
- [data-ui='split-button'][data-part='root'] > [data-tone='secondary'] {
155
+ [data-ui-split-button][data-part-root] > [data-tone='secondary'] {
161
156
  --_seam: var(--slotted-tone-secondary-solid-active);
162
157
  }
163
158
 
164
- [data-ui='split-button'][data-part='root'] > [data-tone='success'] {
159
+ [data-ui-split-button][data-part-root] > [data-tone='success'] {
165
160
  --_seam: var(--slotted-tone-success-solid-active);
166
161
  }
167
162
 
168
- [data-ui='split-button'][data-part='root'] > [data-tone='warning'] {
163
+ [data-ui-split-button][data-part-root] > [data-tone='info'] {
164
+ --_seam: var(--slotted-tone-info-solid-active);
165
+ }
166
+
167
+ [data-ui-split-button][data-part-root] > [data-tone='warning'] {
169
168
  --_seam: var(--slotted-tone-warning-solid-active);
170
169
  }
171
170
 
172
- [data-ui='split-button'][data-part='root'] > [data-tone='danger'] {
171
+ [data-ui-split-button][data-part-root] > [data-tone='danger'] {
173
172
  --_seam: var(--slotted-tone-danger-solid-active);
174
173
  }
175
174
 
176
- [data-ui='split-button'][data-part='root']
177
- > [data-ui='button'][data-variant='solid'][data-part='menu-trigger'] {
175
+ [data-ui-split-button][data-part-root]
176
+ > [data-ui-button][data-variant='solid'][data-part-menu-trigger] {
178
177
  border-inline-start-color: var(--_seam, ButtonBorder);
179
178
  }
180
179
 
@@ -182,12 +181,12 @@
182
181
  * A filled half that is unavailable has no darkest step to draw the seam
183
182
  * in: `button` paints it the disabled ground inside the disabled border,
184
183
  * and the seam takes that border so the bar reads as one unavailable
185
- * control rather than as a grey one with a coloured line through it.
184
+ * control rather than as a grey one with a colored line through it.
186
185
  */
187
- [data-ui='split-button'][data-part='root']
188
- > [data-ui='button'][data-variant='solid'][data-part='menu-trigger']:disabled,
189
- [data-ui='split-button'][data-part='root']
190
- > [data-ui='button'][data-variant='solid'][data-part='menu-trigger'][data-disabled] {
186
+ [data-ui-split-button][data-part-root]
187
+ > [data-ui-button][data-variant='solid'][data-part-menu-trigger]:disabled,
188
+ [data-ui-split-button][data-part-root]
189
+ > [data-ui-button][data-variant='solid'][data-part-menu-trigger][data-disabled] {
191
190
  border-inline-start-color: var(--slotted-disabled-border, ButtonBorder);
192
191
  }
193
192
 
@@ -197,7 +196,7 @@
197
196
  * follows it in the DOM. Hover and press repaint a fill and never an edge,
198
197
  * so there is nothing to lift for them — `button-group`'s reading.
199
198
  */
200
- [data-ui='split-button'][data-part='root'] > *:focus-visible {
199
+ [data-ui-split-button][data-part-root] > *:focus-visible {
201
200
  z-index: 1;
202
201
  }
203
202
 
@@ -208,7 +207,7 @@
208
207
  * menu button keeps; not the ellipsis, which says "more" without saying
209
208
  * what opens. It is the `chevron-down` Glyph element the binding renders in
210
209
  * the icon part, stroked in the control's own ink, so it follows the label
211
- * into hover, press, disabled, every tone's `on-solid` and forced colours.
210
+ * into hover, press, disabled, every tone's `on-solid` and forced colors.
212
211
  * `button` sizes it through the icon part; this stylesheet paints nothing.
213
212
  *
214
213
  * It does not turn while the menu is open. None of the six surveyed split
@@ -235,18 +234,18 @@
235
234
  * send. `pointer-events: none` is also what takes hover away without a
236
235
  * state the stylesheet would have to hold back.
237
236
  */
238
- [data-ui='split-button'][data-part='root'][data-loading] > [data-part='menu-trigger'] {
237
+ [data-ui-split-button][data-part-root][data-loading] > [data-part-menu-trigger] {
239
238
  pointer-events: none;
240
239
  }
241
240
 
242
241
  /**
243
- * Under forced colours the theme flattens every fill, so a half that is
242
+ * Under forced colors the theme flattens every fill, so a half that is
244
243
  * pressed has only its edge left to say so. `button` makes that edge
245
244
  * `Highlight`; the frame rule above would have taken it away, and this
246
245
  * puts it back — `button-group`'s rule for the same case.
247
246
  */
248
247
  @media (forced-colors: active) {
249
- [data-ui='split-button'][data-part='root'] > [data-ui='button'][data-pressed] {
248
+ [data-ui-split-button][data-part-root] > [data-ui-button][data-pressed] {
250
249
  border-color: Highlight;
251
250
  }
252
251
  }
@@ -6,6 +6,7 @@
6
6
  "--slotted-split-button-radius",
7
7
  "--slotted-tone-accent-solid-active",
8
8
  "--slotted-tone-danger-solid-active",
9
+ "--slotted-tone-info-solid-active",
9
10
  "--slotted-tone-secondary-solid-active",
10
11
  "--slotted-tone-success-solid-active",
11
12
  "--slotted-tone-warning-solid-active"
@@ -1,8 +1,7 @@
1
1
  @layer slotted.components {
2
2
  /**
3
3
  * A bar between two regions the consumer owns, and nothing else. The family
4
- * holds no panels — `docs/history/designs/2026-09-11-splitter-design.md`
5
- * section 1 — so this stylesheet paints one element and its two children and
4
+ * holds no panels, so this stylesheet paints one element and its two children and
6
5
  * writes no layout at all. A separator that sized the boxes beside it would
7
6
  * be deciding a layout it was only handed a position in.
8
7
  *
@@ -15,10 +14,10 @@
15
14
  *
16
15
  * `touch-action: none` so a drag is not read as a scroll on the way past.
17
16
  */
18
- [data-ui='splitter'] {
17
+ [data-ui-splitter] {
19
18
  /**
20
19
  * The track is what the pointer sees and `--slotted-target-min` is what it
21
- * gets: `::before` below is a transparent box centred on the track, which
20
+ * gets: `::before` below is a transparent box centerd on the track, which
22
21
  * is the construction `drawer`'s resizer already uses to hold the WCAG 2.2
23
22
  * floor without widening the picture. One rem rather than the four pixels
24
23
  * `drawer` uses, because this bar carries a grip and four pixels cannot.
@@ -65,7 +64,7 @@
65
64
  --_dot: var(--slotted-space-2, 0.25rem);
66
65
 
67
66
  /**
68
- * Two steps, and the whole of the colour decision.
67
+ * Two steps, and the whole of the color decision.
69
68
  *
70
69
  * `--_rest` is the **strong** border step and not the subtle one, which is
71
70
  * a correction from the first capture: drawn in `--slotted-border-subtle`
@@ -74,11 +73,11 @@
74
73
  * subtle step is for a rule inside one surface; this is the boundary
75
74
  * between two, which is the step the foundation holds to 3:1.
76
75
  *
77
- * `--_active` is a step darker again. The colour is the smaller half of the
76
+ * `--_active` is a step darker again. The color is the smaller half of the
78
77
  * feedback: the larger half is the lines running the whole track, which is
79
78
  * what SAP changes and what a hand actually reads.
80
79
  *
81
- * The accent is deliberately absent from both. It is the one colour in the
80
+ * The accent is deliberately absent from both. It is the one color in the
82
81
  * library that means "the keyboard is here", and the rule below spends it
83
82
  * on `:focus-visible` alone. `drawer`'s resizer spends it on hover as well,
84
83
  * which is the defect this family was built to correct; SAP is the only one
@@ -111,9 +110,9 @@
111
110
  * `data-dragging` and rest as the same picture. Closing the gap hands those
112
111
  * pixels to the lines, and the pair roughly doubles instead.
113
112
  */
114
- [data-ui='splitter']:not([data-disabled]):hover,
115
- [data-ui='splitter']:not([data-disabled]):focus-visible,
116
- [data-ui='splitter'][data-dragging] {
113
+ [data-ui-splitter]:not([data-disabled]):hover,
114
+ [data-ui-splitter]:not([data-disabled]):focus-visible,
115
+ [data-ui-splitter][data-dragging] {
117
116
  --_gap: var(--slotted-space-4, 0.5rem);
118
117
  }
119
118
 
@@ -124,14 +123,14 @@
124
123
  * other. A container that packs its children instead of stretching them
125
124
  * would otherwise size the bar from its content.
126
125
  */
127
- [data-ui='splitter'][data-orientation='vertical'] {
126
+ [data-ui-splitter][data-orientation='vertical'] {
128
127
  flex-direction: column;
129
128
  inline-size: var(--_track);
130
129
  align-self: stretch;
131
130
  cursor: col-resize;
132
131
  }
133
132
 
134
- [data-ui='splitter'][data-orientation='horizontal'] {
133
+ [data-ui-splitter][data-orientation='horizontal'] {
135
134
  flex-direction: row;
136
135
  block-size: var(--_track);
137
136
  justify-self: stretch;
@@ -139,21 +138,21 @@
139
138
  }
140
139
 
141
140
  /**
142
- * The reach. Transparent, centred on the track, and the reason a sixteen-pixel
141
+ * The reach. Transparent, centerd on the track, and the reason a sixteen-pixel
143
142
  * picture is a twenty-four-pixel target.
144
143
  */
145
- [data-ui='splitter']::before {
144
+ [data-ui-splitter]::before {
146
145
  content: '';
147
146
  position: absolute;
148
147
  --_overhang: calc((var(--_reach) - var(--_track)) / -2);
149
148
  }
150
149
 
151
- [data-ui='splitter'][data-orientation='vertical']::before {
150
+ [data-ui-splitter][data-orientation='vertical']::before {
152
151
  inset-block: 0;
153
152
  inset-inline: var(--_overhang);
154
153
  }
155
154
 
156
- [data-ui='splitter'][data-orientation='horizontal']::before {
155
+ [data-ui-splitter][data-orientation='horizontal']::before {
157
156
  inset-inline: 0;
158
157
  inset-block: var(--_overhang);
159
158
  }
@@ -164,8 +163,8 @@
164
163
  * Each fades to transparent *away* from the grip, so the pair reads as one
165
164
  * mark with a middle rather than as two dashes. The gradient is the reason
166
165
  * these are elements and not pseudo-elements: `packages/styles/src/fallbacks.test.mjs`
167
- * forbids a system colour inside `::before` or `::after`, and the focus
168
- * colour's own last resort is `Highlight`.
166
+ * forbids a system color inside `::before` or `::after`, and the focus
167
+ * color's own last resort is `Highlight`.
169
168
  *
170
169
  * `flex-basis` carries both the resting length and the growth, because a
171
170
  * grow factor does not animate and the extension *is* the feedback.
@@ -181,7 +180,7 @@
181
180
  * A proportion leaves slack at every track length. That slack is what the
182
181
  * hand claims.
183
182
  */
184
- [data-ui='splitter'] > [data-part='line'] {
183
+ [data-ui-splitter] > [data-part-line] {
185
184
  flex: 0 1 min(var(--_line-length), 20%);
186
185
  min-block-size: 0;
187
186
  min-inline-size: 0;
@@ -193,28 +192,28 @@
193
192
  var(--slotted-control-transition-easing, var(--slotted-easing-standard));
194
193
  }
195
194
 
196
- [data-ui='splitter'][data-orientation='vertical'] > [data-part='line'] {
195
+ [data-ui-splitter][data-orientation='vertical'] > [data-part-line] {
197
196
  inline-size: var(--_line);
198
197
  }
199
198
 
200
- [data-ui='splitter'][data-orientation='horizontal'] > [data-part='line'] {
199
+ [data-ui-splitter][data-orientation='horizontal'] > [data-part-line] {
201
200
  block-size: var(--_line);
202
201
  }
203
202
 
204
203
  /* Solid at the grip, gone at the far end. Four rules, one per direction. */
205
- [data-ui='splitter'][data-orientation='vertical'] > [data-part='line']:first-child {
204
+ [data-ui-splitter][data-orientation='vertical'] > [data-part-line]:first-child {
206
205
  background: linear-gradient(to bottom, transparent, var(--_rest));
207
206
  }
208
207
 
209
- [data-ui='splitter'][data-orientation='vertical'] > [data-part='line']:last-child {
208
+ [data-ui-splitter][data-orientation='vertical'] > [data-part-line]:last-child {
210
209
  background: linear-gradient(to top, transparent, var(--_rest));
211
210
  }
212
211
 
213
- [data-ui='splitter'][data-orientation='horizontal'] > [data-part='line']:first-child {
212
+ [data-ui-splitter][data-orientation='horizontal'] > [data-part-line]:first-child {
214
213
  background: linear-gradient(to right, transparent, var(--_rest));
215
214
  }
216
215
 
217
- [data-ui='splitter'][data-orientation='horizontal'] > [data-part='line']:last-child {
216
+ [data-ui-splitter][data-orientation='horizontal'] > [data-part-line]:last-child {
218
217
  background: linear-gradient(to left, transparent, var(--_rest));
219
218
  }
220
219
 
@@ -227,9 +226,9 @@
227
226
  * Hover is held back for `data-disabled`, which is the shared rule from
228
227
  * `packages/styles/src/states.test.mjs`.
229
228
  */
230
- [data-ui='splitter']:not([data-disabled]):hover > [data-part='line'],
231
- [data-ui='splitter']:not([data-disabled]):focus-visible > [data-part='line'],
232
- [data-ui='splitter'][data-dragging] > [data-part='line'] {
229
+ [data-ui-splitter]:not([data-disabled]):hover > [data-part-line],
230
+ [data-ui-splitter]:not([data-disabled]):focus-visible > [data-part-line],
231
+ [data-ui-splitter][data-dragging] > [data-part-line] {
233
232
  flex-basis: 100%;
234
233
  background: var(--_active);
235
234
  }
@@ -238,14 +237,14 @@
238
237
  * The keyboard's own signal is the ring, and it is the only place the accent
239
238
  * appears. The lines take the same step they take under the hand.
240
239
  *
241
- * They were drawn in the focus colour too, until the capture showed what that
240
+ * They were drawn in the focus color too, until the capture showed what that
242
241
  * is: a two-pixel accent ring around a sixteen-pixel bar whose interior is
243
242
  * also accent, which reads as a solid blue block rather than as a ring around
244
243
  * a separator. The accent said the same thing twice in the same twelve
245
244
  * pixels, and the second saying cost the first its shape.
246
245
  */
247
246
 
248
- [data-ui='splitter']:focus-visible {
247
+ [data-ui-splitter]:focus-visible {
249
248
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
250
249
  outline-offset: calc(-1 * var(--slotted-focus-ring-offset, 2px));
251
250
  }
@@ -255,11 +254,11 @@
255
254
  * and sized from the same step, so a density that retunes the space scale
256
255
  * retunes the mark with it.
257
256
  *
258
- * `color` rather than a background colour on each dot: the dots and the lines
257
+ * `color` rather than a background color on each dot: the dots and the lines
259
258
  * are one mark and have to move together, and `currentColor` is the one place
260
259
  * that says so.
261
260
  */
262
- [data-ui='splitter'] > [data-part='grip'] {
261
+ [data-ui-splitter] > [data-part-grip] {
263
262
  flex: none;
264
263
  color: var(--_rest);
265
264
  background-image: radial-gradient(circle at center, currentColor 40%, transparent 42%);
@@ -269,19 +268,19 @@
269
268
  var(--slotted-control-transition-easing, var(--slotted-easing-standard));
270
269
  }
271
270
 
272
- [data-ui='splitter'][data-orientation='vertical'] > [data-part='grip'] {
271
+ [data-ui-splitter][data-orientation='vertical'] > [data-part-grip] {
273
272
  inline-size: calc(2 * var(--_dot));
274
273
  block-size: calc(3 * var(--_dot));
275
274
  }
276
275
 
277
- [data-ui='splitter'][data-orientation='horizontal'] > [data-part='grip'] {
276
+ [data-ui-splitter][data-orientation='horizontal'] > [data-part-grip] {
278
277
  inline-size: calc(3 * var(--_dot));
279
278
  block-size: calc(2 * var(--_dot));
280
279
  }
281
280
 
282
- [data-ui='splitter']:not([data-disabled]):hover > [data-part='grip'],
283
- [data-ui='splitter']:not([data-disabled]):focus-visible > [data-part='grip'],
284
- [data-ui='splitter'][data-dragging] > [data-part='grip'] {
281
+ [data-ui-splitter]:not([data-disabled]):hover > [data-part-grip],
282
+ [data-ui-splitter]:not([data-disabled]):focus-visible > [data-part-grip],
283
+ [data-ui-splitter][data-dragging] > [data-part-grip] {
285
284
  color: var(--_active);
286
285
  }
287
286
 
@@ -290,34 +289,34 @@
290
289
  * separator can still read its value — so this changes the picture and the
291
290
  * cursor and nothing about the focus.
292
291
  */
293
- [data-ui='splitter'][data-disabled] {
292
+ [data-ui-splitter][data-disabled] {
294
293
  cursor: default;
295
294
  --_rest: var(--slotted-splitter-disabled-line-color, var(--slotted-disabled-border, GrayText));
296
295
  }
297
296
 
298
297
  /**
299
- * Forced colours. A gradient resolves to nothing there, so both lines take a
300
- * flat system colour and the growth is what is left of the feedback. The
298
+ * Forced colors. A gradient resolves to nothing there, so both lines take a
299
+ * flat system color and the growth is what is left of the feedback. The
301
300
  * grip's gradient is replaced for the same reason.
302
301
  */
303
302
  @media (forced-colors: active) {
304
- [data-ui='splitter'] > [data-part='line'] {
303
+ [data-ui-splitter] > [data-part-line] {
305
304
  background: ButtonBorder;
306
305
  forced-color-adjust: none;
307
306
  }
308
307
 
309
- [data-ui='splitter']:not([data-disabled]):hover > [data-part='line'],
310
- [data-ui='splitter'][data-dragging] > [data-part='line'] {
308
+ [data-ui-splitter]:not([data-disabled]):hover > [data-part-line],
309
+ [data-ui-splitter][data-dragging] > [data-part-line] {
311
310
  background: ButtonText;
312
311
  }
313
312
 
314
- [data-ui='splitter'] > [data-part='grip'] {
313
+ [data-ui-splitter] > [data-part-grip] {
315
314
  background-image: none;
316
315
  background-color: ButtonBorder;
317
316
  }
318
317
 
319
- [data-ui='splitter'][data-disabled] > [data-part='line'],
320
- [data-ui='splitter'][data-disabled] > [data-part='grip'] {
318
+ [data-ui-splitter][data-disabled] > [data-part-line],
319
+ [data-ui-splitter][data-disabled] > [data-part-grip] {
321
320
  background: GrayText;
322
321
  }
323
322
  }
@@ -328,8 +327,8 @@
328
327
  * without travelling.
329
328
  */
330
329
  @media (prefers-reduced-motion: reduce) {
331
- [data-ui='splitter'] > [data-part='line'],
332
- [data-ui='splitter'] > [data-part='grip'] {
330
+ [data-ui-splitter] > [data-part-line],
331
+ [data-ui-splitter] > [data-part-grip] {
333
332
  transition-duration: var(--slotted-duration-instant);
334
333
  }
335
334
  }
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * Stack arranges its children along the block axis and separates them by one
4
4
  * step of the space scale. It paints nothing at all: a layout that carried a
5
- * colour would be a surface, and a surface is another family's decision.
5
+ * color would be a surface, and a surface is another family's decision.
6
6
  *
7
7
  * The separation travels through a private property because Grid needs the
8
8
  * same value inside a track function, and the three layout families state the
@@ -10,7 +10,7 @@
10
10
  * base rule, so a nested layout can never inherit the separation of the one
11
11
  * above it.
12
12
  */
13
- [data-ui='stack'] {
13
+ [data-ui-stack] {
14
14
  --_gap: var(--slotted-space-6, 1rem);
15
15
 
16
16
  display: flex;
@@ -25,55 +25,55 @@
25
25
  }
26
26
 
27
27
  /* Separation is a step on the scale, never a length the consumer states. */
28
- [data-ui='stack'][data-gap='0'] {
28
+ [data-ui-stack][data-gap='0'] {
29
29
  --_gap: 0;
30
30
  }
31
31
 
32
- [data-ui='stack'][data-gap='1'] {
32
+ [data-ui-stack][data-gap='1'] {
33
33
  --_gap: var(--slotted-space-1, 0.125rem);
34
34
  }
35
35
 
36
- [data-ui='stack'][data-gap='2'] {
36
+ [data-ui-stack][data-gap='2'] {
37
37
  --_gap: var(--slotted-space-2, 0.25rem);
38
38
  }
39
39
 
40
- [data-ui='stack'][data-gap='3'] {
40
+ [data-ui-stack][data-gap='3'] {
41
41
  --_gap: var(--slotted-space-3, 0.375rem);
42
42
  }
43
43
 
44
- [data-ui='stack'][data-gap='4'] {
44
+ [data-ui-stack][data-gap='4'] {
45
45
  --_gap: var(--slotted-space-4, 0.5rem);
46
46
  }
47
47
 
48
- [data-ui='stack'][data-gap='5'] {
48
+ [data-ui-stack][data-gap='5'] {
49
49
  --_gap: var(--slotted-space-5, 0.75rem);
50
50
  }
51
51
 
52
- [data-ui='stack'][data-gap='6'] {
52
+ [data-ui-stack][data-gap='6'] {
53
53
  --_gap: var(--slotted-space-6, 1rem);
54
54
  }
55
55
 
56
- [data-ui='stack'][data-gap='7'] {
56
+ [data-ui-stack][data-gap='7'] {
57
57
  --_gap: var(--slotted-space-7, 1.25rem);
58
58
  }
59
59
 
60
- [data-ui='stack'][data-gap='8'] {
60
+ [data-ui-stack][data-gap='8'] {
61
61
  --_gap: var(--slotted-space-8, 1.5rem);
62
62
  }
63
63
 
64
- [data-ui='stack'][data-gap='9'] {
64
+ [data-ui-stack][data-gap='9'] {
65
65
  --_gap: var(--slotted-space-9, 2rem);
66
66
  }
67
67
 
68
- [data-ui='stack'][data-gap='10'] {
68
+ [data-ui-stack][data-gap='10'] {
69
69
  --_gap: var(--slotted-space-10, 2.5rem);
70
70
  }
71
71
 
72
- [data-ui='stack'][data-gap='11'] {
72
+ [data-ui-stack][data-gap='11'] {
73
73
  --_gap: var(--slotted-space-11, 3rem);
74
74
  }
75
75
 
76
- [data-ui='stack'][data-gap='12'] {
76
+ [data-ui-stack][data-gap='12'] {
77
77
  --_gap: var(--slotted-space-12, 4rem);
78
78
  }
79
79
 
@@ -82,19 +82,19 @@
82
82
  * axis. The keywords are the logical ones, so a right-to-left document is the
83
83
  * same component mirrored rather than a second stylesheet.
84
84
  */
85
- [data-ui='stack'][data-align='start'] {
85
+ [data-ui-stack][data-align='start'] {
86
86
  align-items: start;
87
87
  }
88
88
 
89
- [data-ui='stack'][data-align='center'] {
89
+ [data-ui-stack][data-align='center'] {
90
90
  align-items: center;
91
91
  }
92
92
 
93
- [data-ui='stack'][data-align='end'] {
93
+ [data-ui-stack][data-align='end'] {
94
94
  align-items: end;
95
95
  }
96
96
 
97
- [data-ui='stack'][data-align='stretch'] {
97
+ [data-ui-stack][data-align='stretch'] {
98
98
  align-items: stretch;
99
99
  }
100
100
 
@@ -102,27 +102,27 @@
102
102
  * `justify` positions children along the flow, which for a stack is the block
103
103
  * axis. It moves nothing until the stack is given a block size to distribute.
104
104
  */
105
- [data-ui='stack'][data-justify='start'] {
105
+ [data-ui-stack][data-justify='start'] {
106
106
  justify-content: start;
107
107
  }
108
108
 
109
- [data-ui='stack'][data-justify='center'] {
109
+ [data-ui-stack][data-justify='center'] {
110
110
  justify-content: center;
111
111
  }
112
112
 
113
- [data-ui='stack'][data-justify='end'] {
113
+ [data-ui-stack][data-justify='end'] {
114
114
  justify-content: end;
115
115
  }
116
116
 
117
- [data-ui='stack'][data-justify='between'] {
117
+ [data-ui-stack][data-justify='between'] {
118
118
  justify-content: space-between;
119
119
  }
120
120
 
121
- [data-ui='stack'][data-justify='around'] {
121
+ [data-ui-stack][data-justify='around'] {
122
122
  justify-content: space-around;
123
123
  }
124
124
 
125
- [data-ui='stack'][data-justify='evenly'] {
125
+ [data-ui-stack][data-justify='evenly'] {
126
126
  justify-content: space-evenly;
127
127
  }
128
128
  }