@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
|
@@ -39,8 +39,10 @@
|
|
|
39
39
|
* that end, and choosing one end moves to the other — the end list
|
|
40
40
|
* appears already striking what the chosen start refuses.
|
|
41
41
|
*/
|
|
42
|
-
[data-ui
|
|
42
|
+
[data-ui-datetime-range-picker][data-part-root] {
|
|
43
43
|
display: block;
|
|
44
|
+
/* In a flex row the item's basis is its content, not the whole row. */
|
|
45
|
+
flex-basis: content;
|
|
44
46
|
/* The anchor the positioner measures is the control, and a block root
|
|
45
47
|
lets the frame take the width the form gave it. */
|
|
46
48
|
inline-size: 100%;
|
|
@@ -55,7 +57,7 @@
|
|
|
55
57
|
* and two of them broke the frame into two lines in any form column
|
|
56
58
|
* narrower than they are, against the height every control shares.
|
|
57
59
|
*/
|
|
58
|
-
[data-ui
|
|
60
|
+
[data-ui-datetime-range-picker] [data-part-control] {
|
|
59
61
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
60
62
|
--_height: var(--slotted-control-height-md, 34px);
|
|
61
63
|
--_padding-inline: var(--slotted-control-padding-inline-md, 13px);
|
|
@@ -105,7 +107,7 @@
|
|
|
105
107
|
box-shadow var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);
|
|
106
108
|
}
|
|
107
109
|
|
|
108
|
-
[data-ui
|
|
110
|
+
[data-ui-datetime-range-picker][data-part-root][data-size='sm'] [data-part-control] {
|
|
109
111
|
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
110
112
|
--_height: var(--slotted-control-height-sm, 30px);
|
|
111
113
|
--_padding-inline: var(--slotted-control-padding-inline-sm, 11px);
|
|
@@ -113,7 +115,7 @@
|
|
|
113
115
|
--_icon-size: var(--slotted-control-icon-size-sm, 14px);
|
|
114
116
|
}
|
|
115
117
|
|
|
116
|
-
[data-ui
|
|
118
|
+
[data-ui-datetime-range-picker][data-part-root][data-size='lg'] [data-part-control] {
|
|
117
119
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
118
120
|
--_height: var(--slotted-control-height-lg, 38px);
|
|
119
121
|
--_padding-inline: var(--slotted-control-padding-inline-lg, 15px);
|
|
@@ -125,7 +127,7 @@
|
|
|
125
127
|
*
|
|
126
128
|
* The three steps `text-field` set, through the field's own variant tokens.
|
|
127
129
|
*/
|
|
128
|
-
[data-ui
|
|
130
|
+
[data-ui-datetime-range-picker][data-part-root][data-variant='subtle'] [data-part-control] {
|
|
129
131
|
background-color: var(
|
|
130
132
|
--slotted-datetime-range-picker-subtle-background,
|
|
131
133
|
var(--slotted-surface-sunken, Canvas)
|
|
@@ -136,7 +138,7 @@
|
|
|
136
138
|
);
|
|
137
139
|
}
|
|
138
140
|
|
|
139
|
-
[data-ui
|
|
141
|
+
[data-ui-datetime-range-picker][data-part-root][data-variant='plain'] [data-part-control] {
|
|
140
142
|
background-color: transparent;
|
|
141
143
|
border-color: transparent;
|
|
142
144
|
border-radius: var(--slotted-radius-none, 0px);
|
|
@@ -151,7 +153,7 @@
|
|
|
151
153
|
* into `PageDown` before the browser sees it, so a chord cannot be the only
|
|
152
154
|
* way in.
|
|
153
155
|
*/
|
|
154
|
-
[data-ui
|
|
156
|
+
[data-ui-datetime-range-picker] [data-part-trigger] {
|
|
155
157
|
align-items: center;
|
|
156
158
|
appearance: none;
|
|
157
159
|
background-color: transparent;
|
|
@@ -177,14 +179,14 @@
|
|
|
177
179
|
-webkit-tap-highlight-color: transparent;
|
|
178
180
|
}
|
|
179
181
|
|
|
180
|
-
[data-ui
|
|
182
|
+
[data-ui-datetime-range-picker] [data-part-control]:has(> [data-part-clear]) {
|
|
181
183
|
--_actions: 2;
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
/* The value in words, one line, cut where it does not fit: the trigger's
|
|
185
187
|
name carries it whole, so the ellipsis removes nothing a reader cannot
|
|
186
188
|
hear. Tabular figures, so two ranges in a form line up. */
|
|
187
|
-
[data-ui
|
|
189
|
+
[data-ui-datetime-range-picker] [data-part-summary] {
|
|
188
190
|
flex: 1 1 auto;
|
|
189
191
|
font-variant-numeric: tabular-nums;
|
|
190
192
|
min-inline-size: 0;
|
|
@@ -194,7 +196,7 @@
|
|
|
194
196
|
white-space: nowrap;
|
|
195
197
|
}
|
|
196
198
|
|
|
197
|
-
[data-ui
|
|
199
|
+
[data-ui-datetime-range-picker] [data-part-summary][data-placeholder] {
|
|
198
200
|
color: var(
|
|
199
201
|
--slotted-datetime-range-picker-placeholder-color,
|
|
200
202
|
var(--slotted-text-muted, GrayText)
|
|
@@ -207,14 +209,14 @@
|
|
|
207
209
|
open. */
|
|
208
210
|
/* The frame draws the ring for the trigger; the browser's own ring on the
|
|
209
211
|
trigger would be a second one, inside the frame and over its edge. */
|
|
210
|
-
[data-ui
|
|
212
|
+
[data-ui-datetime-range-picker] [data-part-trigger]:focus-visible {
|
|
211
213
|
outline: none;
|
|
212
214
|
}
|
|
213
215
|
|
|
214
|
-
[data-ui
|
|
216
|
+
[data-ui-datetime-range-picker] [data-part-trigger] > [data-ui-icon] {
|
|
215
217
|
--slotted-icon-size: var(--_icon-size);
|
|
216
218
|
|
|
217
|
-
/* No system-
|
|
219
|
+
/* No system-color fallback on a decoration: unthemed, it takes the
|
|
218
220
|
trigger's ink rather than shouts. */
|
|
219
221
|
color: var(--slotted-datetime-range-picker-action-color, var(--slotted-text-muted));
|
|
220
222
|
inset-block-start: 50%;
|
|
@@ -223,7 +225,7 @@
|
|
|
223
225
|
translate: 0 -50%;
|
|
224
226
|
}
|
|
225
227
|
|
|
226
|
-
[data-ui
|
|
228
|
+
[data-ui-datetime-range-picker] [data-part-trigger]:disabled {
|
|
227
229
|
cursor: not-allowed;
|
|
228
230
|
}
|
|
229
231
|
|
|
@@ -233,7 +235,7 @@
|
|
|
233
235
|
* stands. Its own ring: tabbing from the trigger to it has to move
|
|
234
236
|
* something visible, and the frame's ring would sit still.
|
|
235
237
|
*/
|
|
236
|
-
[data-ui
|
|
238
|
+
[data-ui-datetime-range-picker] [data-part-clear] {
|
|
237
239
|
--slotted-icon-size: var(--_icon-size);
|
|
238
240
|
|
|
239
241
|
align-items: center;
|
|
@@ -263,7 +265,7 @@
|
|
|
263
265
|
}
|
|
264
266
|
|
|
265
267
|
/* The hit area, recovered outside the paint, as every inner control does. */
|
|
266
|
-
[data-ui
|
|
268
|
+
[data-ui-datetime-range-picker] [data-part-clear]::after {
|
|
267
269
|
content: '';
|
|
268
270
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
269
271
|
position: absolute;
|
|
@@ -274,32 +276,32 @@
|
|
|
274
276
|
the hit area above grows to 44 pixels around them. It does not reach into
|
|
275
277
|
the calendar's lane after it, which is the trigger's to answer. */
|
|
276
278
|
@media (pointer: coarse) {
|
|
277
|
-
[data-ui
|
|
279
|
+
[data-ui-datetime-range-picker] [data-part-clear]::after {
|
|
278
280
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
279
281
|
inset-inline-end: 0;
|
|
280
282
|
}
|
|
281
283
|
}
|
|
282
284
|
|
|
283
|
-
[data-ui
|
|
285
|
+
[data-ui-datetime-range-picker] [data-part-clear]:hover:not(:disabled):not([data-disabled]) {
|
|
284
286
|
background-color: var(
|
|
285
287
|
--slotted-datetime-range-picker-action-hover-background,
|
|
286
288
|
var(--slotted-tone-secondary-subtle-hover)
|
|
287
289
|
);
|
|
288
290
|
}
|
|
289
291
|
|
|
290
|
-
[data-ui
|
|
292
|
+
[data-ui-datetime-range-picker] [data-part-clear]:active:not(:disabled):not([data-disabled]) {
|
|
291
293
|
background-color: var(
|
|
292
294
|
--slotted-datetime-range-picker-action-active-background,
|
|
293
295
|
var(--slotted-tone-secondary-subtle-active)
|
|
294
296
|
);
|
|
295
297
|
}
|
|
296
298
|
|
|
297
|
-
[data-ui
|
|
299
|
+
[data-ui-datetime-range-picker] [data-part-clear]:focus-visible {
|
|
298
300
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
299
301
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
300
302
|
}
|
|
301
303
|
|
|
302
|
-
[data-ui
|
|
304
|
+
[data-ui-datetime-range-picker] [data-part-clear]:disabled {
|
|
303
305
|
color: var(--slotted-disabled-foreground);
|
|
304
306
|
cursor: not-allowed;
|
|
305
307
|
}
|
|
@@ -310,30 +312,30 @@
|
|
|
310
312
|
* one it can meet, which is the order `STATE_PRECEDENCE` sets.
|
|
311
313
|
*/
|
|
312
314
|
|
|
313
|
-
[data-ui
|
|
315
|
+
[data-ui-datetime-range-picker][data-part-root]:not([data-disabled]):not([data-readonly]):not(
|
|
314
316
|
[data-invalid]
|
|
315
317
|
)
|
|
316
|
-
[data-part
|
|
318
|
+
[data-part-control]:hover {
|
|
317
319
|
border-color: var(
|
|
318
320
|
--slotted-datetime-range-picker-hover-border-color,
|
|
319
321
|
var(--slotted-tone-accent-border)
|
|
320
322
|
);
|
|
321
323
|
}
|
|
322
324
|
|
|
323
|
-
[data-ui
|
|
324
|
-
[data-
|
|
325
|
-
):not([data-
|
|
326
|
-
[data-part
|
|
325
|
+
[data-ui-datetime-range-picker][data-part-root][data-variant='subtle']:not([data-disabled]):not(
|
|
326
|
+
[data-readonly]
|
|
327
|
+
):not([data-invalid])
|
|
328
|
+
[data-part-control]:hover {
|
|
327
329
|
background-color: var(
|
|
328
330
|
--slotted-datetime-range-picker-subtle-hover-background,
|
|
329
331
|
var(--slotted-tone-secondary-subtle-hover)
|
|
330
332
|
);
|
|
331
333
|
}
|
|
332
334
|
|
|
333
|
-
[data-ui
|
|
334
|
-
[data-
|
|
335
|
-
):not([data-
|
|
336
|
-
[data-part
|
|
335
|
+
[data-ui-datetime-range-picker][data-part-root][data-variant='plain']:not([data-disabled]):not(
|
|
336
|
+
[data-readonly]
|
|
337
|
+
):not([data-invalid])
|
|
338
|
+
[data-part-control]:hover {
|
|
337
339
|
background-color: var(
|
|
338
340
|
--slotted-datetime-range-picker-plain-hover-background,
|
|
339
341
|
var(--slotted-tone-secondary-subtle-hover)
|
|
@@ -343,8 +345,7 @@
|
|
|
343
345
|
|
|
344
346
|
/* The trigger is the only thing in the frame that takes focus, apart from
|
|
345
347
|
the clear, which draws its own ring; the frame's ring is drawn for it. */
|
|
346
|
-
[data-ui
|
|
347
|
-
[data-part='control']:has(> [data-part='trigger']:focus-visible) {
|
|
348
|
+
[data-ui-datetime-range-picker] [data-part-control]:has(> [data-part-trigger]:focus-visible) {
|
|
348
349
|
box-shadow: var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
|
|
349
350
|
var(--slotted-focus-ring-color, Highlight);
|
|
350
351
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
@@ -353,15 +354,15 @@
|
|
|
353
354
|
|
|
354
355
|
/* The ring of a control whose box is not its own is drawn inside that box,
|
|
355
356
|
and there is no lift — the `plain` rule of `plain-variant.test.mjs`. */
|
|
356
|
-
[data-ui
|
|
357
|
-
[data-part
|
|
357
|
+
[data-ui-datetime-range-picker][data-part-root][data-variant='plain']
|
|
358
|
+
[data-part-control]:has(> [data-part-trigger]:focus-visible) {
|
|
358
359
|
box-shadow: none;
|
|
359
360
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
360
361
|
}
|
|
361
362
|
|
|
362
363
|
/* Invalid outranks hover and is written after it. The ring is retargeted
|
|
363
364
|
rather than repainted, so every ring in the frame moves at once. */
|
|
364
|
-
[data-ui
|
|
365
|
+
[data-ui-datetime-range-picker][data-part-root][data-invalid] [data-part-control] {
|
|
365
366
|
--slotted-focus-ring-color: var(
|
|
366
367
|
--slotted-datetime-range-picker-invalid-focus-ring-color,
|
|
367
368
|
var(--slotted-focus-ring-color-invalid, Highlight)
|
|
@@ -381,7 +382,7 @@
|
|
|
381
382
|
var(--slotted-tone-danger-border)
|
|
382
383
|
);
|
|
383
384
|
/*
|
|
384
|
-
* Width as well as
|
|
385
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
385
386
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
386
387
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
387
388
|
* takes the resting lift's place.
|
|
@@ -389,16 +390,16 @@
|
|
|
389
390
|
box-shadow: var(--_invalid-edge);
|
|
390
391
|
}
|
|
391
392
|
|
|
392
|
-
[data-ui
|
|
393
|
-
[data-part
|
|
393
|
+
[data-ui-datetime-range-picker][data-invalid]
|
|
394
|
+
[data-part-control]:has(> [data-part-trigger]:focus-visible) {
|
|
394
395
|
box-shadow:
|
|
395
396
|
var(--_invalid-edge),
|
|
396
397
|
var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
|
|
397
398
|
var(--slotted-focus-ring-color, Highlight);
|
|
398
399
|
}
|
|
399
400
|
|
|
400
|
-
[data-ui
|
|
401
|
-
[data-part
|
|
401
|
+
[data-ui-datetime-range-picker][data-part-root][data-variant='plain'][data-invalid]
|
|
402
|
+
[data-part-control]:has(> [data-part-trigger]:focus-visible) {
|
|
402
403
|
/* The ring lies inside the box here, over the border and an edge as wide as
|
|
403
404
|
it; the edge reaches past the ring. */
|
|
404
405
|
box-shadow: inset 0 0 0
|
|
@@ -409,25 +410,25 @@
|
|
|
409
410
|
}
|
|
410
411
|
|
|
411
412
|
/*
|
|
412
|
-
* Forced
|
|
413
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
413
414
|
* width comes back as an outline inside the border, and a focused invalid
|
|
414
415
|
* control draws its ring double, which a valid ring is not.
|
|
415
416
|
*/
|
|
416
417
|
@media (forced-colors: active) {
|
|
417
|
-
[data-ui
|
|
418
|
+
[data-ui-datetime-range-picker][data-part-root][data-invalid] [data-part-control] {
|
|
418
419
|
outline: var(--_invalid-edge-width) solid CanvasText;
|
|
419
420
|
outline-offset: calc(-1 * (var(--_border-width) + var(--_invalid-edge-width)));
|
|
420
421
|
}
|
|
421
422
|
|
|
422
|
-
[data-ui
|
|
423
|
-
[data-part
|
|
423
|
+
[data-ui-datetime-range-picker][data-invalid]
|
|
424
|
+
[data-part-control]:has(> [data-part-trigger]:focus-visible) {
|
|
424
425
|
outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
|
|
425
426
|
var(--slotted-focus-ring-color, Highlight);
|
|
426
427
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
427
428
|
}
|
|
428
429
|
|
|
429
|
-
[data-ui
|
|
430
|
-
[data-part
|
|
430
|
+
[data-ui-datetime-range-picker][data-part-root][data-variant='plain'][data-invalid]
|
|
431
|
+
[data-part-control]:has(> [data-part-trigger]:focus-visible) {
|
|
431
432
|
outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
|
|
432
433
|
var(--slotted-focus-ring-color, Highlight);
|
|
433
434
|
outline-offset: calc(
|
|
@@ -438,7 +439,7 @@
|
|
|
438
439
|
|
|
439
440
|
/* Read-only stays focusable, readable and copyable, and must not be
|
|
440
441
|
mistakable for disabled: the ground says "not yours to change". */
|
|
441
|
-
[data-ui
|
|
442
|
+
[data-ui-datetime-range-picker][data-part-root][data-readonly] [data-part-control] {
|
|
442
443
|
background-color: var(
|
|
443
444
|
--slotted-datetime-range-picker-readonly-background,
|
|
444
445
|
var(--slotted-tone-secondary-subtle-hover)
|
|
@@ -446,8 +447,8 @@
|
|
|
446
447
|
cursor: default;
|
|
447
448
|
}
|
|
448
449
|
|
|
449
|
-
/* Muted to the
|
|
450
|
-
[data-ui
|
|
450
|
+
/* Muted to the color the theme measures rather than faded by opacity. */
|
|
451
|
+
[data-ui-datetime-range-picker][data-part-root][data-disabled] [data-part-control] {
|
|
451
452
|
background-color: var(
|
|
452
453
|
--slotted-datetime-range-picker-disabled-background,
|
|
453
454
|
var(--slotted-disabled-background)
|
|
@@ -461,9 +462,9 @@
|
|
|
461
462
|
cursor: not-allowed;
|
|
462
463
|
}
|
|
463
464
|
|
|
464
|
-
[data-ui
|
|
465
|
-
[data-part
|
|
466
|
-
> [data-ui
|
|
465
|
+
[data-ui-datetime-range-picker][data-part-root][data-disabled]
|
|
466
|
+
[data-part-trigger]
|
|
467
|
+
> [data-ui-icon] {
|
|
467
468
|
color: var(--slotted-disabled-foreground);
|
|
468
469
|
}
|
|
469
470
|
|
|
@@ -472,7 +473,7 @@
|
|
|
472
473
|
* What `packages/core/src/positioner` writes `position`, `left` and `top`
|
|
473
474
|
* onto. The painted surface is one element in, as every overlay is built.
|
|
474
475
|
*/
|
|
475
|
-
[data-ui
|
|
476
|
+
[data-ui-datetime-range-picker][data-part-positioner] {
|
|
476
477
|
/* Only the block inset: the positioner writes `left` and never `right`,
|
|
477
478
|
and `inset-inline-start` would resolve to `right` in a right-to-left
|
|
478
479
|
document and win over the measured value. */
|
|
@@ -494,18 +495,18 @@
|
|
|
494
495
|
translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
495
496
|
}
|
|
496
497
|
|
|
497
|
-
[data-ui
|
|
498
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-side='top'] {
|
|
498
499
|
translate: 0 var(--_enter-distance);
|
|
499
500
|
}
|
|
500
501
|
|
|
501
|
-
[data-ui
|
|
502
|
+
[data-ui-datetime-range-picker][data-part-positioner]:is(
|
|
502
503
|
[data-side='left'],
|
|
503
504
|
[data-side='right']
|
|
504
505
|
) {
|
|
505
506
|
translate: 0 0;
|
|
506
507
|
}
|
|
507
508
|
|
|
508
|
-
[data-ui
|
|
509
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-open] {
|
|
509
510
|
opacity: 1;
|
|
510
511
|
translate: 0 0;
|
|
511
512
|
transition: none;
|
|
@@ -513,16 +514,16 @@
|
|
|
513
514
|
|
|
514
515
|
/* The entrance is a keyframe animation and not a transition, for the reason
|
|
515
516
|
`select` records: only a layer the positioner placed arrives. */
|
|
516
|
-
[data-ui
|
|
517
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-open][data-positioned] {
|
|
517
518
|
animation: slotted-datetime-range-picker-enter-down var(--slotted-duration-medium)
|
|
518
519
|
var(--slotted-easing-enter);
|
|
519
520
|
}
|
|
520
521
|
|
|
521
|
-
[data-ui
|
|
522
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-open][data-positioned][data-side='top'] {
|
|
522
523
|
animation-name: slotted-datetime-range-picker-enter-up;
|
|
523
524
|
}
|
|
524
525
|
|
|
525
|
-
[data-ui
|
|
526
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-open][data-positioned]:is(
|
|
526
527
|
[data-side='left'],
|
|
527
528
|
[data-side='right']
|
|
528
529
|
) {
|
|
@@ -551,24 +552,24 @@
|
|
|
551
552
|
|
|
552
553
|
/* Stillness keeps the fade and drops the movement. */
|
|
553
554
|
@media (prefers-reduced-motion: reduce) {
|
|
554
|
-
[data-ui
|
|
555
|
-
[data-ui
|
|
556
|
-
[data-ui
|
|
557
|
-
[data-ui
|
|
555
|
+
[data-ui-datetime-range-picker][data-part-positioner],
|
|
556
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-side='top'],
|
|
557
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-side='left'],
|
|
558
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-side='right'] {
|
|
558
559
|
translate: 0 0;
|
|
559
560
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
560
561
|
}
|
|
561
562
|
|
|
562
|
-
[data-ui
|
|
563
|
-
[data-ui
|
|
564
|
-
[data-ui
|
|
565
|
-
[data-ui
|
|
563
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-open][data-positioned],
|
|
564
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-open][data-positioned][data-side='top'],
|
|
565
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-open][data-positioned][data-side='left'],
|
|
566
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-open][data-positioned][data-side='right'] {
|
|
566
567
|
animation-name: slotted-datetime-range-picker-fade;
|
|
567
568
|
}
|
|
568
569
|
}
|
|
569
570
|
|
|
570
571
|
/* The anchor scrolled out of its own clipper. */
|
|
571
|
-
[data-ui
|
|
572
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-detached] {
|
|
572
573
|
visibility: hidden;
|
|
573
574
|
}
|
|
574
575
|
|
|
@@ -579,7 +580,7 @@
|
|
|
579
580
|
* `auto` track takes the calendar's own width as its floor, and the cap
|
|
580
581
|
* below would then cap a box the track had already overflowed.
|
|
581
582
|
*/
|
|
582
|
-
[data-ui
|
|
583
|
+
[data-ui-datetime-range-picker] [data-part-content] {
|
|
583
584
|
background-color: var(
|
|
584
585
|
--slotted-datetime-range-picker-surface,
|
|
585
586
|
var(--slotted-surface-raised, Canvas)
|
|
@@ -635,7 +636,7 @@
|
|
|
635
636
|
* what to do next. It renders at the panel's width and contributes nothing
|
|
636
637
|
* to it, by the pair `datetime-picker` records.
|
|
637
638
|
*/
|
|
638
|
-
[data-ui
|
|
639
|
+
[data-ui-datetime-range-picker] [data-part-head] {
|
|
639
640
|
box-sizing: border-box;
|
|
640
641
|
inline-size: 0;
|
|
641
642
|
min-inline-size: 100%;
|
|
@@ -650,30 +651,30 @@
|
|
|
650
651
|
row-gap: var(--slotted-space-2, 0.25rem);
|
|
651
652
|
}
|
|
652
653
|
|
|
653
|
-
[data-ui
|
|
654
|
+
[data-ui-datetime-range-picker] [data-part-tabs] {
|
|
654
655
|
grid-area: tabs;
|
|
655
656
|
}
|
|
656
657
|
|
|
657
|
-
[data-ui
|
|
658
|
+
[data-ui-datetime-range-picker] [data-part-field] {
|
|
658
659
|
grid-area: field;
|
|
659
660
|
}
|
|
660
661
|
|
|
661
|
-
[data-ui
|
|
662
|
+
[data-ui-datetime-range-picker] [data-part-head] > [data-part-now] {
|
|
662
663
|
align-self: center;
|
|
663
664
|
grid-area: now;
|
|
664
665
|
}
|
|
665
666
|
|
|
666
|
-
[data-ui
|
|
667
|
+
[data-ui-datetime-range-picker] [data-part-hint] {
|
|
667
668
|
align-self: center;
|
|
668
669
|
grid-area: hint;
|
|
669
670
|
}
|
|
670
671
|
|
|
671
|
-
[data-ui
|
|
672
|
+
[data-ui-datetime-range-picker] [data-part-length] {
|
|
672
673
|
align-self: center;
|
|
673
674
|
grid-area: length;
|
|
674
675
|
}
|
|
675
676
|
|
|
676
|
-
[data-ui
|
|
677
|
+
[data-ui-datetime-range-picker] [data-part-limit] {
|
|
677
678
|
grid-area: limit;
|
|
678
679
|
}
|
|
679
680
|
|
|
@@ -685,7 +686,7 @@
|
|
|
685
686
|
* The row is the whole width so the two are the same size whatever their
|
|
686
687
|
* values, and a thumb finds them without aiming.
|
|
687
688
|
*/
|
|
688
|
-
[data-ui
|
|
689
|
+
[data-ui-datetime-range-picker] [data-part-tabs] {
|
|
689
690
|
border-block-end: var(--slotted-border-width-thin, 1px) solid
|
|
690
691
|
var(
|
|
691
692
|
--slotted-datetime-range-picker-content-border-color,
|
|
@@ -696,7 +697,7 @@
|
|
|
696
697
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
697
698
|
}
|
|
698
699
|
|
|
699
|
-
[data-ui
|
|
700
|
+
[data-ui-datetime-range-picker] [data-part-tab] {
|
|
700
701
|
appearance: none;
|
|
701
702
|
background-color: transparent;
|
|
702
703
|
border: 0;
|
|
@@ -726,7 +727,7 @@
|
|
|
726
727
|
-webkit-tap-highlight-color: transparent;
|
|
727
728
|
}
|
|
728
729
|
|
|
729
|
-
[data-ui
|
|
730
|
+
[data-ui-datetime-range-picker] [data-part-tab]::after {
|
|
730
731
|
background-color: var(
|
|
731
732
|
--slotted-datetime-range-picker-current-color,
|
|
732
733
|
var(--slotted-tone-accent-solid)
|
|
@@ -745,30 +746,30 @@
|
|
|
745
746
|
var(--slotted-control-transition-easing);
|
|
746
747
|
}
|
|
747
748
|
|
|
748
|
-
[data-ui
|
|
749
|
+
[data-ui-datetime-range-picker] [data-part-tab][data-current]::after {
|
|
749
750
|
opacity: 1;
|
|
750
751
|
}
|
|
751
752
|
|
|
752
|
-
[data-ui
|
|
753
|
+
[data-ui-datetime-range-picker] [data-part-tab]:hover:not(:disabled):not([data-current]) {
|
|
753
754
|
background-color: var(
|
|
754
755
|
--slotted-datetime-range-picker-option-hover-background,
|
|
755
756
|
var(--slotted-tone-secondary-subtle-hover)
|
|
756
757
|
);
|
|
757
758
|
}
|
|
758
759
|
|
|
759
|
-
[data-ui
|
|
760
|
+
[data-ui-datetime-range-picker] [data-part-tab]:focus-visible {
|
|
760
761
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
761
762
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
762
763
|
}
|
|
763
764
|
|
|
764
|
-
[data-ui
|
|
765
|
+
[data-ui-datetime-range-picker] [data-part-tab]:disabled {
|
|
765
766
|
color: var(--slotted-disabled-foreground);
|
|
766
767
|
cursor: not-allowed;
|
|
767
768
|
}
|
|
768
769
|
|
|
769
770
|
/* The label, in the muted ink for both ends alike: which end is current
|
|
770
771
|
is said once, by the underline. */
|
|
771
|
-
[data-ui
|
|
772
|
+
[data-ui-datetime-range-picker] [data-part-tab-label] {
|
|
772
773
|
color: var(--slotted-datetime-range-picker-label-color, var(--slotted-text-muted, GrayText));
|
|
773
774
|
font-size: var(--slotted-font-size-xs, 11px);
|
|
774
775
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
@@ -777,7 +778,7 @@
|
|
|
777
778
|
white-space: nowrap;
|
|
778
779
|
}
|
|
779
780
|
|
|
780
|
-
[data-ui
|
|
781
|
+
[data-ui-datetime-range-picker] [data-part-tab-value] {
|
|
781
782
|
font-size: var(--slotted-font-size-sm, 13px);
|
|
782
783
|
font-variant-numeric: tabular-nums;
|
|
783
784
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
@@ -787,7 +788,7 @@
|
|
|
787
788
|
white-space: nowrap;
|
|
788
789
|
}
|
|
789
790
|
|
|
790
|
-
[data-ui
|
|
791
|
+
[data-ui-datetime-range-picker] [data-part-tab][data-placeholder] [data-part-tab-value] {
|
|
791
792
|
color: var(--slotted-datetime-range-picker-label-color, var(--slotted-text-muted, GrayText));
|
|
792
793
|
font-weight: var(--slotted-font-weight-regular, 400);
|
|
793
794
|
}
|
|
@@ -801,7 +802,7 @@
|
|
|
801
802
|
* `now` sits at the reading end of the same row. On a coarse pointer the
|
|
802
803
|
* row is `now` alone: a segment is a spinbutton and raises no keyboard.
|
|
803
804
|
*/
|
|
804
|
-
[data-ui
|
|
805
|
+
[data-ui-datetime-range-picker] [data-part-field] {
|
|
805
806
|
--slotted-control-border-width: 0px;
|
|
806
807
|
--slotted-control-padding-inline-sm: var(--slotted-space-2, 0.25rem);
|
|
807
808
|
--slotted-control-padding-inline-md: var(--slotted-space-2, 0.25rem);
|
|
@@ -822,7 +823,7 @@
|
|
|
822
823
|
* line of its own under them. The hint is the difference between a panel
|
|
823
824
|
* that refuses and a panel that explains.
|
|
824
825
|
*/
|
|
825
|
-
[data-ui
|
|
826
|
+
[data-ui-datetime-range-picker] [data-part-hint] {
|
|
826
827
|
color: var(--slotted-datetime-range-picker-hint-color, var(--slotted-text-muted, GrayText));
|
|
827
828
|
font-size: var(--slotted-font-size-sm, 13px);
|
|
828
829
|
min-inline-size: 0;
|
|
@@ -831,13 +832,13 @@
|
|
|
831
832
|
unicode-bidi: plaintext;
|
|
832
833
|
}
|
|
833
834
|
|
|
834
|
-
[data-ui
|
|
835
|
+
[data-ui-datetime-range-picker] [data-part-hint][data-invalid] {
|
|
835
836
|
color: var(--slotted-datetime-range-picker-invalid-color, var(--slotted-tone-danger-text));
|
|
836
837
|
}
|
|
837
838
|
|
|
838
839
|
/* The duration, at the reading end, in the accent's text tone: it is the
|
|
839
840
|
number the band exists to say. Pending, it drops a step of weight. */
|
|
840
|
-
[data-ui
|
|
841
|
+
[data-ui-datetime-range-picker] [data-part-length] {
|
|
841
842
|
color: var(--slotted-datetime-range-picker-length-color, var(--slotted-tone-accent-text));
|
|
842
843
|
font-size: var(--slotted-font-size-sm, 13px);
|
|
843
844
|
font-variant-numeric: tabular-nums;
|
|
@@ -847,17 +848,17 @@
|
|
|
847
848
|
white-space: nowrap;
|
|
848
849
|
}
|
|
849
850
|
|
|
850
|
-
[data-ui
|
|
851
|
+
[data-ui-datetime-range-picker] [data-part-length][data-pending] {
|
|
851
852
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
852
853
|
}
|
|
853
854
|
|
|
854
855
|
/* An empty length still holds its line, so the band does not grow a row
|
|
855
856
|
when the first end is chosen. */
|
|
856
|
-
[data-ui
|
|
857
|
+
[data-ui-datetime-range-picker] [data-part-length]:empty::before {
|
|
857
858
|
content: '\200B';
|
|
858
859
|
}
|
|
859
860
|
|
|
860
|
-
[data-ui
|
|
861
|
+
[data-ui-datetime-range-picker] [data-part-limit] {
|
|
861
862
|
color: var(--slotted-datetime-range-picker-limit-color, var(--slotted-text-muted, GrayText));
|
|
862
863
|
font-size: var(--slotted-font-size-xs, 11px);
|
|
863
864
|
padding-inline-start: var(--slotted-space-2, 0.25rem);
|
|
@@ -876,7 +877,7 @@
|
|
|
876
877
|
* item and the same half taken back on the row, in place of `gap`, the
|
|
877
878
|
* habit of the date chain.
|
|
878
879
|
*/
|
|
879
|
-
[data-ui
|
|
880
|
+
[data-ui-datetime-range-picker] [data-part-panel] {
|
|
880
881
|
--_panel-gap: calc(var(--slotted-space-4, 0.5rem) / 2);
|
|
881
882
|
|
|
882
883
|
align-items: stretch;
|
|
@@ -887,26 +888,26 @@
|
|
|
887
888
|
min-inline-size: 0;
|
|
888
889
|
}
|
|
889
890
|
|
|
890
|
-
[data-ui
|
|
891
|
+
[data-ui-datetime-range-picker] [data-part-panel] > * {
|
|
891
892
|
margin: var(--_panel-gap);
|
|
892
893
|
}
|
|
893
894
|
|
|
894
895
|
/* The calendar keeps its own width and wraps its second month under the
|
|
895
896
|
first when the surface is narrow, which is its own container rule. */
|
|
896
|
-
[data-ui
|
|
897
|
+
[data-ui-datetime-range-picker] [data-part-date-panel] {
|
|
897
898
|
flex: 0 1 auto;
|
|
898
899
|
min-inline-size: 0;
|
|
899
900
|
}
|
|
900
901
|
|
|
901
|
-
[data-ui
|
|
902
|
-
[data-ui
|
|
902
|
+
[data-ui-datetime-range-picker] [data-part-panel] > [data-part-list],
|
|
903
|
+
[data-ui-datetime-range-picker] [data-part-panel] > [data-part-empty] {
|
|
903
904
|
flex: 1 1 var(--slotted-datetime-range-picker-list-min-inline-size, 9rem);
|
|
904
905
|
min-inline-size: var(--slotted-datetime-range-picker-list-min-inline-size, 9rem);
|
|
905
906
|
}
|
|
906
907
|
|
|
907
908
|
/* A hairline between the grid and the list while they share a row. */
|
|
908
|
-
[data-ui
|
|
909
|
-
[data-ui
|
|
909
|
+
[data-ui-datetime-range-picker] [data-part-date-panel] + [data-part-list],
|
|
910
|
+
[data-ui-datetime-range-picker] [data-part-date-panel] + [data-part-empty] {
|
|
910
911
|
border-inline-start: var(--slotted-border-width-thin, 1px) solid
|
|
911
912
|
var(
|
|
912
913
|
--slotted-datetime-range-picker-content-border-color,
|
|
@@ -915,7 +916,7 @@
|
|
|
915
916
|
padding-inline-start: var(--slotted-space-4, 0.5rem);
|
|
916
917
|
}
|
|
917
918
|
|
|
918
|
-
[data-ui
|
|
919
|
+
[data-ui-datetime-range-picker] [data-part-now] {
|
|
919
920
|
appearance: none;
|
|
920
921
|
background-color: transparent;
|
|
921
922
|
border: 0;
|
|
@@ -936,19 +937,19 @@
|
|
|
936
937
|
var(--slotted-control-transition-easing);
|
|
937
938
|
}
|
|
938
939
|
|
|
939
|
-
[data-ui
|
|
940
|
+
[data-ui-datetime-range-picker] [data-part-now]:hover:not(:disabled):not([data-disabled]) {
|
|
940
941
|
background-color: var(
|
|
941
942
|
--slotted-datetime-range-picker-option-hover-background,
|
|
942
943
|
var(--slotted-tone-secondary-subtle-hover)
|
|
943
944
|
);
|
|
944
945
|
}
|
|
945
946
|
|
|
946
|
-
[data-ui
|
|
947
|
+
[data-ui-datetime-range-picker] [data-part-now]:focus-visible {
|
|
947
948
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
948
949
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
949
950
|
}
|
|
950
951
|
|
|
951
|
-
[data-ui
|
|
952
|
+
[data-ui-datetime-range-picker] [data-part-now]:disabled {
|
|
952
953
|
color: var(--slotted-disabled-foreground);
|
|
953
954
|
cursor: not-allowed;
|
|
954
955
|
}
|
|
@@ -959,7 +960,7 @@
|
|
|
959
960
|
* clock. It ships the row they stand in and the chip each one is, between
|
|
960
961
|
* the band and the panel, wrapping when they do not fit.
|
|
961
962
|
*/
|
|
962
|
-
[data-ui
|
|
963
|
+
[data-ui-datetime-range-picker] [data-part-presets] {
|
|
963
964
|
display: flex;
|
|
964
965
|
flex-wrap: wrap;
|
|
965
966
|
gap: var(--slotted-space-2, 0.25rem);
|
|
@@ -967,7 +968,7 @@
|
|
|
967
968
|
min-inline-size: 0;
|
|
968
969
|
}
|
|
969
970
|
|
|
970
|
-
[data-ui
|
|
971
|
+
[data-ui-datetime-range-picker] [data-part-preset] {
|
|
971
972
|
appearance: none;
|
|
972
973
|
background-color: var(
|
|
973
974
|
--slotted-datetime-range-picker-preset-background,
|
|
@@ -996,22 +997,21 @@
|
|
|
996
997
|
-webkit-tap-highlight-color: transparent;
|
|
997
998
|
}
|
|
998
999
|
|
|
999
|
-
[data-ui
|
|
1000
|
+
[data-ui-datetime-range-picker] [data-part-preset]:hover:not(:disabled):not([data-selected]) {
|
|
1000
1001
|
background-color: var(
|
|
1001
1002
|
--slotted-datetime-range-picker-preset-hover-background,
|
|
1002
1003
|
var(--slotted-tone-secondary-subtle-hover)
|
|
1003
1004
|
);
|
|
1004
1005
|
}
|
|
1005
1006
|
|
|
1006
|
-
[data-ui
|
|
1007
|
-
[data-part='preset']:active:not(:disabled):not([data-selected]) {
|
|
1007
|
+
[data-ui-datetime-range-picker] [data-part-preset]:active:not(:disabled):not([data-selected]) {
|
|
1008
1008
|
background-color: var(
|
|
1009
1009
|
--slotted-datetime-range-picker-preset-active-background,
|
|
1010
1010
|
var(--slotted-tone-secondary-subtle-active)
|
|
1011
1011
|
);
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
|
-
[data-ui
|
|
1014
|
+
[data-ui-datetime-range-picker] [data-part-preset][data-selected] {
|
|
1015
1015
|
background-color: var(
|
|
1016
1016
|
--slotted-datetime-range-picker-preset-selected-background,
|
|
1017
1017
|
var(--slotted-tone-accent-subtle-hover)
|
|
@@ -1023,12 +1023,12 @@
|
|
|
1023
1023
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
|
-
[data-ui
|
|
1026
|
+
[data-ui-datetime-range-picker] [data-part-preset]:focus-visible {
|
|
1027
1027
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
1028
1028
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
|
-
[data-ui
|
|
1031
|
+
[data-ui-datetime-range-picker] [data-part-preset]:disabled {
|
|
1032
1032
|
color: var(--slotted-disabled-foreground);
|
|
1033
1033
|
cursor: not-allowed;
|
|
1034
1034
|
}
|
|
@@ -1039,7 +1039,7 @@
|
|
|
1039
1039
|
* cap holds at every density, and scrolled rather than truncated —
|
|
1040
1040
|
* `time-picker`'s list.
|
|
1041
1041
|
*/
|
|
1042
|
-
[data-ui
|
|
1042
|
+
[data-ui-datetime-range-picker] [data-part-list] {
|
|
1043
1043
|
display: flex;
|
|
1044
1044
|
flex-direction: column;
|
|
1045
1045
|
/* One step of air between rows, so the chosen row's painted ground and
|
|
@@ -1057,10 +1057,10 @@
|
|
|
1057
1057
|
scroll-padding-block: var(--slotted-space-2, 0.25rem);
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
|
-
[data-ui
|
|
1060
|
+
[data-ui-datetime-range-picker] [data-part-option] {
|
|
1061
1061
|
/* The time and its duration share a baseline, and the line box is the
|
|
1062
1062
|
row: baseline alignment alone would seat both at the top of a row
|
|
1063
|
-
taller than one line, and a length line-height
|
|
1063
|
+
taller than one line, and a length line-height centers them in it. */
|
|
1064
1064
|
align-items: baseline;
|
|
1065
1065
|
background-color: transparent;
|
|
1066
1066
|
border-radius: var(
|
|
@@ -1095,7 +1095,7 @@
|
|
|
1095
1095
|
* the other end it is the duration to the end already chosen. Muted, so the
|
|
1096
1096
|
* time stays what the row is; on the chosen row it takes the row's own ink.
|
|
1097
1097
|
*/
|
|
1098
|
-
[data-ui
|
|
1098
|
+
[data-ui-datetime-range-picker] [data-part-option-duration] {
|
|
1099
1099
|
color: var(--slotted-datetime-range-picker-label-color, var(--slotted-text-muted, GrayText));
|
|
1100
1100
|
flex: 0 1 auto;
|
|
1101
1101
|
font-size: var(--slotted-font-size-xs, 11px);
|
|
@@ -1106,12 +1106,8 @@
|
|
|
1106
1106
|
white-space: nowrap;
|
|
1107
1107
|
}
|
|
1108
1108
|
|
|
1109
|
-
[data-ui
|
|
1110
|
-
|
|
1111
|
-
[data-part='option-duration'],
|
|
1112
|
-
[data-ui='datetime-range-picker']
|
|
1113
|
-
[data-part='option'][data-disabled]
|
|
1114
|
-
[data-part='option-duration'] {
|
|
1109
|
+
[data-ui-datetime-range-picker] [data-part-option][data-selected] [data-part-option-duration],
|
|
1110
|
+
[data-ui-datetime-range-picker] [data-part-option][data-disabled] [data-part-option-duration] {
|
|
1115
1111
|
color: inherit;
|
|
1116
1112
|
}
|
|
1117
1113
|
|
|
@@ -1122,27 +1118,27 @@
|
|
|
1122
1118
|
* outranks the pointer. Specificity is what makes this a rule rather than an
|
|
1123
1119
|
* ordering — the defect `time-picker` records from its visual gate.
|
|
1124
1120
|
*/
|
|
1125
|
-
[data-ui
|
|
1126
|
-
[data-part
|
|
1121
|
+
[data-ui-datetime-range-picker]
|
|
1122
|
+
[data-part-option]:hover:not([data-disabled]):not([data-selected]):not([data-current]) {
|
|
1127
1123
|
background-color: var(
|
|
1128
1124
|
--slotted-datetime-range-picker-option-hover-background,
|
|
1129
1125
|
var(--slotted-tone-secondary-subtle-hover)
|
|
1130
1126
|
);
|
|
1131
1127
|
}
|
|
1132
1128
|
|
|
1133
|
-
[data-ui
|
|
1129
|
+
[data-ui-datetime-range-picker] [data-part-option][data-current]:not([data-selected]) {
|
|
1134
1130
|
background-color: var(
|
|
1135
1131
|
--slotted-datetime-range-picker-option-current-background,
|
|
1136
1132
|
var(--slotted-tone-secondary-subtle-active)
|
|
1137
1133
|
);
|
|
1138
1134
|
}
|
|
1139
1135
|
|
|
1140
|
-
[data-ui
|
|
1136
|
+
[data-ui-datetime-range-picker] [data-part-option]:focus-visible {
|
|
1141
1137
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
1142
1138
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
1143
1139
|
}
|
|
1144
1140
|
|
|
1145
|
-
[data-ui
|
|
1141
|
+
[data-ui-datetime-range-picker] [data-part-option][data-selected] {
|
|
1146
1142
|
background-color: var(
|
|
1147
1143
|
--slotted-datetime-range-picker-option-selected-background,
|
|
1148
1144
|
var(--slotted-tone-accent-solid)
|
|
@@ -1154,7 +1150,7 @@
|
|
|
1154
1150
|
}
|
|
1155
1151
|
|
|
1156
1152
|
/* The chosen row still answers the pointer, one step along its own tone. */
|
|
1157
|
-
[data-ui
|
|
1153
|
+
[data-ui-datetime-range-picker] [data-part-option][data-selected]:hover:not([data-disabled]) {
|
|
1158
1154
|
background-color: var(
|
|
1159
1155
|
--slotted-datetime-range-picker-option-selected-hover-background,
|
|
1160
1156
|
var(--slotted-tone-accent-solid-hover)
|
|
@@ -1164,10 +1160,10 @@
|
|
|
1164
1160
|
/**
|
|
1165
1161
|
* A time a bound, the predicate or the other end refuses. It stays in the
|
|
1166
1162
|
* list by default, because a list that silently drops rows is a list whose
|
|
1167
|
-
* step the reader cannot infer — and it is muted to the
|
|
1163
|
+
* step the reader cannot infer — and it is muted to the color the theme
|
|
1168
1164
|
* measures rather than faded by opacity, so it stays readable.
|
|
1169
1165
|
*/
|
|
1170
|
-
[data-ui
|
|
1166
|
+
[data-ui-datetime-range-picker] [data-part-option][data-disabled] {
|
|
1171
1167
|
background-color: transparent;
|
|
1172
1168
|
color: var(--slotted-disabled-foreground);
|
|
1173
1169
|
cursor: not-allowed;
|
|
@@ -1175,7 +1171,7 @@
|
|
|
1175
1171
|
|
|
1176
1172
|
/* Nothing available for this end at all. A sentence rather than an empty
|
|
1177
1173
|
box, the reason `time-picker` records. */
|
|
1178
|
-
[data-ui
|
|
1174
|
+
[data-ui-datetime-range-picker] [data-part-empty] {
|
|
1179
1175
|
align-items: center;
|
|
1180
1176
|
color: var(--slotted-datetime-range-picker-label-color, var(--slotted-text-muted, GrayText));
|
|
1181
1177
|
display: flex;
|
|
@@ -1192,7 +1188,7 @@
|
|
|
1192
1188
|
|
|
1193
1189
|
/* The consumer's own actions and, at the reading end, `done`: the way out
|
|
1194
1190
|
of a sheet that fills the screen and of an edit left half way. */
|
|
1195
|
-
[data-ui
|
|
1191
|
+
[data-ui-datetime-range-picker] [data-part-footer] {
|
|
1196
1192
|
box-sizing: border-box;
|
|
1197
1193
|
inline-size: 0;
|
|
1198
1194
|
min-inline-size: 100%;
|
|
@@ -1210,7 +1206,7 @@
|
|
|
1210
1206
|
padding-block-start: var(--slotted-space-3, 0.375rem);
|
|
1211
1207
|
}
|
|
1212
1208
|
|
|
1213
|
-
[data-ui
|
|
1209
|
+
[data-ui-datetime-range-picker] [data-part-done] {
|
|
1214
1210
|
appearance: none;
|
|
1215
1211
|
background-color: var(
|
|
1216
1212
|
--slotted-datetime-range-picker-done-background,
|
|
@@ -1237,21 +1233,21 @@
|
|
|
1237
1233
|
-webkit-tap-highlight-color: transparent;
|
|
1238
1234
|
}
|
|
1239
1235
|
|
|
1240
|
-
[data-ui
|
|
1236
|
+
[data-ui-datetime-range-picker] [data-part-done]:hover:not(:disabled) {
|
|
1241
1237
|
background-color: var(
|
|
1242
1238
|
--slotted-datetime-range-picker-done-hover-background,
|
|
1243
1239
|
var(--slotted-tone-accent-solid-hover)
|
|
1244
1240
|
);
|
|
1245
1241
|
}
|
|
1246
1242
|
|
|
1247
|
-
[data-ui
|
|
1243
|
+
[data-ui-datetime-range-picker] [data-part-done]:active:not(:disabled) {
|
|
1248
1244
|
background-color: var(
|
|
1249
1245
|
--slotted-datetime-range-picker-done-active-background,
|
|
1250
1246
|
var(--slotted-tone-accent-solid-active)
|
|
1251
1247
|
);
|
|
1252
1248
|
}
|
|
1253
1249
|
|
|
1254
|
-
[data-ui
|
|
1250
|
+
[data-ui-datetime-range-picker] [data-part-done]:focus-visible {
|
|
1255
1251
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
1256
1252
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
1257
1253
|
}
|
|
@@ -1264,7 +1260,7 @@
|
|
|
1264
1260
|
* raises no keyboard — and the list is the way to a time.
|
|
1265
1261
|
*/
|
|
1266
1262
|
@media (pointer: coarse) {
|
|
1267
|
-
[data-ui
|
|
1263
|
+
[data-ui-datetime-range-picker] [data-part-field] {
|
|
1268
1264
|
display: none;
|
|
1269
1265
|
}
|
|
1270
1266
|
}
|
|
@@ -1275,18 +1271,18 @@
|
|
|
1275
1271
|
* desktop and a sheet in a narrow viewport. The DOM does not change.
|
|
1276
1272
|
*/
|
|
1277
1273
|
@media (max-width: 480px) and (pointer: coarse) {
|
|
1278
|
-
[data-ui
|
|
1274
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-presentation='sheet'] {
|
|
1279
1275
|
inset: auto 0 0;
|
|
1280
1276
|
position: fixed;
|
|
1281
1277
|
translate: 0 var(--slotted-space-9, 2rem);
|
|
1282
1278
|
}
|
|
1283
1279
|
|
|
1284
|
-
[data-ui
|
|
1280
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-presentation='sheet'][data-open] {
|
|
1285
1281
|
translate: 0 0;
|
|
1286
1282
|
}
|
|
1287
1283
|
|
|
1288
|
-
[data-ui
|
|
1289
|
-
[data-part
|
|
1284
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-presentation='sheet']
|
|
1285
|
+
[data-part-content] {
|
|
1290
1286
|
border-end-end-radius: 0;
|
|
1291
1287
|
border-end-start-radius: 0;
|
|
1292
1288
|
border-inline: 0;
|
|
@@ -1312,62 +1308,94 @@
|
|
|
1312
1308
|
|
|
1313
1309
|
/* Four rows and a half under the grid on a phone, at the touch height:
|
|
1314
1310
|
the grid, the list and done fit a short screen together. */
|
|
1315
|
-
[data-ui
|
|
1316
|
-
[data-part
|
|
1311
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-presentation='sheet']
|
|
1312
|
+
[data-part-list] {
|
|
1317
1313
|
max-block-size: calc(var(--_row-pitch) * 4.5);
|
|
1318
1314
|
}
|
|
1319
1315
|
|
|
1320
1316
|
/* The list under the grid on a phone, whatever the row's width: a grid
|
|
1321
1317
|
and a column side by side leave neither room enough. */
|
|
1322
|
-
[data-ui
|
|
1323
|
-
[data-part
|
|
1324
|
-
> [data-part
|
|
1325
|
-
[data-ui
|
|
1326
|
-
[data-part
|
|
1327
|
-
> [data-part
|
|
1318
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-presentation='sheet']
|
|
1319
|
+
[data-part-panel]
|
|
1320
|
+
> [data-part-list],
|
|
1321
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-presentation='sheet']
|
|
1322
|
+
[data-part-panel]
|
|
1323
|
+
> [data-part-empty] {
|
|
1328
1324
|
flex-basis: 100%;
|
|
1329
1325
|
}
|
|
1330
1326
|
|
|
1331
|
-
[data-ui
|
|
1332
|
-
[data-part
|
|
1333
|
-
+ [data-part
|
|
1327
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-presentation='sheet']
|
|
1328
|
+
[data-part-date-panel]
|
|
1329
|
+
+ [data-part-list] {
|
|
1334
1330
|
border-inline-start: 0;
|
|
1335
1331
|
padding-inline-start: 0;
|
|
1336
1332
|
}
|
|
1337
1333
|
|
|
1338
|
-
[data-ui
|
|
1339
|
-
[data-part
|
|
1334
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-presentation='sheet']
|
|
1335
|
+
[data-part-tab] {
|
|
1340
1336
|
min-block-size: var(
|
|
1341
1337
|
--slotted-datetime-range-picker-tab-block-size,
|
|
1342
1338
|
var(--slotted-target-comfortable, 44px)
|
|
1343
1339
|
);
|
|
1344
1340
|
}
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* The grip every bottom sheet carries, in the drawer's geometry and line
|
|
1344
|
+
* color: a pill three rem by a quarter, centerd in a row one target tall
|
|
1345
|
+
* that the content keeps clear at its top. A pull down on it dismisses the
|
|
1346
|
+
* sheet; Escape and the press outside stay the accessible ways out.
|
|
1347
|
+
*/
|
|
1348
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-presentation='sheet']
|
|
1349
|
+
> [data-part-content] {
|
|
1350
|
+
padding-block-start: var(--slotted-target-min, 24px);
|
|
1351
|
+
position: relative;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
[data-ui-datetime-range-picker][data-part-positioner][data-presentation='sheet']
|
|
1355
|
+
> [data-part-content]
|
|
1356
|
+
> [data-part-grip] {
|
|
1357
|
+
background-clip: content-box;
|
|
1358
|
+
background-color: var(
|
|
1359
|
+
--slotted-drawer-resizer-line-color,
|
|
1360
|
+
var(--slotted-border-strong, ButtonBorder)
|
|
1361
|
+
);
|
|
1362
|
+
block-size: var(--slotted-space-2, 0.25rem);
|
|
1363
|
+
border-radius: var(--slotted-radius-full, 9999px);
|
|
1364
|
+
box-sizing: content-box;
|
|
1365
|
+
cursor: grab;
|
|
1366
|
+
inline-size: var(--slotted-space-11, 3rem);
|
|
1367
|
+
inset-block-start: 0;
|
|
1368
|
+
inset-inline: 0;
|
|
1369
|
+
margin-inline: auto;
|
|
1370
|
+
padding-block: calc((var(--slotted-target-min, 24px) - var(--slotted-space-2, 0.25rem)) / 2);
|
|
1371
|
+
position: absolute;
|
|
1372
|
+
touch-action: none;
|
|
1373
|
+
}
|
|
1345
1374
|
}
|
|
1346
1375
|
|
|
1347
1376
|
@media (forced-colors: active) {
|
|
1348
|
-
[data-ui
|
|
1349
|
-
[data-part='control'] {
|
|
1377
|
+
[data-ui-datetime-range-picker][data-part-root][data-variant='plain'] [data-part-control] {
|
|
1350
1378
|
border-color: ButtonBorder;
|
|
1351
1379
|
}
|
|
1352
1380
|
|
|
1353
|
-
/* The tab's underline is painted with a background, and forced
|
|
1381
|
+
/* The tab's underline is painted with a background, and forced colors
|
|
1354
1382
|
replace a background that is not one of the system's own. */
|
|
1355
|
-
[data-ui
|
|
1383
|
+
[data-ui-datetime-range-picker] [data-part-tab]::after {
|
|
1356
1384
|
forced-color-adjust: none;
|
|
1357
1385
|
}
|
|
1358
1386
|
|
|
1359
|
-
[data-ui
|
|
1387
|
+
[data-ui-datetime-range-picker] [data-part-tab]::after {
|
|
1360
1388
|
background-color: currentcolor;
|
|
1361
1389
|
}
|
|
1362
1390
|
|
|
1363
|
-
[data-ui
|
|
1364
|
-
[data-ui
|
|
1391
|
+
[data-ui-datetime-range-picker] [data-part-preset][data-selected],
|
|
1392
|
+
[data-ui-datetime-range-picker] [data-part-option][data-selected] {
|
|
1365
1393
|
background-color: Highlight;
|
|
1366
1394
|
color: HighlightText;
|
|
1367
1395
|
forced-color-adjust: none;
|
|
1368
1396
|
}
|
|
1369
1397
|
|
|
1370
|
-
[data-ui
|
|
1398
|
+
[data-ui-datetime-range-picker] [data-part-option][data-current]:not([data-selected]) {
|
|
1371
1399
|
outline: var(--slotted-focus-ring-width, 2px) solid Highlight;
|
|
1372
1400
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
1373
1401
|
}
|