@slotted/styles 0.1.0-beta.34 → 0.1.0-beta.35

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 (81) hide show
  1. package/package.json +5 -1
  2. package/src/accordion/accordion.css +20 -2
  3. package/src/accordion/accordion.tokens.json +2 -0
  4. package/src/avatar/avatar.css +1 -1
  5. package/src/avatar/avatar.tokens.json +1 -0
  6. package/src/badge/badge.css +1 -1
  7. package/src/badge/badge.tokens.json +1 -0
  8. package/src/button/button.css +168 -4
  9. package/src/button/button.tokens.json +5 -0
  10. package/src/calendar/calendar.css +131 -0
  11. package/src/calendar/calendar.tokens.json +10 -0
  12. package/src/card/card.css +63 -3
  13. package/src/cascader/cascader.css +13 -0
  14. package/src/chart/chart.css +3 -3
  15. package/src/chart/chart.tokens.json +1 -0
  16. package/src/checkbox/checkbox.css +47 -0
  17. package/src/checkbox/checkbox.tokens.json +4 -0
  18. package/src/collapsible/collapsible.css +174 -5
  19. package/src/collapsible/collapsible.tokens.json +4 -0
  20. package/src/combobox/combobox.css +13 -0
  21. package/src/command-palette/command-palette.css +10 -1
  22. package/src/command-palette/command-palette.tokens.json +1 -0
  23. package/src/dashboard-grid/dashboard-grid.css +12 -7
  24. package/src/dashboard-grid/dashboard-grid.tokens.json +1 -0
  25. package/src/data-grid/data-grid.css +44 -5
  26. package/src/data-list/data-list.css +17 -11
  27. package/src/description-list/description-list.css +15 -1
  28. package/src/entity-picker/entity-picker.css +23 -1
  29. package/src/entity-picker/entity-picker.tokens.json +1 -0
  30. package/src/filter-bar/filter-bar.css +24 -0
  31. package/src/floating-panel/floating-panel.css +123 -0
  32. package/src/floating-panel/floating-panel.tokens.json +30 -0
  33. package/src/inline-message/inline-message.css +1 -1
  34. package/src/inline-message/inline-message.tokens.json +1 -0
  35. package/src/kbd/kbd.css +1 -1
  36. package/src/kbd/kbd.tokens.json +1 -0
  37. package/src/list/list.css +10 -1
  38. package/src/list/list.tokens.json +1 -0
  39. package/src/list-item/list-item.css +108 -7
  40. package/src/list-item/list-item.tokens.json +3 -0
  41. package/src/listbox/listbox.css +50 -2
  42. package/src/listbox/listbox.tokens.json +6 -0
  43. package/src/message/message.css +20 -0
  44. package/src/message/message.tokens.json +1 -0
  45. package/src/meter/meter.css +136 -0
  46. package/src/meter/meter.tokens.json +23 -0
  47. package/src/multi-select/multi-select.css +13 -0
  48. package/src/page/page.css +58 -4
  49. package/src/page/page.tokens.json +7 -0
  50. package/src/progress-indicator/progress-indicator.css +70 -0
  51. package/src/progress-indicator/progress-indicator.tokens.json +3 -0
  52. package/src/prompt-composer/prompt-composer.css +18 -7
  53. package/src/radio-group/radio-group.css +50 -0
  54. package/src/radio-group/radio-group.tokens.json +2 -0
  55. package/src/rating/rating.css +1 -1
  56. package/src/rating/rating.tokens.json +1 -0
  57. package/src/runtime-properties.mjs +19 -0
  58. package/src/section/section.css +61 -4
  59. package/src/section/section.tokens.json +6 -0
  60. package/src/segmented-control/segmented-control.css +11 -0
  61. package/src/select/select.css +13 -0
  62. package/src/side-navigation/side-navigation.css +3 -3
  63. package/src/side-navigation/side-navigation.tokens.json +1 -0
  64. package/src/slider/slider.css +7 -1
  65. package/src/slider/slider.tokens.json +1 -0
  66. package/src/sparkline/sparkline.css +207 -0
  67. package/src/sparkline/sparkline.tokens.json +10 -0
  68. package/src/stat-card/stat-card.css +5 -0
  69. package/src/status-indicator/status-indicator.css +3 -2
  70. package/src/switch/switch.css +49 -25
  71. package/src/switch/switch.tokens.json +4 -0
  72. package/src/table/table.css +166 -12
  73. package/src/table/table.tokens.json +5 -0
  74. package/src/tag/tag.css +4 -1
  75. package/src/tag/tag.tokens.json +1 -0
  76. package/src/toolbar/toolbar.css +16 -2
  77. package/src/toolbar/toolbar.tokens.json +2 -1
  78. package/src/top-navigation/top-navigation.css +1 -1
  79. package/src/top-navigation/top-navigation.tokens.json +1 -0
  80. package/src/typography/typography.css +25 -0
  81. package/src/typography/typography.tokens.json +1 -0
