@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
package/src/stepper/stepper.css
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* that retunes the control scale moves the whole stepper together instead of
|
|
12
12
|
* leaving the connector behind.
|
|
13
13
|
*/
|
|
14
|
-
[data-ui
|
|
14
|
+
[data-ui-stepper] {
|
|
15
15
|
--_marker: var(--slotted-stepper-marker-size, var(--slotted-control-height-md, 34px));
|
|
16
16
|
--_gap: var(--slotted-stepper-gap, var(--slotted-control-gap-md, 8px));
|
|
17
17
|
--_rule: var(--slotted-stepper-connector-thickness, var(--slotted-border-width-thick, 2px));
|
|
@@ -70,38 +70,38 @@
|
|
|
70
70
|
* "Review" a quarter of the space it gives "Shipping and billing address"
|
|
71
71
|
* and the markers would stop lining up with anything.
|
|
72
72
|
*
|
|
73
|
-
* Vertical is a column, and the connector runs down the marker's own
|
|
73
|
+
* Vertical is a column, and the connector runs down the marker's own center
|
|
74
74
|
* line rather than beside it.
|
|
75
75
|
*/
|
|
76
76
|
|
|
77
|
-
[data-ui
|
|
77
|
+
[data-ui-stepper] [data-part-list] {
|
|
78
78
|
display: flex;
|
|
79
79
|
list-style: none;
|
|
80
80
|
margin: 0;
|
|
81
81
|
padding: 0;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
[data-ui
|
|
84
|
+
[data-ui-stepper][data-orientation='horizontal'] [data-part-list] {
|
|
85
85
|
align-items: flex-start;
|
|
86
86
|
flex-direction: row;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
[data-ui
|
|
89
|
+
[data-ui-stepper][data-orientation='vertical'] [data-part-list] {
|
|
90
90
|
flex-direction: column;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
[data-ui
|
|
93
|
+
[data-ui-stepper] [data-part-item] {
|
|
94
94
|
display: flex;
|
|
95
95
|
position: relative;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
[data-ui
|
|
98
|
+
[data-ui-stepper][data-orientation='horizontal'] [data-part-item] {
|
|
99
99
|
flex: 1 1 0;
|
|
100
100
|
/* A label longer than its column wraps instead of widening the column. */
|
|
101
101
|
min-inline-size: 0;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
[data-ui
|
|
104
|
+
[data-ui-stepper][data-orientation='vertical'] [data-part-item] {
|
|
105
105
|
flex-direction: column;
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
* component.
|
|
115
115
|
*/
|
|
116
116
|
|
|
117
|
-
[data-ui
|
|
117
|
+
[data-ui-stepper] [data-part-trigger] {
|
|
118
118
|
align-items: center;
|
|
119
119
|
appearance: none;
|
|
120
120
|
background: none;
|
|
@@ -131,18 +131,18 @@
|
|
|
131
131
|
var(--slotted-control-transition-easing);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
[data-ui
|
|
135
|
-
[data-ui
|
|
134
|
+
[data-ui-stepper] button[data-part-trigger],
|
|
135
|
+
[data-ui-stepper] a[data-part-trigger] {
|
|
136
136
|
cursor: pointer;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
140
|
* `end` puts the label beside the marker and `bottom` puts it under, which
|
|
141
141
|
* is what a row of five steps needs once the labels are longer than a word.
|
|
142
|
-
* The stack is
|
|
142
|
+
* The stack is centerd so the marker sits over the middle of its own label
|
|
143
143
|
* rather than over the middle of the column.
|
|
144
144
|
*/
|
|
145
|
-
[data-ui
|
|
145
|
+
[data-ui-stepper][data-label-placement='bottom'] [data-part-trigger] {
|
|
146
146
|
align-items: center;
|
|
147
147
|
flex-direction: column;
|
|
148
148
|
/**
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
text-align: center;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
[data-ui
|
|
159
|
+
[data-ui-stepper] [data-part-trigger]:focus-visible {
|
|
160
160
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
161
161
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
162
162
|
}
|
|
@@ -165,18 +165,18 @@
|
|
|
165
165
|
*
|
|
166
166
|
* A circle holding the step's number, and the one part that never wraps,
|
|
167
167
|
* never shrinks and never moves. Its four appearances are the four statuses,
|
|
168
|
-
* and each of them is a fill and an edge rather than a
|
|
168
|
+
* and each of them is a fill and an edge rather than a color alone: a
|
|
169
169
|
* pending step is an outline, the current one is a filled ring, a complete
|
|
170
170
|
* one is a solid disc with a check, and a step in error is a solid disc with
|
|
171
171
|
* an alert. `docs/component-features.md` section 7 requires exactly this —
|
|
172
|
-
* progress that does not depend on
|
|
172
|
+
* progress that does not depend on color.
|
|
173
173
|
*/
|
|
174
174
|
|
|
175
|
-
[data-ui
|
|
175
|
+
[data-ui-stepper] [data-part-marker] {
|
|
176
176
|
/**
|
|
177
|
-
* The
|
|
177
|
+
* The color of the glyph drawn over the number, held on the marker rather
|
|
178
178
|
* than stated on the glyph's box. Reading it through one custom property
|
|
179
|
-
* keeps the family's system-
|
|
179
|
+
* keeps the family's system-color last resort on the element where the
|
|
180
180
|
* theme's own tokens live, and lets the invalid step restate it once.
|
|
181
181
|
*/
|
|
182
182
|
--_mark: var(
|
|
@@ -192,11 +192,11 @@
|
|
|
192
192
|
border-radius: var(--slotted-radius-full, 9999px);
|
|
193
193
|
/**
|
|
194
194
|
* The marker measures `--_marker` including its ring, because every other
|
|
195
|
-
* rule in this sheet is written as though it does: the connector's
|
|
195
|
+
* rule in this sheet is written as though it does: the connector's center,
|
|
196
196
|
* the panel's indent and the vertical track all read that one length. With
|
|
197
197
|
* the ring outside it the circle stood four pixels wider than the number
|
|
198
198
|
* the rest of the family was using, and the connector ran two pixels off
|
|
199
|
-
* every marker
|
|
199
|
+
* every marker center it was supposed to be on — in both orientations and
|
|
200
200
|
* at all three densities (ST2).
|
|
201
201
|
*/
|
|
202
202
|
box-sizing: border-box;
|
|
@@ -221,10 +221,10 @@
|
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
223
|
* The step the reader is on. The ring thickens to the accent and the number
|
|
224
|
-
* takes the accent's text
|
|
224
|
+
* takes the accent's text color: it is where they are, not where they have
|
|
225
225
|
* been, so it stays an outline and does not fill.
|
|
226
226
|
*/
|
|
227
|
-
[data-ui
|
|
227
|
+
[data-ui-stepper] [data-current] [data-part-marker] {
|
|
228
228
|
border-color: var(--slotted-stepper-marker-border-current, var(--_done-line));
|
|
229
229
|
color: var(--slotted-stepper-marker-color-current, var(--slotted-tone-accent-text, Highlight));
|
|
230
230
|
}
|
|
@@ -234,12 +234,12 @@
|
|
|
234
234
|
* check, because a reader scanning the row counts filled discs rather than
|
|
235
235
|
* reading five numbers.
|
|
236
236
|
*/
|
|
237
|
-
[data-ui
|
|
237
|
+
[data-ui-stepper] [data-complete]:not([data-current], [data-invalid]) [data-part-marker] {
|
|
238
238
|
background-color: var(--slotted-stepper-marker-surface-complete, var(--_done-line));
|
|
239
239
|
border-color: var(--slotted-stepper-marker-surface-complete, var(--_done-line));
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
[data-ui
|
|
242
|
+
[data-ui-stepper] [data-invalid] [data-part-marker] {
|
|
243
243
|
--_mark: var(
|
|
244
244
|
--slotted-stepper-marker-color-invalid,
|
|
245
245
|
var(--slotted-tone-danger-on-solid, MarkText)
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
);
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
[data-ui
|
|
258
|
+
[data-ui-stepper] [data-disabled]:not([data-invalid]) [data-part-marker] {
|
|
259
259
|
background-color: transparent;
|
|
260
260
|
border-color: var(--slotted-disabled-border, GrayText);
|
|
261
261
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
@@ -279,25 +279,25 @@
|
|
|
279
279
|
/**
|
|
280
280
|
* The number gives way to the mark. Neither the complete rule nor the
|
|
281
281
|
* invalid one paints the number any more, and that is the fix rather than
|
|
282
|
-
* the tidying: both used to set a
|
|
282
|
+
* the tidying: both used to set a color for it, both outranked this rule on
|
|
283
283
|
* specificity, and a finished step drew its number and its check on top of
|
|
284
284
|
* each other. The capture is what said so — the two marks overlap into a
|
|
285
285
|
* shape that is neither.
|
|
286
286
|
*/
|
|
287
|
-
[data-ui
|
|
287
|
+
[data-ui-stepper] :is([data-complete], [data-invalid]) [data-part-marker] {
|
|
288
288
|
color: transparent;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
[data-ui
|
|
291
|
+
[data-ui-stepper] [data-part-marker] > [data-ui-icon] {
|
|
292
292
|
--slotted-icon-size: var(--_mark-size);
|
|
293
293
|
|
|
294
294
|
color: var(--_mark);
|
|
295
295
|
/**
|
|
296
|
-
*
|
|
296
|
+
* Centerd by its own box rather than by the flex container's alignment.
|
|
297
297
|
* An absolutely positioned child takes a static position the engines do
|
|
298
298
|
* not agree on inside a flex container, and the capture showed the result:
|
|
299
299
|
* the check drawn from the marker's top corner, with half of it outside
|
|
300
|
-
* the disc. `inset` plus automatic margins
|
|
300
|
+
* the disc. `inset` plus automatic margins centers a fixed-size box in
|
|
301
301
|
* every engine.
|
|
302
302
|
*/
|
|
303
303
|
inset: 0;
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
* complete, because the number is what says where the reader is in a
|
|
311
311
|
* sequence and a check would say they had left it.
|
|
312
312
|
*/
|
|
313
|
-
[data-ui
|
|
313
|
+
[data-ui-stepper] [data-current]:not([data-invalid]) [data-part-marker] {
|
|
314
314
|
color: var(--slotted-stepper-marker-color-current, var(--slotted-tone-accent-text, Highlight));
|
|
315
315
|
}
|
|
316
316
|
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
* where it was.
|
|
322
322
|
*/
|
|
323
323
|
|
|
324
|
-
[data-ui
|
|
324
|
+
[data-ui-stepper] [data-part-label] {
|
|
325
325
|
color: var(--_muted);
|
|
326
326
|
font-weight: var(--slotted-stepper-label-weight, var(--slotted-font-weight-medium, 500));
|
|
327
327
|
line-height: var(--slotted-stepper-line-height, var(--slotted-line-height-sm, 1.45));
|
|
@@ -329,19 +329,19 @@
|
|
|
329
329
|
overflow-wrap: anywhere;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
[data-ui
|
|
332
|
+
[data-ui-stepper] :is([data-current], [data-complete]) [data-part-label] {
|
|
333
333
|
color: var(--_strong);
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
[data-ui
|
|
336
|
+
[data-ui-stepper] [data-invalid] [data-part-label] {
|
|
337
337
|
color: var(--slotted-stepper-label-color-invalid, var(--slotted-tone-danger-text, MarkText));
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
[data-ui
|
|
340
|
+
[data-ui-stepper] [data-disabled]:not([data-invalid]) [data-part-label] {
|
|
341
341
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
[data-ui
|
|
344
|
+
[data-ui-stepper] [data-part-description] {
|
|
345
345
|
color: var(--_muted);
|
|
346
346
|
display: block;
|
|
347
347
|
font-size: var(--slotted-stepper-description-font-size, var(--slotted-font-size-xs, 0.75rem));
|
|
@@ -354,10 +354,10 @@
|
|
|
354
354
|
* on the label rather than on the whole column: the column is mostly empty
|
|
355
355
|
* space, and a fill across it would read as a selected row.
|
|
356
356
|
*/
|
|
357
|
-
[data-ui
|
|
358
|
-
[data-part
|
|
359
|
-
:is(button, a)[data-part
|
|
360
|
-
[data-part
|
|
357
|
+
[data-ui-stepper]
|
|
358
|
+
[data-part-item]:not([data-disabled], [data-loading])
|
|
359
|
+
:is(button, a)[data-part-trigger]:hover
|
|
360
|
+
[data-part-label] {
|
|
361
361
|
color: var(--_strong);
|
|
362
362
|
text-decoration-color: currentColor;
|
|
363
363
|
text-decoration-line: underline;
|
|
@@ -378,10 +378,10 @@
|
|
|
378
378
|
* the danger tone, and a press that replaced either would be a press that
|
|
379
379
|
* also changed what the step is.
|
|
380
380
|
*/
|
|
381
|
-
[data-ui
|
|
382
|
-
[data-part
|
|
383
|
-
:is(button, a)[data-part
|
|
384
|
-
[data-part
|
|
381
|
+
[data-ui-stepper]
|
|
382
|
+
[data-part-item]:not([data-disabled], [data-loading])
|
|
383
|
+
:is(button, a)[data-part-trigger]:active
|
|
384
|
+
[data-part-marker] {
|
|
385
385
|
box-shadow: inset 0 0 0 var(--_marker) var(--_state-press);
|
|
386
386
|
}
|
|
387
387
|
|
|
@@ -392,14 +392,14 @@
|
|
|
392
392
|
* reader has reached, so the row reads as a filled track rather than as five
|
|
393
393
|
* separate marks.
|
|
394
394
|
*
|
|
395
|
-
* Horizontally it runs across the marker's own
|
|
395
|
+
* Horizontally it runs across the marker's own center line, which is half a
|
|
396
396
|
* marker below the top of the item; vertically it runs down the marker's
|
|
397
|
-
*
|
|
397
|
+
* center, which is half a marker in from the item's start edge. Both are
|
|
398
398
|
* derived from the marker rather than stated, so the rule stays on the
|
|
399
|
-
*
|
|
399
|
+
* center at every density.
|
|
400
400
|
*/
|
|
401
401
|
|
|
402
|
-
[data-ui
|
|
402
|
+
[data-ui-stepper] [data-part-separator] {
|
|
403
403
|
background-color: var(--_pending-line);
|
|
404
404
|
display: block;
|
|
405
405
|
flex: none;
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
* consumer marked completion would stay grey through every flow that never
|
|
416
416
|
* claims it.
|
|
417
417
|
*/
|
|
418
|
-
[data-ui
|
|
418
|
+
[data-ui-stepper] [data-part-separator][data-complete] {
|
|
419
419
|
background-color: var(--_done-line);
|
|
420
420
|
}
|
|
421
421
|
|
|
@@ -427,8 +427,8 @@
|
|
|
427
427
|
* knows how wide a label is, so nothing can position around it — but a flex
|
|
428
428
|
* item can be told to take the rest.
|
|
429
429
|
*/
|
|
430
|
-
[data-ui
|
|
431
|
-
[data-part
|
|
430
|
+
[data-ui-stepper][data-orientation='horizontal'][data-label-placement='end']
|
|
431
|
+
[data-part-separator] {
|
|
432
432
|
align-self: center;
|
|
433
433
|
block-size: var(--_rule);
|
|
434
434
|
flex: 1 1 auto;
|
|
@@ -437,19 +437,18 @@
|
|
|
437
437
|
position: static;
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
[data-ui
|
|
441
|
-
[data-part='trigger'] {
|
|
440
|
+
[data-ui-stepper][data-orientation='horizontal'][data-label-placement='end'] [data-part-trigger] {
|
|
442
441
|
flex: 0 1 auto;
|
|
443
442
|
min-inline-size: 0;
|
|
444
443
|
}
|
|
445
444
|
|
|
446
445
|
/**
|
|
447
446
|
* With the label under the marker, the connector runs between two marker
|
|
448
|
-
*
|
|
447
|
+
* centers. The columns are equal, so the next center is exactly one column
|
|
449
448
|
* away, and both ends are derived from the marker rather than stated.
|
|
450
449
|
*/
|
|
451
|
-
[data-ui
|
|
452
|
-
[data-part
|
|
450
|
+
[data-ui-stepper][data-orientation='horizontal'][data-label-placement='bottom']
|
|
451
|
+
[data-part-separator] {
|
|
453
452
|
block-size: var(--_rule);
|
|
454
453
|
inset-block-start: calc(0.5 * (var(--_marker) - var(--_rule)));
|
|
455
454
|
inset-inline-end: calc(-50% + 0.5 * var(--_marker) + var(--_gap));
|
|
@@ -458,7 +457,7 @@
|
|
|
458
457
|
}
|
|
459
458
|
|
|
460
459
|
/**
|
|
461
|
-
* Down the marker's own
|
|
460
|
+
* Down the marker's own center line, from below this marker to above the
|
|
462
461
|
* next one, with the same room at both ends. The bottom of the item is where
|
|
463
462
|
* the next marker begins, so the end inset is that room and not zero: at
|
|
464
463
|
* zero the rule stopped short of the marker above and ran into the marker
|
|
@@ -469,7 +468,7 @@
|
|
|
469
468
|
* tall, and `--_gap` at both ends of a step gap of one rem left a rule of
|
|
470
469
|
* no length at all; a quarter rem leaves half the step gap drawn.
|
|
471
470
|
*/
|
|
472
|
-
[data-ui
|
|
471
|
+
[data-ui-stepper][data-orientation='vertical'] [data-part-separator] {
|
|
473
472
|
--_rule-room: var(--slotted-stepper-connector-gap, var(--slotted-space-2, 0.25rem));
|
|
474
473
|
|
|
475
474
|
inline-size: var(--_rule);
|
|
@@ -484,18 +483,18 @@
|
|
|
484
483
|
* binding does not render the element at all; this is what a consumer who
|
|
485
484
|
* renders one anyway gets, and it is nothing.
|
|
486
485
|
*/
|
|
487
|
-
[data-ui
|
|
486
|
+
[data-ui-stepper] [data-part-item]:last-child [data-part-separator] {
|
|
488
487
|
display: none;
|
|
489
488
|
}
|
|
490
489
|
|
|
491
490
|
/* ── Horizontal geometry ────────────────────────────────────────────────
|
|
492
491
|
*
|
|
493
492
|
* With the label under the marker the header fills its column, so the marker
|
|
494
|
-
*
|
|
493
|
+
* centers over the column and the connector runs between two centers.
|
|
495
494
|
*/
|
|
496
495
|
|
|
497
|
-
[data-ui
|
|
498
|
-
[data-part
|
|
496
|
+
[data-ui-stepper][data-orientation='horizontal'][data-label-placement='bottom']
|
|
497
|
+
[data-part-trigger] {
|
|
499
498
|
inline-size: 100%;
|
|
500
499
|
}
|
|
501
500
|
|
|
@@ -505,24 +504,24 @@
|
|
|
505
504
|
* step lines up with its name rather than with its number.
|
|
506
505
|
*/
|
|
507
506
|
|
|
508
|
-
[data-ui
|
|
507
|
+
[data-ui-stepper][data-orientation='vertical'] [data-part-item] {
|
|
509
508
|
padding-block-end: var(--slotted-stepper-step-gap, var(--slotted-space-6, 1rem));
|
|
510
509
|
}
|
|
511
510
|
|
|
512
|
-
[data-ui
|
|
511
|
+
[data-ui-stepper][data-orientation='vertical'] [data-part-item]:last-child {
|
|
513
512
|
padding-block-end: 0;
|
|
514
513
|
}
|
|
515
514
|
|
|
516
|
-
[data-ui
|
|
515
|
+
[data-ui-stepper][data-orientation='vertical'] [data-part-panel] {
|
|
517
516
|
margin-inline-start: calc(var(--_marker) + var(--_gap));
|
|
518
517
|
padding-block-start: var(--slotted-stepper-panel-gap, var(--slotted-space-4, 0.5rem));
|
|
519
518
|
}
|
|
520
519
|
|
|
521
|
-
[data-ui
|
|
520
|
+
[data-ui-stepper][data-orientation='horizontal'] [data-part-panel] {
|
|
522
521
|
padding-block-start: var(--slotted-stepper-panel-gap, var(--slotted-space-6, 1rem));
|
|
523
522
|
}
|
|
524
523
|
|
|
525
|
-
[data-ui
|
|
524
|
+
[data-ui-stepper] [data-part-panel]:focus-visible {
|
|
526
525
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
527
526
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
528
527
|
}
|
|
@@ -540,23 +539,23 @@
|
|
|
540
539
|
*/
|
|
541
540
|
|
|
542
541
|
@container slotted-stepper (max-width: 30rem) {
|
|
543
|
-
[data-ui
|
|
542
|
+
[data-ui-stepper][data-orientation='horizontal'] [data-part-list] {
|
|
544
543
|
align-items: stretch;
|
|
545
544
|
flex-direction: column;
|
|
546
545
|
}
|
|
547
546
|
|
|
548
|
-
[data-ui
|
|
547
|
+
[data-ui-stepper][data-orientation='horizontal'] [data-part-item] {
|
|
549
548
|
flex: none;
|
|
550
549
|
flex-direction: column;
|
|
551
550
|
padding-block-end: var(--slotted-stepper-step-gap, var(--slotted-space-6, 1rem));
|
|
552
551
|
padding-inline-end: 0;
|
|
553
552
|
}
|
|
554
553
|
|
|
555
|
-
[data-ui
|
|
554
|
+
[data-ui-stepper][data-orientation='horizontal'] [data-part-item]:last-child {
|
|
556
555
|
padding-block-end: 0;
|
|
557
556
|
}
|
|
558
557
|
|
|
559
|
-
[data-ui
|
|
558
|
+
[data-ui-stepper][data-orientation='horizontal'][data-label-placement] [data-part-trigger] {
|
|
560
559
|
align-items: center;
|
|
561
560
|
flex-direction: row;
|
|
562
561
|
inline-size: auto;
|
|
@@ -578,8 +577,7 @@
|
|
|
578
577
|
* adds no weight of its own. Without it the row's own connector geometry
|
|
579
578
|
* survived the reflow and the column drew four-pixel dots down its side.
|
|
580
579
|
*/
|
|
581
|
-
[data-ui
|
|
582
|
-
[data-part='separator'] {
|
|
580
|
+
[data-ui-stepper][data-orientation='horizontal'][data-label-placement] [data-part-separator] {
|
|
583
581
|
block-size: auto;
|
|
584
582
|
flex: none;
|
|
585
583
|
inline-size: var(--_rule);
|
|
@@ -592,34 +590,32 @@
|
|
|
592
590
|
position: absolute;
|
|
593
591
|
}
|
|
594
592
|
|
|
595
|
-
[data-ui
|
|
593
|
+
[data-ui-stepper][data-orientation='horizontal'][data-label-placement] [data-part-panel] {
|
|
596
594
|
margin-inline-start: calc(var(--_marker) + var(--_gap));
|
|
597
595
|
padding-block-start: var(--slotted-stepper-panel-gap, var(--slotted-space-4, 0.5rem));
|
|
598
596
|
}
|
|
599
597
|
}
|
|
600
598
|
|
|
601
|
-
/* ── Forced
|
|
599
|
+
/* ── Forced colors ─────────────────────────────────────────────────────
|
|
602
600
|
*
|
|
603
601
|
* The system replaces every painted surface with the page's own background,
|
|
604
602
|
* which would flatten the four statuses into one outline. Three things need
|
|
605
603
|
* restating: the connector, which is a painted rule; the fill that separates
|
|
606
604
|
* a finished step from a pending one; and the glyph inside it, which keeps
|
|
607
605
|
* its paint through the marker's own `forced-color-adjust` rather than
|
|
608
|
-
* through a system
|
|
606
|
+
* through a system color this family would have to choose.
|
|
609
607
|
*/
|
|
610
608
|
|
|
611
609
|
@media (forced-colors: active) {
|
|
612
|
-
[data-ui
|
|
610
|
+
[data-ui-stepper] [data-part-separator] {
|
|
613
611
|
background-color: GrayText;
|
|
614
612
|
}
|
|
615
613
|
|
|
616
|
-
[data-ui
|
|
614
|
+
[data-ui-stepper] [data-part-separator][data-complete] {
|
|
617
615
|
background-color: Highlight;
|
|
618
616
|
}
|
|
619
617
|
|
|
620
|
-
[data-ui
|
|
621
|
-
:is([data-complete], [data-invalid]):not([data-current])
|
|
622
|
-
[data-part='marker'] {
|
|
618
|
+
[data-ui-stepper] :is([data-complete], [data-invalid]):not([data-current]) [data-part-marker] {
|
|
623
619
|
background-color: Highlight;
|
|
624
620
|
border-color: Highlight;
|
|
625
621
|
color: HighlightText;
|