@slotted/react 0.1.0-beta.0 → 0.1.0-beta.2

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 (91) hide show
  1. package/README.md +4 -0
  2. package/dist/{action-sheet-D8Glxl7l.js → action-sheet-DgwzC3iY.js} +1 -1
  3. package/dist/action-sheet.js +1 -1
  4. package/dist/{chart-BNzfIfQe.js → chart-Gb_P3Kdq.js} +344 -333
  5. package/dist/chart.js +1 -1
  6. package/dist/{column-manager-CNZ7Xk5_.js → column-manager-B7_a_jDK.js} +1 -1
  7. package/dist/column-manager.js +1 -1
  8. package/dist/{combobox-C46GRqAA.js → combobox-C66dNlMR.js} +176 -172
  9. package/dist/combobox.js +1 -1
  10. package/dist/dashboard-grid-CKdyO4j6.js +1043 -0
  11. package/dist/dashboard-grid.js +1 -1
  12. package/dist/{data-grid-BUgOJuGp.js → data-grid-rWMDNl-6.js} +2 -2
  13. package/dist/data-grid.js +1 -1
  14. package/dist/docs/AGENTS.snippet.md +10 -0
  15. package/dist/docs/event-calendar.json +7 -0
  16. package/dist/docs/event-calendar.md +1 -0
  17. package/dist/docs/guidelines/README.md +27 -0
  18. package/dist/docs/guidelines/async-feedback.md +108 -0
  19. package/dist/docs/guidelines/browsing.md +74 -0
  20. package/dist/docs/guidelines/builders.md +97 -0
  21. package/dist/docs/guidelines/composition.md +129 -0
  22. package/dist/docs/guidelines/conversations.md +59 -0
  23. package/dist/docs/guidelines/errors-and-conflicts.md +71 -0
  24. package/dist/docs/guidelines/forms.md +192 -0
  25. package/dist/docs/guidelines/index.md +121 -0
  26. package/dist/docs/guidelines/layout-alignment.md +95 -0
  27. package/dist/docs/guidelines/ledgers.md +45 -0
  28. package/dist/docs/guidelines/list-pages.md +165 -0
  29. package/dist/docs/guidelines/overviews.md +66 -0
  30. package/dist/docs/guidelines/own-elements.md +115 -0
  31. package/dist/docs/guidelines/reading-permissions.md +55 -0
  32. package/dist/docs/guidelines/record-pages.md +178 -0
  33. package/dist/docs/guidelines/reports.md +123 -0
  34. package/dist/docs/guidelines/shell-composition.md +94 -0
  35. package/dist/docs/guidelines/workspaces.md +46 -0
  36. package/dist/docs/index.md +12 -0
  37. package/dist/docs/progress-indicator.json +1 -2
  38. package/dist/docs/progress-indicator.md +2 -2
  39. package/dist/docs/skills/build-own-element/SKILL.md +90 -0
  40. package/dist/docs/skills/compose-screen/SKILL.md +76 -0
  41. package/dist/docs/skills/index.md +9 -0
  42. package/dist/docs/skills/review-screen/SKILL.md +70 -0
  43. package/dist/docs/skills/theme-app/SKILL.md +74 -0
  44. package/dist/docs/skills/waiting-states/SKILL.md +139 -0
  45. package/dist/docs/stat-card.json +1 -0
  46. package/dist/docs/stat-card.md +1 -1
  47. package/dist/docs/tabs.json +1 -4
  48. package/dist/docs/tabs.md +1 -1
  49. package/dist/docs/tokens.md +424 -0
  50. package/dist/{drawer-Ci3wuCVa.js → drawer-Dtospdqk.js} +1 -1
  51. package/dist/drawer.js +1 -1
  52. package/dist/{entity-picker-UGhbVwkC.js → entity-picker-Dm-y0RNE.js} +1 -1
  53. package/dist/entity-picker.js +1 -1
  54. package/dist/{event-calendar-BFdeGfC-.js → event-calendar-DYjVwTI6.js} +387 -386
  55. package/dist/event-calendar.js +1 -1
  56. package/dist/{filter-bar-b2Q9BZHf.js → filter-bar-Bh7cbqDE.js} +3 -3
  57. package/dist/filter-bar.js +1 -1
  58. package/dist/{import-export-center-D8xbCLWs.js → import-export-center-CkZ_Ar9w.js} +1 -1
  59. package/dist/import-export-center.js +1 -1
  60. package/dist/index.js +14 -14
  61. package/dist/{multi-select-CfzsvAeI.js → multi-select-B-tuIwAu.js} +226 -231
  62. package/dist/multi-select.js +1 -1
  63. package/dist/{select-UTwKjheK.js → select-hRFp8nCj.js} +128 -141
  64. package/dist/select.js +1 -1
  65. package/dist/styles.css +1 -1
  66. package/dist/{table-CzBIw9ng.js → table-Bd79IwDC.js} +1 -1
  67. package/dist/table.js +1 -1
  68. package/dist/types/chart/chart.d.ts.map +1 -1
  69. package/dist/types/combobox/combobox-collection.d.ts +1 -0
  70. package/dist/types/combobox/combobox-collection.d.ts.map +1 -1
  71. package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
  72. package/dist/types/combobox/combobox.d.ts.map +1 -1
  73. package/dist/types/dashboard-grid/dashboard-grid.d.ts.map +1 -1
  74. package/dist/types/dashboard-grid/dashboard-widget.d.ts +1 -1
  75. package/dist/types/dashboard-grid/dashboard-widget.d.ts.map +1 -1
  76. package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
  77. package/dist/types/event-calendar/event-calendar.d.ts +1 -1
  78. package/dist/types/event-calendar/event-calendar.d.ts.map +1 -1
  79. package/dist/types/event-calendar/event-calendar.types.d.ts +6 -0
  80. package/dist/types/event-calendar/event-calendar.types.d.ts.map +1 -1
  81. package/dist/types/menu/menu.types.d.ts +3 -1
  82. package/dist/types/menu/menu.types.d.ts.map +1 -1
  83. package/dist/types/multi-select/multi-select-collection.d.ts +0 -2
  84. package/dist/types/multi-select/multi-select-collection.d.ts.map +1 -1
  85. package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
  86. package/dist/types/multi-select/multi-select.d.ts.map +1 -1
  87. package/dist/types/select/select-collection.d.ts +0 -2
  88. package/dist/types/select/select-collection.d.ts.map +1 -1
  89. package/dist/types/select/select.d.ts.map +1 -1
  90. package/package.json +6 -6
  91. package/dist/dashboard-grid-nfhEewA4.js +0 -1005