@@ -0,0 +1,136 @@
1
+ @layer slotted.components {
2
+ /**
3
+ * A static value within a known range, drawn as a length.
4
+ *
5
+ * ┌─ root ─ role="meter" ─ the whole inline size it is given ───────┐
6
+ * │ ┌─ track ─ one continuous ground ─────────────────────────────┐ │
7
+ * │ │ ┌─ indicator ─ the share, from the inline start ─┐ │ │
8
+ * │ │ └────────────────────────────────────────────────┘ │ │
9
+ * │ └─────────────────────────────────────────────────────────────┘ │
10
+ * └──────────────────────────────────────────────────────────────────┘
11
+ *
12
+ * ── Why it is not a progress bar ────────────────────────────────────
13
+ *
14
+ * A progress bar is a wait: its track keeps a gap before the indicator and
15
+ * an end mark at its far end, which read as how far there is still to go.
16
+ * A share of a whole goes nowhere, so the track is one continuous ground
17
+ * and carries neither. The ink and the ground are `progress-indicator`'s
18
+ * own formula, and its tokens are the fallback, so a theme that retuned the
19
+ * progress bar retunes the meter beside it.
20
+ *
21
+ * ── Why it fills the cell ───────────────────────────────────────────
22
+ *
23
+ * A meter is read beside its exact value, most often in a table column. A
24
+ * box with no inline size of its own shrinks to nothing in an auto-layout
25
+ * cell, so the root takes the whole inline size it is given and keeps a
26
+ * least size that a column of shares still reads at.
27
+ */
28
+ [data-ui-meter][data-part-root] {
29
+ --_ink: var(
30
+ --slotted-meter-indicator-color,
31
+ var(--slotted-progress-indicator-indicator-color, var(--slotted-tone-accent-text))
32
+ );
33
+ --_track-color: var(
34
+ --slotted-meter-track-color,
35
+ var(
36
+ --slotted-progress-indicator-track-color,
37
+ color-mix(in oklab, var(--_ink) 24%, var(--slotted-surface))
38
+ )
39
+ );
40
+ --_thickness: var(--slotted-meter-thickness, var(--slotted-space-3, 0.375rem));
41
+ --_radius: var(--slotted-meter-radius, var(--slotted-radius-full, 9999px));
42
+ --_ratio: var(--slotted-meter-ratio, 0);
43
+
44
+ box-sizing: border-box;
45
+ display: block;
46
+ inline-size: 100%;
47
+ min-inline-size: var(--slotted-meter-min-inline-size, 4rem);
48
+ }
49
+
50
+ [data-ui-meter][data-part-root][data-size='sm'] {
51
+ --_thickness: var(--slotted-meter-thickness, var(--slotted-space-2, 0.25rem));
52
+ }
53
+
54
+ [data-ui-meter][data-part-root][data-size='lg'] {
55
+ --_thickness: var(--slotted-meter-thickness, var(--slotted-space-4, 0.5rem));
56
+ }
57
+
58
+ /**
59
+ * A tone is the ink of the indicator. `secondary` and `neutral` take the
60
+ * strong border step, because the secondary tone's text color is the page's
61
+ * own ink in two schemes and a bar painted from it reads as text.
62
+ */
63
+ [data-ui-meter][data-part-root][data-tone='secondary'],
64
+ [data-ui-meter][data-part-root][data-tone='neutral'] {
65
+ --_ink: var(--slotted-meter-indicator-color, var(--slotted-border-strong));
66
+ }
67
+
68
+ [data-ui-meter][data-part-root][data-tone='info'] {
69
+ --_ink: var(--slotted-meter-indicator-color, var(--slotted-tone-info-text));
70
+ }
71
+
72
+ [data-ui-meter][data-part-root][data-tone='success'] {
73
+ --_ink: var(--slotted-meter-indicator-color, var(--slotted-tone-success-text));
74
+ }
75
+
76
+ [data-ui-meter][data-part-root][data-tone='warning'] {
77
+ --_ink: var(--slotted-meter-indicator-color, var(--slotted-tone-warning-text));
78
+ }
79
+
80
+ [data-ui-meter][data-part-root][data-tone='danger'] {
81
+ --_ink: var(--slotted-meter-indicator-color, var(--slotted-tone-danger-text));
82
+ }
83
+
84
+ [data-ui-meter] [data-part-track] {
85
+ background-color: var(--_track-color);
86
+ block-size: var(--_thickness);
87
+ border-radius: var(--_radius);
88
+ display: block;
89
+ overflow: hidden;
90
+ }
91
+
92
+ /**
93
+ * The indicator is the whole track clipped from its inline end, so a value
94
+ * that changes moves without a layout and the rounded end stays round at
95
+ * every share: a scaled box squashes its own radius.
96
+ */
97
+ [data-ui-meter] [data-part-indicator] {
98
+ --_clip: calc((1 - var(--_ratio)) * 100%);
99
+
100
+ background-color: var(--_ink);
101
+ block-size: 100%;
102
+ clip-path: inset(0 var(--_clip) 0 0 round var(--_radius));
103
+ display: block;
104
+ inline-size: 100%;
105
+ transition: clip-path var(--slotted-duration-medium) var(--slotted-easing-standard);
106
+ }
107
+
108
+ [data-ui-meter] [data-part-indicator]:dir(rtl) {
109
+ clip-path: inset(0 0 0 var(--_clip) round var(--_radius));
110
+ }
111
+
112
+ @media (prefers-reduced-motion: reduce) {
113
+ [data-ui-meter] [data-part-indicator] {
114
+ transition: none;
115
+ }
116
+ }
117
+
118
+ /**
119
+ * ── Forced colors ───────────────────────────────────────────────────
120
+ *
121
+ * The palette flattens the ink and the ground into the same system color,
122
+ * so the track keeps an outline and the indicator takes the highlight.
123
+ */
124
+ @media (forced-colors: active) {
125
+ [data-ui-meter] [data-part-track] {
126
+ background-color: Canvas;
127
+ outline: var(--slotted-border-width-thin, 1px) solid CanvasText;
128
+ outline-offset: calc(-1 * var(--slotted-border-width-thin, 1px));
129
+ }
130
+
131
+ [data-ui-meter] [data-part-indicator] {
132
+ background-color: Highlight;
133
+ forced-color-adjust: none;
134
+ }
135
+ }
136
+ }
@@ -0,0 +1,23 @@
1
+ [
2
+ "--slotted-border-strong",
3
+ "--slotted-border-width-thin",
4
+ "--slotted-duration-medium",
5
+ "--slotted-easing-standard",
6
+ "--slotted-meter-indicator-color",
7
+ "--slotted-meter-min-inline-size",
8
+ "--slotted-meter-radius",
9
+ "--slotted-meter-thickness",
10
+ "--slotted-meter-track-color",
11
+ "--slotted-progress-indicator-indicator-color",
12
+ "--slotted-progress-indicator-track-color",
13
+ "--slotted-radius-full",
14
+ "--slotted-space-2",
15
+ "--slotted-space-3",
16
+ "--slotted-space-4",
17
+ "--slotted-surface",
18
+ "--slotted-tone-accent-text",
19
+ "--slotted-tone-danger-text",
20
+ "--slotted-tone-info-text",
21
+ "--slotted-tone-success-text",
22
+ "--slotted-tone-warning-text"
23
+ ]
@@ -1431,6 +1431,19 @@
1431
1431
  display: none;
