@slotted/styles 0.1.0-beta.2 → 0.1.0-beta.21
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 +1 -1
- package/src/accordion/accordion.css +10 -10
- package/src/action-bar/action-bar.css +45 -42
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +36 -36
- package/src/alert/alert.css +68 -67
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +452 -314
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +91 -99
- package/src/avatar/avatar.css +71 -41
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +21 -22
- package/src/badge/badge.css +45 -37
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +37 -37
- package/src/button/button.css +149 -68
- package/src/button/button.tokens.json +10 -0
- package/src/button-group/button-group.css +79 -74
- package/src/button-group/button-group.tokens.json +2 -0
- package/src/calendar/calendar.css +133 -103
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +54 -61
- package/src/carousel/carousel.css +150 -161
- package/src/cascader/cascader.css +154 -153
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +258 -248
- package/src/chart/chart.tokens.json +1 -0
- package/src/checkbox/checkbox.css +119 -124
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +81 -85
- package/src/collapsible/collapsible.css +72 -76
- package/src/color-picker/color-picker.css +83 -91
- package/src/column-manager/column-manager.css +106 -114
- package/src/combobox/combobox.css +157 -124
- package/src/combobox/combobox.tokens.json +2 -0
- package/src/command-palette/command-palette.css +103 -90
- package/src/command-palette/command-palette.tokens.json +1 -0
- package/src/container/container.css +24 -24
- package/src/context-menu/context-menu.css +8 -8
- package/src/currency-field/currency-field.css +212 -88
- package/src/currency-field/currency-field.tokens.json +13 -0
- package/src/dashboard-grid/dashboard-grid.css +184 -114
- package/src/data-grid/data-grid.css +535 -470
- package/src/data-grid/data-grid.tokens.json +4 -0
- package/src/data-list/data-list.css +81 -70
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +57 -52
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +75 -57
- package/src/date-picker/date-picker.tokens.json +1 -0
- package/src/date-range-picker/date-range-picker.css +116 -118
- package/src/datetime-field/datetime-field.css +80 -80
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +63 -63
- package/src/datetime-range-picker/datetime-range-picker.css +151 -156
- package/src/description-list/description-list.css +80 -65
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +376 -153
- package/src/dialog/dialog.tokens.json +6 -0
- package/src/divider/divider.css +18 -18
- package/src/drawer/drawer.css +513 -217
- package/src/drawer/drawer.tokens.json +6 -0
- package/src/entity-picker/entity-picker.css +273 -256
- package/src/entity-picker/entity-picker.tokens.json +2 -0
- package/src/event-calendar/event-calendar.css +343 -385
- package/src/field/field.css +74 -78
- package/src/field-group/field-group.css +22 -25
- package/src/filter-bar/filter-bar.css +193 -209
- package/src/form/form.css +34 -24
- package/src/form/form.tokens.json +1 -0
- package/src/fullscreen/fullscreen.css +24 -25
- package/src/grid/grid.css +28 -28
- package/src/highlight/highlight.css +6 -6
- package/src/hover-card/hover-card.css +6 -6
- package/src/icon/icon.css +62 -15
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +39 -39
- package/src/import-export-center/import-export-center.css +135 -156
- package/src/inline/inline.css +27 -27
- package/src/inline-message/inline-message.css +153 -77
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +48 -36
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +36 -15
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +44 -17
- package/src/list/list.tokens.json +4 -0
- package/src/list-item/list-item.css +80 -66
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +56 -59
- package/src/loading-overlay/loading-overlay.css +75 -92
- package/src/markdown/markdown.css +17 -17
- package/src/menu/menu.css +117 -74
- package/src/menu/menu.tokens.json +1 -0
- package/src/menubar/menubar.css +13 -13
- package/src/message/message.css +192 -202
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +41 -42
- package/src/multi-select/multi-select.css +177 -160
- package/src/multi-select/multi-select.tokens.json +1 -0
- package/src/navigation-menu/navigation-menu.css +167 -188
- package/src/notification-center/notification-center.css +140 -148
- package/src/notification-center/notification-center.tokens.json +3 -0
- package/src/number-field/number-field.css +83 -83
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +67 -57
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +39 -23
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +339 -284
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +68 -72
- package/src/popover/popover.css +73 -61
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +169 -113
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +251 -104
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +71 -75
- package/src/radio-group/radio-group.css +98 -103
- package/src/rating/rating.css +136 -132
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +74 -77
- package/src/runtime-properties.mjs +2 -0
- package/src/saved-views/saved-views.css +41 -47
- package/src/scroll-area/scroll-area.css +39 -32
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +254 -97
- package/src/segmented-control/segmented-control.tokens.json +15 -11
- package/src/select/select.css +153 -132
- package/src/select/select.tokens.json +2 -0
- package/src/side-navigation/side-navigation.css +179 -182
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +47 -48
- package/src/slider/slider.css +86 -88
- package/src/sparkline/sparkline.css +62 -40
- 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 +30 -31
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +35 -35
- package/src/stack/stack.css +24 -24
- package/src/stat-card/stat-card.css +380 -241
- package/src/stat-card/stat-card.tokens.json +5 -0
- package/src/status-indicator/status-indicator.css +107 -82
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +58 -62
- package/src/switch/switch.css +86 -92
- package/src/table/table.css +340 -175
- package/src/table/table.tokens.json +6 -0
- package/src/table-of-contents/table-of-contents.css +57 -56
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +322 -289
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +91 -71
- package/src/tag/tag.tokens.json +9 -0
- package/src/tags-input/tags-input.css +147 -82
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +134 -136
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +33 -28
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +74 -69
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +58 -58
- package/src/time-range-picker/time-range-picker.css +128 -133
- package/src/timeline/timeline.css +254 -266
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +115 -98
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +62 -25
- package/src/toggle/toggle.tokens.json +8 -0
- package/src/toggle-group/toggle-group.css +106 -60
- package/src/toggle-group/toggle-group.tokens.json +10 -0
- package/src/toolbar/toolbar.css +30 -35
- package/src/tooltip/tooltip.css +59 -38
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +243 -259
- package/src/tour/tour.css +51 -60
- package/src/transfer/transfer.css +160 -164
- package/src/tree/tree.css +103 -111
- package/src/typography/typography.css +40 -36
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +224 -224
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +185 -197
|
@@ -28,8 +28,10 @@
|
|
|
28
28
|
* here restyles a segment or a day cell. This stylesheet owns the box the
|
|
29
29
|
* positioner measures, the trigger inside the field, the layer, and the list.
|
|
30
30
|
*/
|
|
31
|
-
[data-ui
|
|
31
|
+
[data-ui-datetime-picker][data-part-root] {
|
|
32
32
|
display: block;
|
|
33
|
+
/* In a flex row the item's basis is its content, not the whole row. */
|
|
34
|
+
flex-basis: content;
|
|
33
35
|
/* The anchor the positioner measures is the control, and a block root lets
|
|
34
36
|
the frame take the width the form gave it. */
|
|
35
37
|
inline-size: 100%;
|
|
@@ -41,7 +43,7 @@
|
|
|
41
43
|
* It draws no frame: the `datetime-field` inside it draws its own, and the
|
|
42
44
|
* trigger is handed to that field's `end` slot by the binding.
|
|
43
45
|
*/
|
|
44
|
-
[data-ui
|
|
46
|
+
[data-ui-datetime-picker] [data-part-control] {
|
|
45
47
|
--_icon-size: var(--slotted-control-icon-size-md, 16px);
|
|
46
48
|
--_height: var(--slotted-control-height-md, 34px);
|
|
47
49
|
|
|
@@ -52,12 +54,12 @@
|
|
|
52
54
|
position: relative;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
[data-ui
|
|
57
|
+
[data-ui-datetime-picker][data-part-root][data-size='sm'] [data-part-control] {
|
|
56
58
|
--_icon-size: var(--slotted-control-icon-size-sm, 14px);
|
|
57
59
|
--_height: var(--slotted-control-height-sm, 30px);
|
|
58
60
|
}
|
|
59
61
|
|
|
60
|
-
[data-ui
|
|
62
|
+
[data-ui-datetime-picker][data-part-root][data-size='lg'] [data-part-control] {
|
|
61
63
|
--_icon-size: var(--slotted-control-icon-size-lg, 18px);
|
|
62
64
|
--_height: var(--slotted-control-height-lg, 38px);
|
|
63
65
|
}
|
|
@@ -76,7 +78,7 @@
|
|
|
76
78
|
* `Alt`+`ArrowDown` into `PageDown` before the browser sees it, so the chord
|
|
77
79
|
* cannot be the only way in.
|
|
78
80
|
*/
|
|
79
|
-
[data-ui
|
|
81
|
+
[data-ui-datetime-picker] [data-part-trigger] {
|
|
80
82
|
--slotted-icon-size: var(--_icon-size);
|
|
81
83
|
|
|
82
84
|
align-items: center;
|
|
@@ -121,7 +123,7 @@
|
|
|
121
123
|
|
|
122
124
|
/* The hit area, recovered outside the paint, exactly as every other inner
|
|
123
125
|
control in the library recovers it. */
|
|
124
|
-
[data-ui
|
|
126
|
+
[data-ui-datetime-picker] [data-part-trigger]::after {
|
|
125
127
|
content: '';
|
|
126
128
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
127
129
|
position: absolute;
|
|
@@ -132,25 +134,25 @@
|
|
|
132
134
|
the hit area above grows to 44 pixels around them. Before the field's
|
|
133
135
|
clear it does not reach across it. */
|
|
134
136
|
@media (pointer: coarse) {
|
|
135
|
-
[data-ui
|
|
137
|
+
[data-ui-datetime-picker] [data-part-trigger]::after {
|
|
136
138
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
137
139
|
}
|
|
138
140
|
|
|
139
|
-
[data-ui
|
|
140
|
-
[data-part
|
|
141
|
-
> [data-part
|
|
141
|
+
[data-ui-datetime-picker]
|
|
142
|
+
[data-part-end]:has(+ [data-part-clear]:not([hidden]))
|
|
143
|
+
> [data-part-trigger]::after {
|
|
142
144
|
inset-inline-end: 0;
|
|
143
145
|
}
|
|
144
146
|
}
|
|
145
147
|
|
|
146
|
-
[data-ui
|
|
148
|
+
[data-ui-datetime-picker] [data-part-trigger]:hover:not(:disabled):not([data-disabled]) {
|
|
147
149
|
background-color: var(
|
|
148
150
|
--slotted-datetime-picker-trigger-hover-background,
|
|
149
151
|
var(--slotted-tone-secondary-subtle-hover)
|
|
150
152
|
);
|
|
151
153
|
}
|
|
152
154
|
|
|
153
|
-
[data-ui
|
|
155
|
+
[data-ui-datetime-picker] [data-part-trigger]:active:not(:disabled):not([data-disabled]) {
|
|
154
156
|
background-color: var(
|
|
155
157
|
--slotted-datetime-picker-trigger-active-background,
|
|
156
158
|
var(--slotted-tone-secondary-subtle-active)
|
|
@@ -159,19 +161,19 @@
|
|
|
159
161
|
|
|
160
162
|
/* Its own ring: tabbing from the last segment to the trigger has to move
|
|
161
163
|
something visible, and the frame's ring would sit still. */
|
|
162
|
-
[data-ui
|
|
164
|
+
[data-ui-datetime-picker] [data-part-trigger]:focus-visible {
|
|
163
165
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
164
166
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
165
167
|
}
|
|
166
168
|
|
|
167
|
-
[data-ui
|
|
169
|
+
[data-ui-datetime-picker][data-part-root][data-invalid] {
|
|
168
170
|
--slotted-focus-ring-color: var(
|
|
169
171
|
--slotted-datetime-picker-invalid-focus-ring-color,
|
|
170
172
|
var(--slotted-focus-ring-color-invalid, Highlight)
|
|
171
173
|
);
|
|
172
174
|
}
|
|
173
175
|
|
|
174
|
-
[data-ui
|
|
176
|
+
[data-ui-datetime-picker] [data-part-trigger]:disabled {
|
|
175
177
|
color: var(--slotted-disabled-foreground);
|
|
176
178
|
cursor: not-allowed;
|
|
177
179
|
}
|
|
@@ -182,7 +184,7 @@
|
|
|
182
184
|
* onto. The painted surface is one element in, as every anchored family in
|
|
183
185
|
* the library is built.
|
|
184
186
|
*/
|
|
185
|
-
[data-ui
|
|
187
|
+
[data-ui-datetime-picker][data-part-positioner] {
|
|
186
188
|
/* Only the block inset: the positioner writes `left` and never `right`,
|
|
187
189
|
and `inset-inline-start` would resolve to `right` in a right-to-left
|
|
188
190
|
document and win over the measured value. */
|
|
@@ -206,16 +208,16 @@
|
|
|
206
208
|
translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
207
209
|
}
|
|
208
210
|
|
|
209
|
-
[data-ui
|
|
211
|
+
[data-ui-datetime-picker][data-part-positioner][data-side='top'] {
|
|
210
212
|
translate: 0 var(--_enter-distance);
|
|
211
213
|
}
|
|
212
214
|
|
|
213
215
|
/* A lateral side has no block direction to arrive from, so it only fades. */
|
|
214
|
-
[data-ui
|
|
216
|
+
[data-ui-datetime-picker][data-part-positioner]:is([data-side='left'], [data-side='right']) {
|
|
215
217
|
translate: 0 0;
|
|
216
218
|
}
|
|
217
219
|
|
|
218
|
-
[data-ui
|
|
220
|
+
[data-ui-datetime-picker][data-part-positioner][data-open] {
|
|
219
221
|
opacity: 1;
|
|
220
222
|
translate: 0 0;
|
|
221
223
|
transition: none;
|
|
@@ -229,16 +231,16 @@
|
|
|
229
231
|
* harness, a docs snippet — is simply there, and is photographed where it
|
|
230
232
|
* stands.
|
|
231
233
|
*/
|
|
232
|
-
[data-ui
|
|
234
|
+
[data-ui-datetime-picker][data-part-positioner][data-open][data-positioned] {
|
|
233
235
|
animation: slotted-datetime-picker-enter-down var(--slotted-duration-medium)
|
|
234
236
|
var(--slotted-easing-enter);
|
|
235
237
|
}
|
|
236
238
|
|
|
237
|
-
[data-ui
|
|
239
|
+
[data-ui-datetime-picker][data-part-positioner][data-open][data-positioned][data-side='top'] {
|
|
238
240
|
animation-name: slotted-datetime-picker-enter-up;
|
|
239
241
|
}
|
|
240
242
|
|
|
241
|
-
[data-ui
|
|
243
|
+
[data-ui-datetime-picker][data-part-positioner][data-open][data-positioned]:is(
|
|
242
244
|
[data-side='left'],
|
|
243
245
|
[data-side='right']
|
|
244
246
|
) {
|
|
@@ -267,25 +269,25 @@
|
|
|
267
269
|
|
|
268
270
|
/* Stillness keeps the fade and drops the movement. */
|
|
269
271
|
@media (prefers-reduced-motion: reduce) {
|
|
270
|
-
[data-ui
|
|
271
|
-
[data-ui
|
|
272
|
-
[data-ui
|
|
273
|
-
[data-ui
|
|
272
|
+
[data-ui-datetime-picker][data-part-positioner],
|
|
273
|
+
[data-ui-datetime-picker][data-part-positioner][data-side='top'],
|
|
274
|
+
[data-ui-datetime-picker][data-part-positioner][data-side='left'],
|
|
275
|
+
[data-ui-datetime-picker][data-part-positioner][data-side='right'] {
|
|
274
276
|
translate: 0 0;
|
|
275
277
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
276
278
|
}
|
|
277
279
|
|
|
278
|
-
[data-ui
|
|
279
|
-
[data-ui
|
|
280
|
-
[data-ui
|
|
281
|
-
[data-ui
|
|
280
|
+
[data-ui-datetime-picker][data-part-positioner][data-open][data-positioned],
|
|
281
|
+
[data-ui-datetime-picker][data-part-positioner][data-open][data-positioned][data-side='top'],
|
|
282
|
+
[data-ui-datetime-picker][data-part-positioner][data-open][data-positioned][data-side='left'],
|
|
283
|
+
[data-ui-datetime-picker][data-part-positioner][data-open][data-positioned][data-side='right'] {
|
|
282
284
|
animation-name: slotted-datetime-picker-fade;
|
|
283
285
|
}
|
|
284
286
|
}
|
|
285
287
|
|
|
286
288
|
/* The anchor scrolled out of its own clipper. The panel is still open and
|
|
287
289
|
still belongs to a control the reader can no longer see. */
|
|
288
|
-
[data-ui
|
|
290
|
+
[data-ui-datetime-picker][data-part-positioner][data-detached] {
|
|
289
291
|
visibility: hidden;
|
|
290
292
|
}
|
|
291
293
|
|
|
@@ -301,7 +303,7 @@
|
|
|
301
303
|
* a calendar needs; the two panels wrap instead, which needs no threshold to
|
|
302
304
|
* guess at and cannot be wrong at a width nobody tested.
|
|
303
305
|
*/
|
|
304
|
-
[data-ui
|
|
306
|
+
[data-ui-datetime-picker] [data-part-content] {
|
|
305
307
|
background-color: var(--slotted-datetime-picker-surface, var(--slotted-surface-raised, Canvas));
|
|
306
308
|
border: var(--slotted-border-width-thin, 1px) solid
|
|
307
309
|
var(
|
|
@@ -354,7 +356,7 @@
|
|
|
354
356
|
* The rule under it is what makes this a band rather than a line of text
|
|
355
357
|
* floating over two columns.
|
|
356
358
|
*/
|
|
357
|
-
[data-ui
|
|
359
|
+
[data-ui-datetime-picker] [data-part-head] {
|
|
358
360
|
/**
|
|
359
361
|
* The band renders at the panel's width and contributes nothing to it.
|
|
360
362
|
*
|
|
@@ -413,7 +415,7 @@
|
|
|
413
415
|
* surface's ink and a step of weight, and its digits line up with the list's
|
|
414
416
|
* below it.
|
|
415
417
|
*/
|
|
416
|
-
[data-ui
|
|
418
|
+
[data-ui-datetime-picker] [data-part-head-value] {
|
|
417
419
|
color: var(--slotted-datetime-picker-content-color, var(--slotted-text, CanvasText));
|
|
418
420
|
font-size: var(--slotted-font-size-sm, 13px);
|
|
419
421
|
font-variant-numeric: tabular-nums;
|
|
@@ -430,7 +432,7 @@
|
|
|
430
432
|
* the half they have. It is the family's own answer to a value that is not
|
|
431
433
|
* whole, said where the reader is looking rather than only in the field.
|
|
432
434
|
*/
|
|
433
|
-
[data-ui
|
|
435
|
+
[data-ui-datetime-picker] [data-part-head-value] [data-placeholder] {
|
|
434
436
|
color: var(--slotted-datetime-picker-label-color, var(--slotted-text-muted, GrayText));
|
|
435
437
|
}
|
|
436
438
|
|
|
@@ -452,7 +454,7 @@
|
|
|
452
454
|
* the mark names what it does, and at the control glyph size inside a control
|
|
453
455
|
* it is legible rather than a speck beside a word.
|
|
454
456
|
*/
|
|
455
|
-
[data-ui
|
|
457
|
+
[data-ui-datetime-picker] [data-part-now] {
|
|
456
458
|
align-items: center;
|
|
457
459
|
appearance: none;
|
|
458
460
|
background-color: var(--slotted-datetime-picker-now-background, transparent);
|
|
@@ -491,14 +493,14 @@
|
|
|
491
493
|
* `sm` icon step — takes the muted ink the label does not, so the pair reads
|
|
492
494
|
* as one control with a glyph rather than as two things of equal weight.
|
|
493
495
|
*/
|
|
494
|
-
[data-ui
|
|
496
|
+
[data-ui-datetime-picker] [data-part-now] > [data-ui-icon] {
|
|
495
497
|
/* No system colour: a theme that never loaded should let the mark take the
|
|
496
498
|
label's ink rather than the operating system's own grey, which is the
|
|
497
499
|
rule `fallbacks.test.mjs` holds. */
|
|
498
500
|
color: var(--slotted-datetime-picker-now-icon-color, var(--slotted-text-muted));
|
|
499
501
|
}
|
|
500
502
|
|
|
501
|
-
[data-ui
|
|
503
|
+
[data-ui-datetime-picker] [data-part-now]:hover:not(:disabled):not([data-disabled]) {
|
|
502
504
|
background-color: var(
|
|
503
505
|
--slotted-datetime-picker-now-hover-background,
|
|
504
506
|
var(--slotted-tone-secondary-subtle-hover)
|
|
@@ -509,14 +511,14 @@
|
|
|
509
511
|
);
|
|
510
512
|
}
|
|
511
513
|
|
|
512
|
-
[data-ui
|
|
514
|
+
[data-ui-datetime-picker] [data-part-now]:active:not(:disabled):not([data-disabled]) {
|
|
513
515
|
background-color: var(
|
|
514
516
|
--slotted-datetime-picker-now-active-background,
|
|
515
517
|
var(--slotted-tone-secondary-subtle-active)
|
|
516
518
|
);
|
|
517
519
|
}
|
|
518
520
|
|
|
519
|
-
[data-ui
|
|
521
|
+
[data-ui-datetime-picker] [data-part-now]:focus-visible {
|
|
520
522
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
521
523
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
522
524
|
}
|
|
@@ -527,7 +529,7 @@
|
|
|
527
529
|
* guessing at an industry. What it ships is the row they stand in, at the
|
|
528
530
|
* reading end of the head beside `now`.
|
|
529
531
|
*/
|
|
530
|
-
[data-ui
|
|
532
|
+
[data-ui-datetime-picker] [data-part-presets] {
|
|
531
533
|
align-items: center;
|
|
532
534
|
display: flex;
|
|
533
535
|
flex-wrap: wrap;
|
|
@@ -545,7 +547,7 @@
|
|
|
545
547
|
* setting look like a different component, and what answers the narrow case
|
|
546
548
|
* is `scrollIntoView` on the surface focus lands in.
|
|
547
549
|
*/
|
|
548
|
-
[data-ui
|
|
550
|
+
[data-ui-datetime-picker] [data-part-panels] {
|
|
549
551
|
/**
|
|
550
552
|
* The two columns are told apart by the air between them and by what they
|
|
551
553
|
* hold, not by a rule. A rule would have to be on one inline edge, and the
|
|
@@ -571,7 +573,7 @@
|
|
|
571
573
|
* is the time panel that wraps instead, which is the arrangement this family
|
|
572
574
|
* already draws.
|
|
573
575
|
*/
|
|
574
|
-
[data-ui
|
|
576
|
+
[data-ui-datetime-picker] [data-part-date-panel] {
|
|
575
577
|
flex: 0 0 auto;
|
|
576
578
|
}
|
|
577
579
|
|
|
@@ -587,7 +589,7 @@
|
|
|
587
589
|
* and the column takes it, so the times read as a section rather than as a
|
|
588
590
|
* narrow strip under a wide month.
|
|
589
591
|
*/
|
|
590
|
-
[data-ui
|
|
592
|
+
[data-ui-datetime-picker] [data-part-time-panel] {
|
|
591
593
|
display: flex;
|
|
592
594
|
flex: 1 1 var(--slotted-datetime-picker-time-panel-inline-size, 7rem);
|
|
593
595
|
flex-direction: column;
|
|
@@ -602,7 +604,7 @@
|
|
|
602
604
|
* than truncated: a day of quarter-hours is ninety-six rows and every one of
|
|
603
605
|
* them is choosable.
|
|
604
606
|
*/
|
|
605
|
-
[data-ui
|
|
607
|
+
[data-ui-datetime-picker] [data-part-list] {
|
|
606
608
|
display: flex;
|
|
607
609
|
flex: 1 1 auto;
|
|
608
610
|
flex-direction: column;
|
|
@@ -645,7 +647,7 @@
|
|
|
645
647
|
* say, and repeating it ninety-six times beside a month that already shows it
|
|
646
648
|
* would spend the whole column on one word.
|
|
647
649
|
*/
|
|
648
|
-
[data-ui
|
|
650
|
+
[data-ui-datetime-picker] [data-part-option] {
|
|
649
651
|
align-items: center;
|
|
650
652
|
background-color: transparent;
|
|
651
653
|
border-radius: var(--slotted-datetime-picker-option-radius, var(--slotted-radius-sm, 4px));
|
|
@@ -681,27 +683,27 @@
|
|
|
681
683
|
* down the file its own rule is written. Found by the reviewer at
|
|
682
684
|
* `time-picker`'s visual gate and inherited whole.
|
|
683
685
|
*/
|
|
684
|
-
[data-ui
|
|
685
|
-
[data-part
|
|
686
|
+
[data-ui-datetime-picker]
|
|
687
|
+
[data-part-option]:hover:not([data-disabled]):not([data-selected]):not([data-current]) {
|
|
686
688
|
background-color: var(
|
|
687
689
|
--slotted-datetime-picker-option-hover-background,
|
|
688
690
|
var(--slotted-tone-secondary-subtle-hover)
|
|
689
691
|
);
|
|
690
692
|
}
|
|
691
693
|
|
|
692
|
-
[data-ui
|
|
694
|
+
[data-ui-datetime-picker] [data-part-option][data-current]:not([data-selected]) {
|
|
693
695
|
background-color: var(
|
|
694
696
|
--slotted-datetime-picker-option-current-background,
|
|
695
697
|
var(--slotted-tone-secondary-subtle-active)
|
|
696
698
|
);
|
|
697
699
|
}
|
|
698
700
|
|
|
699
|
-
[data-ui
|
|
701
|
+
[data-ui-datetime-picker] [data-part-option]:focus-visible {
|
|
700
702
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
701
703
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
702
704
|
}
|
|
703
705
|
|
|
704
|
-
[data-ui
|
|
706
|
+
[data-ui-datetime-picker] [data-part-option][data-selected] {
|
|
705
707
|
background-color: var(
|
|
706
708
|
--slotted-datetime-picker-option-selected-background,
|
|
707
709
|
var(--slotted-tone-accent-solid)
|
|
@@ -715,7 +717,7 @@
|
|
|
715
717
|
/* The chosen row still answers the pointer — one step along its own tone,
|
|
716
718
|
rather than the grey every other row takes. A row that swapped colour
|
|
717
719
|
family under the pointer read as a different row. */
|
|
718
|
-
[data-ui
|
|
720
|
+
[data-ui-datetime-picker] [data-part-option][data-selected]:hover:not([data-disabled]) {
|
|
719
721
|
background-color: var(
|
|
720
722
|
--slotted-datetime-picker-option-selected-hover-background,
|
|
721
723
|
var(--slotted-tone-accent-solid-hover)
|
|
@@ -728,7 +730,7 @@
|
|
|
728
730
|
* cannot infer — and it is muted to the colour the theme measures rather than
|
|
729
731
|
* faded by opacity, so it stays readable.
|
|
730
732
|
*/
|
|
731
|
-
[data-ui
|
|
733
|
+
[data-ui-datetime-picker] [data-part-option][data-disabled] {
|
|
732
734
|
background-color: transparent;
|
|
733
735
|
color: var(--slotted-disabled-foreground);
|
|
734
736
|
cursor: not-allowed;
|
|
@@ -740,7 +742,7 @@
|
|
|
740
742
|
* step. It is a sentence rather than an empty box, and it is the state that
|
|
741
743
|
* makes the list worth recomputing as the reader moves through the month.
|
|
742
744
|
*/
|
|
743
|
-
[data-ui
|
|
745
|
+
[data-ui-datetime-picker] [data-part-empty] {
|
|
744
746
|
align-items: center;
|
|
745
747
|
color: var(--slotted-datetime-picker-label-color, var(--slotted-text-muted, GrayText));
|
|
746
748
|
display: flex;
|
|
@@ -752,7 +754,7 @@
|
|
|
752
754
|
text-wrap: balance;
|
|
753
755
|
}
|
|
754
756
|
|
|
755
|
-
[data-ui
|
|
757
|
+
[data-ui-datetime-picker] [data-part-footer] {
|
|
756
758
|
/* The band's rule, for the same reason: a consumer's two buttons are not
|
|
757
759
|
what decides how wide a month is drawn — and `border-box` with it, or the
|
|
758
760
|
padding pushes the last button past the panel's edge. */
|
|
@@ -783,7 +785,7 @@
|
|
|
783
785
|
* ask, and the question really is how much screen there is.
|
|
784
786
|
*/
|
|
785
787
|
@media (max-width: 480px) and (pointer: coarse) {
|
|
786
|
-
[data-ui
|
|
788
|
+
[data-ui-datetime-picker][data-part-positioner][data-presentation='sheet'] {
|
|
787
789
|
/* The positioner's own measurement is overridden here on purpose: a sheet
|
|
788
790
|
is not placed against an anchor, it is placed against the screen. */
|
|
789
791
|
inset: auto 0 0;
|
|
@@ -791,12 +793,11 @@
|
|
|
791
793
|
translate: 0 var(--slotted-space-9, 2rem);
|
|
792
794
|
}
|
|
793
795
|
|
|
794
|
-
[data-ui
|
|
796
|
+
[data-ui-datetime-picker][data-part-positioner][data-presentation='sheet'][data-open] {
|
|
795
797
|
translate: 0 0;
|
|
796
798
|
}
|
|
797
799
|
|
|
798
|
-
[data-ui
|
|
799
|
-
[data-part='content'] {
|
|
800
|
+
[data-ui-datetime-picker][data-part-positioner][data-presentation='sheet'] [data-part-content] {
|
|
800
801
|
border-end-end-radius: 0;
|
|
801
802
|
border-end-start-radius: 0;
|
|
802
803
|
border-inline: 0;
|
|
@@ -813,8 +814,7 @@
|
|
|
813
814
|
/* Stacked under a month, the list gets a shorter run: the reader scrolls
|
|
814
815
|
the sheet to reach it, and a full-height list would put the footer out of
|
|
815
816
|
reach behind ninety-six rows. */
|
|
816
|
-
[data-ui
|
|
817
|
-
[data-part='list'] {
|
|
817
|
+
[data-ui-datetime-picker][data-part-positioner][data-presentation='sheet'] [data-part-list] {
|
|
818
818
|
max-block-size: calc(var(--_row-pitch) * 5.5);
|
|
819
819
|
}
|
|
820
820
|
}
|
|
@@ -823,13 +823,13 @@
|
|
|
823
823
|
/* The chosen row and the highlighted row both lose their painted grounds,
|
|
824
824
|
so each says what it is with a system pair the operating system
|
|
825
825
|
guarantees legible together. */
|
|
826
|
-
[data-ui
|
|
826
|
+
[data-ui-datetime-picker] [data-part-option][data-selected] {
|
|
827
827
|
background-color: Highlight;
|
|
828
828
|
color: HighlightText;
|
|
829
829
|
forced-color-adjust: none;
|
|
830
830
|
}
|
|
831
831
|
|
|
832
|
-
[data-ui
|
|
832
|
+
[data-ui-datetime-picker] [data-part-option][data-current]:not([data-selected]) {
|
|
833
833
|
outline: var(--slotted-focus-ring-width, 2px) solid Highlight;
|
|
834
834
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
835
835
|
}
|