@slotted/styles 0.1.0-beta.4 → 0.1.0-beta.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/package.json +21 -1
  2. package/src/accordion/accordion.css +31 -13
  3. package/src/accordion/accordion.tokens.json +2 -0
  4. package/src/action-bar/action-bar.css +47 -44
  5. package/src/action-bar/action-bar.tokens.json +1 -0
  6. package/src/action-sheet/action-sheet.css +39 -39
  7. package/src/alert/alert.css +97 -97
  8. package/src/alert/alert.tokens.json +6 -1
  9. package/src/app-shell/app-shell.css +472 -342
  10. package/src/app-shell/app-shell.tokens.json +6 -3
  11. package/src/aspect-ratio/aspect-ratio.css +24 -23
  12. package/src/attachment/attachment.css +118 -114
  13. package/src/avatar/avatar.css +97 -67
  14. package/src/avatar/avatar.tokens.json +8 -0
  15. package/src/avatar-group/avatar-group.css +22 -23
  16. package/src/badge/badge.css +58 -47
  17. package/src/badge/badge.tokens.json +6 -0
  18. package/src/breadcrumb/breadcrumb.css +52 -52
  19. package/src/button/button.css +408 -93
  20. package/src/button/button.tokens.json +13 -0
  21. package/src/button-group/button-group.css +80 -79
  22. package/src/button-group/button-group.tokens.json +1 -0
  23. package/src/calendar/calendar.css +594 -267
  24. package/src/calendar/calendar.tokens.json +35 -3
  25. package/src/card/card.css +133 -70
  26. package/src/card/card.tokens.json +1 -0
  27. package/src/carousel/carousel.css +158 -169
  28. package/src/cascader/cascader.css +174 -159
  29. package/src/cascader/cascader.tokens.json +2 -0
  30. package/src/chart/chart.css +300 -271
  31. package/src/chart/chart.tokens.json +5 -0
  32. package/src/checkbox/checkbox.css +190 -148
  33. package/src/checkbox/checkbox.tokens.json +4 -0
  34. package/src/checkbox-group/checkbox-group.css +7 -7
  35. package/src/clock/clock.css +246 -0
  36. package/src/clock/clock.tokens.json +44 -0
  37. package/src/code-block/code-block.css +85 -89
  38. package/src/collapsible/collapsible.css +273 -85
  39. package/src/collapsible/collapsible.tokens.json +6 -0
  40. package/src/color-picker/color-picker.css +106 -114
  41. package/src/column-manager/column-manager.css +111 -119
  42. package/src/combobox/combobox.css +219 -132
  43. package/src/combobox/combobox.tokens.json +4 -0
  44. package/src/command-palette/command-palette.css +214 -102
  45. package/src/command-palette/command-palette.tokens.json +4 -0
  46. package/src/container/container.css +27 -27
  47. package/src/context-menu/context-menu.css +9 -9
  48. package/src/currency-field/currency-field.css +119 -119
  49. package/src/currency-field/currency-field.tokens.json +1 -0
  50. package/src/dashboard-grid/dashboard-grid.css +231 -115
  51. package/src/dashboard-grid/dashboard-grid.tokens.json +3 -1
  52. package/src/data-grid/data-grid.css +637 -496
  53. package/src/data-grid/data-grid.tokens.json +5 -1
  54. package/src/data-list/data-list.css +93 -76
  55. package/src/data-list/data-list.tokens.json +2 -1
  56. package/src/date-field/date-field.css +62 -57
  57. package/src/date-field/date-field.tokens.json +1 -0
  58. package/src/date-picker/date-picker.css +31 -269
  59. package/src/date-picker/date-picker.tokens.json +1 -21
  60. package/src/date-range-picker/date-range-picker.css +72 -528
  61. package/src/date-range-picker/date-range-picker.tokens.json +1 -37
  62. package/src/datetime-field/datetime-field.css +90 -90
  63. package/src/datetime-field/datetime-field.tokens.json +1 -0
  64. package/src/datetime-picker/datetime-picker.css +49 -711
  65. package/src/datetime-picker/datetime-picker.tokens.json +1 -50
  66. package/src/datetime-range-picker/datetime-range-picker.css +60 -985
  67. package/src/datetime-range-picker/datetime-range-picker.tokens.json +1 -67
  68. package/src/description-list/description-list.css +120 -76
  69. package/src/description-list/description-list.tokens.json +1 -0
  70. package/src/detail-panel/detail-panel.css +86 -71
  71. package/src/detail-panel/detail-panel.tokens.json +2 -0
  72. package/src/dialog/dialog.css +462 -199
  73. package/src/dialog/dialog.tokens.json +10 -0
  74. package/src/divider/divider.css +20 -20
  75. package/src/drawer/drawer.css +736 -237
  76. package/src/drawer/drawer.tokens.json +15 -0
  77. package/src/entity-picker/entity-picker.css +402 -272
  78. package/src/entity-picker/entity-picker.tokens.json +6 -0
  79. package/src/event-calendar/event-calendar.css +357 -399
  80. package/src/field/field.css +106 -93
  81. package/src/field/field.tokens.json +2 -0
  82. package/src/field-group/field-group.css +58 -38
  83. package/src/field-group/field-group.tokens.json +3 -0
  84. package/src/filter-bar/filter-bar.css +224 -216
  85. package/src/floating-panel/floating-panel.css +147 -0
  86. package/src/floating-panel/floating-panel.tokens.json +32 -0
  87. package/src/form/form.css +103 -26
  88. package/src/form/form.tokens.json +6 -1
  89. package/src/fullscreen/fullscreen.css +26 -27
  90. package/src/grid/grid.css +32 -31
  91. package/src/highlight/highlight.css +11 -11
  92. package/src/hover-card/hover-card.css +9 -9
  93. package/src/icon/icon.css +67 -20
  94. package/src/icon/icon.tokens.json +1 -0
  95. package/src/image/image.css +42 -42
  96. package/src/import-export-center/import-export-center.css +147 -168
  97. package/src/import-export-center/import-export-center.tokens.json +1 -0
  98. package/src/inline/inline.css +29 -29
  99. package/src/inline-message/inline-message.css +162 -86
  100. package/src/inline-message/inline-message.tokens.json +5 -0
  101. package/src/kbd/kbd.css +63 -51
  102. package/src/kbd/kbd.tokens.json +4 -0
  103. package/src/link/link.css +54 -33
  104. package/src/link/link.tokens.json +4 -0
  105. package/src/list/list.css +55 -24
  106. package/src/list/list.tokens.json +2 -0
  107. package/src/list-item/list-item.css +195 -80
  108. package/src/list-item/list-item.tokens.json +10 -0
  109. package/src/listbox/listbox.css +121 -72
  110. package/src/listbox/listbox.tokens.json +6 -1
  111. package/src/loading-overlay/loading-overlay.css +86 -103
  112. package/src/markdown/markdown.css +20 -20
  113. package/src/media-viewer/media-viewer.css +790 -0
  114. package/src/media-viewer/media-viewer.tokens.json +53 -0
  115. package/src/menu/menu.css +166 -83
  116. package/src/menu/menu.tokens.json +3 -1
  117. package/src/menubar/menubar.css +16 -16
  118. package/src/message/message.css +1296 -1243
  119. package/src/message/message.tokens.json +14 -0
  120. package/src/message-scroller/message-scroller.css +323 -320
  121. package/src/meter/meter.css +136 -0
  122. package/src/meter/meter.tokens.json +23 -0
  123. package/src/multi-select/multi-select.css +246 -174
  124. package/src/multi-select/multi-select.tokens.json +3 -0
  125. package/src/navigation-menu/navigation-menu.css +170 -191
  126. package/src/navigation-menu/navigation-menu.tokens.json +1 -0
  127. package/src/notification-center/notification-center.css +155 -163
  128. package/src/notification-center/notification-center.tokens.json +4 -0
  129. package/src/number-field/number-field.css +93 -93
  130. package/src/number-field/number-field.tokens.json +1 -0
  131. package/src/otp-input/otp-input.css +74 -64
  132. package/src/otp-input/otp-input.tokens.json +1 -0
  133. package/src/page/page.css +109 -31
  134. package/src/page/page.tokens.json +8 -0
  135. package/src/page-header/page-header.css +342 -287
  136. package/src/page-header/page-header.tokens.json +6 -1
  137. package/src/pagination/pagination.css +75 -79
  138. package/src/picker-panel/picker-panel.css +1074 -0
  139. package/src/picker-panel/picker-panel.tokens.json +77 -0
  140. package/src/popover/popover.css +85 -65
  141. package/src/popover/popover.tokens.json +2 -0
  142. package/src/progress-indicator/progress-indicator.css +194 -137
  143. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  144. package/src/prompt-composer/prompt-composer.css +274 -116
  145. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  146. package/src/prose/prose.css +77 -82
  147. package/src/radio-group/radio-group.css +107 -112
  148. package/src/rating/rating.css +147 -143
  149. package/src/rating/rating.tokens.json +2 -0
  150. package/src/result-state/result-state.css +95 -102
  151. package/src/result-state/result-state.tokens.json +1 -0
  152. package/src/runtime-properties.mjs +44 -6
  153. package/src/saved-views/saved-views.css +43 -49
  154. package/src/scroll-area/scroll-area.css +50 -37
  155. package/src/section/section.css +311 -46
  156. package/src/section/section.tokens.json +13 -1
  157. package/src/segmented-control/segmented-control.css +221 -133
  158. package/src/segmented-control/segmented-control.tokens.json +7 -11
  159. package/src/select/select.css +226 -149
  160. package/src/select/select.tokens.json +4 -0
  161. package/src/side-navigation/side-navigation.css +204 -201
  162. package/src/side-navigation/side-navigation.tokens.json +2 -0
  163. package/src/skeleton/skeleton.css +76 -58
  164. package/src/slider/slider.css +108 -104
  165. package/src/slider/slider.tokens.json +1 -0
  166. package/src/sparkline/sparkline.css +75 -53
  167. package/src/sparkline/sparkline.tokens.json +2 -0
  168. package/src/spinner/spinner.css +83 -180
  169. package/src/spinner/spinner.tokens.json +0 -1
  170. package/src/split-button/split-button.css +34 -35
  171. package/src/split-button/split-button.tokens.json +1 -0
  172. package/src/splitter/splitter.css +47 -48
  173. package/src/stack/stack.css +26 -26
  174. package/src/stat-card/stat-card.css +420 -245
  175. package/src/stat-card/stat-card.tokens.json +8 -0
  176. package/src/status-indicator/status-indicator.css +126 -101
  177. package/src/status-indicator/status-indicator.tokens.json +0 -3
  178. package/src/stepper/stepper.css +78 -82
  179. package/src/switch/switch.css +143 -125
  180. package/src/switch/switch.tokens.json +4 -0
  181. package/src/table/table.css +653 -222
  182. package/src/table/table.tokens.json +10 -0
  183. package/src/table-of-contents/table-of-contents.css +60 -59
  184. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  185. package/src/tabs/tabs.css +327 -294
  186. package/src/tabs/tabs.tokens.json +7 -1
  187. package/src/tag/tag.css +113 -89
  188. package/src/tag/tag.tokens.json +11 -0
  189. package/src/tags-input/tags-input.css +152 -87
  190. package/src/tags-input/tags-input.tokens.json +7 -1
  191. package/src/text-field/text-field.css +146 -148
  192. package/src/text-field/text-field.tokens.json +1 -0
  193. package/src/textarea/textarea.css +38 -33
  194. package/src/textarea/textarea.tokens.json +1 -0
  195. package/src/time-field/time-field.css +82 -77
  196. package/src/time-field/time-field.tokens.json +1 -0
  197. package/src/time-picker/time-picker.css +30 -519
  198. package/src/time-picker/time-picker.tokens.json +1 -38
  199. package/src/time-range-picker/time-range-picker.css +53 -895
  200. package/src/time-range-picker/time-range-picker.tokens.json +1 -66
  201. package/src/timeline/timeline.css +280 -292
  202. package/src/timeline/timeline.tokens.json +5 -0
  203. package/src/toast/toast.css +139 -122
  204. package/src/toast/toast.tokens.json +7 -0
  205. package/src/toggle/toggle.css +34 -38
  206. package/src/toggle-group/toggle-group.css +73 -77
  207. package/src/toolbar/toolbar.css +49 -40
  208. package/src/toolbar/toolbar.tokens.json +2 -1
  209. package/src/tooltip/tooltip.css +95 -39
  210. package/src/tooltip/tooltip.tokens.json +1 -0
  211. package/src/top-navigation/top-navigation.css +253 -269
  212. package/src/top-navigation/top-navigation.tokens.json +1 -0
  213. package/src/tour/tour.css +68 -74
  214. package/src/tour/tour.tokens.json +1 -0
  215. package/src/transfer/transfer.css +164 -168
  216. package/src/tree/tree.css +118 -122
  217. package/src/typography/typography.css +67 -38
  218. package/src/typography/typography.tokens.json +2 -0
  219. package/src/upload/upload.css +256 -257
  220. package/src/visually-hidden/visually-hidden.css +1 -1
  221. package/src/wizard/wizard.css +187 -199
