@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
|
@@ -27,8 +27,10 @@
|
|
|
27
27
|
* list, and the length of it is answered by where the panel opens, by
|
|
28
28
|
* type-ahead, and by PageUp and PageDown.
|
|
29
29
|
*/
|
|
30
|
-
[data-ui
|
|
30
|
+
[data-ui-time-picker][data-part-root] {
|
|
31
31
|
display: block;
|
|
32
|
+
/* In a flex row the item's basis is its content, not the whole row. */
|
|
33
|
+
flex-basis: content;
|
|
32
34
|
/* The anchor the positioner measures is the control, and a block root
|
|
33
35
|
lets the frame take the width the form gave it. */
|
|
34
36
|
inline-size: 100%;
|
|
@@ -40,7 +42,7 @@
|
|
|
40
42
|
* It draws no frame: the `time-field` inside it draws its own, and the
|
|
41
43
|
* trigger is handed to that field's `end` slot by the binding.
|
|
42
44
|
*/
|
|
43
|
-
[data-ui
|
|
45
|
+
[data-ui-time-picker] [data-part-control] {
|
|
44
46
|
--_icon-size: var(--slotted-control-icon-size-md, 16px);
|
|
45
47
|
--_height: var(--slotted-control-height-md, 34px);
|
|
46
48
|
|
|
@@ -51,12 +53,12 @@
|
|
|
51
53
|
position: relative;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
|
-
[data-ui
|
|
56
|
+
[data-ui-time-picker][data-part-root][data-size='sm'] [data-part-control] {
|
|
55
57
|
--_icon-size: var(--slotted-control-icon-size-sm, 14px);
|
|
56
58
|
--_height: var(--slotted-control-height-sm, 30px);
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
[data-ui
|
|
61
|
+
[data-ui-time-picker][data-part-root][data-size='lg'] [data-part-control] {
|
|
60
62
|
--_icon-size: var(--slotted-control-icon-size-lg, 18px);
|
|
61
63
|
--_height: var(--slotted-control-height-lg, 38px);
|
|
62
64
|
}
|
|
@@ -77,7 +79,7 @@
|
|
|
77
79
|
* does not turn while the surface is open either. It is a `Glyph` the
|
|
78
80
|
* binding draws inside an `icon` box, at the field's icon step.
|
|
79
81
|
*/
|
|
80
|
-
[data-ui
|
|
82
|
+
[data-ui-time-picker] [data-part-trigger] {
|
|
81
83
|
--slotted-icon-size: var(--_icon-size);
|
|
82
84
|
|
|
83
85
|
align-items: center;
|
|
@@ -122,7 +124,7 @@
|
|
|
122
124
|
|
|
123
125
|
/* The hit area, recovered outside the paint, exactly as every other inner
|
|
124
126
|
control in the library recovers it. */
|
|
125
|
-
[data-ui
|
|
127
|
+
[data-ui-time-picker] [data-part-trigger]::after {
|
|
126
128
|
content: '';
|
|
127
129
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
128
130
|
position: absolute;
|
|
@@ -133,25 +135,25 @@
|
|
|
133
135
|
the hit area above grows to 44 pixels around them. Before the field's
|
|
134
136
|
clear it does not reach across it. */
|
|
135
137
|
@media (pointer: coarse) {
|
|
136
|
-
[data-ui
|
|
138
|
+
[data-ui-time-picker] [data-part-trigger]::after {
|
|
137
139
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
138
140
|
}
|
|
139
141
|
|
|
140
|
-
[data-ui
|
|
141
|
-
[data-part
|
|
142
|
-
> [data-part
|
|
142
|
+
[data-ui-time-picker]
|
|
143
|
+
[data-part-end]:has(+ [data-part-clear]:not([hidden]))
|
|
144
|
+
> [data-part-trigger]::after {
|
|
143
145
|
inset-inline-end: 0;
|
|
144
146
|
}
|
|
145
147
|
}
|
|
146
148
|
|
|
147
|
-
[data-ui
|
|
149
|
+
[data-ui-time-picker] [data-part-trigger]:hover:not(:disabled):not([data-disabled]) {
|
|
148
150
|
background-color: var(
|
|
149
151
|
--slotted-time-picker-trigger-hover-background,
|
|
150
152
|
var(--slotted-tone-secondary-subtle-hover)
|
|
151
153
|
);
|
|
152
154
|
}
|
|
153
155
|
|
|
154
|
-
[data-ui
|
|
156
|
+
[data-ui-time-picker] [data-part-trigger]:active:not(:disabled):not([data-disabled]) {
|
|
155
157
|
background-color: var(
|
|
156
158
|
--slotted-time-picker-trigger-active-background,
|
|
157
159
|
var(--slotted-tone-secondary-subtle-active)
|
|
@@ -160,19 +162,19 @@
|
|
|
160
162
|
|
|
161
163
|
/* Its own ring: tabbing from the last segment to the trigger has to move
|
|
162
164
|
something visible, and the frame's ring would sit still. */
|
|
163
|
-
[data-ui
|
|
165
|
+
[data-ui-time-picker] [data-part-trigger]:focus-visible {
|
|
164
166
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
165
167
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
166
168
|
}
|
|
167
169
|
|
|
168
|
-
[data-ui
|
|
170
|
+
[data-ui-time-picker][data-part-root][data-invalid] {
|
|
169
171
|
--slotted-focus-ring-color: var(
|
|
170
172
|
--slotted-time-picker-invalid-focus-ring-color,
|
|
171
173
|
var(--slotted-focus-ring-color-invalid, Highlight)
|
|
172
174
|
);
|
|
173
175
|
}
|
|
174
176
|
|
|
175
|
-
[data-ui
|
|
177
|
+
[data-ui-time-picker] [data-part-trigger]:disabled {
|
|
176
178
|
color: var(--slotted-disabled-foreground);
|
|
177
179
|
cursor: not-allowed;
|
|
178
180
|
}
|
|
@@ -183,7 +185,7 @@
|
|
|
183
185
|
* onto. The painted surface is one element in, as every anchored family in
|
|
184
186
|
* the library is built.
|
|
185
187
|
*/
|
|
186
|
-
[data-ui
|
|
188
|
+
[data-ui-time-picker][data-part-positioner] {
|
|
187
189
|
/* Only the block inset: the positioner writes `left` and never `right`,
|
|
188
190
|
and `inset-inline-start` would resolve to `right` in a right-to-left
|
|
189
191
|
document and win over the measured value. */
|
|
@@ -207,16 +209,16 @@
|
|
|
207
209
|
translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
208
210
|
}
|
|
209
211
|
|
|
210
|
-
[data-ui
|
|
212
|
+
[data-ui-time-picker][data-part-positioner][data-side='top'] {
|
|
211
213
|
translate: 0 var(--_enter-distance);
|
|
212
214
|
}
|
|
213
215
|
|
|
214
216
|
/* A lateral side has no block direction to arrive from, so it only fades. */
|
|
215
|
-
[data-ui
|
|
217
|
+
[data-ui-time-picker][data-part-positioner]:is([data-side='left'], [data-side='right']) {
|
|
216
218
|
translate: 0 0;
|
|
217
219
|
}
|
|
218
220
|
|
|
219
|
-
[data-ui
|
|
221
|
+
[data-ui-time-picker][data-part-positioner][data-open] {
|
|
220
222
|
opacity: 1;
|
|
221
223
|
translate: 0 0;
|
|
222
224
|
transition: none;
|
|
@@ -230,16 +232,16 @@
|
|
|
230
232
|
* harness, a docs snippet — is simply there, and is photographed where it
|
|
231
233
|
* stands.
|
|
232
234
|
*/
|
|
233
|
-
[data-ui
|
|
235
|
+
[data-ui-time-picker][data-part-positioner][data-open][data-positioned] {
|
|
234
236
|
animation: slotted-time-picker-enter-down var(--slotted-duration-medium)
|
|
235
237
|
var(--slotted-easing-enter);
|
|
236
238
|
}
|
|
237
239
|
|
|
238
|
-
[data-ui
|
|
240
|
+
[data-ui-time-picker][data-part-positioner][data-open][data-positioned][data-side='top'] {
|
|
239
241
|
animation-name: slotted-time-picker-enter-up;
|
|
240
242
|
}
|
|
241
243
|
|
|
242
|
-
[data-ui
|
|
244
|
+
[data-ui-time-picker][data-part-positioner][data-open][data-positioned]:is(
|
|
243
245
|
[data-side='left'],
|
|
244
246
|
[data-side='right']
|
|
245
247
|
) {
|
|
@@ -268,25 +270,25 @@
|
|
|
268
270
|
|
|
269
271
|
/* Stillness keeps the fade and drops the movement. */
|
|
270
272
|
@media (prefers-reduced-motion: reduce) {
|
|
271
|
-
[data-ui
|
|
272
|
-
[data-ui
|
|
273
|
-
[data-ui
|
|
274
|
-
[data-ui
|
|
273
|
+
[data-ui-time-picker][data-part-positioner],
|
|
274
|
+
[data-ui-time-picker][data-part-positioner][data-side='top'],
|
|
275
|
+
[data-ui-time-picker][data-part-positioner][data-side='left'],
|
|
276
|
+
[data-ui-time-picker][data-part-positioner][data-side='right'] {
|
|
275
277
|
translate: 0 0;
|
|
276
278
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
277
279
|
}
|
|
278
280
|
|
|
279
|
-
[data-ui
|
|
280
|
-
[data-ui
|
|
281
|
-
[data-ui
|
|
282
|
-
[data-ui
|
|
281
|
+
[data-ui-time-picker][data-part-positioner][data-open][data-positioned],
|
|
282
|
+
[data-ui-time-picker][data-part-positioner][data-open][data-positioned][data-side='top'],
|
|
283
|
+
[data-ui-time-picker][data-part-positioner][data-open][data-positioned][data-side='left'],
|
|
284
|
+
[data-ui-time-picker][data-part-positioner][data-open][data-positioned][data-side='right'] {
|
|
283
285
|
animation-name: slotted-time-picker-fade;
|
|
284
286
|
}
|
|
285
287
|
}
|
|
286
288
|
|
|
287
289
|
/* The anchor scrolled out of its own clipper. The list is still open and
|
|
288
290
|
still belongs to a control the reader can no longer see. */
|
|
289
|
-
[data-ui
|
|
291
|
+
[data-ui-time-picker][data-part-positioner][data-detached] {
|
|
290
292
|
visibility: hidden;
|
|
291
293
|
}
|
|
292
294
|
|
|
@@ -303,7 +305,7 @@
|
|
|
303
305
|
* produce a column too tight to read a time in, and capped so a wide form
|
|
304
306
|
* does not stretch one column of times across a page.
|
|
305
307
|
*/
|
|
306
|
-
[data-ui
|
|
308
|
+
[data-ui-time-picker] [data-part-content] {
|
|
307
309
|
background-color: var(--slotted-time-picker-surface, var(--slotted-surface-raised, Canvas));
|
|
308
310
|
border: var(--slotted-border-width-thin, 1px) solid
|
|
309
311
|
var(--slotted-time-picker-content-border-color, var(--slotted-border-subtle, ButtonBorder));
|
|
@@ -360,7 +362,7 @@
|
|
|
360
362
|
* surface shrink-wraps its two columns instead, capped by the room the
|
|
361
363
|
* positioner measured.
|
|
362
364
|
*/
|
|
363
|
-
[data-ui
|
|
365
|
+
[data-ui-time-picker] [data-part-content]:has([data-part-presets]) {
|
|
364
366
|
grid-template-areas: 'presets head' 'presets list' 'footer footer';
|
|
365
367
|
grid-template-columns: auto minmax(9rem, 1fr);
|
|
366
368
|
inline-size: auto;
|
|
@@ -371,7 +373,7 @@
|
|
|
371
373
|
* The head: one press for the current time, which is what a reader who never
|
|
372
374
|
* discovers that `+` opens an expression still has.
|
|
373
375
|
*/
|
|
374
|
-
[data-ui
|
|
376
|
+
[data-ui-time-picker] [data-part-head] {
|
|
375
377
|
align-items: center;
|
|
376
378
|
display: flex;
|
|
377
379
|
gap: var(--slotted-space-2, 0.25rem);
|
|
@@ -380,7 +382,7 @@
|
|
|
380
382
|
padding-block-end: var(--slotted-space-2, 0.25rem);
|
|
381
383
|
}
|
|
382
384
|
|
|
383
|
-
[data-ui
|
|
385
|
+
[data-ui-time-picker] [data-part-now] {
|
|
384
386
|
appearance: none;
|
|
385
387
|
background-color: transparent;
|
|
386
388
|
border: 0;
|
|
@@ -398,14 +400,14 @@
|
|
|
398
400
|
var(--slotted-control-transition-easing);
|
|
399
401
|
}
|
|
400
402
|
|
|
401
|
-
[data-ui
|
|
403
|
+
[data-ui-time-picker] [data-part-now]:hover:not(:disabled):not([data-disabled]) {
|
|
402
404
|
background-color: var(
|
|
403
405
|
--slotted-time-picker-option-hover-background,
|
|
404
406
|
var(--slotted-tone-secondary-subtle-hover)
|
|
405
407
|
);
|
|
406
408
|
}
|
|
407
409
|
|
|
408
|
-
[data-ui
|
|
410
|
+
[data-ui-time-picker] [data-part-now]:focus-visible {
|
|
409
411
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
410
412
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
411
413
|
}
|
|
@@ -415,7 +417,7 @@
|
|
|
415
417
|
* the shift" is a business clock, and a library that guessed at one would be
|
|
416
418
|
* guessing at an industry. What it ships is the column they stand in.
|
|
417
419
|
*/
|
|
418
|
-
[data-ui
|
|
420
|
+
[data-ui-time-picker] [data-part-presets] {
|
|
419
421
|
align-items: flex-start;
|
|
420
422
|
border-inline-end: var(--slotted-border-width-thin, 1px) solid
|
|
421
423
|
var(--slotted-time-picker-content-border-color, var(--slotted-border-subtle, ButtonBorder));
|
|
@@ -432,7 +434,7 @@
|
|
|
432
434
|
* density and every type step, and scrolled rather than truncated: a day of
|
|
433
435
|
* quarter-hours is ninety-six rows and every one of them is choosable.
|
|
434
436
|
*/
|
|
435
|
-
[data-ui
|
|
437
|
+
[data-ui-time-picker] [data-part-list] {
|
|
436
438
|
display: flex;
|
|
437
439
|
flex-direction: column;
|
|
438
440
|
/**
|
|
@@ -466,7 +468,7 @@
|
|
|
466
468
|
* to read: `09:15` says more at a glance than a `15` in a column of minutes,
|
|
467
469
|
* and the column shape exists for the steps where a flat list cannot.
|
|
468
470
|
*/
|
|
469
|
-
[data-ui
|
|
471
|
+
[data-ui-time-picker] [data-part-option] {
|
|
470
472
|
align-items: center;
|
|
471
473
|
background-color: transparent;
|
|
472
474
|
border-radius: var(--slotted-time-picker-option-radius, var(--slotted-radius-sm, 4px));
|
|
@@ -508,8 +510,8 @@
|
|
|
508
510
|
* `disabled` half of `STATE_PRECEDENCE` and nothing else, which is why this
|
|
509
511
|
* one was found by a reader rather than by a test.
|
|
510
512
|
*/
|
|
511
|
-
[data-ui
|
|
512
|
-
[data-part
|
|
513
|
+
[data-ui-time-picker]
|
|
514
|
+
[data-part-option]:hover:not([data-disabled]):not([data-selected]):not([data-current]) {
|
|
513
515
|
background-color: var(
|
|
514
516
|
--slotted-time-picker-option-hover-background,
|
|
515
517
|
var(--slotted-tone-secondary-subtle-hover)
|
|
@@ -522,19 +524,19 @@
|
|
|
522
524
|
* focusable row in the library draws, inset so it is not clipped by the
|
|
523
525
|
* scroller's own edge. It stands down for the chosen row, which outranks it.
|
|
524
526
|
*/
|
|
525
|
-
[data-ui
|
|
527
|
+
[data-ui-time-picker] [data-part-option][data-current]:not([data-selected]) {
|
|
526
528
|
background-color: var(
|
|
527
529
|
--slotted-time-picker-option-current-background,
|
|
528
530
|
var(--slotted-tone-secondary-subtle-active)
|
|
529
531
|
);
|
|
530
532
|
}
|
|
531
533
|
|
|
532
|
-
[data-ui
|
|
534
|
+
[data-ui-time-picker] [data-part-option]:focus-visible {
|
|
533
535
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
534
536
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
535
537
|
}
|
|
536
538
|
|
|
537
|
-
[data-ui
|
|
539
|
+
[data-ui-time-picker] [data-part-option][data-selected] {
|
|
538
540
|
background-color: var(
|
|
539
541
|
--slotted-time-picker-option-selected-background,
|
|
540
542
|
var(--slotted-tone-accent-solid)
|
|
@@ -549,7 +551,7 @@
|
|
|
549
551
|
* same blue and a visible change. A row that swapped colour family under the
|
|
550
552
|
* pointer read as a different row, and that is the defect this pair replaces.
|
|
551
553
|
*/
|
|
552
|
-
[data-ui
|
|
554
|
+
[data-ui-time-picker] [data-part-option][data-selected]:hover:not([data-disabled]) {
|
|
553
555
|
background-color: var(
|
|
554
556
|
--slotted-time-picker-option-selected-hover-background,
|
|
555
557
|
var(--slotted-tone-accent-solid-hover)
|
|
@@ -562,7 +564,7 @@
|
|
|
562
564
|
* cannot infer — and it is muted to the colour the theme measures rather
|
|
563
565
|
* than faded by opacity, so it stays readable.
|
|
564
566
|
*/
|
|
565
|
-
[data-ui
|
|
567
|
+
[data-ui-time-picker] [data-part-option][data-disabled] {
|
|
566
568
|
background-color: transparent;
|
|
567
569
|
color: var(--slotted-disabled-foreground);
|
|
568
570
|
cursor: not-allowed;
|
|
@@ -573,7 +575,7 @@
|
|
|
573
575
|
* every step. It is a sentence rather than an empty box: MUI draws nothing
|
|
574
576
|
* here and Ant draws an empty column, and both read as a broken component.
|
|
575
577
|
*/
|
|
576
|
-
[data-ui
|
|
578
|
+
[data-ui-time-picker] [data-part-empty] {
|
|
577
579
|
align-items: center;
|
|
578
580
|
color: var(--slotted-time-picker-label-color, var(--slotted-text-muted, GrayText));
|
|
579
581
|
display: flex;
|
|
@@ -585,7 +587,7 @@
|
|
|
585
587
|
text-wrap: balance;
|
|
586
588
|
}
|
|
587
589
|
|
|
588
|
-
[data-ui
|
|
590
|
+
[data-ui-time-picker] [data-part-footer] {
|
|
589
591
|
align-items: center;
|
|
590
592
|
border-block-start: var(--slotted-border-width-thin, 1px) solid
|
|
591
593
|
var(--slotted-time-picker-content-border-color, var(--slotted-border-subtle, ButtonBorder));
|
|
@@ -605,7 +607,7 @@
|
|
|
605
607
|
* ask, and the question really is how much screen there is.
|
|
606
608
|
*/
|
|
607
609
|
@media (max-width: 480px) and (pointer: coarse) {
|
|
608
|
-
[data-ui
|
|
610
|
+
[data-ui-time-picker][data-part-positioner][data-presentation='sheet'] {
|
|
609
611
|
/* The positioner's own measurement is overridden here on purpose: a
|
|
610
612
|
sheet is not placed against an anchor, it is placed against the
|
|
611
613
|
screen. */
|
|
@@ -614,12 +616,11 @@
|
|
|
614
616
|
translate: 0 var(--slotted-space-9, 2rem);
|
|
615
617
|
}
|
|
616
618
|
|
|
617
|
-
[data-ui
|
|
619
|
+
[data-ui-time-picker][data-part-positioner][data-presentation='sheet'][data-open] {
|
|
618
620
|
translate: 0 0;
|
|
619
621
|
}
|
|
620
622
|
|
|
621
|
-
[data-ui
|
|
622
|
-
[data-part='content'] {
|
|
623
|
+
[data-ui-time-picker][data-part-positioner][data-presentation='sheet'] [data-part-content] {
|
|
623
624
|
border-end-end-radius: 0;
|
|
624
625
|
border-end-start-radius: 0;
|
|
625
626
|
border-inline: 0;
|
|
@@ -629,12 +630,11 @@
|
|
|
629
630
|
|
|
630
631
|
/* A sheet has the screen's height to spend, so the list takes more of it
|
|
631
632
|
rather than staying at the popover's eight rows and a half. */
|
|
632
|
-
[data-ui
|
|
633
|
+
[data-ui-time-picker][data-part-positioner][data-presentation='sheet'] [data-part-list] {
|
|
633
634
|
max-block-size: 50vh;
|
|
634
635
|
}
|
|
635
636
|
|
|
636
|
-
[data-ui
|
|
637
|
-
[data-part='presets'] {
|
|
637
|
+
[data-ui-time-picker][data-part-positioner][data-presentation='sheet'] [data-part-presets] {
|
|
638
638
|
/* Beside the list there is no room for a column of shortcuts, so they
|
|
639
639
|
become a row above it and keep their labels. */
|
|
640
640
|
border-inline-end: 0;
|
|
@@ -651,13 +651,13 @@
|
|
|
651
651
|
/* The chosen row and the highlighted row both lose their painted grounds,
|
|
652
652
|
so each says what it is with a system pair the operating system
|
|
653
653
|
guarantees legible together. */
|
|
654
|
-
[data-ui
|
|
654
|
+
[data-ui-time-picker] [data-part-option][data-selected] {
|
|
655
655
|
background-color: Highlight;
|
|
656
656
|
color: HighlightText;
|
|
657
657
|
forced-color-adjust: none;
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
-
[data-ui
|
|
660
|
+
[data-ui-time-picker] [data-part-option][data-current]:not([data-selected]) {
|
|
661
661
|
outline: var(--slotted-focus-ring-width, 2px) solid Highlight;
|
|
662
662
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
663
663
|
}
|