1432
1432
  }
1433
1433
 
1434
+ /* Beside the empty message the status says the same thing to the eye. It
1435
+ stays the live region that announces the count, clipped to one pixel. */
1436
+ [data-ui-multi-select] [data-part-empty] ~ [data-part-status] {
1437
+ block-size: 1px;
1438
+ clip-path: inset(50%);
1439
+ inline-size: 1px;
1440
+ min-inline-size: 0;
1441
+ overflow: hidden;
1442
+ padding: 0;
1443
+ position: absolute;
1444
+ white-space: nowrap;
1445
+ }
1446
+
1434
1447
  /**
1435
1448
  * The wait, as the shape of the list that is coming: rows the height of an
1436
1449
  * option rather than one sentence, so the surface a reader is looking at
package/src/page/page.css CHANGED
@@ -22,6 +22,14 @@
22
22
  --slotted-page-footer-padding-block,
23
23
  var(--slotted-space-4, 0.5rem)
24
24
  );
25
+ /**
26
+ * The distance between two blocks of the body (cards, a row of figures, a
27
+ * bar of controls), and the larger one above a titled section that paints
28
+ * no surface. One decision on the theme, so screens with the same kind of
29
+ * content stand the same distance apart.
30
+ */
31
+ --_block-gap: var(--slotted-page-block-gap, var(--slotted-space-6, 1rem));
32
+ --_section-gap: var(--slotted-page-section-gap, var(--slotted-space-8, 1.5rem));
25
33
  --_duration: var(--slotted-duration-medium);