@@ -0,0 +1,77 @@
1
+ [
2
+ "--slotted-border-strong",
3
+ "--slotted-border-subtle",
4
+ "--slotted-border-width-thick",
5
+ "--slotted-border-width-thin",
6
+ "--slotted-clock-label-inline-size",
7
+ "--slotted-control-border-color",
8
+ "--slotted-control-font-size-md",
9
+ "--slotted-control-height-md",
10
+ "--slotted-control-height-sm",
11
+ "--slotted-control-icon-size-md",
12
+ "--slotted-control-transition-duration",
13
+ "--slotted-control-transition-easing",
14
+ "--slotted-disabled-background",
15
+ "--slotted-disabled-foreground",
16
+ "--slotted-drawer-resizer-line-color",
17
+ "--slotted-duration-medium",
18
+ "--slotted-duration-short",
19
+ "--slotted-easing-enter",
20
+ "--slotted-easing-exit",
21
+ "--slotted-focus-ring-color",
22
+ "--slotted-focus-ring-width",
23
+ "--slotted-font-family-sans",
24
+ "--slotted-font-size-lg",
25
+ "--slotted-font-size-md",
26
+ "--slotted-font-size-sm",
27
+ "--slotted-font-size-xl",
28
+ "--slotted-font-size-xs",
29
+ "--slotted-font-weight-medium",
30
+ "--slotted-font-weight-semibold",
31
+ "--slotted-highlight-tint-opacity",
32
+ "--slotted-picker-panel-backdrop-filter",
33
+ "--slotted-picker-panel-border-color",
34
+ "--slotted-picker-panel-color",
35
+ "--slotted-picker-panel-footer-size",
36
+ "--slotted-picker-panel-group-size",
37
+ "--slotted-picker-panel-head-size",
38
+ "--slotted-picker-panel-module-size",
39
+ "--slotted-picker-panel-padding",
40
+ "--slotted-picker-panel-preset-size",
41
+ "--slotted-picker-panel-radius",
42
+ "--slotted-picker-panel-rail-size",
43
+ "--slotted-picker-panel-selected-background",
44
+ "--slotted-picker-panel-shadow",
45
+ "--slotted-picker-panel-sunken-surface",
46
+ "--slotted-picker-panel-surface",
47
+ "--slotted-radius-full",
48
+ "--slotted-radius-lg",
49
+ "--slotted-radius-md",
50
+ "--slotted-radius-sm",
51
+ "--slotted-shadow-lg",
52
+ "--slotted-space-1",
53
+ "--slotted-space-11",
54
+ "--slotted-space-2",
55
+ "--slotted-space-3",
56
+ "--slotted-space-4",
57
+ "--slotted-space-5",
58
+ "--slotted-space-9",
59
+ "--slotted-surface-raised",
60
+ "--slotted-surface-sunken",
61
+ "--slotted-target-comfortable",
62
+ "--slotted-target-min",
63
+ "--slotted-text",
64
+ "--slotted-text-muted",
65
+ "--slotted-tone-accent-border",
66
+ "--slotted-tone-accent-on-solid",
67
+ "--slotted-tone-accent-solid",
68
+ "--slotted-tone-accent-solid-active",
69
+ "--slotted-tone-accent-solid-hover",
70
+ "--slotted-tone-accent-subtle-active",
71
+ "--slotted-tone-accent-subtle-hover",
72
+ "--slotted-tone-accent-text",
73
+ "--slotted-tone-danger-text",
74
+ "--slotted-tone-secondary-subtle-active",
75
+ "--slotted-tone-secondary-subtle-hover",
76
+ "--slotted-z-index-popover"
77
+ ]
@@ -39,7 +39,7 @@
39
39
  * gaps inside the header and the footer read it too, so a dense popover is a
