@slotted/styles 0.1.0-beta.4 → 0.1.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +21 -1
- package/src/accordion/accordion.css +31 -13
- package/src/accordion/accordion.tokens.json +2 -0
- 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 +97 -97
- package/src/alert/alert.tokens.json +6 -1
- package/src/app-shell/app-shell.css +472 -342
- package/src/app-shell/app-shell.tokens.json +6 -3
- package/src/aspect-ratio/aspect-ratio.css +24 -23
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +97 -67
- package/src/avatar/avatar.tokens.json +8 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +58 -47
- package/src/badge/badge.tokens.json +6 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +408 -93
- package/src/button/button.tokens.json +13 -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 +594 -267
- package/src/calendar/calendar.tokens.json +35 -3
- package/src/card/card.css +133 -70
- package/src/card/card.tokens.json +1 -0
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +174 -159
- package/src/cascader/cascader.tokens.json +2 -0
- package/src/chart/chart.css +300 -271
- package/src/chart/chart.tokens.json +5 -0
- package/src/checkbox/checkbox.css +190 -148
- package/src/checkbox/checkbox.tokens.json +4 -0
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/clock/clock.css +246 -0
- package/src/clock/clock.tokens.json +44 -0
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +273 -85
- package/src/collapsible/collapsible.tokens.json +6 -0
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +219 -132
- package/src/combobox/combobox.tokens.json +4 -0
- package/src/command-palette/command-palette.css +214 -102
- package/src/command-palette/command-palette.tokens.json +4 -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 +231 -115
- package/src/dashboard-grid/dashboard-grid.tokens.json +3 -1
- package/src/data-grid/data-grid.css +637 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +93 -76
- 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 +31 -269
- package/src/date-picker/date-picker.tokens.json +1 -21
- package/src/date-range-picker/date-range-picker.css +72 -528
- package/src/date-range-picker/date-range-picker.tokens.json +1 -37
- 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 +49 -711
- package/src/datetime-picker/datetime-picker.tokens.json +1 -50
- package/src/datetime-range-picker/datetime-range-picker.css +60 -985
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +1 -67
- package/src/description-list/description-list.css +120 -76
- 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 +462 -199
- package/src/dialog/dialog.tokens.json +10 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +736 -237
- package/src/drawer/drawer.tokens.json +15 -0
- package/src/entity-picker/entity-picker.css +402 -272
- package/src/entity-picker/entity-picker.tokens.json +6 -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 +58 -38
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +224 -216
- package/src/floating-panel/floating-panel.css +147 -0
- package/src/floating-panel/floating-panel.tokens.json +32 -0
- package/src/form/form.css +103 -26
- package/src/form/form.tokens.json +6 -1
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +32 -31
- 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 +147 -168
- package/src/import-export-center/import-export-center.tokens.json +1 -0
- package/src/inline/inline.css +29 -29
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +5 -0
- package/src/kbd/kbd.css +63 -51
- package/src/kbd/kbd.tokens.json +4 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +55 -24
- package/src/list/list.tokens.json +2 -0
- package/src/list-item/list-item.css +195 -80
- package/src/list-item/list-item.tokens.json +10 -0
- package/src/listbox/listbox.css +121 -72
- package/src/listbox/listbox.tokens.json +6 -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 +166 -83
- package/src/menu/menu.tokens.json +3 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1296 -1243
- package/src/message/message.tokens.json +14 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/meter/meter.css +136 -0
- package/src/meter/meter.tokens.json +23 -0
- package/src/multi-select/multi-select.css +246 -174
- package/src/multi-select/multi-select.tokens.json +3 -0
- package/src/navigation-menu/navigation-menu.css +170 -191
- package/src/navigation-menu/navigation-menu.tokens.json +1 -0
- package/src/notification-center/notification-center.css +155 -163
- package/src/notification-center/notification-center.tokens.json +4 -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 +109 -31
- package/src/page/page.tokens.json +8 -0
- package/src/page-header/page-header.css +342 -287
- package/src/page-header/page-header.tokens.json +6 -1
- package/src/pagination/pagination.css +75 -79
- package/src/picker-panel/picker-panel.css +1074 -0
- package/src/picker-panel/picker-panel.tokens.json +77 -0
- package/src/popover/popover.css +85 -65
- package/src/popover/popover.tokens.json +2 -0
- package/src/progress-indicator/progress-indicator.css +194 -137
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +274 -116
- 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 +147 -143
- package/src/rating/rating.tokens.json +2 -0
- package/src/result-state/result-state.css +95 -102
- package/src/result-state/result-state.tokens.json +1 -0
- package/src/runtime-properties.mjs +44 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +50 -37
- package/src/section/section.css +311 -46
- package/src/section/section.tokens.json +13 -1
- package/src/segmented-control/segmented-control.css +221 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +226 -149
- package/src/select/select.tokens.json +4 -0
- package/src/side-navigation/side-navigation.css +204 -201
- package/src/side-navigation/side-navigation.tokens.json +2 -0
- package/src/skeleton/skeleton.css +76 -58
- package/src/slider/slider.css +108 -104
- package/src/slider/slider.tokens.json +1 -0
- 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 +26 -26
- package/src/stat-card/stat-card.css +420 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +126 -101
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +143 -125
- package/src/switch/switch.tokens.json +4 -0
- package/src/table/table.css +653 -222
- package/src/table/table.tokens.json +10 -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 +113 -89
- package/src/tag/tag.tokens.json +11 -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 +30 -519
- package/src/time-picker/time-picker.tokens.json +1 -38
- package/src/time-range-picker/time-range-picker.css +53 -895
- package/src/time-range-picker/time-range-picker.tokens.json +1 -66
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +139 -122
- package/src/toast/toast.tokens.json +7 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +49 -40
- package/src/toolbar/toolbar.tokens.json +2 -1
- package/src/tooltip/tooltip.css +95 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +253 -269
- package/src/top-navigation/top-navigation.tokens.json +1 -0
- package/src/tour/tour.css +68 -74
- package/src/tour/tour.tokens.json +1 -0
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +118 -122
- package/src/typography/typography.css +67 -38
- package/src/typography/typography.tokens.json +2 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
"--slotted-control-font-size-md",
|
|
8
8
|
"--slotted-control-font-size-sm",
|
|
9
9
|
"--slotted-control-gap-md",
|
|
10
|
+
"--slotted-control-height-lg",
|
|
10
11
|
"--slotted-control-height-md",
|
|
12
|
+
"--slotted-control-height-sm",
|
|
11
13
|
"--slotted-control-icon-size-md",
|
|
12
14
|
"--slotted-control-inner-size-sm",
|
|
13
15
|
"--slotted-control-invalid-edge-width",
|
|
@@ -43,7 +45,10 @@
|
|
|
43
45
|
"--slotted-data-grid-pin-shadow-size",
|
|
44
46
|
"--slotted-data-grid-radius",
|
|
45
47
|
"--slotted-data-grid-range-surface",
|
|
48
|
+
"--slotted-data-grid-resize-guide-color",
|
|
49
|
+
"--slotted-data-grid-resize-guide-width",
|
|
46
50
|
"--slotted-data-grid-row-block-size",
|
|
51
|
+
"--slotted-data-grid-row-border-color-selected",
|
|
47
52
|
"--slotted-data-grid-row-color-selected",
|
|
48
53
|
"--slotted-data-grid-row-max-block-size",
|
|
49
54
|
"--slotted-data-grid-row-surface-hover",
|
|
@@ -91,7 +96,6 @@
|
|
|
91
96
|
"--slotted-text-muted",
|
|
92
97
|
"--slotted-tone-accent-border",
|
|
93
98
|
"--slotted-tone-accent-solid",
|
|
94
|
-
"--slotted-tone-accent-subtle-hover",
|
|
95
99
|
"--slotted-tone-accent-surface",
|
|
96
100
|
"--slotted-tone-accent-text",
|
|
97
101
|
"--slotted-tone-danger-border",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
*
|
|
13
13
|
* The two composed families keep their own `data-part`. A part of this
|
|
14
14
|
* family is written on an element of its own, never on the `li`, so the row
|
|
15
|
-
* stays the row `list-item.css`
|
|
15
|
+
* stays the row `list-item.css` recognizes.
|
|
16
16
|
*/
|
|
17
|
-
[data-ui
|
|
17
|
+
[data-ui-data-list][data-part-root] {
|
|
18
18
|
/* The pop-in's two measures (`data-grid.css`, the pop-in): a field is at
|
|
19
19
|
least nine rems, so two sit side by side from eighteen, and a field that
|
|
20
20
|
has the row to itself puts its label in a track of seven and a half. */
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
min-inline-size: 0;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
[data-ui
|
|
38
|
+
[data-ui-data-list][data-size='sm'] {
|
|
39
39
|
--_pad-inline: var(--slotted-control-padding-inline-sm, 10px);
|
|
40
40
|
--_gap: var(--slotted-control-gap-sm, 6px);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
[data-ui
|
|
43
|
+
[data-ui-data-list][data-size='lg'] {
|
|
44
44
|
--_pad-inline: var(--slotted-control-padding-inline-lg, 16px);
|
|
45
45
|
--_gap: var(--slotted-control-gap-lg, 8px);
|
|
46
46
|
}
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
* The rule under it is the set's first rule: a ruled list draws a line above
|
|
54
54
|
* every row but the first, and the header is what the first row sits under.
|
|
55
55
|
*/
|
|
56
|
-
[data-ui
|
|
56
|
+
[data-ui-data-list] > [data-part-header] {
|
|
57
57
|
align-items: center;
|
|
58
58
|
box-shadow: 0 var(--_rule-width) 0 0 var(--_rule);
|
|
59
59
|
box-sizing: border-box;
|
|
@@ -70,23 +70,23 @@
|
|
|
70
70
|
|
|
71
71
|
/* A plain list draws no rule between its rows, so the bar draws none under
|
|
72
72
|
itself either. */
|
|
73
|
-
[data-ui
|
|
73
|
+
[data-ui-data-list][data-variant='plain'] > [data-part-header] {
|
|
74
74
|
box-shadow: none;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/* A framed set carries its own edge; the bar sits outside it and the rule
|
|
78
78
|
would double the frame's top. */
|
|
79
|
-
[data-ui
|
|
79
|
+
[data-ui-data-list][data-variant='framed'] > [data-part-header] {
|
|
80
80
|
box-shadow: none;
|
|
81
81
|
padding-inline: calc(var(--_pad-inline) + var(--_rule-width));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
[data-ui
|
|
84
|
+
[data-ui-data-list] [data-part-select-all] {
|
|
85
85
|
display: inline-flex;
|
|
86
86
|
flex: none;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
[data-ui
|
|
89
|
+
[data-ui-data-list] [data-part-count] {
|
|
90
90
|
color: var(--_muted);
|
|
91
91
|
flex: 1 1 auto;
|
|
92
92
|
font-variant-numeric: tabular-nums;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
unicode-bidi: plaintext;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
[data-ui
|
|
99
|
+
[data-ui-data-list] [data-part-sort] {
|
|
100
100
|
display: inline-flex;
|
|
101
101
|
flex: none;
|
|
102
102
|
margin-inline-start: auto;
|
|
@@ -112,14 +112,14 @@
|
|
|
112
112
|
* half turn for ascending. Without a key there is nothing to point at and
|
|
113
113
|
* the binding draws no mark.
|
|
114
114
|
*/
|
|
115
|
-
[data-ui
|
|
115
|
+
[data-ui-data-list] [data-part-sort] [data-part-end] > [data-ui-icon] {
|
|
116
116
|
transition: transform var(--_transition);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
[data-ui
|
|
120
|
-
[data-part
|
|
121
|
-
[data-part
|
|
122
|
-
> [data-ui
|
|
119
|
+
[data-ui-data-list]
|
|
120
|
+
[data-part-sort][data-direction='ascending']
|
|
121
|
+
[data-part-end]
|
|
122
|
+
> [data-ui-icon] {
|
|
123
123
|
transform: rotate(180deg);
|
|
124
124
|
}
|
|
125
125
|
|
|
@@ -130,31 +130,31 @@
|
|
|
130
130
|
* controls a record holds stand above that target, so pressing a checkbox,
|
|
131
131
|
* a disclosure or an action presses that control and not the record.
|
|
132
132
|
*/
|
|
133
|
-
[data-ui
|
|
133
|
+
[data-ui-data-list] [data-ui-list-item] {
|
|
134
134
|
position: relative;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
[data-ui
|
|
138
|
-
[data-ui
|
|
137
|
+
[data-ui-data-list]
|
|
138
|
+
[data-ui-list-item]
|
|
139
139
|
:is(
|
|
140
|
-
[data-part
|
|
141
|
-
[data-part
|
|
142
|
-
[data-part
|
|
140
|
+
[data-part-selection],
|
|
141
|
+
[data-part-more],
|
|
142
|
+
[data-part-field-value] :is(a, button, input, select, textarea, [tabindex])
|
|
143
143
|
),
|
|
144
|
-
[data-ui
|
|
144
|
+
[data-ui-data-list] [data-ui-list-item] > [data-part-actions] {
|
|
145
145
|
position: relative;
|
|
146
146
|
z-index: 1;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
[data-ui
|
|
150
|
-
[data-ui
|
|
149
|
+
[data-ui-data-list] [data-part-selection],
|
|
150
|
+
[data-ui-data-list] [data-part-media] {
|
|
151
151
|
align-items: center;
|
|
152
152
|
display: inline-flex;
|
|
153
153
|
flex: none;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
/* Both in one leading column: the chooser first, the picture after it. */
|
|
157
|
-
[data-ui
|
|
157
|
+
[data-ui-data-list] [data-part-selection] + [data-part-media] {
|
|
158
158
|
margin-inline-start: var(--_gap);
|
|
159
159
|
}
|
|
160
160
|
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
* sentence nobody listens to twice — and its `::after` is the whole row to a
|
|
165
165
|
* pointer, which is where a phone reader's thumb lands.
|
|
166
166
|
*/
|
|
167
|
-
[data-ui
|
|
167
|
+
[data-ui-data-list] :is(a, button)[data-part-title] {
|
|
168
168
|
appearance: none;
|
|
169
169
|
background: none;
|
|
170
170
|
border: 0;
|
|
@@ -177,32 +177,36 @@
|
|
|
177
177
|
text-decoration: none;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
[data-ui
|
|
180
|
+
[data-ui-data-list] :is(a, button)[data-part-title]::after {
|
|
181
181
|
border-radius: inherit;
|
|
182
182
|
content: '';
|
|
183
183
|
inset: 0;
|
|
184
184
|
position: absolute;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
[data-ui
|
|
187
|
+
[data-ui-data-list] :is(a, button)[data-part-title]:focus-visible {
|
|
188
188
|
outline: none;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
/* The ring is drawn by the target, inside the row, as `list-item` draws it
|
|
192
192
|
on its own content: a row is full width, and an outward ring on the first
|
|
193
193
|
record of a framed set is drawn under the frame. */
|
|
194
|
-
[data-ui
|
|
194
|
+
[data-ui-data-list] :is(a, button)[data-part-title]:focus-visible::after {
|
|
195
195
|
outline: var(--slotted-focus-ring-width, 2px) solid
|
|
196
196
|
var(--slotted-focus-ring-color, currentColor);
|
|
197
197
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
200
|
+
/* Behind (hover: hover), as `list-item` gates its wash: a tap leaves the
|
|
201
|
+
title in `:hover` on a touch screen. */
|
|
202
|
+
@media (hover: hover) {
|
|
203
|
+
[data-ui-data-list]
|
|
204
|
+
[data-ui-list-item]:not([data-disabled]):not([data-loading])
|
|
205
|
+
:is(a[href], button:not(:disabled))[data-part-title]:hover {
|
|
206
|
+
text-decoration: underline;
|
|
207
|
+
text-decoration-thickness: from-font;
|
|
208
|
+
text-underline-offset: 0.2em;
|
|
209
|
+
}
|
|
206
210
|
}
|
|
207
211
|
|
|
208
212
|
/**
|
|
@@ -212,23 +216,23 @@
|
|
|
212
216
|
* through the row's own `--_fill`, which already knows the tone and the
|
|
213
217
|
* selection it is painted over. Both hold back for `disabled` and `loading`.
|
|
214
218
|
*/
|
|
215
|
-
|
|
216
|
-
[data-ui
|
|
217
|
-
[data-
|
|
218
|
-
|
|
219
|
-
|
|
219
|
+
@media (hover: hover) {
|
|
220
|
+
[data-ui-data-list]
|
|
221
|
+
[data-ui-list-item]:not([data-disabled]):not([data-loading]):has(
|
|
222
|
+
[data-part-title]:is(a[href], button:not(:disabled)):hover
|
|
223
|
+
) {
|
|
224
|
+
--_fill: var(--_hover, ButtonFace);
|
|
225
|
+
}
|
|
220
226
|
}
|
|
221
227
|
|
|
222
|
-
[data-ui
|
|
223
|
-
[data-ui
|
|
224
|
-
[data-part
|
|
228
|
+
[data-ui-data-list]
|
|
229
|
+
[data-ui-list-item]:not([data-disabled]):not([data-loading]):has(
|
|
230
|
+
[data-part-title]:is(a[href], button:not(:disabled)):active
|
|
225
231
|
) {
|
|
226
232
|
--_fill: var(--_active, ButtonFace);
|
|
227
233
|
}
|
|
228
234
|
|
|
229
|
-
[data-ui
|
|
230
|
-
[data-ui='list-item']:is([data-disabled], [data-loading])
|
|
231
|
-
[data-part='title'] {
|
|
235
|
+
[data-ui-data-list] [data-ui-list-item]:is([data-disabled], [data-loading]) [data-part-title] {
|
|
232
236
|
cursor: default;
|
|
233
237
|
}
|
|
234
238
|
|
|
@@ -239,7 +243,7 @@
|
|
|
239
243
|
* recedes itself while it loads or is disabled, and which a selection leaves
|
|
240
244
|
* alone, so a selected record keeps its figures in the page's ink.
|
|
241
245
|
*/
|
|
242
|
-
[data-ui
|
|
246
|
+
[data-ui-data-list] [data-part-trailing] {
|
|
243
247
|
color: var(--_text, CanvasText);
|
|
244
248
|
font-variant-numeric: tabular-nums;
|
|
245
249
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
@@ -264,10 +268,10 @@
|
|
|
264
268
|
* fell to one squeezed column with its dates broken in two. Below
|
|
265
269
|
* `list-item`'s 22rem the grid has two columns and `-1` still names its end.
|
|
266
270
|
*/
|
|
267
|
-
[data-ui
|
|
268
|
-
[data-ui
|
|
269
|
-
> [data-part
|
|
270
|
-
> :is([data-part
|
|
271
|
+
[data-ui-data-list]
|
|
272
|
+
[data-ui-list-item]
|
|
273
|
+
> [data-part-content]
|
|
274
|
+
> :is([data-part-fields], [data-part-more]) {
|
|
271
275
|
grid-column: 2 / -1;
|
|
272
276
|
}
|
|
273
277
|
|
|
@@ -276,17 +280,17 @@
|
|
|
276
280
|
under them the fields of a 240-pixel record were eleven rems wide. The
|
|
277
281
|
pop-in makes the same move below 600 pixels. */
|
|
278
282
|
@container slotted-list-item (max-inline-size: 22rem) {
|
|
279
|
-
[data-ui
|
|
280
|
-
[data-ui
|
|
281
|
-
> [data-part
|
|
282
|
-
> :is([data-part
|
|
283
|
+
[data-ui-data-list]
|
|
284
|
+
[data-ui-list-item]
|
|
285
|
+
> [data-part-content]
|
|
286
|
+
> :is([data-part-fields], [data-part-more]) {
|
|
283
287
|
grid-column: 1 / -1;
|
|
284
288
|
}
|
|
285
289
|
}
|
|
286
290
|
|
|
287
291
|
/* The box is a query container for its pairs. Its own tracks need no query:
|
|
288
292
|
`auto-fill` already gives one column below eighteen rems. */
|
|
289
|
-
[data-ui
|
|
293
|
+
[data-ui-data-list] [data-part-fields] {
|
|
290
294
|
column-gap: var(--slotted-space-4, 0.5rem);
|
|
291
295
|
container: slotted-data-list-fields / inline-size;
|
|
292
296
|
display: grid;
|
|
@@ -297,14 +301,14 @@
|
|
|
297
301
|
row-gap: var(--slotted-space-2, 0.25rem);
|
|
298
302
|
}
|
|
299
303
|
|
|
300
|
-
[data-ui
|
|
304
|
+
[data-ui-data-list] [data-part-field] {
|
|
301
305
|
display: flex;
|
|
302
306
|
flex-direction: column;
|
|
303
307
|
margin: 0;
|
|
304
308
|
min-inline-size: 0;
|
|
305
309
|
}
|
|
306
310
|
|
|
307
|
-
[data-ui
|
|
311
|
+
[data-ui-data-list] [data-part-field-label] {
|
|
308
312
|
color: var(--_muted, GrayText);
|
|
309
313
|
font-size: var(--slotted-font-size-xs, 0.75rem);
|
|
310
314
|
font-weight: var(--slotted-font-weight-regular, 400);
|
|
@@ -317,7 +321,7 @@
|
|
|
317
321
|
|
|
318
322
|
/* The value is the row's own ink and size, and it wraps: a field has no
|
|
319
323
|
other way to show what it holds, so it never truncates. */
|
|
320
|
-
[data-ui
|
|
324
|
+
[data-ui-data-list] [data-part-field-value] {
|
|
321
325
|
color: var(--_text, CanvasText);
|
|
322
326
|
font-weight: var(--slotted-font-weight-regular, 400);
|
|
323
327
|
line-height: var(--slotted-line-height-md, 1.5);
|
|
@@ -333,13 +337,13 @@
|
|
|
333
337
|
unicode-bidi: plaintext;
|
|
334
338
|
}
|
|
335
339
|
|
|
336
|
-
[data-ui
|
|
340
|
+
[data-ui-data-list] [data-part-field-value][data-numeric] {
|
|
337
341
|
font-variant-numeric: tabular-nums;
|
|
338
342
|
}
|
|
339
343
|
|
|
340
344
|
/* `—` is written by both bindings; the sheet only lowers its ink, the rule
|
|
341
345
|
`description-list` settled for the same mark. */
|
|
342
|
-
[data-ui
|
|
346
|
+
[data-ui-data-list] [data-part-field-empty] {
|
|
343
347
|
color: var(--_muted, GrayText);
|
|
344
348
|
}
|
|
345
349
|
|
|
@@ -351,7 +355,7 @@
|
|
|
351
355
|
* and a date took two lines, so the pair returns to the label over the value.
|
|
352
356
|
*/
|
|
353
357
|
@container slotted-data-list-fields (min-inline-size: 12rem) and (max-inline-size: 19rem) {
|
|
354
|
-
[data-ui
|
|
358
|
+
[data-ui-data-list] [data-part-field] {
|
|
355
359
|
align-items: baseline;
|
|
356
360
|
column-gap: var(--slotted-space-3, 0.375rem);
|
|
357
361
|
display: grid;
|
|
@@ -364,7 +368,7 @@
|
|
|
364
368
|
* a control-sized button, because it belongs to the record's text; its box
|
|
365
369
|
* still reaches the 24-pixel target.
|
|
366
370
|
*/
|
|
367
|
-
[data-ui
|
|
371
|
+
[data-ui-data-list] [data-part-more] {
|
|
368
372
|
align-items: center;
|
|
369
373
|
appearance: none;
|
|
370
374
|
background: none;
|
|
@@ -385,26 +389,26 @@
|
|
|
385
389
|
|
|
386
390
|
/* The chevron is the `Glyph` the binding draws after the words; it turns a
|
|
387
391
|
half turn once the fields are shown. */
|
|
388
|
-
[data-ui
|
|
392
|
+
[data-ui-data-list] [data-part-more] > [data-ui-icon] {
|
|
389
393
|
transition: transform var(--_transition);
|
|
390
394
|
}
|
|
391
395
|
|
|
392
|
-
[data-ui
|
|
396
|
+
[data-ui-data-list] [data-part-more][aria-expanded='true'] > [data-ui-icon] {
|
|
393
397
|
transform: rotate(180deg);
|
|
394
398
|
}
|
|
395
399
|
|
|
396
|
-
[data-ui
|
|
400
|
+
[data-ui-data-list] [data-part-more]:not(:disabled):hover {
|
|
397
401
|
text-decoration: underline;
|
|
398
402
|
text-decoration-thickness: from-font;
|
|
399
403
|
text-underline-offset: 0.2em;
|
|
400
404
|
}
|
|
401
405
|
|
|
402
|
-
[data-ui
|
|
406
|
+
[data-ui-data-list] [data-part-more]:focus-visible {
|
|
403
407
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
404
408
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
405
409
|
}
|
|
406
410
|
|
|
407
|
-
[data-ui
|
|
411
|
+
[data-ui-data-list] [data-ui-list-item][data-disabled] [data-part-more] {
|
|
408
412
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
409
413
|
}
|
|
410
414
|
|
|
@@ -414,28 +418,41 @@
|
|
|
414
418
|
* Over rows already shown the rows stay and recede, and nothing moves:
|
|
415
419
|
* `data-grid`'s rule for the same wait, at the same strength.
|
|
416
420
|
*/
|
|
417
|
-
[data-ui
|
|
421
|
+
[data-ui-data-list] > [data-ui-list] {
|
|
422
|
+
/* The containing block of the veil a busy list lays over its rows. */
|
|
423
|
+
position: relative;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
[data-ui-data-list][aria-busy='true'] > [data-ui-list] {
|
|
418
427
|
opacity: 0.55;
|
|
419
|
-
pointer-events: none;
|
|
420
428
|
transition: opacity var(--_transition);
|
|
421
429
|
}
|
|
422
430
|
|
|
423
|
-
|
|
431
|
+
/* A veil refuses the press, as `data-grid`'s does: `pointer-events: none`
|
|
432
|
+
on the list is inherited, and toggling it restyled every row. */
|
|
433
|
+
[data-ui-data-list][aria-busy='true'] > [data-ui-list]::after {
|
|
434
|
+
content: '';
|
|
435
|
+
inset: 0;
|
|
436
|
+
position: absolute;
|
|
437
|
+
z-index: calc(var(--slotted-z-index-sticky, 100) + 4);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
[data-ui-data-list] > [data-part-empty] {
|
|
424
441
|
padding-block: var(--slotted-space-8, 1.5rem);
|
|
425
442
|
padding-inline: var(--_pad-inline);
|
|
426
443
|
}
|
|
427
444
|
|
|
428
|
-
[data-ui
|
|
445
|
+
[data-ui-data-list] > [data-part-loader] {
|
|
429
446
|
display: block;
|
|
430
447
|
}
|
|
431
448
|
|
|
432
449
|
/* A skeleton record's lines stand where the text will: the title's at the
|
|
433
450
|
title's size, the description's under it. */
|
|
434
|
-
[data-ui
|
|
451
|
+
[data-ui-data-list] > [data-part-loader] [data-part-field-value] [data-ui-skeleton] {
|
|
435
452
|
vertical-align: middle;
|
|
436
453
|
}
|
|
437
454
|
|
|
438
|
-
[data-ui
|
|
455
|
+
[data-ui-data-list] > [data-part-footer] {
|
|
439
456
|
align-items: center;
|
|
440
457
|
display: flex;
|
|
441
458
|
flex-wrap: wrap;
|
|
@@ -445,11 +462,11 @@
|
|
|
445
462
|
padding-inline: var(--_pad-inline);
|
|
446
463
|
}
|
|
447
464
|
|
|
448
|
-
[data-ui
|
|
465
|
+
[data-ui-data-list] > [data-part-footer]:empty {
|
|
449
466
|
display: none;
|
|
450
467
|
}
|
|
451
468
|
|
|
452
|
-
[data-ui
|
|
469
|
+
[data-ui-data-list] [data-part-load-more] {
|
|
453
470
|
display: inline-flex;
|
|
454
471
|
}
|
|
455
472
|
}
|