@slotted/styles 0.1.0-beta.39 → 0.1.0-beta.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +1,17 @@
1
1
  @layer slotted.components {
2
2
  /**
3
- * ── A time field, a trigger, and a list of times behind them ───────────
3
+ * ── A time field, a trigger, and a clock behind them ───────────────────
4
4
  *
5
5
  * ┌─ root ──────────────────────────────────────────────────────────┐
6
6
  * │ ┌─ control ─────────────────────────────────────────────────┐ │
7
7
  * │ │ time-field ┌ trigger ┐ │ │
8
8
  * │ └───────────────────────────────────────────────────────────┘ │
9
9
  * └─────────────────────────────────────────────────────────────────┘
10
- * ┌─ positioner ─ the layer ────────────────────────────────┐
11
- * │ ┌─ content ─ the surface ──────────────────────────┐ │
12
- * │ │ head: now │ presets │ │
13
- * │ │ list ─ option · option · option │ │
14
- * │ │ footer │ │
15
- * │ └──────────────────────────────────────────────────┘ │
16
- * └────────────────────────────────────────────────────────┘
10
+ * the panel is `picker-panel`'s, and the hours in it `clock`'s
17
11
  *
18
12
  * `time-field` inside keeps its own `data-ui`, so nothing here restyles a
19
- * segment: this stylesheet owns the frame that holds the field, the trigger,
20
- * and the layer the list stands on. A list of times at a step has one axis,
21
- * which is why the surface is a listbox and not a grid — and why this family
22
- * composes `select`'s machinery rather than `calendar`'s.
23
- *
24
- * One shape, at every step. A column per unit was drawn and withdrawn — the
25
- * field already types every second — and so was an hour heading over the
26
- * rows, which repeated the hour each row already carries. What is left is a
27
- * list, and the length of it is answered by where the panel opens, by
28
- * type-ahead, and by PageUp and PageDown.
13
+ * segment: this stylesheet owns the frame that holds the field, and the
14
+ * trigger.
29
15
  */
30
16
  [data-ui-time-picker][data-part-root] {
31
17
  display: block;
@@ -187,531 +173,4 @@
187
173
  color: var(--slotted-disabled-foreground);
188
174
  cursor: not-allowed;
189
175
  }
190
-
191
- /* ── The layer ────────────────────────────────────────────────────────
192
- *
193
- * What `packages/core/src/positioner` writes `position`, `left` and `top`
194
- * onto. The painted surface is one element in, as every anchored family in
195
- * the library is built.
196
- */
197
- [data-ui-time-picker][data-part-positioner] {
198
- /* Only the block inset: the positioner writes `left` and never `right`,
199
- and `inset-inline-start` would resolve to `right` in a right-to-left
200
- document and win over the measured value. */
201
- position: absolute;
202
- inset-block-start: 0;
203
-
204
- box-sizing: border-box;
205
- isolation: isolate;
206
- /* The layer is only a frame around the surface; the surface takes the
207
- pointer, and the frame must not swallow a press meant for the page. */
208
- pointer-events: none;
209
- z-index: calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0));
210
-
211
- /* The layer arrives along the axis it opens on and never along the inline
212
- one, which is the rule `select` records. */
213
- --_enter-distance: var(--slotted-space-2, 0.25rem);
214
- opacity: 0;
215
- translate: 0 calc(-1 * var(--_enter-distance));
216
- transition:
217
- opacity var(--slotted-duration-short) var(--slotted-easing-exit),
218
- translate var(--slotted-duration-short) var(--slotted-easing-exit);
219
- }
220
-
221
- [data-ui-time-picker][data-part-positioner][data-side='top'] {
222
- translate: 0 var(--_enter-distance);
223
- }
224
-
225
- /* A lateral side has no block direction to arrive from, so it only fades. */
226
- [data-ui-time-picker][data-part-positioner]:is([data-side='left'], [data-side='right']) {
227
- translate: 0 0;
228
- }
229
-
230
- [data-ui-time-picker][data-part-positioner][data-open] {
231
- opacity: 1;
232
- translate: 0 0;
233
- transition: none;
234
- }
235
-
236
- /**
237
- * The entrance is a keyframe animation and not a transition, for the reason
238
- * `select` records: a transition starts from the style the browser computed
239
- * last, and the positioner writes `data-side` in the same style update as
240
- * the family opens the layer. A layer written open in static markup — the
241
- * harness, a docs snippet — is simply there, and is photographed where it
242
- * stands.
243
- */
244
- [data-ui-time-picker][data-part-positioner][data-open][data-positioned] {
245
- animation: slotted-time-picker-enter-down var(--slotted-duration-medium)
246
- var(--slotted-easing-enter);
247
- }
248
-
249
- [data-ui-time-picker][data-part-positioner][data-open][data-positioned][data-side='top'] {
250
- animation-name: slotted-time-picker-enter-up;
251
- }
252
-
253
- [data-ui-time-picker][data-part-positioner][data-open][data-positioned]:is(
254
- [data-side='left'],
255
- [data-side='right']
256
- ) {
257
- animation-name: slotted-time-picker-fade;
258
- }
259
-
260
- @keyframes slotted-time-picker-enter-down {
261
- from {
262
- opacity: 0;
263
- translate: 0 calc(-1 * var(--_enter-distance));
264
- }
265
- }
266
-
267
- @keyframes slotted-time-picker-enter-up {
268
- from {
269
- opacity: 0;
270
- translate: 0 var(--_enter-distance);
271
- }
272
- }
273
-
274
- @keyframes slotted-time-picker-fade {
275
- from {
276
- opacity: 0;
277
- }
278
- }
279
-
280
- /* Stillness keeps the fade and drops the movement. */
281
- @media (prefers-reduced-motion: reduce) {
282
- [data-ui-time-picker][data-part-positioner],
283
- [data-ui-time-picker][data-part-positioner][data-side='top'],
284
- [data-ui-time-picker][data-part-positioner][data-side='left'],
285
- [data-ui-time-picker][data-part-positioner][data-side='right'] {
286
- translate: 0 0;
287
- transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
288
- }
289
-
290
- [data-ui-time-picker][data-part-positioner][data-open][data-positioned],
291
- [data-ui-time-picker][data-part-positioner][data-open][data-positioned][data-side='top'],
292
- [data-ui-time-picker][data-part-positioner][data-open][data-positioned][data-side='left'],
293
- [data-ui-time-picker][data-part-positioner][data-open][data-positioned][data-side='right'] {
294
- animation-name: slotted-time-picker-fade;
295
- }
296
- }
297
-
298
- /* The anchor scrolled out of its own clipper. The list is still open and
299
- still belongs to a control the reader can no longer see. */
300
- [data-ui-time-picker][data-part-positioner][data-detached] {
301
- visibility: hidden;
302
- }
303
-
304
- /**
305
- * The surface.
306
- *
307
- * A grid of `auto` tracks rather than a wrapping flex row, for the reason
308
- * `date-picker` records: a footer running the whole width as a flex item
309
- * needs `flex-basis: 100%`, which is a percentage against a container being
310
- * shrink-wrapped from its contents, and the browser resolves the circle by
311
- * making the surface wider than anything in it.
312
- *
313
- * Its inline size is the anchor's, floored so a narrow field does not
314
- * produce a column too tight to read a time in, and capped so a wide form
315
- * does not stretch one column of times across a page.
316
- */
317
- [data-ui-time-picker] [data-part-content] {
318
- --_content-radius: var(--slotted-time-picker-content-radius, var(--slotted-radius-lg, 8px));
319
- --_content-padding: var(
320
- --slotted-time-picker-content-padding,
321
- var(--slotted-space-3, 0.375rem)
322
- );
323
- /* Concentric with the panel: its radius less the inset, floored at 0. */
324
- --_option-radius: var(
325
- --slotted-time-picker-option-radius,
326
- max(0px, calc(var(--_content-radius) - var(--_content-padding)))
327
- );
328
-
329
- background-color: var(--slotted-time-picker-surface, var(--slotted-surface-raised, Canvas));
330
- border: var(--slotted-border-width-thin, 1px) solid
331
- var(--slotted-time-picker-content-border-color, var(--slotted-border-subtle, ButtonBorder));
332
- border-radius: var(--_content-radius);
333
- box-shadow: var(--slotted-time-picker-content-shadow, var(--slotted-shadow-md));
334
- box-sizing: border-box;
335
- color: var(--slotted-time-picker-content-color, var(--slotted-text, CanvasText));
336
- /**
337
- * One row's height, stated once, because the panel's cap is counted in
338
- * rows: eight and a half of them at every density. Read from the control
339
- * scale rather than from the target floor alone, so a dense panel shrinks
340
- * its rows and its cap together — the first dense capture shrank only the
341
- * cap and showed six options where the comfortable one showed nine, which
342
- * is density changing what a reader can see rather than how much room it
343
- * takes.
344
- *
345
- * The pitch is the row plus the air under it, because that is what the cap
346
- * has to count: eight row *heights* left the ninth row entirely outside
347
- * the box, and the half-row that says the list scrolls was never drawn.
348
- */
349
- --_row: max(var(--slotted-target-min, 24px), var(--slotted-control-height-sm, 30px));
350
- --_row-pitch: calc(var(--_row) + var(--slotted-space-1, 0.125rem));
351
-
352
- display: grid;
353
- gap: var(--slotted-space-2, 0.25rem);
354
- grid-template-areas: 'head' 'list' 'footer';
355
- grid-template-columns: minmax(0, 1fr);
356
- /**
357
- * The anchor's width, floored so a narrow field does not produce a column
358
- * too tight to read a time in, and capped so a wide form does not stretch
359
- * one column of times across a page.
360
- *
361
- * The fallback is the floor rather than `auto` or `100%`: the property is
362
- * written by the positioner and is absent wherever the surface is drawn
363
- * without one — the harness, a docs snippet — and `min(auto, …)` is not a
364
- * value, so the whole declaration would be dropped. `100%` is no answer
365
- * either, and `table` paid for it in the same week: a percentage against a
366
- * block being shrink-wrapped from its contents resolves to the contents.
367
- */
368
- inline-size: max(
369
- var(--slotted-time-picker-content-min-inline-size, 11rem),
370
- min(var(--slotted-positioner-anchor-width, 11rem), 20rem)
371
- );
372
- padding: var(--_content-padding);
373
- /* The layer above gave up the pointer; the surface takes it back. */
374
- pointer-events: auto;
375
- }
376
-
377
- /**
378
- * The shortcuts take a column of their own only when there are any — and the
379
- * surface stops being the anchor's width when they do. A second column
380
- * inside a box sized to the field leaves the times about a hundred pixels
381
- * wide, which is a column of numbers nobody chose that shape for; the
382
- * surface shrink-wraps its two columns instead, capped by the room the
383
- * positioner measured.
384
- */
385
- [data-ui-time-picker] [data-part-content]:has([data-part-presets]) {
386
- grid-template-areas: 'presets head' 'presets list' 'footer footer';
387
- grid-template-columns: auto minmax(9rem, 1fr);
388
- inline-size: auto;
389
- max-inline-size: min(28rem, var(--slotted-positioner-available-width, 28rem));
390
- }
391
-
392
- /**
393
- * The head: one press for the current time, which is what a reader who never
394
- * discovers that `+` opens an expression still has.
395
- */
396
- [data-ui-time-picker] [data-part-head] {
397
- align-items: center;
398
- display: flex;
399
- gap: var(--slotted-space-2, 0.25rem);
400
- grid-area: head;
401
- justify-content: flex-start;
402
- padding-block-end: var(--slotted-space-2, 0.25rem);
403
- }
404
-
405
- [data-ui-time-picker] [data-part-now] {
406
- appearance: none;
407
- background-color: transparent;
408
- border: 0;
409
- border-radius: var(--_option-radius);
410
- color: var(--slotted-time-picker-now-color, var(--slotted-tone-accent-text));
411
- cursor: pointer;
412
- font: inherit;
413
- min-block-size: var(--slotted-target-min, 24px);
414
- padding-block: var(--slotted-space-1, 0.125rem);
415
- /* The option's own inset, so the control and the times it stands above run
416
- down one left edge rather than two a few pixels apart. */
417
- padding-inline: var(--slotted-space-3, 0.375rem);
418
- touch-action: manipulation;
419
- transition: background-color var(--slotted-control-transition-duration)
420
- var(--slotted-control-transition-easing);
421
- }
422
-
423
- [data-ui-time-picker] [data-part-now]:hover:not(:disabled):not([data-disabled]) {
424
- background-color: var(
425
- --slotted-time-picker-option-hover-background,
426
- var(--slotted-tone-secondary-subtle-hover)
427
- );
428
- }
429
-
430
- [data-ui-time-picker] [data-part-now]:focus-visible {
431
- outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
432
- outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
433
- }
434
-
435
- /**
436
- * The consumer's own shortcuts. This family ships no list of them: "start of
437
- * the shift" is a business clock, and a library that guessed at one would be
438
- * guessing at an industry. What it ships is the column they stand in.
439
- */
440
- [data-ui-time-picker] [data-part-presets] {
441
- align-items: flex-start;
442
- border-inline-end: var(--slotted-border-width-thin, 1px) solid
443
- var(--slotted-time-picker-content-border-color, var(--slotted-border-subtle, ButtonBorder));
444
- display: flex;
445
- flex-direction: column;
446
- gap: var(--slotted-space-2, 0.25rem);
447
- grid-area: presets;
448
- padding-inline-end: var(--slotted-space-3, 0.375rem);
449
- }
450
-
451
- /* ── The list ─────────────────────────────────────────────────────────
452
- *
453
- * One column of times, capped in control heights so the cap holds at every
454
- * density and every type step, and scrolled rather than truncated: a day of
455
- * quarter-hours is ninety-six rows and every one of them is choosable.
456
- */
457
- [data-ui-time-picker] [data-part-list] {
458
- display: flex;
459
- flex-direction: column;
460
- /**
461
- * One step of air between rows, so the chosen row's painted ground and the
462
- * focused row's inset ring never share an edge. Touching, the two read as
463
- * one band with a dark underline rather than as two states of two rows.
464
- */
465
- gap: var(--slotted-space-1, 0.125rem);
466
- grid-area: list;
467
- /* Eight rows and half of the ninth. The half is the point: a list cut on a
468
- row boundary looks like the whole list, and a reader who cannot see that
469
- ninety-six times are available never scrolls for them. */
470
- max-block-size: var(--slotted-time-picker-list-block-size, calc(var(--_row-pitch) * 8.5));
471
- min-inline-size: 0;
472
- overflow-y: auto;
473
- /**
474
- * No reserved gutter. The list's length is fixed for the life of the
475
- * panel — the step, the bounds and the predicate are all settled before it
476
- * opens — so there is no crossing of the scroll threshold to protect the
477
- * rows from, and a gutter reserved on one side alone left every row ending
478
- * twenty-one pixels short of the panel it sits in.
479
- */
480
- /* A highlight moved by a key lands whole rather than half under the edge. */
481
- scroll-padding-block: var(--slotted-space-2, 0.25rem);
482
- }
483
-
484
- /**
485
- * One time.
486
- *
487
- * The whole time on every row, which is what a reader choosing a slot wants
488
- * to read: `09:15` says more at a glance than a `15` in a column of minutes,
489
- * and the column shape exists for the steps where a flat list cannot.
490
- */
491
- [data-ui-time-picker] [data-part-option] {
492
- align-items: center;
493
- background-color: transparent;
494
- border-radius: var(--_option-radius);
495
- color: inherit;
496
- cursor: pointer;
497
- display: flex;
498
- flex: 0 0 auto;
499
- font-variant-numeric: tabular-nums;
500
- gap: var(--slotted-space-2, 0.25rem);
501
- /* The row *is* `--_row`: no block padding on top of it, so eight rows are
502
- eight rows and the cap that counts them is arithmetic rather than an
503
- estimate. A time never wraps, so there is nothing for the padding to
504
- protect. */
505
- min-block-size: var(--_row);
506
- padding-inline: var(--slotted-space-3, 0.375rem);
507
- transition:
508
- background-color var(--slotted-control-transition-duration)
509
- var(--slotted-control-transition-easing),
510
- color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);
511
- user-select: none;
512
- -webkit-tap-highlight-color: transparent;
513
- }
514
-
515
- /* ── Option states ────────────────────────────────────────────────────
516
- *
517
- * Written strongest last, and each weaker one guarded against every stronger
518
- * one it can meet, which is the order `STATE_PRECEDENCE` sets: the chosen
519
- * time outranks the highlight, and the highlight outranks the pointer.
520
- */
521
-
522
- /**
523
- * The pointer is the weakest of the four, so it stands down for all three of
524
- * the others — not only for `disabled`.
525
- *
526
- * Specificity is what makes this a rule rather than an ordering: a hover
527
- * selector carrying `:hover` and one `:not()` outweighs a plain
528
- * `[data-selected]`, so the chosen row turned grey under the pointer however
529
- * far down the file its own rule was written. `states.test.mjs` guards the
530
- * `disabled` half of `STATE_PRECEDENCE` and nothing else, which is why this
531
- * one was found by a reader rather than by a test.
532
- */
533
- [data-ui-time-picker]
534
- [data-part-option]:hover:not([data-disabled]):not([data-selected]):not([data-current]) {
535
- background-color: var(
536
- --slotted-time-picker-option-hover-background,
537
- var(--slotted-tone-secondary-subtle-hover)
538
- );
539
- }
540
-
541
- /**
542
- * Where a key will act. Focus is real here — the reader is inside the list
543
- * and a roving tabindex moves them — so the ring is the one every other
544
- * focusable row in the library draws, inset so it is not clipped by the
545
- * scroller's own edge. It stands down for the chosen row, which outranks it.
546
- */
547
- [data-ui-time-picker] [data-part-option][data-current]:not([data-selected]) {
548
- background-color: var(
549
- --slotted-time-picker-option-current-background,
550
- var(--slotted-tone-secondary-subtle-active)
551
- );
552
- }
553
-
554
- [data-ui-time-picker] [data-part-option]:focus-visible {
555
- outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
556
- outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
557
- }
558
-
559
- [data-ui-time-picker] [data-part-option][data-selected] {
560
- background-color: var(
561
- --slotted-time-picker-option-selected-background,
562
- var(--slotted-tone-accent-solid)
563
- );
564
- color: var(--slotted-time-picker-option-selected-color, var(--slotted-tone-accent-on-solid));
565
- }
566
-
567
- /**
568
- * The chosen row still answers the pointer — one step along its own tone,
569
- * rather than the grey every other row takes. Measured on the default theme:
570
- * rgb(29 78 216) at rest and rgb(42 91 220) under the pointer, which is the
571
- * same blue and a visible change. A row that swapped color family under the
572
- * pointer read as a different row, and that is the defect this pair replaces.
573
- */
574
- [data-ui-time-picker] [data-part-option][data-selected]:hover:not([data-disabled]) {
575
- background-color: var(
576
- --slotted-time-picker-option-selected-hover-background,
577
- var(--slotted-tone-accent-solid-hover)
578
- );
579
- }
580
-
581
- /**
582
- * A time a bound or the predicate refuses. It stays in the list by default,
583
- * because a list that silently drops rows is a list whose step the reader
584
- * cannot infer — and it is muted to the color the theme measures rather
585
- * than faded by opacity, so it stays readable.
586
- */
587
- [data-ui-time-picker] [data-part-option][data-disabled] {
588
- background-color: transparent;
589
- color: var(--slotted-disabled-foreground);
590
- cursor: not-allowed;
591
- }
592
-
593
- /**
594
- * Nothing available at all — `min` above `max`, or a predicate that refuses
595
- * every step. It is a sentence rather than an empty box: MUI draws nothing
596
- * here and Ant draws an empty column, and both read as a broken component.
597
- */
598
- [data-ui-time-picker] [data-part-empty] {
599
- align-items: center;
600
- color: var(--slotted-time-picker-label-color, var(--slotted-text-muted, GrayText));
601
- display: flex;
602
- grid-area: list;
603
- justify-content: center;
604
- min-block-size: calc(var(--_row) * 2);
605
- padding: var(--slotted-space-4, 0.5rem);
606
- text-align: center;
607
- text-wrap: balance;
608
- }
609
-
610
- [data-ui-time-picker] [data-part-footer] {
611
- align-items: center;
612
- border-block-start: var(--slotted-border-width-thin, 1px) solid
613
- var(--slotted-time-picker-content-border-color, var(--slotted-border-subtle, ButtonBorder));
614
- display: flex;
615
- gap: var(--slotted-space-2, 0.25rem);
616
- grid-area: footer;
617
- justify-content: flex-end;
618
- padding-block-start: var(--slotted-space-3, 0.375rem);
619
- }
620
-
621
- /* ── Narrow, on a finger ──────────────────────────────────────────────
622
- *
623
- * §2.7 of `docs/component-features.md` asks for it by name: a popover on the
624
- * desktop and a sheet in a narrow viewport. The DOM does not change, so the
625
- * decision is testable without a device — and the query is on the viewport
626
- * rather than on a container because a layer in a portal has no container to
627
- * ask, and the question really is how much screen there is.
628
- */
629
- @media (max-width: 480px) and (pointer: coarse) {
630
- [data-ui-time-picker][data-part-positioner][data-presentation='sheet'] {
631
- /* The positioner's own measurement is overridden here on purpose: a
632
- sheet is not placed against an anchor, it is placed against the
633
- screen. */
634
- inset: auto 0 0;
635
- position: fixed;
636
- translate: 0 var(--slotted-space-9, 2rem);
637
- }
638
-
639
- [data-ui-time-picker][data-part-positioner][data-presentation='sheet'][data-open] {
640
- translate: 0 0;
641
- }
642
-
643
- [data-ui-time-picker][data-part-positioner][data-presentation='sheet'] [data-part-content] {
644
- border-end-end-radius: 0;
645
- border-end-start-radius: 0;
646
- border-inline: 0;
647
- border-block-end: 0;
648
- inline-size: var(--slotted-time-picker-sheet-inline-size, 100%);
649
- }
650
-
651
- /* A sheet has the screen's height to spend, so the list takes more of it
652
- rather than staying at the popover's eight rows and a half. */
653
- [data-ui-time-picker][data-part-positioner][data-presentation='sheet'] [data-part-list] {
654
- max-block-size: 50vh;
655
- }
656
-
657
- [data-ui-time-picker][data-part-positioner][data-presentation='sheet'] [data-part-presets] {
658
- /* Beside the list there is no room for a column of shortcuts, so they
659
- become a row above it and keep their labels. */
660
- border-inline-end: 0;
661
- border-block-end: var(--slotted-border-width-thin, 1px) solid
662
- var(--slotted-time-picker-content-border-color, var(--slotted-border-subtle, ButtonBorder));
663
- flex-direction: row;
664
- flex-wrap: wrap;
665
- padding-block-end: var(--slotted-space-3, 0.375rem);
666
- padding-inline-end: 0;
667
- }
668
-
669
- /**
670
- * The grip every bottom sheet carries, in the drawer's geometry and line
671
- * color: a pill three rem by a quarter, centerd in a row one target tall
672
- * that the content keeps clear at its top. A pull down on it dismisses the
673
- * sheet; Escape and the press outside stay the accessible ways out.
674
- */
675
- [data-ui-time-picker][data-part-positioner][data-presentation='sheet'] > [data-part-content] {
676
- padding-block-start: var(--slotted-target-min, 24px);
677
- position: relative;
678
- }
679
-
680
- [data-ui-time-picker][data-part-positioner][data-presentation='sheet']
681
- > [data-part-content]
682
- > [data-part-grip] {
683
- background-clip: content-box;
684
- background-color: var(
685
- --slotted-drawer-resizer-line-color,
686
- var(--slotted-border-strong, ButtonBorder)
687
- );
688
- block-size: var(--slotted-space-2, 0.25rem);
689
- border-radius: var(--slotted-radius-full, 9999px);
690
- box-sizing: content-box;
691
- cursor: grab;
692
- inline-size: var(--slotted-space-11, 3rem);
693
- inset-block-start: 0;
694
- inset-inline: 0;
695
- margin-inline: auto;
696
- padding-block: calc((var(--slotted-target-min, 24px) - var(--slotted-space-2, 0.25rem)) / 2);
697
- position: absolute;
698
- touch-action: none;
699
- }
700
- }
701
-
702
- @media (forced-colors: active) {
703
- /* The chosen row and the highlighted row both lose their painted grounds,
704
- so each says what it is with a system pair the operating system
705
- guarantees legible together. */
706
- [data-ui-time-picker] [data-part-option][data-selected] {
707
- background-color: Highlight;
708
- color: HighlightText;
709
- forced-color-adjust: none;
710
- }
711
-
712
- [data-ui-time-picker] [data-part-option][data-current]:not([data-selected]) {
713
- outline: var(--slotted-focus-ring-width, 2px) solid Highlight;
714
- outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
715
- }
716
- }
717
176
  }
