@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.30
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.
- package/package.json +13 -1
- package/src/accordion/accordion.css +11 -11
- package/src/action-bar/action-bar.css +47 -44
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +39 -39
- package/src/alert/alert.css +96 -96
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +455 -328
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +96 -66
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +54 -46
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +137 -89
- package/src/button/button.tokens.json +5 -0
- package/src/button-group/button-group.css +80 -79
- package/src/button-group/button-group.tokens.json +1 -0
- package/src/calendar/calendar.css +139 -109
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +68 -65
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +158 -157
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +288 -267
- package/src/chart/chart.tokens.json +4 -0
- package/src/checkbox/checkbox.css +143 -148
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +76 -80
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +203 -130
- package/src/combobox/combobox.tokens.json +3 -0
- package/src/command-palette/command-palette.css +155 -102
- package/src/command-palette/command-palette.tokens.json +2 -0
- package/src/container/container.css +27 -27
- package/src/context-menu/context-menu.css +9 -9
- package/src/currency-field/currency-field.css +119 -119
- package/src/currency-field/currency-field.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +185 -115
- package/src/data-grid/data-grid.css +598 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +82 -71
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +62 -57
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +117 -58
- package/src/date-picker/date-picker.tokens.json +5 -0
- package/src/date-range-picker/date-range-picker.css +157 -127
- package/src/date-range-picker/date-range-picker.tokens.json +4 -0
- package/src/datetime-field/datetime-field.css +90 -90
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +123 -70
- package/src/datetime-picker/datetime-picker.tokens.json +4 -1
- package/src/datetime-range-picker/datetime-range-picker.css +191 -163
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
- package/src/description-list/description-list.css +105 -75
- package/src/description-list/description-list.tokens.json +1 -0
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +434 -198
- package/src/dialog/dialog.tokens.json +7 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +597 -236
- package/src/drawer/drawer.tokens.json +13 -0
- package/src/entity-picker/entity-picker.css +323 -270
- package/src/entity-picker/entity-picker.tokens.json +3 -0
- package/src/event-calendar/event-calendar.css +357 -399
- package/src/field/field.css +106 -93
- package/src/field/field.tokens.json +2 -0
- package/src/field-group/field-group.css +43 -33
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +200 -216
- package/src/form/form.css +99 -25
- package/src/form/form.tokens.json +5 -0
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +29 -29
- package/src/highlight/highlight.css +11 -11
- package/src/hover-card/hover-card.css +9 -9
- package/src/icon/icon.css +67 -20
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +42 -42
- package/src/import-export-center/import-export-center.css +144 -165
- package/src/inline/inline.css +28 -28
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +62 -50
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +23 -23
- package/src/list-item/list-item.css +89 -75
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +71 -70
- package/src/listbox/listbox.tokens.json +0 -1
- package/src/loading-overlay/loading-overlay.css +86 -103
- package/src/markdown/markdown.css +20 -20
- package/src/media-viewer/media-viewer.css +790 -0
- package/src/media-viewer/media-viewer.tokens.json +53 -0
- package/src/menu/menu.css +162 -82
- package/src/menu/menu.tokens.json +2 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1250 -1253
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/multi-select/multi-select.css +230 -172
- package/src/multi-select/multi-select.tokens.json +2 -0
- package/src/navigation-menu/navigation-menu.css +169 -190
- package/src/notification-center/notification-center.css +153 -161
- package/src/notification-center/notification-center.tokens.json +3 -0
- package/src/number-field/number-field.css +93 -93
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +74 -64
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +41 -27
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +341 -286
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +75 -79
- package/src/popover/popover.css +81 -64
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +192 -136
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +260 -113
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +77 -82
- package/src/radio-group/radio-group.css +107 -112
- package/src/rating/rating.css +146 -142
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +94 -101
- package/src/runtime-properties.mjs +19 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +44 -37
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +210 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +210 -147
- package/src/select/select.tokens.json +3 -0
- package/src/side-navigation/side-navigation.css +193 -196
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +57 -58
- package/src/slider/slider.css +101 -103
- package/src/sparkline/sparkline.css +75 -53
- package/src/sparkline/sparkline.tokens.json +2 -0
- package/src/spinner/spinner.css +83 -180
- package/src/spinner/spinner.tokens.json +0 -1
- package/src/split-button/split-button.css +34 -35
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +47 -48
- package/src/stack/stack.css +25 -25
- package/src/stat-card/stat-card.css +415 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +124 -100
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +100 -106
- package/src/table/table.css +270 -198
- package/src/table/table.tokens.json +2 -0
- package/src/table-of-contents/table-of-contents.css +60 -59
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +327 -294
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +109 -88
- package/src/tag/tag.tokens.json +10 -0
- package/src/tags-input/tags-input.css +152 -87
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +146 -148
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +38 -33
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +82 -77
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +116 -64
- package/src/time-picker/time-picker.tokens.json +4 -1
- package/src/time-range-picker/time-range-picker.css +168 -140
- package/src/time-range-picker/time-range-picker.tokens.json +4 -0
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +138 -121
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +33 -38
- package/src/tooltip/tooltip.css +65 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +252 -268
- package/src/tour/tour.css +64 -73
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +113 -121
- package/src/typography/typography.css +42 -38
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
package/src/list/list.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* ── The set ────────────────────────────────────────────────────────────
|
|
4
4
|
*
|
|
5
5
|
* A vertical run of related rows. The rows are `list-item`, a family of its
|
|
6
|
-
* own, and **no selector here reaches `[data-ui
|
|
6
|
+
* own, and **no selector here reaches `[data-ui-list-item]`** — the rule
|
|
7
7
|
* `accordion` and `collapsible` set for the same relationship. What the set
|
|
8
8
|
* decides it hands to each row through the binding, as a `data-` attribute
|
|
9
9
|
* the row's own stylesheet reads.
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* here and on `section-list`, which is what Safari and VoiceOver need once
|
|
20
20
|
* the marker is removed.
|
|
21
21
|
*/
|
|
22
|
-
[data-ui
|
|
23
|
-
[data-ui
|
|
22
|
+
[data-ui-list][data-part-root],
|
|
23
|
+
[data-ui-list] [data-part-section-list] {
|
|
24
24
|
/* The row's own number. The set opens the count; each group opens its own,
|
|
25
25
|
so a numbered list of groups restarts rather than running through. */
|
|
26
26
|
counter-reset: slotted-list-item;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
padding-inline: 0;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
[data-ui
|
|
40
|
+
[data-ui-list][data-part-root] {
|
|
41
41
|
/* The distance between rows, and it is spent only by `separated`. The other
|
|
42
42
|
three variants separate rows with a line or with nothing, so a gap there
|
|
43
43
|
would be space the reader cannot account for. */
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
--_frame-width: var(--slotted-list-border-width, var(--slotted-border-width-thin, 1px));
|
|
49
49
|
--_frame-radius: var(--slotted-list-radius, var(--slotted-radius-md, 6px));
|
|
50
50
|
--_surface: var(--slotted-list-background, var(--slotted-surface, Canvas));
|
|
51
|
-
/* The group heading's type and
|
|
52
|
-
so it takes the muted ink rather than a tone: a
|
|
51
|
+
/* The group heading's type and color. It is a heading in the document,
|
|
52
|
+
so it takes the muted ink rather than a tone: a colored heading over a
|
|
53
53
|
neutral list reads as a status the group does not have. */
|
|
54
54
|
--_section-color: var(--slotted-list-section-color, var(--slotted-text-muted, GrayText));
|
|
55
55
|
--_section-font-size: var(
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
* roomy settings list stand on the same page without either of them lying
|
|
80
80
|
* about the density.
|
|
81
81
|
*/
|
|
82
|
-
[data-ui
|
|
82
|
+
[data-ui-list][data-part-root][data-size='sm'] {
|
|
83
83
|
--_gap: var(--slotted-list-gap-sm, var(--slotted-space-2, 0.25rem));
|
|
84
84
|
--_section-inset-block: var(
|
|
85
85
|
--slotted-list-section-padding-block-sm,
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
--_empty-inset: var(--slotted-list-empty-padding-sm, var(--slotted-space-6, 1rem));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
[data-ui
|
|
95
|
+
[data-ui-list][data-part-root][data-size='lg'] {
|
|
96
96
|
--_gap: var(--slotted-list-gap-lg, var(--slotted-space-4, 0.5rem));
|
|
97
97
|
--_section-inset-block: var(
|
|
98
98
|
--slotted-list-section-padding-block-lg,
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
*
|
|
116
116
|
* `plain` and `ruled` draw nothing on the set.
|
|
117
117
|
*/
|
|
118
|
-
[data-ui
|
|
118
|
+
[data-ui-list][data-part-root][data-variant='framed'] {
|
|
119
119
|
background-color: var(--_surface);
|
|
120
120
|
border: var(--_frame-width) solid var(--_frame-color);
|
|
121
121
|
border-radius: var(--_frame-radius);
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
overflow: clip;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
[data-ui
|
|
128
|
+
[data-ui-list][data-part-root][data-variant='separated'] {
|
|
129
129
|
row-gap: var(--_gap);
|
|
130
130
|
}
|
|
131
131
|
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
* React Aria each leave the heading loose among the rows instead, so a reader
|
|
136
136
|
* hears a heading inside a set rather than a set with a name.
|
|
137
137
|
*/
|
|
138
|
-
[data-ui
|
|
138
|
+
[data-ui-list] [data-part-section] {
|
|
139
139
|
display: flex;
|
|
140
140
|
flex-direction: column;
|
|
141
141
|
min-inline-size: 0;
|
|
@@ -143,8 +143,8 @@
|
|
|
143
143
|
|
|
144
144
|
/* A separated set gaps its groups too, and a group gaps its own rows. Both
|
|
145
145
|
read the one distance the root declared. */
|
|
146
|
-
[data-ui
|
|
147
|
-
[data-ui
|
|
146
|
+
[data-ui-list][data-variant='separated'] [data-part-section],
|
|
147
|
+
[data-ui-list][data-variant='separated'] [data-part-section-list] {
|
|
148
148
|
row-gap: var(--_gap);
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
* titles under it stand in one column, which is the alignment that makes a
|
|
154
154
|
* grouped list read as one list rather than as several.
|
|
155
155
|
*/
|
|
156
|
-
[data-ui
|
|
156
|
+
[data-ui-list] [data-part-section-label] {
|
|
157
157
|
color: var(--_section-color);
|
|
158
158
|
font-size: var(--_section-font-size);
|
|
159
159
|
font-weight: var(--_section-weight);
|
|
@@ -178,8 +178,8 @@
|
|
|
178
178
|
* `disableGutters` leaves out: it removes the padding and leaves the line
|
|
179
179
|
* inset, so a flush list draws a rule stopping short of the box it is in.
|
|
180
180
|
*/
|
|
181
|
-
[data-ui
|
|
182
|
-
[data-ui
|
|
181
|
+
[data-ui-list][data-inset] [data-part-section-label],
|
|
182
|
+
[data-ui-list][data-inset] [data-part-empty] {
|
|
183
183
|
padding-inline: 0;
|
|
184
184
|
}
|
|
185
185
|
|
|
@@ -195,32 +195,32 @@
|
|
|
195
195
|
*/
|
|
196
196
|
/* A heading with an end sets the name at the start and the end content on
|
|
197
197
|
the same line, at the end. */
|
|
198
|
-
[data-ui
|
|
198
|
+
[data-ui-list] [data-part-section-label]:has(> [data-part-section-end]) {
|
|
199
199
|
align-items: baseline;
|
|
200
200
|
display: flex;
|
|
201
201
|
gap: var(--slotted-space-4, 0.5rem);
|
|
202
202
|
justify-content: space-between;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
[data-ui
|
|
205
|
+
[data-ui-list] [data-part-section-end] {
|
|
206
206
|
flex: none;
|
|
207
207
|
font-variant-numeric: tabular-nums;
|
|
208
208
|
white-space: nowrap;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
|
-
* `ruled`: the name in the text
|
|
212
|
+
* `ruled`: the name in the text color over a rule, with no ground behind it
|
|
213
213
|
* — a day of a phone list with its balance at the end. The sticky ground is
|
|
214
214
|
* still the set's surface, so the rows passing under it are covered.
|
|
215
215
|
*/
|
|
216
|
-
[data-ui
|
|
216
|
+
[data-ui-list] [data-part-section-label][data-variant='ruled'] {
|
|
217
217
|
border-block-end: var(--slotted-border-width-thin, 1px) solid
|
|
218
218
|
var(--slotted-list-section-rule-color, var(--slotted-border-subtle, GrayText));
|
|
219
219
|
color: var(--slotted-list-section-ruled-color, var(--slotted-text, CanvasText));
|
|
220
220
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
[data-ui
|
|
223
|
+
[data-ui-list] [data-part-section-label][data-sticky] {
|
|
224
224
|
background-color: var(--_surface);
|
|
225
225
|
inset-block-start: 0;
|
|
226
226
|
position: sticky;
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
* The family supplies the box, the height and the muted ink. The words are
|
|
237
237
|
* the page's, and `result-state` is what goes in here.
|
|
238
238
|
*/
|
|
239
|
-
[data-ui
|
|
239
|
+
[data-ui-list] [data-part-empty] {
|
|
240
240
|
align-items: center;
|
|
241
241
|
color: var(--_empty-color);
|
|
242
242
|
display: flex;
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
* loading panel. What is left for the set is the pointer, which is the one
|
|
262
262
|
* signal that belongs to the box rather than to its content.
|
|
263
263
|
*/
|
|
264
|
-
[data-ui
|
|
264
|
+
[data-ui-list][data-part-root][data-loading] {
|
|
265
265
|
cursor: progress;
|
|
266
266
|
}
|
|
267
267
|
}
|