@slotted/styles 0.1.0-beta.2 → 0.1.0-beta.21

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 (191) hide show
  1. package/package.json +1 -1
  2. package/src/accordion/accordion.css +10 -10
  3. package/src/action-bar/action-bar.css +45 -42
  4. package/src/action-bar/action-bar.tokens.json +1 -0
  5. package/src/action-sheet/action-sheet.css +36 -36
  6. package/src/alert/alert.css +68 -67
  7. package/src/alert/alert.tokens.json +5 -0
  8. package/src/app-shell/app-shell.css +452 -314
  9. package/src/app-shell/app-shell.tokens.json +5 -2
  10. package/src/aspect-ratio/aspect-ratio.css +9 -9
  11. package/src/attachment/attachment.css +91 -99
  12. package/src/avatar/avatar.css +71 -41
  13. package/src/avatar/avatar.tokens.json +7 -0
  14. package/src/avatar-group/avatar-group.css +21 -22
  15. package/src/badge/badge.css +45 -37
  16. package/src/badge/badge.tokens.json +5 -0
  17. package/src/breadcrumb/breadcrumb.css +37 -37
  18. package/src/button/button.css +149 -68
  19. package/src/button/button.tokens.json +10 -0
  20. package/src/button-group/button-group.css +79 -74
  21. package/src/button-group/button-group.tokens.json +2 -0
  22. package/src/calendar/calendar.css +133 -103
  23. package/src/calendar/calendar.tokens.json +5 -1
  24. package/src/card/card.css +54 -61
  25. package/src/carousel/carousel.css +150 -161
  26. package/src/cascader/cascader.css +154 -153
  27. package/src/cascader/cascader.tokens.json +1 -0
  28. package/src/chart/chart.css +258 -248
  29. package/src/chart/chart.tokens.json +1 -0
  30. package/src/checkbox/checkbox.css +119 -124
  31. package/src/checkbox-group/checkbox-group.css +7 -7
  32. package/src/code-block/code-block.css +81 -85
  33. package/src/collapsible/collapsible.css +72 -76
  34. package/src/color-picker/color-picker.css +83 -91
  35. package/src/column-manager/column-manager.css +106 -114
  36. package/src/combobox/combobox.css +157 -124
  37. package/src/combobox/combobox.tokens.json +2 -0
  38. package/src/command-palette/command-palette.css +103 -90
  39. package/src/command-palette/command-palette.tokens.json +1 -0
  40. package/src/container/container.css +24 -24
  41. package/src/context-menu/context-menu.css +8 -8
  42. package/src/currency-field/currency-field.css +212 -88
  43. package/src/currency-field/currency-field.tokens.json +13 -0
  44. package/src/dashboard-grid/dashboard-grid.css +184 -114
  45. package/src/data-grid/data-grid.css +535 -470
  46. package/src/data-grid/data-grid.tokens.json +4 -0
  47. package/src/data-list/data-list.css +81 -70
  48. package/src/data-list/data-list.tokens.json +2 -1
  49. package/src/date-field/date-field.css +57 -52
  50. package/src/date-field/date-field.tokens.json +1 -0
  51. package/src/date-picker/date-picker.css +75 -57
  52. package/src/date-picker/date-picker.tokens.json +1 -0
  53. package/src/date-range-picker/date-range-picker.css +116 -118
  54. package/src/datetime-field/datetime-field.css +80 -80
  55. package/src/datetime-field/datetime-field.tokens.json +1 -0
  56. package/src/datetime-picker/datetime-picker.css +63 -63
  57. package/src/datetime-range-picker/datetime-range-picker.css +151 -156
  58. package/src/description-list/description-list.css +80 -65
  59. package/src/detail-panel/detail-panel.css +86 -71
  60. package/src/detail-panel/detail-panel.tokens.json +2 -0
  61. package/src/dialog/dialog.css +376 -153
  62. package/src/dialog/dialog.tokens.json +6 -0
  63. package/src/divider/divider.css +18 -18
  64. package/src/drawer/drawer.css +513 -217
  65. package/src/drawer/drawer.tokens.json +6 -0
  66. package/src/entity-picker/entity-picker.css +273 -256
  67. package/src/entity-picker/entity-picker.tokens.json +2 -0
  68. package/src/event-calendar/event-calendar.css +343 -385
  69. package/src/field/field.css +74 -78
  70. package/src/field-group/field-group.css +22 -25
  71. package/src/filter-bar/filter-bar.css +193 -209
  72. package/src/form/form.css +34 -24
  73. package/src/form/form.tokens.json +1 -0
  74. package/src/fullscreen/fullscreen.css +24 -25
  75. package/src/grid/grid.css +28 -28
  76. package/src/highlight/highlight.css +6 -6
  77. package/src/hover-card/hover-card.css +6 -6
  78. package/src/icon/icon.css +62 -15
  79. package/src/icon/icon.tokens.json +1 -0
  80. package/src/image/image.css +39 -39
  81. package/src/import-export-center/import-export-center.css +135 -156
  82. package/src/inline/inline.css +27 -27
  83. package/src/inline-message/inline-message.css +153 -77
  84. package/src/inline-message/inline-message.tokens.json +4 -0
  85. package/src/kbd/kbd.css +48 -36
  86. package/src/kbd/kbd.tokens.json +3 -0
  87. package/src/link/link.css +36 -15
  88. package/src/link/link.tokens.json +4 -0
  89. package/src/list/list.css +44 -17
  90. package/src/list/list.tokens.json +4 -0
  91. package/src/list-item/list-item.css +80 -66
  92. package/src/list-item/list-item.tokens.json +7 -0
  93. package/src/listbox/listbox.css +56 -59
  94. package/src/loading-overlay/loading-overlay.css +75 -92
  95. package/src/markdown/markdown.css +17 -17
  96. package/src/menu/menu.css +117 -74
  97. package/src/menu/menu.tokens.json +1 -0
  98. package/src/menubar/menubar.css +13 -13
  99. package/src/message/message.css +192 -202
  100. package/src/message/message.tokens.json +5 -0
  101. package/src/message-scroller/message-scroller.css +41 -42
  102. package/src/multi-select/multi-select.css +177 -160
  103. package/src/multi-select/multi-select.tokens.json +1 -0
  104. package/src/navigation-menu/navigation-menu.css +167 -188
  105. package/src/notification-center/notification-center.css +140 -148
  106. package/src/notification-center/notification-center.tokens.json +3 -0
  107. package/src/number-field/number-field.css +83 -83
  108. package/src/number-field/number-field.tokens.json +1 -0
  109. package/src/otp-input/otp-input.css +67 -57
  110. package/src/otp-input/otp-input.tokens.json +1 -0
  111. package/src/page/page.css +39 -23
  112. package/src/page/page.tokens.json +1 -0
  113. package/src/page-header/page-header.css +339 -284
  114. package/src/page-header/page-header.tokens.json +5 -0
  115. package/src/pagination/pagination.css +68 -72
  116. package/src/popover/popover.css +73 -61
  117. package/src/popover/popover.tokens.json +1 -0
  118. package/src/progress-indicator/progress-indicator.css +169 -113
  119. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  120. package/src/prompt-composer/prompt-composer.css +251 -104
  121. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  122. package/src/prose/prose.css +71 -75
  123. package/src/radio-group/radio-group.css +98 -103
  124. package/src/rating/rating.css +136 -132
  125. package/src/rating/rating.tokens.json +1 -0
  126. package/src/result-state/result-state.css +74 -77
  127. package/src/runtime-properties.mjs +2 -0
  128. package/src/saved-views/saved-views.css +41 -47
  129. package/src/scroll-area/scroll-area.css +39 -32
  130. package/src/section/section.css +178 -43
  131. package/src/section/section.tokens.json +8 -2
  132. package/src/segmented-control/segmented-control.css +254 -97
  133. package/src/segmented-control/segmented-control.tokens.json +15 -11
  134. package/src/select/select.css +153 -132
  135. package/src/select/select.tokens.json +2 -0
  136. package/src/side-navigation/side-navigation.css +179 -182
  137. package/src/side-navigation/side-navigation.tokens.json +1 -0
  138. package/src/skeleton/skeleton.css +47 -48
  139. package/src/slider/slider.css +86 -88
  140. package/src/sparkline/sparkline.css +62 -40
  141. package/src/sparkline/sparkline.tokens.json +2 -0
  142. package/src/spinner/spinner.css +83 -180
  143. package/src/spinner/spinner.tokens.json +0 -1
  144. package/src/split-button/split-button.css +30 -31
  145. package/src/split-button/split-button.tokens.json +1 -0
  146. package/src/splitter/splitter.css +35 -35
  147. package/src/stack/stack.css +24 -24
  148. package/src/stat-card/stat-card.css +380 -241
  149. package/src/stat-card/stat-card.tokens.json +5 -0
  150. package/src/status-indicator/status-indicator.css +107 -82
  151. package/src/status-indicator/status-indicator.tokens.json +0 -3
  152. package/src/stepper/stepper.css +58 -62
  153. package/src/switch/switch.css +86 -92
  154. package/src/table/table.css +340 -175
  155. package/src/table/table.tokens.json +6 -0
  156. package/src/table-of-contents/table-of-contents.css +57 -56
  157. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  158. package/src/tabs/tabs.css +322 -289
  159. package/src/tabs/tabs.tokens.json +7 -1
  160. package/src/tag/tag.css +91 -71
  161. package/src/tag/tag.tokens.json +9 -0
  162. package/src/tags-input/tags-input.css +147 -82
  163. package/src/tags-input/tags-input.tokens.json +7 -1
  164. package/src/text-field/text-field.css +134 -136
  165. package/src/text-field/text-field.tokens.json +1 -0
  166. package/src/textarea/textarea.css +33 -28
  167. package/src/textarea/textarea.tokens.json +1 -0
  168. package/src/time-field/time-field.css +74 -69
  169. package/src/time-field/time-field.tokens.json +1 -0
  170. package/src/time-picker/time-picker.css +58 -58
  171. package/src/time-range-picker/time-range-picker.css +128 -133
  172. package/src/timeline/timeline.css +254 -266
  173. package/src/timeline/timeline.tokens.json +5 -0
  174. package/src/toast/toast.css +115 -98
  175. package/src/toast/toast.tokens.json +6 -0
  176. package/src/toggle/toggle.css +62 -25
  177. package/src/toggle/toggle.tokens.json +8 -0
  178. package/src/toggle-group/toggle-group.css +106 -60
  179. package/src/toggle-group/toggle-group.tokens.json +10 -0
  180. package/src/toolbar/toolbar.css +30 -35
  181. package/src/tooltip/tooltip.css +59 -38
  182. package/src/tooltip/tooltip.tokens.json +1 -0
  183. package/src/top-navigation/top-navigation.css +243 -259
  184. package/src/tour/tour.css +51 -60
  185. package/src/transfer/transfer.css +160 -164
  186. package/src/tree/tree.css +103 -111
  187. package/src/typography/typography.css +40 -36
  188. package/src/typography/typography.tokens.json +1 -0
  189. package/src/upload/upload.css +224 -224
  190. package/src/visually-hidden/visually-hidden.css +1 -1
  191. package/src/wizard/wizard.css +185 -197