@@ -0,0 +1,424 @@
1
+ # Tokens
2
+
3
+ The theme states every value the families draw with. An element of the application's own reads the groups on this page, never a literal, and never a token of a group under "Read by their family only" (CP-05, OE-01).
4
+
5
+ A primitive is a step on a scale; a semantic token says what a value is for. Values are the default theme's. A colour has no value here: it changes with the scheme — light, dark, high-contrast — and is chosen by its role. A value that follows density is given for comfortable, compact and dense.
6
+
7
+ ## space
8
+
9
+ How much separation or inset a layout needs, smallest first; a gap or an inset is one step.
10
+
11
+ Names: --slotted-space-{step}
12
+
13
+ | Token | Meaning | Default value |
14
+ | --- | --- | --- |
15
+ | `--slotted-space-1` | — | 0.125rem |
16
+ | `--slotted-space-2` | — | 0.25rem |
17
+ | `--slotted-space-3` | — | 0.375rem |
18
+ | `--slotted-space-4` | — | 0.5rem |
19
+ | `--slotted-space-5` | — | 0.75rem |
20
+ | `--slotted-space-6` | — | 1rem |
21
+ | `--slotted-space-7` | — | 1.25rem |
22
+ | `--slotted-space-8` | — | 1.5rem |
23
+ | `--slotted-space-9` | — | 2rem |
24
+ | `--slotted-space-10` | — | 2.5rem |
25
+ | `--slotted-space-11` | — | 3rem |
26
+ | `--slotted-space-12` | — | 4rem |
27
+
28
+ ## radius
29
+
30
+ How rounded a box or a part is drawn, from none to full.
31
+
32
+ Names: --slotted-radius-{step}
33
+
34
+ | Token | Meaning | Default value |
35
+ | --- | --- | --- |
36
+ | `--slotted-radius-none` | — | 0px |
37
+ | `--slotted-radius-xs` | — | 2px |
38
+ | `--slotted-radius-sm` | — | 4px |
39
+ | `--slotted-radius-md` | — | 6px |
40
+ | `--slotted-radius-lg` | — | 8px |
41
+ | `--slotted-radius-full` | — | 9999px |
42
+
43
+ ## font-family
44
+
45
+ The typeface text is set in.
46
+
47
+ Names: --slotted-font-family-{family}
48
+
49
+ | family | Meaning |
50
+ | --- | --- |
51
+ | sans | The typeface of the interface's text. |
52
+ | mono | The typeface of code and of values read character by character. |
53
+ | heading | The typeface of headings; a theme may point it at a face of its own. |
54
+
55
+ | Token | Meaning | Default value |
56
+ | --- | --- | --- |
57
+ | `--slotted-font-family-sans` | The typeface of the interface's text. | 'Geist Variable', ui-sans-serif, system-ui, sans-serif |
58
+ | `--slotted-font-family-mono` | The typeface of code and of values read character by character. | 'Geist Mono Variable', ui-monospace, SFMono-Regular, Menlo, monospace |
59
+ | `--slotted-font-family-heading` | The typeface of headings; a theme may point it at a face of its own. | 'Geist Variable', ui-sans-serif, system-ui, sans-serif |
60
+
61
+ ## font-size
62
+
63
+ What size text is set in, smallest first; text of the application's own takes its size from the `typography` family before this scale.
64
+
65
+ Names: --slotted-font-size-{step}
66
+
67
+ | Token | Meaning | Default value |
68
+ | --- | --- | --- |
69
+ | `--slotted-font-size-xs` | — | 0.75rem |
70
+ | `--slotted-font-size-sm` | — | 0.8125rem |
71
+ | `--slotted-font-size-md` | — | 0.875rem |
72
+ | `--slotted-font-size-lg` | — | 1rem |
73
+ | `--slotted-font-size-xl` | — | 1.125rem |
74
+ | `--slotted-font-size-2xl` | — | 1.25rem |
75
+ | `--slotted-font-size-3xl` | — | 1.5rem |
76
+ | `--slotted-font-size-4xl` | — | 2rem |
77
+
78
+ ## line-height
79
+
80
+ The line height that pairs with the font-size step of the same name.
81
+
82
+ Names: --slotted-line-height-{step}
83
+
84
+ | Token | Meaning | Default value |
85
+ | --- | --- | --- |
86
+ | `--slotted-line-height-xs` | — | 1.4 |
87
+ | `--slotted-line-height-sm` | — | 1.45 |
88
+ | `--slotted-line-height-md` | — | 1.5 |
89
+ | `--slotted-line-height-lg` | — | 1.5 |
90
+ | `--slotted-line-height-xl` | — | 1.45 |
91
+ | `--slotted-line-height-2xl` | — | 1.4 |
92
+ | `--slotted-line-height-3xl` | — | 1.3 |
93
+ | `--slotted-line-height-4xl` | — | 1.2 |
94
+
95
+ ## font-weight
96
+
97
+ How much typographic emphasis text carries.
98
+
99
+ Names: --slotted-font-weight-{weight}
100
+
101
+ | weight | Meaning |
102
+ | --- | --- |
103
+ | regular | Running text. |
104
+ | medium | Text that stands out from running text without heading it. |
105
+ | semibold | A heading, a control's label, a figure that leads. |
106
+
107
+ | Token | Meaning | Default value |
108
+ | --- | --- | --- |
109
+ | `--slotted-font-weight-regular` | Running text. | 400 |
110
+ | `--slotted-font-weight-medium` | Text that stands out from running text without heading it. | 500 |
111
+ | `--slotted-font-weight-semibold` | A heading, a control's label, a figure that leads. | 600 |
112
+
113
+ ## border-width
114
+
115
+ How thick an edge or a ring is drawn.
116
+
117
+ Names: --slotted-border-width-{width}
118
+
119
+ | width | Meaning |
120
+ | --- | --- |
121
+ | thin | The edge of a box, a control or a divider. |
122
+ | medium | The weight between thin and thick. |
123
+ | thick | The heaviest edge. |
124
+
125
+ | Token | Meaning | Default value |
126
+ | --- | --- | --- |
127
+ | `--slotted-border-width-thin` | The edge of a box, a control or a divider. | 1px |
128
+ | `--slotted-border-width-thick` | The heaviest edge. | 2px |
129
+ | `--slotted-border-width-medium` | The weight between thin and thick. | 1.5px |
130
+
131
+ ## duration
132
+
133
+ How long a transition or one cycle of a loop takes. The steps from instant to long collapse under reduced motion; the loops do not, so a repeating animation stops there instead.
134
+
135
+ Names: --slotted-duration-{step}
136
+
137
+ | step | Meaning |
138
+ | --- | --- |
139
+ | instant | A change that must not read as motion. |
140
+ | short | A control changing state: a ground, a border, a mark. |
141
+ | medium | A part appearing or leaving: a popover, a menu, a tooltip. |
142
+ | long | A surface entering or leaving over a larger distance: a drawer, a dialog. |
143
+ | loop-fast | One cycle of a fast repeating animation. |
144
+ | loop | One cycle of a repeating animation. |
145
+ | loop-slow | One cycle of a slow repeating animation. |
146
+
147
+ | Token | Meaning | Default value |
148
+ | --- | --- | --- |
149
+ | `--slotted-duration-loop-fast` | One cycle of a fast repeating animation. | 700ms |
150
+ | `--slotted-duration-loop` | One cycle of a repeating animation. | 1.1s |
151
+ | `--slotted-duration-loop-slow` | One cycle of a slow repeating animation. | 1.6s |
152
+ | `--slotted-duration-instant` | A change that must not read as motion. | 1ms |
153
+ | `--slotted-duration-short` | A control changing state: a ground, a border, a mark. | 120ms; 1ms under reduced motion |
154
+ | `--slotted-duration-medium` | A part appearing or leaving: a popover, a menu, a tooltip. | 200ms; 1ms under reduced motion |
155
+ | `--slotted-duration-long` | A surface entering or leaving over a larger distance: a drawer, a dialog. | 320ms; 1ms under reduced motion |
156
+
157
+ ## easing
158
+
159
+ How the velocity of a transition changes.
160
+
161
+ Names: --slotted-easing-{curve}
162
+
163
+ | curve | Meaning |
164
+ | --- | --- |
165
+ | standard | A change within the screen. |
166
+ | enter | A part arriving. |
167
+ | exit | A part leaving. |
168
+ | emphasized | A change meant to be noticed; it overshoots its end. |
169
+
170
+ | Token | Meaning | Default value |
171
+ | --- | --- | --- |
172
+ | `--slotted-easing-standard` | A change within the screen. | cubic-bezier(0.2, 0, 0, 1) |
173
+ | `--slotted-easing-enter` | A part arriving. | cubic-bezier(0.05, 0.7, 0.1, 1) |
174
+ | `--slotted-easing-exit` | A part leaving. | cubic-bezier(0.3, 0, 0.8, 0.15) |
175
+ | `--slotted-easing-emphasized` | A change meant to be noticed; it overshoots its end. | cubic-bezier(0.3, 0, 0, 1.3) |
176
+
177
+ ## z-index
178
+
179
+ Which layer an element occupies above the page.
180
+
181
+ Names: --slotted-z-index-{layer}
182
+
183
+ | layer | Meaning |
184
+ | --- | --- |
185
+ | sticky | A header or a column that stays in place while its region scrolls. |
186
+ | overlay | A modal surface and the scrim under it. |
187
+ | popover | A popover, a menu or a tooltip; above an overlay, so one opens from a dialog. |
188
+ | toast | A toast; above every other layer. |
189
+
190
+ | Token | Meaning | Default value |
191
+ | --- | --- | --- |
192
+ | `--slotted-z-index-sticky` | A header or a column that stays in place while its region scrolls. | 100 |
193
+ | `--slotted-z-index-overlay` | A modal surface and the scrim under it. | 1000 |
194
+ | `--slotted-z-index-popover` | A popover, a menu or a tooltip; above an overlay, so one opens from a dialog. | 1100 |
195
+ | `--slotted-z-index-toast` | A toast; above every other layer. | 1200 |
196
+
197
+ ## shadow
198
+
199
+ What elevation a surface has above the one under it, smallest first; under forced colours every step is none.
200
+
201
+ Names: --slotted-shadow-{step}
202
+
203
+ | Token | Meaning | Default value |
204
+ | --- | --- | --- |
205
+ | `--slotted-shadow-xs` | — | by scheme |
206
+ | `--slotted-shadow-sm` | — | by scheme |
207
+ | `--slotted-shadow-md` | — | by scheme |
208
+ | `--slotted-shadow-lg` | — | by scheme |
209
+
210
+ ## surface
211
+
212
+ The grounds content stands on.
213
+
214
+ | Token | Meaning | Default value |
215
+ | --- | --- | --- |
216
+ | `--slotted-surface` | The ground of the page's content and of a card. | by scheme |
217
+ | `--slotted-surface-raised` | The ground of a surface above another: a popover, a menu, a dialog; paired with a step of `shadow`. | by scheme |
218
+ | `--slotted-surface-sunken` | The canvas under the content: the ground a card and a field stand out from. | by scheme |
219
+ | `--slotted-surface-inverse` | A ground in the opposite lightness, with `--slotted-text-inverse` on it. | by scheme |
220
+
221
+ ## text
222
+
223
+ The colours text is painted in.
224
+
225
+ | Token | Meaning | Default value |
226
+ | --- | --- | --- |
227
+ | `--slotted-text` | Text on a surface. | by scheme |
228
+ | `--slotted-text-muted` | Text that ranks below the text beside it: a caption, a hint, a secondary value. | by scheme |
229
+ | `--slotted-text-inverse` | Text on `--slotted-surface-inverse`. | by scheme |
230
+
231
+ ## border
232
+
233
+ The colours of lines between and inside surfaces.
234
+
235
+ | Token | Meaning | Default value |
236
+ | --- | --- | --- |
237
+ | `--slotted-border-subtle` | A rule inside a surface: a divider, the edge of a region, the seam under a header. | by scheme |
238
+ | `--slotted-border-strong` | The line between two surfaces; it holds 3:1 against every surface a control stands on. | by scheme |
239
+
240
+ ## disabled
241
+
242
+ How an unavailable control is painted.
243
+
244
+ Names: --slotted-disabled-{role}
245
+
246
+ | role | Meaning |
247
+ | --- | --- |
248
+ | background | The ground of an unavailable control. |
249
+ | foreground | The text and icons of an unavailable control. |
250
+ | border | The edge of an unavailable control, a step lighter than the edge of an available one. |
251
+
252
+ ## focus-ring
253
+
254
+ The outline every focused element draws.
255
+
256
+ | Token | Meaning | Default value |
257
+ | --- | --- | --- |
258
+ | `--slotted-focus-ring-width` | The thickness of the focus outline. | 2px |
259
+ | `--slotted-focus-ring-offset` | The distance between the element and its focus outline. | 2px |
260
+ | `--slotted-focus-ring-color` | The colour of the focus outline. | by scheme |
261
+ | `--slotted-focus-ring-color-invalid` | The colour of the focus outline of a control in error; an element in error points `--slotted-focus-ring-color` at it. | by scheme |
262
+
263
+ ## target
264
+
265
+ How small an interactive target may be.
266
+
267
+ | Token | Meaning | Default value |
268
+ | --- | --- | --- |
269
+ | `--slotted-target-min` | The smallest target in both axes: 24 by 24 CSS pixels. | 24px |
270
+ | `--slotted-target-comfortable` | The size a target grows to under a coarse pointer. | 44px |
271
+
272
+ ## tone
273
+
274
+ What an element carrying an intent is painted with: five tones, each with the same nine roles.
275
+
276
+ Names: --slotted-tone-{tone}-{role}
277
+
278
+ | tone | Meaning |
279
+ | --- | --- |
280
+ | accent | The product's intent: the primary action, the chosen option, the current place. |
281
+ | secondary | A second intent beside accent, for an action or a mark that must not compete with it. |
282
+ | success | A result that completed or a state that is healthy. |
283
+ | warning | A state that needs attention before it becomes a failure. |
284
+ | danger | A failure, an error or an action that destroys data. |
285
+
286
+ | role | Meaning |
287
+ | --- | --- |
288
+ | solid | A filled ground: the primary button of the tone. |
289
+ | solid-hover | The filled ground under the pointer. |
290
+ | solid-active | The filled ground while pressed. |
291
+ | on-solid | Text and icons on the filled ground. |
292
+ | surface | A tinted ground; a state that must be seen pairs it with the tone's border. |
293
+ | subtle-hover | The tint under the pointer of an element with no filled ground. |
294
+ | subtle-active | That tint while pressed. |
295
+ | border | An edge in the tone, at the non-text contrast ratio against the page and against its own surface. |
296
+ | text | Text in the tone on a surface. |
297
+
298
+ ## data
299
+
300
+ What a series of data is painted with: a line, a bar, a slice. Slots are assigned in order and never skipped.
301
+
302
+ Names: --slotted-data-{slot}
303
+
304
+ | Token | Meaning | Default value |
305
+ | --- | --- | --- |
306
+ | `--slotted-data-1` | — | by scheme |
307
+ | `--slotted-data-2` | — | by scheme |
308
+ | `--slotted-data-3` | — | by scheme |
309
+ | `--slotted-data-4` | — | by scheme |
310
+ | `--slotted-data-5` | — | by scheme |
311
+ | `--slotted-data-6` | — | by scheme |
312
+ | `--slotted-data-7` | — | by scheme |
313
+ | `--slotted-data-8` | — | by scheme |
314
+
315
+ ## control
316
+
317
+ What a control's text and frame look like at every size.
318
+
319
+ | Token | Meaning | Default value |
320
+ | --- | --- | --- |
321
+ | `--slotted-control-font-family` | The typeface of a control's text. | 'Geist Variable', ui-sans-serif, system-ui, sans-serif |
322
+ | `--slotted-control-font-weight` | The weight of a control's label. | 600 |
323
+ | `--slotted-control-line-height` | The line height of a control's text. | 1 |
324
+ | `--slotted-control-letter-spacing` | The letter spacing of a control's text. | 0 |
325
+ | `--slotted-control-border-width` | The edge width of a control at rest. | 1px |
326
+ | `--slotted-control-radius` | The corner of a control. | 4px |
327
+ | `--slotted-control-shadow-focus-geometry` | Offset, blur and spread of the shadow a focused control draws, with no colour; drawn with `--slotted-focus-ring-color`. | 0 1px 4px -1px |
328
+ | `--slotted-control-transition-duration` | How long a control takes to change state. | 120ms; 1ms under reduced motion |
329
+ | `--slotted-control-transition-easing` | The curve of a control's change of state. | cubic-bezier(0.2, 0, 0, 1) |
330
+ | `--slotted-control-invalid-edge-width` | The edge an invalid control adds inside its border, so the state reads where colour cannot. | 1px |
331
+ | `--slotted-control-border-color` | The edge colour of a control at rest. | by scheme |
332
+ | `--slotted-control-surface` | The ground of a control at rest: a field, a select, a segmented control. | by scheme |
333
+ | `--slotted-control-shadow` | The shadow of a control at rest. | by scheme |
334
+
335
+ ## control-size
336
+
337
+ The size and inner spacing of a control at each size step; every value follows density.
338
+
339
+ Names: --slotted-control-{part}-{size}
340
+
341
+ | part | Meaning |
342
+ | --- | --- |
343
+ | height | The block size of the control. |
344
+ | padding-inline | The inline space between the control's edge and its content. |
345
+ | font-size | The size of the control's text. |
346
+ | icon-size | The size of an icon inside the control. |
347
+ | gap | The space between items inside the control, and between one choice and the next in a group. |
348
+ | label-gap | The space between a binary control — a box, a circle, a switch — and its own label. |
349
+ | inner-size | The block size of what stands inside the control: a key, a chip, a clear mark. |
350
+
351
+ | size | Meaning |
352
+ | --- | --- |
353
+ | sm | The small step. |
354
+ | md | The medium step. |
355
+ | lg | The large step. |
356
+
357
+ | Token | Meaning | Default value |
358
+ | --- | --- | --- |
359
+ | `--slotted-control-height-sm` | The block size of the control. The small step. | comfortable 30px, compact 26px, dense 24px |
360
+ | `--slotted-control-height-md` | The block size of the control. The medium step. | comfortable 34px, compact 28px, dense 26px |
361
+ | `--slotted-control-height-lg` | The block size of the control. The large step. | comfortable 38px, compact 32px, dense 30px |
362
+ | `--slotted-control-padding-inline-sm` | The inline space between the control's edge and its content. The small step. | comfortable 10px, compact 8px, dense 6px |
363
+ | `--slotted-control-padding-inline-md` | The inline space between the control's edge and its content. The medium step. | comfortable 13px, compact 10px, dense 8px |
364
+ | `--slotted-control-padding-inline-lg` | The inline space between the control's edge and its content. The large step. | comfortable 16px, compact 12px, dense 10px |
365
+ | `--slotted-control-font-size-sm` | The size of the control's text. The small step. | comfortable 12px, compact 12px, dense 12px |
366
+ | `--slotted-control-font-size-md` | The size of the control's text. The medium step. | comfortable 13px, compact 12px, dense 12px |
367
+ | `--slotted-control-font-size-lg` | The size of the control's text. The large step. | comfortable 14px, compact 13px, dense 12px |
368
+ | `--slotted-control-icon-size-sm` | The size of an icon inside the control. The small step. | comfortable 14px, compact 13px, dense 12px |
369
+ | `--slotted-control-icon-size-md` | The size of an icon inside the control. The medium step. | comfortable 16px, compact 14px, dense 13px |
370
+ | `--slotted-control-icon-size-lg` | The size of an icon inside the control. The large step. | comfortable 18px, compact 16px, dense 14px |
371
+ | `--slotted-control-gap-sm` | The space between items inside the control, and between one choice and the next in a group. The small step. | comfortable 6px, compact 4px, dense 4px |
372
+ | `--slotted-control-gap-md` | The space between items inside the control, and between one choice and the next in a group. The medium step. | comfortable 8px, compact 6px, dense 4px |
373
+ | `--slotted-control-gap-lg` | The space between items inside the control, and between one choice and the next in a group. The large step. | comfortable 8px, compact 6px, dense 6px |
374
+ | `--slotted-control-label-gap-sm` | The space between a binary control — a box, a circle, a switch — and its own label. The small step. | comfortable 8px, compact 6px, dense 6px |
375
+ | `--slotted-control-label-gap-md` | The space between a binary control — a box, a circle, a switch — and its own label. The medium step. | comfortable 12px, compact 8px, dense 6px |
376
+ | `--slotted-control-label-gap-lg` | The space between a binary control — a box, a circle, a switch — and its own label. The large step. | comfortable 12px, compact 8px, dense 8px |
377
+ | `--slotted-control-inner-size-sm` | The block size of what stands inside the control: a key, a chip, a clear mark. The small step. | comfortable 22px, compact 18px, dense 16px |
378
+ | `--slotted-control-inner-size-md` | The block size of what stands inside the control: a key, a chip, a clear mark. The medium step. | comfortable 24px, compact 20px, dense 18px |
379
+ | `--slotted-control-inner-size-lg` | The block size of what stands inside the control: a key, a chip, a clear mark. The large step. | comfortable 28px, compact 24px, dense 22px |
380
+
381
+ ## selection
382
+
383
+ The size of a selection control and of the halo behind it.
384
+
385
+ | Token | Meaning | Default value |
386
+ | --- | --- | --- |
387
+ | `--slotted-selection-size-sm` | The box of a checkbox and the circle of a radio at the small step. | 14px |
388
+ | `--slotted-selection-size-md` | The box and the circle at the medium step. | 16px |
389
+ | `--slotted-selection-size-lg` | The box and the circle at the large step. | 18px |
390
+ | `--slotted-selection-halo-opacity` | The share of `--slotted-tone-accent-text` in the halo behind a selection control under the pointer. | 0.12 |
391
+
392
+ ## highlight
393
+
394
+ How strong the band behind a matched span is.
395
+
396
+ | Token | Meaning | Default value |
397
+ | --- | --- | --- |
398
+ | `--slotted-highlight-tint-opacity` | The share of `--slotted-tone-accent-text` in the band behind a matched span. | 0.075 |
399
+
400
+ ## current
401
+
402
+ How the place the reader is on is marked.
403
+
404
+ | Token | Meaning | Default value |
405
+ | --- | --- | --- |
406
+ | `--slotted-current-edge` | The edge of the row the reader is on, drawn over its tone ground. | by scheme |
407
+
408
+ ## scrim
409
+
410
+ The veil under a modal surface.
411
+
412
+ | Token | Meaning | Default value |
413
+ | --- | --- | --- |
414
+ | `--slotted-scrim` | The veil between the page and a modal surface above it. | by scheme |
415
+
416
+ ## Read by their family only
417
+
418
+ A family adjusts these for itself. An element of the application's own does not read them.
419
+
420
+ - icon: The geometry of an icon a family draws itself; an icon of the application's own is drawn with the icon family. Names: --slotted-icon-{glyph}
421
+ - upload-kind: The tile colours of file kinds in upload and attachment. Names: --slotted-upload-kind-{kind}
422
+ - code: The colours of syntax scopes in code-block. Names: --slotted-code-{scope}
423
+ - rating: The edge of a star in rating. Names: --slotted-rating-edge
424
+ - avatar-size: The sizes of avatar, smallest first. Names: --slotted-avatar-size-{size}
@@ -339,7 +339,7 @@ function ge({ children: e, className: t, ref: n, render: r, style: a, ...o }) {
339
339
  B(() => {
340
340
  te.current = T;
341
341
  });
342
- let O = !x || u !== null, ne = c.titleId !== "" && o["aria-label"] === void 0, { registerLayer: k } = c, re = s((e) => {
342
+ let O = !x || u !== null, ne = c.titleId !== "" && o["aria-label"] === void 0 && (x || o.role !== void 0), { registerLayer: k } = c, re = s((e) => {
343
343
  f(e), k(e);
344
344
  }, [k]), A = m(c);
345
345
  A.current = c, l(() => {
package/dist/drawer.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./drawer-Ci3wuCVa.js";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./drawer-Dtospdqk.js";
2
2
  export { f as Drawer, d as DrawerBody, o as DrawerClose, r as DrawerDefaultsProvider, l as DrawerDescription, i as DrawerFooter, e as DrawerHeader, s as DrawerPanel, u as DrawerResizer, t as DrawerTitle, a as DrawerTrigger, n as useDrawer, c as useDrawerDefaults };
@@ -7,7 +7,7 @@ import { t as a } from "./avatar-BnlE5jjr.js";
7
7
  import { b as o } from "./field-BJh5HI7w.js";
8
8
  /* empty css */
9
9
  import { t as s } from "./highlight-0Qw23QPp.js";
10
- import { c, i as l, n as ee, o as te, s as u } from "./select-UTwKjheK.js";
10
+ import { c, i as l, n as ee, o as te, s as u } from "./select-hRFp8nCj.js";
11
11
  import { createArrowNavigation as ne, createRemovalFocus as re } from "@slotted/core/focus";
12
12
  import { createControllable as d } from "@slotted/core/state";
13
13
  import { createContext as f, useCallback as p, useContext as m, useEffect as h, useId as ie, useImperativeHandle as g, useLayoutEffect as ae, useMemo as _, useRef as v, useState as y } from "react";
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./entity-picker-UGhbVwkC.js";
1
+ import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./entity-picker-Dm-y0RNE.js";
2
2
  export { s as CREATE_OPTION, i as ENTITY_PICKER_FALLBACK, e as EntityPicker, o as EntityPickerDefaultsProvider, r as RETRY_OPTION, a as localEntitySource, n as rememberRecent, t as useEntityPickerDefaults };