@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
package/src/tour/tour.css CHANGED
@@ -20,7 +20,7 @@
20
20
  * └────────────────────────────────────────────────────────────────────┘
21
21
  *
22
22
  * The surface is popover's layer and the scrim is dialog's
23
- * (`docs/history/designs/2026-09-24-tour-design.md` §4.1). The card's
23
+ *. The card's
24
24
  * geometry, its arrow and its entrance repeat popover's for the reason that
25
25
  * family records beside each of them.
26
26
  *
@@ -33,7 +33,7 @@
33
33
  * The backdrop holds it and fades it, so the scrim arrives and leaves the way
34
34
  * `dialog`'s does (`scrim-motion.test.mjs`).
35
35
  */
36
- [data-ui='tour'] {
36
+ [data-ui-tour] {
37
37
  --_scrim: var(--slotted-tour-scrim, var(--slotted-scrim, Canvas));
38
38
  --_spotlight-padding: var(--slotted-tour-spotlight-padding, var(--slotted-space-3, 0.375rem));
39
39
  --_spotlight-radius: var(--slotted-tour-spotlight-radius, var(--slotted-radius-md, 6px));
@@ -83,12 +83,12 @@
83
83
 
84
84
  /* Visible at once on the way in: a frame hidden until the end of a transition
85
85
  cannot take focus in the frame it opens, and the card is focused then. */
86
- [data-ui='tour'][data-open] {
86
+ [data-ui-tour][data-open] {
87
87
  visibility: visible;
88
88
  transition: none;
89
89
  }
90
90
 
91
- [data-ui='tour'][data-size='sm'] {
91
+ [data-ui-tour][data-size='sm'] {
92
92
  --_inset-block: var(--slotted-tour-padding-block-sm, var(--slotted-space-5, 0.75rem));
93
93
  --_inset-inline: var(--slotted-tour-padding-inline-sm, var(--slotted-space-5, 0.75rem));
94
94
  --_title-font-size: var(--slotted-font-size-md, 0.875rem);
@@ -96,7 +96,7 @@
96
96
  --_measure: var(--slotted-tour-measure-sm, 16rem);
97
97
  }
98
98
 
99
- [data-ui='tour'][data-size='lg'] {
99
+ [data-ui-tour][data-size='lg'] {
100
100
  --_inset-block: var(--slotted-tour-padding-block-lg, var(--slotted-space-7, 1.25rem));
101
101
  --_inset-inline: var(--slotted-tour-padding-inline-lg, var(--slotted-space-7, 1.25rem));
102
102
  --_title-font-size: var(--slotted-font-size-xl, 1.125rem);
@@ -106,11 +106,11 @@
106
106
  /* ── The scrim ────────────────────────────────────────────────────────── */
107
107
 
108
108
  /**
109
- * With no spotlight — a centred step, or `spotlight={false}` on a modal
109
+ * With no spotlight — a centerd step, or `spotlight={false}` on a modal
110
110
  * step — the backdrop paints the scrim itself, as `dialog`'s does. With one,
111
111
  * the spotlight's shadow paints it and the backdrop only carries the fade.
112
112
  */
113
- [data-ui='tour'] > [data-part='backdrop'] {
113
+ [data-ui-tour] > [data-part-backdrop] {
114
114
  position: absolute;
115
115
  inset: 0;
116
116
  overflow: clip;
@@ -119,19 +119,19 @@
119
119
  transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
120
120
  }
121
121
 
122
- [data-ui='tour'][data-open] > [data-part='backdrop'] {
122
+ [data-ui-tour][data-open] > [data-part-backdrop] {
123
123
  opacity: 1;
124
124
  transition: opacity var(--slotted-duration-long) var(--slotted-easing-standard);
125
125
  }
126
126
 
127
- [data-ui='tour'][data-spotlight] > [data-part='backdrop'] {
127
+ [data-ui-tour][data-spotlight] > [data-part-backdrop] {
128
128
  background: transparent;
129
129
  }
130
130
 
131
131
  /* A modal step takes every press outside the card, the target's included:
132
132
  the page beneath is inert, and a press that reached it would do nothing
133
133
  a reader could see. */
134
- [data-ui='tour'][data-modal] > [data-part='backdrop'] {
134
+ [data-ui-tour][data-modal] > [data-part-backdrop] {
135
135
  pointer-events: auto;
136
136
  }
137
137
 
@@ -144,7 +144,7 @@
144
144
  * it from any position the cutout can take, a target half off screen
145
145
  * included.
146
146
  */
147
- [data-ui='tour'] > [data-part='backdrop'] > [data-part='spotlight'] {
147
+ [data-ui-tour] > [data-part-backdrop] > [data-part-spotlight] {
148
148
  position: absolute;
149
149
  left: calc(var(--slotted-tour-target-x, 0px) - var(--_spotlight-padding));
150
150
  top: calc(var(--slotted-tour-target-y, 0px) - var(--_spotlight-padding));
@@ -173,23 +173,23 @@
173
173
  * - `travel`: from one target to the next, so the reader sees where the
174
174
  * tour went rather than a light going out in one place and on in another.
175
175
  * - `light`: a cutout opening where there was none — the first step, or the
176
- * step after a centred one. The hole starts in the scrim's ink and clears,
176
+ * step after a centerd one. The hole starts in the scrim's ink and clears,
177
177
  * so the target is lit rather than revealed by a cut.
178
- * - `close`: the step after is centred. The hole fills back with the scrim
178
+ * - `close`: the step after is centerd. The hole fills back with the scrim
179
179
  * before the cutout goes, and the backdrop, which paints the same ink,
180
180
  * takes over without a seam.
181
181
  */
182
- [data-ui='tour'][data-spot='travel'] > [data-part='backdrop'] > [data-part='spotlight'] {
182
+ [data-ui-tour][data-spot='travel'] > [data-part-backdrop] > [data-part-spotlight] {
183
183
  transition-property: left, top, width, height;
184
184
  transition-duration: var(--slotted-duration-long);
185
185
  transition-timing-function: var(--slotted-easing-standard);
186
186
  }
187
187
 
188
- [data-ui='tour'][data-spot='light'] > [data-part='backdrop'] > [data-part='spotlight'] {
188
+ [data-ui-tour][data-spot='light'] > [data-part-backdrop] > [data-part-spotlight] {
189
189
  animation: slotted-tour-light var(--slotted-duration-long) var(--slotted-easing-standard);
190
190
  }
191
191
 
192
- [data-ui='tour'][data-spot='close'] > [data-part='backdrop'] > [data-part='spotlight'] {
192
+ [data-ui-tour][data-spot='close'] > [data-part-backdrop] > [data-part-spotlight] {
193
193
  background-color: var(--_scrim);
194
194
  transition: background-color var(--slotted-duration-long) var(--slotted-easing-standard);
195
195
  }
@@ -208,7 +208,7 @@
208
208
  * positioner writes `left` and never `right`, and `inset-inline-start`
209
209
  * resolves to `right` in a right-to-left document.
210
210
  */
211
- [data-ui='tour'] > [data-part='surface'] {
211
+ [data-ui-tour] > [data-part-surface] {
212
212
  position: absolute;
213
213
  inset-block-start: 0;
214
214
 
@@ -239,26 +239,26 @@
239
239
 
240
240
  /**
241
241
  * `data-ready` is the binding's: the card of the step on screen has been
242
- * placed — measured by the positioner, or centred — and is not leaving. A
242
+ * placed — measured by the positioner, or centerd — and is not leaving. A
243
243
  * card between two steps, still at the old target with the new words, is
244
244
  * never drawn.
245
245
  */
246
- [data-ui='tour'][data-open] > [data-part='surface'][data-ready]:not([data-leaving]) {
246
+ [data-ui-tour][data-open] > [data-part-surface][data-ready]:not([data-leaving]) {
247
247
  opacity: 1;
248
248
  transition: opacity var(--slotted-duration-long) var(--slotted-easing-standard);
249
249
  }
250
250
 
251
- [data-ui='tour'] > [data-part='surface'][data-detached] {
251
+ [data-ui-tour] > [data-part-surface][data-detached] {
252
252
  visibility: hidden;
253
253
  }
254
254
 
255
255
  /**
256
256
  * A step with no target, or one whose target could not be found, stands in
257
257
  * the middle of the viewport as `dialog`'s panel does. Auto margins on an
258
- * absolutely placed box with all four insets at zero centre it without a
258
+ * absolutely placed box with all four insets at zero center it without a
259
259
  * transform, which the entrance owns.
260
260
  */
261
- [data-ui='tour'] > [data-part='surface'][data-placement='centered'] {
261
+ [data-ui-tour] > [data-part-surface][data-placement='centered'] {
262
262
  inset: 0;
263
263
  margin: auto;
264
264
  block-size: max-content;
@@ -268,11 +268,11 @@
268
268
 
269
269
  /**
270
270
  * A phone's notch, its rounded corners and its home indicator are outside
271
- * the safe area, and a centred card must not stand under them. `env()`
271
+ * the safe area, and a centerd card must not stand under them. `env()`
272
272
  * answers zero everywhere else.
273
273
  */
274
274
  @supports (inset: env(safe-area-inset-top)) {
275
- [data-ui='tour'] > [data-part='surface'][data-placement='centered'] {
275
+ [data-ui-tour] > [data-part-surface][data-placement='centered'] {
276
276
  inset: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
277
277
  env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
278
278
  }
@@ -286,7 +286,7 @@
286
286
  * one narrower than the screen leaves a sliver of page on either side
287
287
  * that nobody can use.
288
288
  */
289
- [data-ui='tour'][data-compact] > [data-part='surface'][data-placement='anchored'] {
289
+ [data-ui-tour][data-compact] > [data-part-surface][data-placement='anchored'] {
290
290
  /* Capped, so layout="compact" forced on a wide screen is a wide card and
291
291
  not a banner across the page. */
292
292
  --_compact-measure: var(--slotted-tour-measure-compact, 32rem);
@@ -294,11 +294,11 @@
294
294
  max-inline-size: min(var(--slotted-positioner-available-width, 100vw), var(--_compact-measure));
295
295
  }
296
296
 
297
- [data-ui='tour'] > [data-part='surface'][data-placement='centered'] > [data-part='arrow'] {
297
+ [data-ui-tour] > [data-part-surface][data-placement='centered'] > [data-part-arrow] {
298
298
  display: none;
299
299
  }
300
300
 
301
- [data-ui='tour'] > [data-part='surface'] > [data-part='focus-guard'] {
301
+ [data-ui-tour] > [data-part-surface] > [data-part-focus-guard] {
302
302
  position: absolute;
303
303
  inline-size: 1px;
304
304
  block-size: 1px;
@@ -311,12 +311,15 @@
311
311
 
312
312
  /* ── The card ─────────────────────────────────────────────────────────── */
313
313
 
314
- [data-ui='tour'] > [data-part='surface'] > [data-part='content'] {
314
+ [data-ui-tour] > [data-part-surface] > [data-part-content] {
315
315
  box-sizing: border-box;
316
316
  display: flex;
317
317
  flex-direction: column;
318
318
  max-inline-size: 100%;
319
- max-block-size: calc(var(--slotted-positioner-available-height, 100vh) - 2 * var(--_gap));
319
+ max-block-size: min(
320
+ var(--slotted-overlay-max-block-size, 100vh),
321
+ calc(var(--slotted-positioner-available-height, 100vh) - 2 * var(--_gap))
322
+ );
320
323
 
321
324
  border: var(--_border-width) solid var(--_border-color);
322
325
  border-radius: var(--_radius);
@@ -336,11 +339,11 @@
336
339
  outline: none;
337
340
  }
338
341
 
339
- [data-ui='tour'] > [data-part='surface'][data-placement='centered'] > [data-part='content'] {
342
+ [data-ui-tour] > [data-part-surface][data-placement='centered'] > [data-part-content] {
340
343
  max-block-size: calc(100vh - 2 * var(--_gap));
341
344
  }
342
345
 
343
- [data-ui='tour'] > [data-part='surface'] > [data-part='content']:focus-visible {
346
+ [data-ui-tour] > [data-part-surface] > [data-part-content]:focus-visible {
344
347
  outline: var(--slotted-focus-ring-width, 2px) solid
345
348
  var(--slotted-focus-ring-color, currentColor);
346
349
  outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
@@ -351,7 +354,7 @@
351
354
  * top rather than as an image placed inside it; its height is its own, and
352
355
  * a consumer who wants a fixed frame writes `aspect-ratio` on it.
353
356
  */
354
- [data-ui='tour'] [data-part='content'] > [data-part='media'] {
357
+ [data-ui-tour] [data-part-content] > [data-part-media] {
355
358
  display: block;
356
359
  flex: none;
357
360
  inline-size: 100%;
@@ -361,7 +364,7 @@
361
364
  border-block-end: var(--_border-width) solid var(--_border-color);
362
365
  }
363
366
 
364
- [data-ui='tour'] [data-part='content'] > [data-part='media'] > :is(img, video, svg) {
367
+ [data-ui-tour] [data-part-content] > [data-part-media] > :is(img, video, svg) {
365
368
  display: block;
366
369
  inline-size: 100%;
367
370
  block-size: auto;
@@ -370,13 +373,13 @@
370
373
  /**
371
374
  * Where the reader is, and the way out. The row is one control tall, so the
372
375
  * close control sits in it without stretching it, and the progress text is
373
- * centred on the same line.
376
+ * centerd on the same line.
374
377
  */
375
- [data-ui='tour'] [data-part='content'] > [data-part='header'] {
378
+ [data-ui-tour] [data-part-content] > [data-part-header] {
376
379
  display: flex;
377
380
  flex: none;
378
381
  /* `start`, so a progress text a translation wraps keeps the close control
379
- level with its first line; the text's own inset centres that line on
382
+ level with its first line; the text's own inset centers that line on
380
383
  the control. */
381
384
  align-items: flex-start;
382
385
  gap: var(--_row-gap);
@@ -386,7 +389,7 @@
386
389
  calc(var(--_inset-inline) - var(--slotted-space-3, 0.375rem));
387
390
  }
388
391
 
389
- [data-ui='tour'] [data-part='content'] > [data-part='header'] > [data-part='progress'] {
392
+ [data-ui-tour] [data-part-content] > [data-part-header] > [data-part-progress] {
390
393
  flex: 1 1 auto;
391
394
  min-inline-size: 0;
392
395
  margin: 0;
@@ -396,14 +399,14 @@
396
399
  color: var(--slotted-text-muted, #5b6b7f);
397
400
  font-variant-numeric: tabular-nums;
398
401
  /* Half of what the close control is taller than one line of this text,
399
- above and below, so the first line sits on the control's centre. */
402
+ above and below, so the first line sits on the control's center. */
400
403
  padding-block: calc((var(--slotted-control-height-sm, 30px) - 1lh) / 2);
401
404
  /* "2 of 5" in a right-to-left page reads "of 5 2" without it: the numbers
402
405
  are weak characters and take the paragraph's direction. */
403
406
  unicode-bidi: plaintext;
404
407
  }
405
408
 
406
- [data-ui='tour'] [data-part='content'] > [data-part='header'] > [data-part='close'] {
409
+ [data-ui-tour] [data-part-content] > [data-part-header] > [data-part-close] {
407
410
  flex: none;
408
411
  display: inline-flex;
409
412
  align-items: center;
@@ -427,31 +430,22 @@
427
430
  var(--slotted-control-transition-easing, var(--slotted-easing-standard));
428
431
  }
429
432
 
430
- [data-ui='tour']
431
- [data-part='content']
432
- > [data-part='header']
433
- > [data-part='close']:enabled:hover {
433
+ [data-ui-tour] [data-part-content] > [data-part-header] > [data-part-close]:enabled:hover {
434
434
  background: var(--slotted-tone-secondary-subtle-hover, rgb(15 23 42 / 0.06));
435
435
  color: var(--_text);
436
436
  }
437
437
 
438
- [data-ui='tour']
439
- [data-part='content']
440
- > [data-part='header']
441
- > [data-part='close']:enabled:active {
438
+ [data-ui-tour] [data-part-content] > [data-part-header] > [data-part-close]:enabled:active {
442
439
  background: var(--slotted-tone-secondary-subtle-active, rgb(15 23 42 / 0.1));
443
440
  }
444
441
 
445
- [data-ui='tour']
446
- [data-part='content']
447
- > [data-part='header']
448
- > [data-part='close']:focus-visible {
442
+ [data-ui-tour] [data-part-content] > [data-part-header] > [data-part-close]:focus-visible {
449
443
  outline: var(--slotted-focus-ring-width, 2px) solid
450
444
  var(--slotted-focus-ring-color, currentColor);
451
445
  outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
452
446
  }
453
447
 
454
- [data-ui='tour'] [data-part='content'] > [data-part='title'] {
448
+ [data-ui-tour] [data-part-content] > [data-part-title] {
455
449
  flex: none;
456
450
  margin: 0;
457
451
  padding-inline: var(--_inset-inline);
@@ -470,12 +464,12 @@
470
464
 
471
465
  /* A card with no header — the consumer composed their own — starts at the
472
466
  title, and the title takes the header's inset. */
473
- [data-ui='tour'] [data-part='content'] > [data-part='title']:first-child,
474
- [data-ui='tour'] [data-part='content'] > [data-part='media'] + [data-part='title'] {
467
+ [data-ui-tour] [data-part-content] > [data-part-title]:first-child,
468
+ [data-ui-tour] [data-part-content] > [data-part-media] + [data-part-title] {
475
469
  padding-block-start: var(--_inset-block);
476
470
  }
477
471
 
478
- [data-ui='tour'] [data-part='content'] > [data-part='description'] {
472
+ [data-ui-tour] [data-part-content] > [data-part-description] {
479
473
  flex: none;
480
474
  margin: 0;
481
475
  padding-inline: var(--_inset-inline);
@@ -489,7 +483,7 @@
489
483
  * The step's own content, and the only part that scrolls. The shadow at each
490
484
  * edge is popover's, for the reason recorded there.
491
485
  */
492
- [data-ui='tour'] [data-part='content'] > [data-part='body'] {
486
+ [data-ui-tour] [data-part-content] > [data-part-body] {
493
487
  flex: 1 1 auto;
494
488
  min-block-size: 0;
495
489
  overflow-x: hidden;
@@ -534,7 +528,7 @@
534
528
  * stacks the line skip was pushed onto above the pair. The document order,
535
529
  * which is the tab order, is still skip, back, next, and so is the picture.
536
530
  */
537
- [data-ui='tour'] [data-part='content'] > [data-part='footer'] {
531
+ [data-ui-tour] [data-part-content] > [data-part-footer] {
538
532
  display: flex;
539
533
  flex: none;
540
534
  flex-direction: row-reverse;
@@ -546,15 +540,15 @@
546
540
  padding-inline: var(--_inset-inline);
547
541
  }
548
542
 
549
- [data-ui='tour'] [data-part='content'] > [data-part='footer'] > [data-part='next'] {
543
+ [data-ui-tour] [data-part-content] > [data-part-footer] > [data-part-next] {
550
544
  order: 1;
551
545
  }
552
546
 
553
- [data-ui='tour'] [data-part='content'] > [data-part='footer'] > [data-part='prev'] {
547
+ [data-ui-tour] [data-part-content] > [data-part-footer] > [data-part-prev] {
554
548
  order: 2;
555
549
  }
556
550
 
557
- [data-ui='tour'] [data-part='content'] > [data-part='footer'] > [data-part='skip'] {
551
+ [data-ui-tour] [data-part-content] > [data-part-footer] > [data-part-skip] {
558
552
  order: 3;
559
553
  margin-inline-end: auto;
560
554
  /* A ghost button's label sits a button's padding in from its edge; pulled
@@ -568,7 +562,7 @@
568
562
  * popover's, in physical properties and over the card, for the two reasons
569
563
  * `tooltip.css` sets out.
570
564
  */
571
- [data-ui='tour'] > [data-part='surface'] > [data-part='arrow'] {
565
+ [data-ui-tour] > [data-part-surface] > [data-part-arrow] {
572
566
  /**
573
567
  * Where the arrow may stand: on the straight run of the card's edge. The
574
568
  * positioner keeps it `arrowPadding` from the edge of the **layer**, and
@@ -578,7 +572,7 @@
578
572
  * square that the card normally hides stood outside it: a whole diamond.
579
573
  * Clamped here, the arrow always meets a straight edge, whatever padding,
580
574
  * gap or radius a theme sets; it is the tip that may then be off the
581
- * target's centre by a few pixels, which reads, where a diamond does not.
575
+ * target's center by a few pixels, which reads, where a diamond does not.
582
576
  */
583
577
  --_arrow-min: calc(var(--_gap) + var(--_radius));
584
578
  --_arrow-max-x: calc(100% - var(--_gap) - var(--_radius) - var(--_arrow-size));
@@ -601,7 +595,7 @@
601
595
  border: 0 solid var(--_border-color);
602
596
  }
603
597
 
604
- [data-ui='tour'] > [data-part='surface'][data-side='top'] > [data-part='arrow'] {
598
+ [data-ui-tour] > [data-part-surface][data-side='top'] > [data-part-arrow] {
605
599
  left: var(--_arrow-x);
606
600
  top: auto;
607
601
  bottom: calc(var(--_gap) - var(--_arrow-size) / 2);
@@ -610,7 +604,7 @@
610
604
  border-bottom-right-radius: var(--_arrow-tip-radius);
611
605
  }
612
606
 
613
- [data-ui='tour'] > [data-part='surface'][data-side='bottom'] > [data-part='arrow'] {
607
+ [data-ui-tour] > [data-part-surface][data-side='bottom'] > [data-part-arrow] {
614
608
  left: var(--_arrow-x);
615
609
  top: calc(var(--_gap) - var(--_arrow-size) / 2);
616
610
  bottom: auto;
@@ -619,7 +613,7 @@
619
613
  border-top-left-radius: var(--_arrow-tip-radius);
620
614
  }
621
615
 
622
- [data-ui='tour'] > [data-part='surface'][data-side='left'] > [data-part='arrow'] {
616
+ [data-ui-tour] > [data-part-surface][data-side='left'] > [data-part-arrow] {
623
617
  top: var(--_arrow-y);
624
618
  left: auto;
625
619
  right: calc(var(--_gap) - var(--_arrow-size) / 2);
@@ -628,7 +622,7 @@
628
622
  border-top-right-radius: var(--_arrow-tip-radius);
629
623
  }
630
624
 
631
- [data-ui='tour'] > [data-part='surface'][data-side='right'] > [data-part='arrow'] {
625
+ [data-ui-tour] > [data-part-surface][data-side='right'] > [data-part-arrow] {
632
626
  top: var(--_arrow-y);
633
627
  left: calc(var(--_gap) - var(--_arrow-size) / 2);
634
628
  right: auto;
@@ -644,9 +638,9 @@
644
638
  * card holds focus the arrow's two outer edges are drawn as the ring, and
645
639
  * the ring runs round the point instead of stopping at it.
646
640
  */
647
- [data-ui='tour']
648
- > [data-part='surface']:has(> [data-part='content']:focus-visible)
649
- > [data-part='arrow'] {
641
+ [data-ui-tour]
642
+ > [data-part-surface]:has(> [data-part-content]:focus-visible)
643
+ > [data-part-arrow] {
650
644
  --_border-width: var(--slotted-focus-ring-width, 2px);
651
645
  border-color: var(--slotted-focus-ring-color, currentColor);
652
646
  }
@@ -658,22 +652,22 @@
658
652
  * sets its own `display`, which outranks the user agent's rule for the
659
653
  * attribute, so the attribute is restated last.
660
654
  */
661
- [data-ui='tour'] [data-part='content'] [data-part][hidden] {
655
+ [data-ui-tour] [data-part-content] [data-part][hidden] {
662
656
  display: none;
663
657
  }
664
658
 
665
659
  @media (forced-colors: active) {
666
660
  /*
667
- * Forced colours drop every `box-shadow`, and the scrim is one: the page
661
+ * Forced colors drop every `box-shadow`, and the scrim is one: the page
668
662
  * stays in full view and the cutout would mark nothing. The outline is
669
- * what forced colours keep, so the target is ringed in the system's
663
+ * what forced colors keep, so the target is ringed in the system's
670
664
  * highlight instead of being lit.
671
665
  */
672
- [data-ui='tour'] > [data-part='backdrop'] > [data-part='spotlight'] {
666
+ [data-ui-tour] > [data-part-backdrop] > [data-part-spotlight] {
673
667
  outline: var(--slotted-focus-ring-width, 2px) solid Highlight;
674
668
  }
675
669
 
676
- [data-ui='tour'][data-spotlight] > [data-part='backdrop'] {
670
+ [data-ui-tour][data-spotlight] > [data-part-backdrop] {
677
671
  background: transparent;
678
672
  }
679
673
  }
@@ -25,6 +25,7 @@
25
25
  "--slotted-line-height-lg",
26
26
  "--slotted-line-height-md",
27
27
  "--slotted-line-height-xs",
28
+ "--slotted-overlay-max-block-size",
28
29
  "--slotted-radius-lg",
29
30
  "--slotted-radius-md",
30
31
  "--slotted-radius-sm",