26
34
  --_easing: var(--slotted-easing-standard, cubic-bezier(0.2, 0, 0, 1));
27
35
  /**
@@ -29,6 +37,8 @@
29
37
  * header paints it, so the rows passing under the header are covered.
30
38
  */
31
39
  --slotted-page-ground: var(--_ground);
40
+ /* Published as a section's is, for the families that pin content over rows. */
41
+ --slotted-ground: var(--_ground);
32
42
  /**
33
43
  * The bridge to table. A table with `stickyTo="page"` stops its header
34
44
  * under the page's fixed chrome and its summary above the footer, and the
@@ -114,6 +124,43 @@
114
124
  }
115
125
  }
116
126
 
127
+ /**
128
+ * The blocks of the body are the direct children of its container, one per
129
+ * row of its grid at the block gap; a section without a surface that
130
+ * follows another block stands at the section gap. `flow="none"` leaves a
131
+ * body that is not a list of blocks (a workspace, a split) to its own
132
+ * layout.
133
+ */
134
+ [data-ui-page]
135
+ > [data-part-scroll]
136
+ > [data-part-body]:not([data-flow='none'])
137
+ > [data-ui-container] {
138
+ row-gap: var(--_block-gap);
139
+ }
140
+
141
+ [data-ui-page]
142
+ > [data-part-scroll]
143
+ > [data-part-body]:not([data-flow='none'])
144
+ > [data-ui-container]
145
+ > [data-ui-section]:not([data-ground='surface']):not(:first-child) {
146
+ margin-block-start: calc(var(--_section-gap) - var(--_block-gap));
147
+ }
148
+
149
+ /**
150
+ * A level-1 detail panel is the page of one record, and its header and body
151
+ * hold containers of their own: inside the body's column the two insets
152
+ * added up, and the header's rule stopped one inset short of each edge. It
153
+ * takes the column's full track, as a breakout does, and its own containers
154
+ * carry the one inset.
155
+ */
156
+ [data-ui-page]
157
+ > [data-part-scroll]
158
+ > [data-part-body]
159
+ > [data-ui-container]
160
+ > [data-ui-detail-panel][data-level='1'] {
161
+ grid-column: full;
162
+ }
163
+
117
164
  [data-ui-page][data-loading] > [data-part-scroll] > [data-part-body] {
118
165
  cursor: progress;
119
166
  }
@@ -174,9 +221,10 @@
174
221
 