40
40
  * tighter popover rather than a smaller one.
41
41
  */
42
- [data-ui='popover'] {
42
+ [data-ui-popover] {
43
43
  --_gap: var(--slotted-popover-gap, var(--slotted-space-4, 0.5rem));
44
44
 
45
45
  --_surface: var(--slotted-popover-surface, var(--slotted-surface-raised, #ffffff));
@@ -84,7 +84,6 @@
84
84
  /* The layer is only a frame around the panel; the panel takes the pointer. */
85
85
  pointer-events: none;
86
86
 
87
- opacity: 0;
88
87
  /**
89
88
  * R7: the layer arrives along the axis it opens on — from one space step
90
89
  * above its place when it opens downward, from one step below when it
@@ -94,17 +93,15 @@
94
93
  */
95
94
  --_enter-distance: var(--slotted-space-2, 0.25rem);
96
95
  translate: 0 calc(-1 * var(--_enter-distance));
97
- transition:
98
- opacity var(--slotted-duration-short) var(--slotted-easing-exit),
99
- translate var(--slotted-duration-short) var(--slotted-easing-exit);
96
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
100
97
  }
101
98
 
102
- [data-ui='popover'][data-side='top'] {
99
+ [data-ui-popover][data-side='top'] {
103
100
  translate: 0 var(--_enter-distance);
104
101
  }
105
102
 
106
103
  /* A lateral side has no block direction to arrive from, so it only fades. */
107
- [data-ui='popover']:is([data-side='left'], [data-side='right']) {
104
+ [data-ui-popover]:is([data-side='left'], [data-side='right']) {
108
105
  translate: 0 0;
109
106
  }
110
107
 
@@ -117,8 +114,7 @@
117
114
  * A keyframe states where it starts. The exit stays a transition: it
118
115
  * leaves from wherever the layer is, on the closed rule's durations.
119
116
  */
120
- [data-ui='popover'][data-open] {
121
- opacity: 1;
117
+ [data-ui-popover][data-open] {
122
118
  translate: 0 0;
123
119
  transition: none;
124
120
  }
@@ -128,28 +124,22 @@
128
124
  * with the side, and a layer written open in static markup — the harness,
129
125
  * a docs snippet — is simply there, and is photographed where it stands.
130
126
  */
131
- [data-ui='popover'][data-open][data-positioned] {
127
+ [data-ui-popover][data-open][data-positioned] {
132
128
  animation: slotted-popover-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter);
133
129
  }
134
130
 
135
- [data-ui='popover'][data-open][data-positioned][data-side='top'] {
131
+ [data-ui-popover][data-open][data-positioned][data-side='top'] {
136
132
  animation-name: slotted-popover-enter-up;
137
133
  }
138
134
 
139
- [data-ui='popover'][data-open][data-positioned]:is([data-side='left'], [data-side='right']) {
140
- animation-name: slotted-popover-fade;
141
- }
142
-
143
135
  @keyframes slotted-popover-enter-down {
144
136
  from {
145
- opacity: 0;
146
137
  translate: 0 calc(-1 * var(--_enter-distance));
147
138
  }
148
139
  }
149
140
 
150
141
  @keyframes slotted-popover-enter-up {
151
142
  from {
152
- opacity: 0;
153
143
  translate: 0 var(--_enter-distance);
154
144
  }
155
145
  }
@@ -162,27 +152,27 @@
162
152
 
163
153
  /* Stillness keeps the fade and drops the movement (R7). */
164
154
  @media (prefers-reduced-motion: reduce) {
165
- [data-ui='popover'],
166
- [data-ui='popover'][data-side='top'],
167
- [data-ui='popover'][data-side='left'],
168
- [data-ui='popover'][data-side='right'] {
155
+ [data-ui-popover],
156
+ [data-ui-popover][data-side='top'],
157
+ [data-ui-popover][data-side='left'],
158
+ [data-ui-popover][data-side='right'] {
169
159
  translate: 0 0;
170
- transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
160
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
171
161
  }
172
162
 
173
- [data-ui='popover'][data-open][data-positioned],
174
- [data-ui='popover'][data-open][data-positioned][data-side='top'],
175
- [data-ui='popover'][data-open][data-positioned][data-side='left'],
176
- [data-ui='popover'][data-open][data-positioned][data-side='right'] {
177
- animation-name: slotted-popover-fade;
163
+ [data-ui-popover][data-open][data-positioned],
164
+ [data-ui-popover][data-open][data-positioned][data-side='top'],
165
+ [data-ui-popover][data-open][data-positioned][data-side='left'],
166
+ [data-ui-popover][data-open][data-positioned][data-side='right'] {
167
+ animation-name: none;
178
168
  }
179
169
  }
180
170
 
181
- [data-ui='popover'][data-detached] {
171
+ [data-ui-popover][data-detached] {
182
172
  visibility: hidden;
183
173
  }
184
174
 
185
- [data-ui='popover'][data-size='sm'] {
175
+ [data-ui-popover][data-size='sm'] {
186
176
  --_inset-block: var(--slotted-popover-padding-block-sm, var(--slotted-space-4, 0.5rem));
187
177
  --_inset-inline: var(--slotted-popover-padding-inline-sm, var(--slotted-space-5, 0.75rem));
188
178
  --_title-font-size: var(--slotted-font-size-md, 0.875rem);
@@ -190,7 +180,7 @@
190
180
  --_measure: var(--slotted-popover-measure-sm, 16rem);
191
181
  }
192
182
 
193
- [data-ui='popover'][data-size='lg'] {
183
+ [data-ui-popover][data-size='lg'] {
194
184
  --_inset-block: var(--slotted-popover-padding-block-lg, var(--slotted-space-6, 1rem));
195
185
  --_inset-inline: var(--slotted-popover-padding-inline-lg, var(--slotted-space-7, 1.25rem));
196
186
  --_title-font-size: var(--slotted-font-size-xl, 1.125rem);
@@ -203,7 +193,7 @@
203
193
  * property for. The layer's own padding is added back, so the panel and the
204
194
  * anchor share an edge rather than being inset from one another.
205
195
  */
206
- [data-ui='popover'][data-width='anchor'] {
196
+ [data-ui-popover][data-width='anchor'] {
207
197
  inline-size: calc(var(--slotted-positioner-anchor-width, 0px) + 2 * var(--_gap));
208
198
  max-inline-size: var(--slotted-positioner-available-width, 100vw);
209
199
  }
@@ -214,7 +204,7 @@
214
204
  * of the document, so the family closes the popover and puts focus back on
215
205
  * the trigger, from which the next `Tab` continues down the page.
216
206
  */
217
- [data-ui='popover'] > [data-part='focus-guard'] {
207
+ [data-ui-popover] > [data-part-focus-guard] {
218
208
  position: absolute;
219
209
  inline-size: 1px;
220
210
  block-size: 1px;
@@ -225,7 +215,7 @@
225
215
  pointer-events: none;
226
216
  }
227
217
 
228
- [data-ui='popover'] > [data-part='content'] {
218
+ [data-ui-popover] > [data-part-content] {
229
219
  box-sizing: border-box;
230
220
  display: grid;
231
221
  grid-template-rows: auto minmax(0, 1fr) auto;
@@ -234,7 +224,10 @@
234
224
  * The room the positioner says is left, less the layer's own padding at
235
225
  * both ends. Only the body scrolls inside it.
236
226
  */
237
- max-block-size: calc(var(--slotted-positioner-available-height, 100vh) - 2 * var(--_gap));
227
+ max-block-size: min(
228
+ var(--slotted-overlay-max-block-size, 100vh),
229
+ calc(var(--slotted-positioner-available-height, 100vh) - 2 * var(--_gap))
230
+ );
238
231
 
239
232
  border: var(--_border-width) solid var(--_border-color);
240
233
  border-radius: var(--_radius);
@@ -259,26 +252,57 @@
259
252
  pointer-events: auto;
260
253
  /* The panel takes focus on open and is not a tab stop of its own. */
261
254
  outline: none;
255
+ /* A theme that paints this surface as a translucent material blurs what moves behind it. */
256
+ -webkit-backdrop-filter: var(--slotted-popover-backdrop-filter, none);
257
+ backdrop-filter: var(--slotted-popover-backdrop-filter, none);
258
+ }
259
+
260
+ /**
261
+ * The fade belongs to the part that paints the surface, and the layer only
262
+ * moves. In Chromium an ancestor with `opacity` below one is the Backdrop Root
263
+ * of what it holds, so a `backdrop-filter` on the content blurs nothing until
264
+ * the layer is opaque and then appears at once. The content's own opacity
265
+ * leaves its own filter drawn on every frame of the motion.
266
+ */
267
+ [data-ui-popover] > [data-part-content] {
268
+ opacity: 0;
269
+ transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
270
+ }
271
+
272
+ [data-ui-popover][data-open] > [data-part-content] {
273
+ opacity: 1;
274
+ transition: none;
275
+ }
276
+
277
+ [data-ui-popover][data-open][data-positioned] > [data-part-content] {
278
+ animation: slotted-popover-fade var(--slotted-duration-medium) var(--slotted-easing-enter);
279
+ }
280
+
281
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
282
+ [data-ui-popover] > [data-part-content] {
283
+ -webkit-backdrop-filter: none;
284
+ backdrop-filter: none;
285
+ }
262
286
  }
263
287
 
264
288
  /**
265
289
  * The three rows are the header's, the body's and the footer's, and the
266
290
  * body's alone is bounded. A consumer's own composition — the notification
267
- * centre under a bell, an inline command palette — stands as the panel's
291
+ * center under a bell, an inline command palette — stands as the panel's
268
292
  * one child, and as an auto row it grew past the room the positioner
269
293
  * reported: clipped at the panel's edge, its own footer out of sight. The
270
294
  * one child takes the body's row instead, and the family inside it scrolls
271
295
  * what it owns. Two children or more are the consumer's own layout and keep
272
296
  * their auto rows.
273
297
  */
274
- [data-ui='popover']
275
- > [data-part='content']
276
- > :only-child:not([data-part='header'], [data-part='body'], [data-part='footer']) {
298
+ [data-ui-popover]
299
+ > [data-part-content]
300
+ > :only-child:not([data-part-header], [data-part-body], [data-part-footer]) {
277
301
  grid-row: 2;
278
302
  min-block-size: 0;
279
303
  }
280
304
 
281
- [data-ui='popover'] > [data-part='content']:focus-visible {
305
+ [data-ui-popover] > [data-part-content]:focus-visible {
282
306
  outline: var(--slotted-focus-ring-width, 2px) solid
283
307
  var(--slotted-focus-ring-color, currentColor);
284
308
  outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
@@ -286,10 +310,10 @@
286
310
 
287
311
  /**
288
312
  * Title and description in the first column, the close control in the second,
289
- * on the first row so it stays level with the title rather than centring
313
+ * on the first row so it stays level with the title rather than centering
290
314
  * itself against a description the title may not have.
291
315
  */
292
- [data-ui='popover'] > [data-part='content'] > [data-part='header'] {
316
+ [data-ui-popover] > [data-part-content] > [data-part-header] {
293
317
  display: grid;
294
318
  grid-template-columns: minmax(0, 1fr) auto;
295
319
  column-gap: var(--_row-gap);
@@ -299,7 +323,12 @@
299
323
  padding-inline: var(--_inset-inline);
300
324
  }
301
325
 
302
- [data-ui='popover'] > [data-part='content'] > [data-part='header'] > [data-part='title'] {
326
+ /* A column gap is drawn beside an empty track too. */
327
+ [data-ui-popover] > [data-part-content] > [data-part-header]:not(:has(> [data-part-close])) {
328
+ grid-template-columns: minmax(0, 1fr);
329
+ }
330
+
331
+ [data-ui-popover] > [data-part-content] > [data-part-header] > [data-part-title] {
303
332
  grid-column: 1;
304
333
  margin: 0;
305
334
  font-family: var(
@@ -314,7 +343,7 @@
314
343
  unicode-bidi: plaintext;
315
344
  }
316
345
 
317
- [data-ui='popover'] > [data-part='content'] > [data-part='header'] > [data-part='description'] {
346
+ [data-ui-popover] > [data-part-content] > [data-part-header] > [data-part-description] {
318
347
  grid-column: 1;
319
348
  margin: 0;
320
349
  font-size: var(--slotted-font-size-sm, 0.8125rem);
@@ -331,7 +360,7 @@
331
360
  * is pulled level with the title's cap height by the negative
332
361
  * block margin rather than by stretching the row.
333
362
  */
334
- [data-ui='popover'] > [data-part='content'] > [data-part='header'] > [data-part='close'] {
363
+ [data-ui-popover] > [data-part-content] > [data-part-header] > [data-part-close] {
335
364
  grid-column: 2;
336
365
  grid-row: 1;
337
366
  display: inline-flex;
@@ -357,25 +386,16 @@
357
386
  var(--slotted-control-transition-easing, var(--slotted-easing-standard));
358
387
  }
359
388
 
360
- [data-ui='popover']
361
- > [data-part='content']
362
- > [data-part='header']
363
- > [data-part='close']:enabled:hover {
389
+ [data-ui-popover] > [data-part-content] > [data-part-header] > [data-part-close]:enabled:hover {
364
390
  background: var(--slotted-tone-secondary-subtle-hover, rgb(15 23 42 / 0.06));
365
391
  color: var(--_text);
366
392
  }
367
393
 
368
- [data-ui='popover']
369
- > [data-part='content']
370
- > [data-part='header']
371
- > [data-part='close']:enabled:active {
394
+ [data-ui-popover] > [data-part-content] > [data-part-header] > [data-part-close]:enabled:active {
372
395
  background: var(--slotted-tone-secondary-subtle-active, rgb(15 23 42 / 0.1));
373
396
  }
374
397
 
375
- [data-ui='popover']
376
- > [data-part='content']
377
- > [data-part='header']
378
- > [data-part='close']:focus-visible {
398
+ [data-ui-popover] > [data-part-content] > [data-part-header] > [data-part-close]:focus-visible {
379
399
  outline: var(--slotted-focus-ring-width, 2px) solid
380
400
  var(--slotted-focus-ring-color, currentColor);
381
401
  outline-offset: var(--slotted-focus-ring-offset, 2px);
@@ -386,7 +406,7 @@
386
406
  * there is no header, so a popover holding one sentence is not inset twice at
387
407
  * the top and once at the bottom.
388
408
  */
389
- [data-ui='popover'] > [data-part='content'] > [data-part='body'] {
409
+ [data-ui-popover] > [data-part-content] > [data-part-body] {
390
410
  grid-row: 2;
391
411
  min-block-size: 0;
392
412
  overflow-x: hidden;
@@ -415,7 +435,7 @@
415
435
  * only while there is something past it, and a body that fits shows
416
436
  * neither.
417
437
  *
418
- * The ink is the panel's own text colour at eight per cent rather than a
438
+ * The ink is the panel's own text color at eight per cent rather than a
419
439
  * literal, so it follows every scheme without a rule of its own.
420
440
  */
421
441
  background:
@@ -437,11 +457,11 @@
437
457
  center bottom / 100% var(--slotted-space-3, 0.375rem) no-repeat scroll;
438
458
  }
439
459
 
440
- [data-ui='popover'] > [data-part='content'] > [data-part='body']:first-child {
460
+ [data-ui-popover] > [data-part-content] > [data-part-body]:first-child {
441
461
  padding-block-start: var(--_inset-block);
442
462
  }
443
463
 
444
- [data-ui='popover'] > [data-part='content'] > [data-part='footer'] {
464
+ [data-ui-popover] > [data-part-content] > [data-part-footer] {
445
465
  grid-row: 3;
446
466
  display: flex;
447
467
  flex-wrap: wrap;
@@ -468,7 +488,7 @@
468
488
  * of a diamond. Clamped here, the arrow meets a straight edge whatever
469
489
  * padding, gap or radius a theme sets.
470
490
  */
471
- [data-ui='popover'] > [data-part='arrow'] {
491
+ [data-ui-popover] > [data-part-arrow] {
472
492
  --_arrow-x: clamp(
473
493
  calc(var(--_gap) + var(--_radius)),
474
494
  var(--slotted-positioner-arrow-x, 0px),
@@ -488,7 +508,7 @@
488
508
  border: 0 solid var(--_border-color);
489
509
  }
490
510
 
491
- [data-ui='popover'][data-side='top'] > [data-part='arrow'] {
511
+ [data-ui-popover][data-side='top'] > [data-part-arrow] {
492
512
  left: var(--_arrow-x);
493
513
  top: auto;
494
514
  bottom: calc(var(--_gap) - var(--_arrow-size) / 2);
@@ -497,7 +517,7 @@
497
517
  border-bottom-right-radius: var(--_arrow-tip-radius);
498
518
  }
499
519
 
500
- [data-ui='popover'][data-side='bottom'] > [data-part='arrow'] {
520
+ [data-ui-popover][data-side='bottom'] > [data-part-arrow] {
501
521
  left: var(--_arrow-x);
502
522
  top: calc(var(--_gap) - var(--_arrow-size) / 2);
503
523
  bottom: auto;
@@ -506,7 +526,7 @@
506
526
  border-top-left-radius: var(--_arrow-tip-radius);
507
527
  }
508
528
 
509
- [data-ui='popover'][data-side='left'] > [data-part='arrow'] {
529
+ [data-ui-popover][data-side='left'] > [data-part-arrow] {
510
530
  top: var(--_arrow-y);
511
531
  left: auto;
512
532
  right: calc(var(--_gap) - var(--_arrow-size) / 2);
@@ -515,7 +535,7 @@
515
535
  border-top-right-radius: var(--_arrow-tip-radius);
516
536
  }
517
537
 
518
- [data-ui='popover'][data-side='right'] > [data-part='arrow'] {
538
+ [data-ui-popover][data-side='right'] > [data-part-arrow] {
519
539
  top: var(--_arrow-y);
520
540
  left: calc(var(--_gap) - var(--_arrow-size) / 2);
521
541
  right: auto;
@@ -24,8 +24,10 @@
24
24
  "--slotted-line-height-lg",
25
25
  "--slotted-line-height-md",
26
26
  "--slotted-line-height-sm",
27
+ "--slotted-overlay-max-block-size",
27
28
  "--slotted-popover-arrow-size",
28
29
  "--slotted-popover-arrow-tip-radius",
30
+ "--slotted-popover-backdrop-filter",
29
31
  "--slotted-popover-border-color",
30
32
  "--slotted-popover-gap",
31
33
  "--slotted-popover-measure",