@@ -1,7 +1,4 @@
1
1
  [
2
- "--slotted-border-strong",
3
- "--slotted-border-subtle",
4
- "--slotted-border-width-thin",
5
2
  "--slotted-control-border-width",
6
3
  "--slotted-control-height-lg",
7
4
  "--slotted-control-height-md",
@@ -13,57 +10,20 @@
13
10
  "--slotted-control-transition-duration",
14
11
  "--slotted-control-transition-easing",
15
12
  "--slotted-disabled-foreground",
16
- "--slotted-drawer-resizer-line-color",
17
- "--slotted-duration-medium",
18
- "--slotted-duration-short",
19
- "--slotted-easing-enter",
20
- "--slotted-easing-exit",
21
13
  "--slotted-focus-ring-color",
22
14
  "--slotted-focus-ring-color-invalid",
23
15
  "--slotted-focus-ring-offset",
24
16
  "--slotted-focus-ring-width",
25
- "--slotted-radius-full",
26
- "--slotted-radius-lg",
27
- "--slotted-shadow-md",
28
- "--slotted-space-1",
29
- "--slotted-space-11",
30
17
  "--slotted-space-2",
31
- "--slotted-space-3",
32
- "--slotted-space-4",
33
- "--slotted-space-9",
34
- "--slotted-surface-raised",
35
18
  "--slotted-target-comfortable",
36
19
  "--slotted-target-min",
37
- "--slotted-text",
38
20
  "--slotted-text-muted",
39
- "--slotted-time-picker-content-border-color",
40
- "--slotted-time-picker-content-color",
41
- "--slotted-time-picker-content-min-inline-size",
42
- "--slotted-time-picker-content-padding",
43
- "--slotted-time-picker-content-radius",
44
- "--slotted-time-picker-content-shadow",
45
21
  "--slotted-time-picker-invalid-focus-ring-color",
46
- "--slotted-time-picker-label-color",
47
- "--slotted-time-picker-list-block-size",
48
- "--slotted-time-picker-now-color",
49
- "--slotted-time-picker-option-current-background",
50
- "--slotted-time-picker-option-hover-background",
51
- "--slotted-time-picker-option-radius",
52
- "--slotted-time-picker-option-selected-background",
53
- "--slotted-time-picker-option-selected-color",
54
- "--slotted-time-picker-option-selected-hover-background",
55
22
  "--slotted-time-picker-radius",
56
- "--slotted-time-picker-sheet-inline-size",
57
- "--slotted-time-picker-surface",
58
23
  "--slotted-time-picker-trigger-active-background",
59
24
  "--slotted-time-picker-trigger-color",
60
25
  "--slotted-time-picker-trigger-hover-background",
61
26
  "--slotted-time-picker-trigger-size",
62
- "--slotted-tone-accent-on-solid",
63
- "--slotted-tone-accent-solid",
64
- "--slotted-tone-accent-solid-hover",
65
- "--slotted-tone-accent-text",
66
27
  "--slotted-tone-secondary-subtle-active",
67
- "--slotted-tone-secondary-subtle-hover",
68
- "--slotted-z-index-popover"
28
+ "--slotted-tone-secondary-subtle-hover"
69
29
  ]