175
222
  /**
176
223
  * Below 600 pixels, the compact size class: the gutters of every container
177
- * in the page stop at step 4 of the space scale. At the default inset,
178
- * step 6, the two gutters took 32 of a 390-pixel phone's pixels; at step 4
179
- * they take 16. The steps under 4 keep their own value.
224
+ * in the page stop at `--slotted-page-inset-compact`, step 4 of the space
225
+ * scale unless a theme sets it. At the default inset, step 6, the two
226
+ * gutters took 32 of a 390-pixel phone's pixels; at step 4 they take 16. The
227
+ * steps under 4 keep their own value. The gaps of the body step down too.
180
228
  */
181
229
  @container slotted-page (width < 600px) {
182
230
  [data-ui-page] [data-ui-container][data-inset='5'],
@@ -187,7 +235,13 @@
187
235
  [data-ui-page] [data-ui-container][data-inset='10'],
188
236
  [data-ui-page] [data-ui-container][data-inset='11'],
189
237
  [data-ui-page] [data-ui-container][data-inset='12'] {
190
- --_inset: var(--slotted-space-4, 0.5rem);
238
+ --_inset: var(--slotted-page-inset-compact, var(--slotted-space-4, 0.5rem));
239
+ }
240
+
241
+ /* On the body: a container query reaches the page's descendants only. */
242
+ [data-ui-page] > [data-part-scroll] > [data-part-body] {
243
+ --_block-gap: var(--slotted-page-block-gap-compact, var(--slotted-space-5, 0.75rem));
244
+ --_section-gap: var(--slotted-page-section-gap-compact, var(--slotted-space-6, 1rem));
191
245
  }
192
246
  }
193
247
  }
@@ -7,12 +7,19 @@
7
7
  "--slotted-font-family-sans",
8
8
  "--slotted-page-background-sunken",
9
9
  "--slotted-page-background-surface",
10
+ "--slotted-page-block-gap",
11
+ "--slotted-page-block-gap-compact",
10
12
  "--slotted-page-footer-backdrop-filter",
11
13
  "--slotted-page-footer-background",
12
14
  "--slotted-page-footer-border",
13
15
  "--slotted-page-footer-padding-block",
16
+ "--slotted-page-inset-compact",
14
17
  "--slotted-page-padding-block",
18
+ "--slotted-page-section-gap",
19
+ "--slotted-page-section-gap-compact",
15
20
  "--slotted-space-4",
21
+ "--slotted-space-5",
22
+ "--slotted-space-6",
16
23
  "--slotted-space-8",
17
24
  "--slotted-surface",
18
25
  "--slotted-surface-sunken",
@@ -1638,4 +1638,74 @@
1638
1638
  background-color: Canvas;
1639
1639
  }
1640
1640
  }