@@ -1,13 +1,13 @@
1
1
  @layer slotted.components {
2
2
  /**
3
- * One unit of content inside a page: a header — eyebrow, heading,
3
+ * One unit of content inside a page: a header — eyebrow, heading, tags,
4
4
  * description, actions — and a body one outline step deeper.
5
5
  *
6
- * ┌──────────────────────────────────────┬──────────┐
7
- * │ header ▸ title ▸ eyebrow │ actions │
8
- * │ heading │ │
9
- * │ description │ │
10
- * ├──────────────────────────────────────┴──────────┤
6
+ * ┌─────────────────────────────────────────────────┐
7
+ * │ header ▸ title ▸ eyebrow │
8
+ * │ heading tags actions │ ← one baseline
9
+ * │ description │
10
+ * ├─────────────────────────────────────────────────┤
11
11
  * │ body │
12
12
  * └─────────────────────────────────────────────────┘
13
13
  *
@@ -15,13 +15,23 @@
15
15
  * sections, and the families inside it — a card, a description-list — have
16
16
  * a `header`, an `actions` and a `description` of their own.
17
17
  */
18
- [data-ui='section'] {
18
+ [data-ui-section] {
19
19
  --_gap: var(--slotted-section-gap, var(--slotted-space-5, 0.75rem));
20
20
  --_text: var(--slotted-text, CanvasText);
21
21
  --_muted: var(--slotted-text-muted, GrayText);
22
22
  --_rule: var(--slotted-section-border, var(--slotted-border-subtle, ButtonBorder));
23
- --_heading-size: var(--slotted-section-heading-size-md, var(--slotted-font-size-lg, 1rem));
24
- --_heading-line-height: var(--slotted-line-height-lg, 1.5);
23
+ /**
24
+ * A section's heading is a label in small capitals; a subsection's, mixed
25
+ * case one step larger. Each section reads the pair for its own size and
26
+ * uses the one its depth calls for.
27
+ */
28
+ --_heading-size: var(--slotted-section-heading-size-md, var(--slotted-font-size-xs, 0.75rem));
29
+ --_heading-line-height: var(--slotted-line-height-xs, 1.4);
30
+ --_subheading-size: var(
31
+ --slotted-section-subheading-size-md,
32
+ var(--slotted-font-size-md, 0.875rem)
33
+ );
34
+ --_subheading-line-height: var(--slotted-line-height-md, 1.5);
25
35
  /**
26
36
  * The ground a sticky header paints, so the content passing under it is
27
37
  * covered rather than read through. The page states its own ground in
@@ -42,20 +52,49 @@
42
52
  scroll-margin-block-start: var(--slotted-page-sticky-top, 0px);
43
53
  }
44
54
 
45
- [data-ui='section'][data-size='sm'] {
46
- --_heading-size: var(--slotted-section-heading-size-sm, var(--slotted-font-size-md, 0.875rem));
47
- --_heading-line-height: var(--slotted-line-height-md, 1.5);
55
+ [data-ui-section][data-size='sm'] {
56
+ --_heading-size: var(--slotted-section-heading-size-sm, var(--slotted-font-size-xs, 0.75rem));
57
+ --_heading-line-height: var(--slotted-line-height-xs, 1.4);
58
+ --_subheading-size: var(
59
+ --slotted-section-subheading-size-sm,
60
+ var(--slotted-font-size-sm, 0.8125rem)
61
+ );
62
+ --_subheading-line-height: var(--slotted-line-height-sm, 1.45);
63
+ }
64
+ [data-ui-section][data-size='lg'] {
65
+ --_heading-size: var(--slotted-section-heading-size-lg, var(--slotted-font-size-sm, 0.8125rem));
66
+ --_heading-line-height: var(--slotted-line-height-sm, 1.45);
67
+ --_subheading-size: var(
68
+ --slotted-section-subheading-size-lg,
69
+ var(--slotted-font-size-lg, 1rem)
70
+ );
71
+ --_subheading-line-height: var(--slotted-line-height-lg, 1.5);
72
+ }
73
+
74
+ /**
75
+ * The distance between sections is the family's where sections follow one
76
+ * another in flow: in a page's container, in the body of a drawer, a dialog,
77
+ * a card or another section. There no consumer margin or gap is written
78
+ * between them. One token after a section, another before a subsection
79
+ * that follows content in a body.
80
+ *
81
+ * Elsewhere the parent's layout decides. A stack's gap or a dashboard
82
+ * grid's areas already space their children, and a margin on a grid item
83
+ * would push its cell off the row; a section wrapped in a component of its
84
+ * own has no section beside it to follow.
85
+ */
86
+ :is([data-ui-container], [data-part-body]) > [data-ui-section] + [data-ui-section] {
87
+ margin-block-start: var(--slotted-section-spacing, var(--slotted-space-9, 2rem));
48
88
  }
49
- [data-ui='section'][data-size='lg'] {
50
- --_heading-size: var(--slotted-section-heading-size-lg, var(--slotted-font-size-xl, 1.125rem));
51
- --_heading-line-height: var(--slotted-line-height-xl, 1.45);
89
+ [data-ui-section] > [data-part-body] > [data-ui-section]:not(:first-child) {
90
+ margin-block-start: var(--slotted-section-subsection-spacing, var(--slotted-space-7, 1.25rem));
52
91
  }
53
92
 
54
93
  /**
55
94
  * A surface and not a card: a raised ground, a subtle edge, the large
56
95
  * radius, one step of inset, and no shadow, no hover, no action.
57
96
  */
58
- [data-ui='section'][data-ground='surface'] {
97
+ [data-ui-section][data-ground='surface'] {
59
98
  --_ground: var(--slotted-section-surface, var(--slotted-surface-raised, Canvas));
60
99
  /* Published, as a card's is, for the families that state a ground inside it. */
61
100
  --slotted-ground: var(--_ground);
@@ -67,26 +106,49 @@
67
106
 
68
107
  /* ── The header ──────────────────────────────────────────────────────── */
69
108
 
70
- [data-ui='section'] > [data-part='header'] {
71
- align-items: flex-start;
72
- display: flex;
73
- flex-wrap: wrap;
74
- gap: var(--slotted-space-3, 0.375rem) var(--slotted-space-6, 1rem);
109
+ /**
110
+ * Three rows — eyebrow, heading, description — and the actions in a column
111
+ * of their own on the heading's row. The title is a subgrid of those rows,
112
+ * so the heading, its tags and the actions are items of one row and share
113
+ * the heading's first baseline, whatever stands above or below the heading.
114
+ * A row with nothing in it takes no space: the distances between rows are
115
+ * margins on the parts, not a gap an empty row would still open.
116
+ *
117
+ * The header is a size container so the actions can leave the heading's
118
+ * row when the header is too narrow to hold both; the tags never do.
119
+ */
120
+ [data-ui-section] > [data-part-header] {
121
+ align-items: baseline;
122
+ container-type: inline-size;
123
+ display: grid;
124
+ grid-template-columns: minmax(0, 1fr);
75
125
  min-inline-size: 0;
76
126
  }
77
127
 
78
- [data-ui='section'][data-divider] > [data-part='header'] {
128
+ [data-ui-section][data-divider] > [data-part-header] {
79
129
  border-block-end: var(--slotted-border-width-thin, 1px) solid var(--_rule);
80
130
  padding-block-end: var(--slotted-space-4, 0.5rem);
81
131
  }
82
132
 
133
+ /**
134
+ * On a surface the rule runs from edge to edge of the surface, not of its
135
+ * padding: the header takes the inset back as margin and keeps it as
136
+ * padding, so its contents stay where they were.
137
+ */
138
+ [data-ui-section][data-ground='surface'][data-divider] > [data-part-header] {
139
+ margin-inline: calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));
140
+ padding-inline: var(--slotted-section-inset, var(--slotted-space-6, 1rem));
141
+ }
142
+
83
143
  /**
84
144
  * Under the page chrome, and painted, so what scrolls under it is covered.
85
- * The inset a surface section gives its header is kept by sticking the
145
+ * The header writes `data-stuck` while content passes under it, so a theme
146
+ * whose page ground is translucent can fill it only then, through
147
+ * `--slotted-section-header-background`. The inset a surface section gives its header is kept by sticking the
86
148
  * header at the same distance the surface's padding put it at.
87
149
  */
88
- [data-ui='section'][data-sticky] > [data-part='header'] {
89
- background-color: var(--_ground);
150
+ [data-ui-section][data-sticky] > [data-part-header] {
151
+ background-color: var(--slotted-section-header-background, var(--_ground));
90
152
  inset-block-start: var(--slotted-page-sticky-top, 0px);
91
153
  /* Stuck, the header's text and buttons met the chrome's edge with no
92
154
  air. The padding gives it, and the negative margin takes the same
@@ -108,32 +170,45 @@
108
170
  * The alias on the root is what keeps the redefinition from referring to
109
171
  * itself.
110
172
  */
111
- [data-ui='section'][data-sticky] {
173
+ [data-ui-section][data-sticky] {
112
174
  --_above: var(--slotted-page-sticky-top, 0px);
113
175
  }
114
- [data-ui='section'][data-sticky] > [data-part='body'] {
176
+ [data-ui-section][data-sticky] > [data-part-body] {
115
177
  --slotted-page-sticky-top: calc(var(--_above) + var(--slotted-section-header-size, 0px));
116
178
  --slotted-table-sticky-offset: var(--slotted-page-sticky-top);
117
179
  }
118
180
 
119
- [data-ui='section'] > [data-part='header'] > [data-part='title'] {
120
- display: flex;
121
- flex: 1 1 16rem;
122
- flex-direction: column;
123
- gap: var(--slotted-space-1, 0.125rem);
181
+ /**
182
+ * The heading's column is as wide as its text and no wider, the tags' takes
183
+ * the rest, so a badge stands against the heading's last word. The tags'
184
+ * column is flexible, which is what keeps the eyebrow and the description,
185
+ * spanning both, from widening the heading's. When space runs out the
186
+ * heading wraps between words, never inside one, and the badges stack in
187
+ * their column; the tags never leave the heading's row.
188
+ */
189
+ [data-ui-section] > [data-part-header] > [data-part-title] {
190
+ align-items: baseline;
191
+ display: grid;
192
+ grid-column: 1;
193
+ grid-row: 1 / span 3;
194
+ grid-template-columns: minmax(min-content, max-content) 1fr;
195
+ grid-template-rows: subgrid;
124
196
  min-inline-size: 0;
125
197
  }
126
198
 
127
- [data-ui='section'] > [data-part='header'] > [data-part='title'] > [data-part='eyebrow'] {
199
+ [data-ui-section] > [data-part-header] > [data-part-title] > [data-part-eyebrow] {
128
200
  color: var(--_muted);
129
201
  font-size: var(--slotted-font-size-xs, 0.75rem);
202
+ grid-column: 1 / -1;
203
+ grid-row: 1;
204
+ margin-block-end: var(--slotted-space-1, 0.125rem);
130
205
  font-weight: var(--slotted-font-weight-semibold, 600);
131
206
  letter-spacing: 0.06em;
132
207
  line-height: var(--slotted-line-height-xs, 1.4);
133
208
  text-transform: uppercase;
134
209
  }
135
210
 
136
- [data-ui='section'] > [data-part='header'] > [data-part='title'] > [data-part='heading'] {
211
+ [data-ui-section] > [data-part-header] > [data-part-title] > [data-part-heading] {
137
212
  color: var(--_text);
138
213
  font-family: var(
139
214
  --slotted-font-family-heading,
@@ -141,37 +216,97 @@
141
216
  );
142
217
  font-size: var(--_heading-size);
143
218
  font-weight: var(--slotted-font-weight-semibold, 600);
144
- letter-spacing: -0.01em;
219
+ letter-spacing: 0.08em;
145
220
  line-height: var(--_heading-line-height);
221
+ text-transform: uppercase;
222
+ grid-column: 1;
223
+ grid-row: 2;
146
224
  margin: 0;
147
225
  min-inline-size: 0;
148
- overflow-wrap: anywhere;
226
+ overflow-wrap: break-word;
149
227
  text-wrap: pretty;
150
228
  }
151
229
 
152
- [data-ui='section'] > [data-part='header'] > [data-part='title'] > [data-part='description'] {
230
+ /**
231
+ * A subsection: the case, the size and the tone all change, so the level is
232
+ * read without the colour. The text stays the muted token, which the theme
233
+ * holds above 4.5:1 on every ground a section stands on.
234
+ */
235
+ [data-ui-section]
236
+ [data-ui-section]
237
+ > [data-part-header]
238
+ > [data-part-title]
239
+ > [data-part-heading] {
240
+ color: var(--_muted);
241
+ font-size: var(--_subheading-size);
242
+ letter-spacing: normal;
243
+ line-height: var(--_subheading-line-height);
244
+ text-transform: none;
245
+ }
246
+
247
+ /**
248
+ * Beside the heading and outside it, so a badge is not read into the
249
+ * region's name. A badge is a box around a line of text, and its label's
250
+ * baseline is the one the row aligns.
251
+ */
252
+ [data-ui-section] > [data-part-header] > [data-part-title] > [data-part-tags] {
253
+ align-items: baseline;
254
+ display: flex;
255
+ flex-wrap: wrap;
256
+ gap: var(--slotted-space-3, 0.375rem);
257
+ grid-column: 2;
258
+ grid-row: 2;
259
+ justify-self: start;
260
+ margin-inline-start: var(--slotted-space-4, 0.5rem);
261
+ }
262
+ [data-ui-section] > [data-part-header] > [data-part-title] > [data-part-tags]:empty {
263
+ display: none;
264
+ }
265
+
266
+ [data-ui-section] > [data-part-header] > [data-part-title] > [data-part-description] {
153
267
  color: var(--_muted);
154
268
  font-size: var(--slotted-font-size-sm, 0.8125rem);
269
+ grid-column: 1 / -1;
270
+ grid-row: 3;
155
271
  line-height: var(--slotted-line-height-sm, 1.45);
156
- margin: 0;
272
+ margin: var(--slotted-space-1, 0.125rem) 0 0;
157
273
  max-inline-size: var(--slotted-section-description-measure, 70ch);
158
274
  text-wrap: pretty;
159
275
  }
160
276
 
161
- [data-ui='section'] > [data-part='header'] > [data-part='actions'] {
277
+ /* An implicit column: a header with no actions has one column and no gap. */
278
+ [data-ui-section] > [data-part-header] > [data-part-actions] {
279
+ /* An action slot states one size for the links it holds. */
280
+ --slotted-link-font-size: var(--slotted-font-size-sm, 0.8125rem);
281
+
162
282
  align-items: center;
163
283
  display: flex;
164
- flex: none;
165
284
  gap: var(--slotted-control-gap-md, 8px);
166
- margin-inline-start: auto;
285
+ grid-column: 2;
286
+ grid-row: 2;
287
+ margin-inline-start: var(--slotted-space-6, 1rem);
167
288
  }
168
- [data-ui='section'] > [data-part='header'] > [data-part='actions']:empty {
289
+ [data-ui-section] > [data-part-header] > [data-part-actions]:empty {
169
290
  display: none;
170
291
  }
171
292
 
293
+ /**
294
+ * Too narrow for the heading, its tags and the actions on one row: the
295
+ * actions take a row of their own under the description, at the end. The
296
+ * tags stay beside the heading at every width.
297
+ */
298
+ @container (inline-size < 20rem) {
299
+ [data-ui-section] > [data-part-header] > [data-part-actions] {
300
+ grid-column: 1 / -1;
301
+ grid-row: 4;
302
+ justify-self: end;
303
+ margin: var(--slotted-space-3, 0.375rem) 0 0;
304
+ }
305
+ }
306
+
172
307
  /* ── The body ────────────────────────────────────────────────────────── */
173
308
 
174
- [data-ui='section'] > [data-part='body'] {
309
+ [data-ui-section] > [data-part-body] {
175
310
  min-inline-size: 0;
176
311
  }
177
312
  }
@@ -7,30 +7,36 @@
7
7
  "--slotted-font-size-lg",
8
8
  "--slotted-font-size-md",
9
9
  "--slotted-font-size-sm",
10
- "--slotted-font-size-xl",
11
10
  "--slotted-font-size-xs",
12
11
  "--slotted-font-weight-semibold",
13
12
  "--slotted-line-height-lg",
14
13
  "--slotted-line-height-md",
15
14
  "--slotted-line-height-sm",
16
- "--slotted-line-height-xl",
17
15
  "--slotted-line-height-xs",
18
16
  "--slotted-page-ground",
19
17
  "--slotted-radius-lg",
20
18
  "--slotted-section-border",
21
19
  "--slotted-section-description-measure",
22
20
  "--slotted-section-gap",
21
+ "--slotted-section-header-background",
23
22
  "--slotted-section-heading-size-lg",
24
23
  "--slotted-section-heading-size-md",
25
24
  "--slotted-section-heading-size-sm",
26
25
  "--slotted-section-inset",
27
26
  "--slotted-section-radius",
27
+ "--slotted-section-spacing",
28
+ "--slotted-section-subheading-size-lg",
29
+ "--slotted-section-subheading-size-md",
30
+ "--slotted-section-subheading-size-sm",
31
+ "--slotted-section-subsection-spacing",
28
32
  "--slotted-section-surface",
29
33
  "--slotted-space-1",
30
34
  "--slotted-space-3",
31
35
  "--slotted-space-4",
32
36
  "--slotted-space-5",
33
37
  "--slotted-space-6",
38
+ "--slotted-space-7",
39
+ "--slotted-space-9",
34
40
  "--slotted-surface",
35
41
  "--slotted-surface-raised",
36
42
  "--slotted-text",