1641
+
1642
+ /* ── Segmented ────────────────────────────────────────────────────────
1643
+ *
1644
+ * One total in parts: the track is a row of segments whose flex growth is
1645
+ * each part's value, so their widths keep the parts' ratio at any width,
1646
+ * with a hairline of the ground between two of them. A segment's color is
1647
+ * a data palette slot; a remainder is hatched in the muted ink, so it is
1648
+ * told apart by more than color. Marking one part dims the others with the
1649
+ * motion tokens, and at once under reduced motion.
1650
+ */
1651
+ [data-ui-progress-indicator][data-shape='segmented'] {
1652
+ --_thickness: var(--slotted-progress-indicator-thickness, var(--slotted-space-4, 0.5rem));
1653
+
1654
+ display: grid;
1655
+ row-gap: var(--slotted-space-2, 0.25rem);
1656
+ }
1657
+
1658
+ [data-ui-progress-indicator][data-shape='segmented'] > [data-part-track] {
1659
+ block-size: var(--_thickness);
1660
+ border-radius: var(--_radius);
1661
+ column-gap: var(--slotted-segmented-bar-gap, var(--slotted-border-width-medium, 2px));
1662
+ display: flex;
1663
+ overflow: clip;
1664
+ }
1665
+
1666
+ [data-ui-progress-indicator][data-shape='segmented'] [data-part-segment] {
1667
+ background-color: var(--_segment-color, var(--slotted-text-muted, GrayText));
1668
+ flex-basis: 0;
1669
+ min-inline-size: 0;
1670
+ transition: opacity var(--slotted-duration-short) var(--slotted-easing-standard);
1671
+ }
1672
+
1673
+ [data-ui-progress-indicator][data-shape='segmented'] [data-part-segment][data-pattern='hatch'] {
1674
+ background: repeating-linear-gradient(
1675
+ -45deg,
1676
+ var(--slotted-text-muted, GrayText) 0 2px,
1677
+ transparent 2px 5px
1678
+ );
1679
+ }
1680
+
1681
+ [data-ui-progress-indicator][data-shape='segmented'][data-current]
1682
+ [data-part-segment]:not([data-current]) {
1683
+ opacity: var(--slotted-segmented-bar-dimmed-opacity, 0.35);
1684
+ }
1685
+
1686
+ [data-ui-progress-indicator][data-shape='segmented'] > [data-part-scale] {
1687
+ color: var(--slotted-text-muted, GrayText);
1688
+ display: flex;
1689
+ font-size: var(--_font-size);
1690
+ font-variant-numeric: tabular-nums;
1691
+ justify-content: space-between;
1692
+ }
1693
+
1694
+ @media (prefers-reduced-motion: reduce) {
1695
+ [data-ui-progress-indicator][data-shape='segmented'] [data-part-segment] {
1696
+ transition: none;
1697
+ }
1698
+ }
1699
+
1700
+ @media (forced-colors: active) {
1701
+ [data-ui-progress-indicator][data-shape='segmented'] [data-part-segment] {
1702
+ outline: 1px solid CanvasText;
1703
+ outline-offset: -1px;
1704
+ }
1705
+
1706
+ [data-ui-progress-indicator][data-shape='segmented'] [data-part-segment][data-current] {
1707
+ background-color: Highlight;
1708
+ forced-color-adjust: none;
1709
+ }
1710
+ }
1641
1711
  }
@@ -1,5 +1,6 @@
1
1
  [
2
2
  "--slotted-border-strong",
3
+ "--slotted-border-width-medium",
3
4
  "--slotted-border-width-thin",
4
5
  "--slotted-control-font-family",
5
6
  "--slotted-control-font-size-lg",
@@ -35,6 +36,8 @@
35
36
  "--slotted-progress-indicator-wave-phase",
36
37
  "--slotted-radius-full",
37
38
  "--slotted-radius-none",
39
+ "--slotted-segmented-bar-dimmed-opacity",
40
+ "--slotted-segmented-bar-gap",
38
41
  "--slotted-space-2",
39
42
  "--slotted-space-3",
40
43
  "--slotted-space-4",
@@ -44,6 +44,14 @@
44
44
  * put the text five pixels inside the paperclip at `md`.
45
45
  */
46
46
  --_padding-inline: calc(var(--_inset) + (var(--_button) - var(--_icon-size)) / 2);
47
+ /**
48
+ * Published, not read: the inset of the value's text, for content of the
49
+ * consumer's placed beside the input (attachments above it, a line of help
50
+ * under it) to start on the same edge. Written on the root, so a theme
51
+ * that sets it is overridden; the inherited value follows the size and the
52
+ * variant.
53
+ */
54
+ --slotted-prompt-composer-content-inset: var(--_padding-inline);
47
55
  /* One row of the composer in a form is one row of a text field. */
48
56
  --_padding-block: max(0px, calc((var(--_height) - 1lh) / 2));
49
57
  --_radius: var(--slotted-prompt-composer-radius, var(--slotted-radius-lg, 8px));
@@ -110,7 +118,9 @@
110
118
  * that do not agree.
111
119
  */
112
120
  [data-ui-prompt-composer][data-part-root][data-variant='raised'] {
113
- --_button: calc(var(--_inner-size) + var(--slotted-space-2, 0.25rem));
121
+ /* Rounded: a sum of pixels and rems is a half pixel at a root other than
122
+ 16px, and a circle on a half pixel has an uneven edge. */
123
+ --_button: round(up, calc(var(--_inner-size) + var(--slotted-space-2, 0.25rem)), 1px);
114
124
  --_inset: var(--slotted-space-4, 0.5rem);
115
125
  --_padding-block: calc(var(--_inset) + var(--slotted-space-2, 0.25rem));
116
126
  --_radius: var(--slotted-prompt-composer-radius, calc(var(--_button) / 2 + var(--_inset)));
@@ -231,8 +241,9 @@
231
241
  *
232
242
  * `action` is the consumer's, `attach` the family's: both are R2 inner
233
243
  * controls — no frame, no ground at rest, one step of ground for hover and
234
- * one for press, and the ink never moves. Square when named by aria-label,
235
- * padded when named by their own words, the rule `text-field` set; round
244
+ * one for press, and the ink never moves. Square when they hold no words
245
+ * (`data-icon-only`, written by the binding), padded when they do, whatever
246
+ * names them: an aria-label gives a text action context, not a shape; round
236
247
  * in the chat composer, a pill when they carry words.
237
248
  */
238
249
  [data-ui-prompt-composer]
@@ -266,7 +277,7 @@
266
277
 
267
278
  [data-ui-prompt-composer]
268
279
  > :is([data-part-header], [data-part-footer])
269
- > [data-part-action]:not([aria-label], [aria-labelledby]) {
280
+ > [data-part-action]:not([data-icon-only]) {
270
281
  color: var(--slotted-prompt-composer-action-label-color, var(--slotted-text, CanvasText));
271
282
  font-weight: var(--slotted-font-weight-medium, 500);
272
283
  padding-inline: var(--slotted-space-3, 0.375rem);
@@ -286,7 +297,7 @@
286
297
  */
287
298
  [data-ui-prompt-composer]
288
299
  > :is([data-part-header], [data-part-footer])
289
- > [data-part-action]:not([aria-label], [aria-labelledby]) {
300
+ > [data-part-action]:not([data-icon-only]) {
290
301
  align-content: center;
291
302
  align-items: baseline;
292
303
  display: inline-grid;
@@ -296,7 +307,7 @@
296
307
 
297
308
  [data-ui-prompt-composer]
298
309
  > :is([data-part-header], [data-part-footer])
299
- > [data-part-action]:not([aria-label], [aria-labelledby])
310
+ > [data-part-action]:not([data-icon-only])
300
311
  > [data-ui-icon] {
301
312
  margin-block-start: calc((1cap + 1ex) / 4 - var(--_icon-size) / 2);
302
313
  translate: 0 calc(var(--_icon-size) / 2 - (1cap + 1ex) / 4);
@@ -305,7 +316,7 @@
305
316
  /* A pill carries its words a step further from its round ends. */
306
317
  [data-ui-prompt-composer][data-variant='raised']
307
318
  > :is([data-part-header], [data-part-footer])
308
- > [data-part-action]:not([aria-label], [aria-labelledby]) {
319
+ > [data-part-action]:not([data-icon-only]) {
309
320
  padding-inline: var(--slotted-space-4, 0.5rem);
310
321
  }
311
322
 
@@ -553,6 +553,56 @@
553
553
  position: absolute;
554
554
  }
555
555
 
556
+ /**
557
+ * A tile without its circle. The frame and the chosen edge say the choice,
558
+ * so the input leaves the layout and keeps its role, its name and its tab
559
+ * stop; the ring the tile draws on focus stays the visible focus. The text
560
+ * takes the column the circle held.
561
+ */
562
+ [data-ui-radio-group][data-part-root][data-variant='tile'][data-mark='hidden']
563
+ [data-part-control] {
564
+ block-size: 1px;
565
+ clip-path: inset(50%);
566
+ inline-size: 1px;
567
+ margin: 0;
568
+ overflow: hidden;
569
+ position: absolute;
570
+ }
571
+
572
+ [data-ui-radio-group][data-part-root][data-variant='tile'][data-mark='hidden']
573
+ :is([data-part-label], [data-part-description]) {
574
+ grid-column: 1 / -1;
575
+ }
576
+
577
+ /**
578
+ * A picture above the label, across the tile. It is a row of its own, so
579
+ * the circle, the label and the description move one row down and keep
580
+ * their order.
581
+ */
582
+ [data-ui-radio-group][data-part-root][data-variant='tile'] [data-part-media] {
583
+ display: block;
584
+ grid-column: 1 / -1;
585
+ grid-row: 1;
586
+ margin-block-end: var(--slotted-radio-group-tile-media-gap, var(--slotted-space-4, 0.5rem));
587
+ }
588
+
589
+ [data-ui-radio-group][data-part-root][data-variant='tile'] [data-part-media] > :is(img, svg) {
590
+ display: block;
591
+ max-inline-size: 100%;
592
+ }
593
+
594
+ [data-ui-radio-group][data-part-root][data-variant='tile']
595
+ [data-part-item]:has(> [data-part-media])
596
+ > :is([data-part-control], [data-part-indicator], [data-part-label]) {
597
+ grid-row: 2;
598
+ }
599
+
600
+ [data-ui-radio-group][data-part-root][data-variant='tile']
601
+ [data-part-item]:has(> [data-part-media])
602
+ > [data-part-description] {
603
+ grid-row: 3;
604
+ }
605
+
556
606
  /* ── The tile's states ────────────────────────────────────────────────
557
607
  *
558
608
  * Read on the item rather than on the control, because the stretched
@@ -73,6 +73,7 @@
73
73
  "--slotted-radio-group-tile-invalid-border-color",
74
74
  "--slotted-radio-group-tile-invalid-checked-background",
75
75
  "--slotted-radio-group-tile-invalid-checked-border-color",
76
+ "--slotted-radio-group-tile-media-gap",
76
77
  "--slotted-radio-group-tile-radius",
77
78
  "--slotted-radio-group-tile-readonly-background",
78
79
  "--slotted-radio-group-tile-readonly-border-color",
@@ -84,6 +85,7 @@
84
85
  "--slotted-selection-size-sm",
85
86
  "--slotted-space-2",
86
87
  "--slotted-space-3",
88
+ "--slotted-space-4",
87
89
  "--slotted-surface",
88
90
  "--slotted-target-min",
89
91
  "--slotted-text",
@@ -464,7 +464,7 @@
464
464
  [data-ui-rating][data-part-root] > :is([data-part-value], [data-part-count]),
465
465
  [data-ui-rating] [data-part-level-count],
466
466
  [data-ui-rating] [data-part-level-label] > span:not([data-ui]) {
467
- text-box: trim-both cap alphabetic;
467
+ text-box: trim-both var(--slotted-text-box-edge, cap alphabetic);
468
468
  }
469
469
  }
470
470
 
@@ -66,6 +66,7 @@
66
66
  "--slotted-target-comfortable",
67
67
  "--slotted-target-min",
68
68
  "--slotted-text",
69
+ "--slotted-text-box-edge",
69
70
  "--slotted-text-inverse",
70
71
  "--slotted-text-muted",
71
72
  "--slotted-tone-accent-solid",
@@ -326,6 +326,25 @@ export const RUNTIME_PROPERTY_PREFIXES = [
326
326
  '--slotted-media-viewer-media-inline-size',
327
327
  '--slotted-media-viewer-media-block-size',
328
328
  '--slotted-media-viewer-rotation',
329
+ /**
330
+ * `table` — how deep a folded row sits under the rows above it, for the
331
+ * reason `tree-depth` is: a fact about the consumer's data, stated per row.
332
+ * The step is `--slotted-table-tree-indent`, which is a token.
333
+ */
334
+ '--slotted-table-depth',
335
+ /**
336
+ * `meter` — the share of the track the indicator covers, from the value the
337
+ * consumer states. No theme can know it.
338
+ */
339
+ '--slotted-meter-ratio',
340
+ /**
341
+ * `sparkline` — where a mark of a position strip or a comparison stands on
342
+ * its axis, as a share from the consumer's data. The family owns theme
343
+ * tokens under the same prefix, so each is named one by one.
344
+ */
345
+ '--slotted-sparkline-at',
346
+ '--slotted-sparkline-from',
347
+ '--slotted-sparkline-to',
329
348
  ];
330
349
 
331
350
  /** Whether a custom property is written by script rather than by a theme. */