@burdenoff/fe-libs 2026.1117.3 → 2026.1117.5
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/dist/shared/assistant/i18nManifest.d.ts +21 -1
- package/dist/shared/assistant/i18nManifest.js +22 -2
- package/dist/shared/assistant/index.d.ts +8 -0
- package/dist/shared/assistant/ui/AIAssistantPanel.js +195 -194
- package/dist/shared/assistant/ui/AssistantChatArea.js +1339 -1332
- package/dist/shared/assistant/ui/compact/AssistantLanguagePill.d.ts +12 -0
- package/dist/shared/assistant/ui/compact/AssistantLanguagePill.js +13 -14
- package/dist/shared/assistant/ui/compact/AssistantWindowHeader.d.ts +8 -2
- package/dist/shared/assistant/ui/compact/AssistantWindowHeader.js +45 -39
- package/dist/shared/assistant/ui/compact/AssistantWindowWelcome.d.ts +44 -0
- package/dist/shared/assistant/ui/compact/AssistantWindowWelcome.js +110 -0
- package/dist/shared/assistant/ui/compact/AssistantWindowWelcomeCard.d.ts +29 -0
- package/dist/shared/assistant/ui/compact/AssistantWindowWelcomeCard.js +84 -0
- package/dist/shared/assistant/ui/compact/AssistantWindowWelcomeHero.d.ts +15 -0
- package/dist/shared/assistant/ui/compact/AssistantWindowWelcomeHero.js +64 -0
- package/dist/shared/assistant/ui/compact/AssistantWindowWelcomeSuggestions.d.ts +12 -0
- package/dist/shared/assistant/ui/compact/AssistantWindowWelcomeSuggestions.js +31 -0
- package/dist/shared/assistant/ui/compact/AssistantWindowWelcomeTips.d.ts +9 -0
- package/dist/shared/assistant/ui/compact/AssistantWindowWelcomeTips.js +37 -0
- package/dist/shared/assistant/ui/compact/windowTitle.d.ts +15 -0
- package/dist/shared/assistant/ui/compact/windowTitle.js +13 -0
- package/dist/shared/assistant/ui/compact/windowWelcome.d.ts +136 -0
- package/dist/shared/assistant/ui/compact/windowWelcome.js +119 -0
- package/dist/shared/assistant/ui/compact/windowWelcomeHooks.d.ts +49 -0
- package/dist/shared/assistant/ui/compact/windowWelcomeHooks.js +70 -0
- package/dist/shared/assistant/ui/composer/AssistantConnectSourceItem.d.ts +3 -1
- package/dist/shared/assistant/ui/composer/AssistantConnectSourceItem.js +27 -26
- package/dist/shared/assistant/ui/useVoiceSession.js +312 -301
- package/dist/shared/assistant/voice/handsFree.d.ts +16 -0
- package/dist/shared/assistant/voice/handsFree.js +2 -2
- package/dist/shared/assistant/voice/handsfree/audioTrackTransport.js +1 -0
- package/dist/shared/assistant/voice/handsfree/backendStreamTransport.d.ts +11 -0
- package/dist/shared/assistant/voice/handsfree/backendStreamTransport.js +118 -63
- package/dist/shared/assistant/voice/handsfree/bargeIn.d.ts +20 -1
- package/dist/shared/assistant/voice/handsfree/bargeIn.js +3 -3
- package/dist/shared/assistant/voice/handsfree/handsFreeController.d.ts +10 -1
- package/dist/shared/assistant/voice/handsfree/handsFreeController.js +103 -83
- package/dist/shared/assistant/voice/handsfree/sttTransport.d.ts +20 -0
- package/dist/shared/assistant/voice/handsfree/useHandsFreeInterrupt.d.ts +8 -0
- package/dist/shared/assistant/voice/handsfree/useHandsFreeInterrupt.js +31 -26
- package/dist/shared/assistant/voice/handsfree/webSpeechTransport.js +1 -0
- package/dist/shared-assistant.js +399 -391
- package/package.json +2 -1
- package/src/shared/tokens/tokens.css +523 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/fe-libs",
|
|
3
|
-
"version": "2026.1117.
|
|
3
|
+
"version": "2026.1117.5",
|
|
4
4
|
"description": "Burdenoff frontend primitives and domain libraries",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -375,6 +375,7 @@
|
|
|
375
375
|
"test:handsfree-browser": "node scripts/handsfree-browser-run.mjs",
|
|
376
376
|
"test:rtl-browser": "node scripts/rtl-logical-browser-run.mjs",
|
|
377
377
|
"test:depth-browser": "node scripts/depth-layer-browser-run.mjs",
|
|
378
|
+
"test:welcome-browser": "node scripts/assistant-welcome-browser-run.mjs",
|
|
378
379
|
"test": "bun test",
|
|
379
380
|
"sanity": "boff sanity",
|
|
380
381
|
"switch:status": "boff deps-mode status",
|
|
@@ -453,3 +453,526 @@
|
|
|
453
453
|
:root[data-reduce-motion] .boff-gloss-card:hover,
|
|
454
454
|
:root[data-reduce-motion] .boff-gloss-card:focus-visible { transform: none; }
|
|
455
455
|
:root[data-reduce-motion] .boff-shimmer-text { background: none; -webkit-text-fill-color: currentColor; }
|
|
456
|
+
|
|
457
|
+
/* ==========================================================================
|
|
458
|
+
* BOFF-15066 — the compact assistant's welcome: "Side slide" (operator-approved 17 Nov 2026;
|
|
459
|
+
* design2/final-a). Used only by `AssistantWindowWelcome` (the Quick window and the full compact
|
|
460
|
+
* panel's empty conversation). A separate block on purpose: the depth classes above are edited by
|
|
461
|
+
* other work (BOFF-15055).
|
|
462
|
+
*
|
|
463
|
+
* A greeting over the drifting two-hue glow, then up to three tall cards side by side; one is always
|
|
464
|
+
* open, and a tapped strip slides wide (flex-grow) while the open card folds into a strip.
|
|
465
|
+
* - Colour: semantic tokens and color-mix() only; the card hues are the accent family (Ask =
|
|
466
|
+
* accent-glow, Change = accent-glow-alt, Tips = the duo), white-on-hue at >= 5.36:1 (light).
|
|
467
|
+
* - Motion: --motion-* tokens or calc() of them only; only transform, opacity and flex-grow move.
|
|
468
|
+
* The open content is laid out at its FINAL width (container units), the icon tile glides and
|
|
469
|
+
* never fades, the strip's face returns after instant x 4/3 and the content arrives from instant
|
|
470
|
+
* on, staggered by instant / 2: no card is ever an empty block mid-slide.
|
|
471
|
+
* - Direction: logical properties, and --bw-x (1, or -1 in RTL) for every sideways transform,
|
|
472
|
+
* --bw-start for the transform origins. Keyed on the [dir] attribute, NOT :dir(): Lightning CSS
|
|
473
|
+
* (Tailwind v4's compiler) lowers :dir(rtl) to a list of :lang() selectors, which an English
|
|
474
|
+
* page shown right-to-left (the ?dir=rtl preview, a forced RTL locale) never matches.
|
|
475
|
+
* - Still: [data-still] (the component's usePrefersReducedMotion: the OS AND the app setting) and
|
|
476
|
+
* the media query both make every change instant.
|
|
477
|
+
* ========================================================================== */
|
|
478
|
+
.boff-welcome {
|
|
479
|
+
--bw-x: 1;
|
|
480
|
+
--bw-start: left;
|
|
481
|
+
--bw-hi-at: 0%;
|
|
482
|
+
position: relative;
|
|
483
|
+
isolation: isolate;
|
|
484
|
+
/* Both axes: the short-height rules below query its block size. Its height is definite (a flex:1 child with
|
|
485
|
+
* min-height 0 in the chat area's column), so size containment takes nothing from it. */
|
|
486
|
+
container: boff-welcome / size;
|
|
487
|
+
display: flex;
|
|
488
|
+
flex: 1 1 auto;
|
|
489
|
+
min-height: 0;
|
|
490
|
+
flex-direction: column;
|
|
491
|
+
overflow-x: hidden;
|
|
492
|
+
overflow-y: auto;
|
|
493
|
+
}
|
|
494
|
+
[dir="rtl"] .boff-welcome { --bw-x: -1; --bw-start: right; --bw-hi-at: 100%; }
|
|
495
|
+
[dir="rtl"] [dir="ltr"] .boff-welcome { --bw-x: 1; --bw-start: left; --bw-hi-at: 0%; }
|
|
496
|
+
/* Rows the card's fit hides (`fitWelcomeList`) stay hidden whatever their display. */
|
|
497
|
+
.boff-welcome [hidden] { display: none !important; }
|
|
498
|
+
.boff-welcome-body {
|
|
499
|
+
--bw-pad: 12px;
|
|
500
|
+
position: relative;
|
|
501
|
+
display: flex;
|
|
502
|
+
flex: 1 1 auto;
|
|
503
|
+
min-height: 0;
|
|
504
|
+
flex-direction: column;
|
|
505
|
+
justify-content: safe center;
|
|
506
|
+
gap: 12px;
|
|
507
|
+
padding-inline: var(--bw-pad);
|
|
508
|
+
padding-block-end: 12px;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/* The hero: the greeting over the glow, which clips itself. */
|
|
512
|
+
.boff-welcome-hero { position: relative; flex-shrink: 0; padding-block-start: 16px; }
|
|
513
|
+
/* The glow box starts 48 px above the hero and fades in over them: in the window that part is clipped
|
|
514
|
+
* (the hero opens the panel), and in a taller full panel, where the welcome is centred, the glow
|
|
515
|
+
* has no hard top edge. The mesh keeps the mock's place against the hero (40 px above it). */
|
|
516
|
+
.boff-welcome-glow {
|
|
517
|
+
position: absolute;
|
|
518
|
+
inset-block-start: -48px;
|
|
519
|
+
inset-inline: calc(-1 * var(--bw-pad));
|
|
520
|
+
height: 238px;
|
|
521
|
+
overflow: hidden;
|
|
522
|
+
pointer-events: none;
|
|
523
|
+
z-index: -1;
|
|
524
|
+
mask-image: linear-gradient(to bottom, transparent, var(--color-text-primary) 48px, var(--color-text-primary) calc(100% - 32px), transparent);
|
|
525
|
+
}
|
|
526
|
+
.boff-welcome-mesh { position: absolute; inset: 8px -56px -24px; }
|
|
527
|
+
.boff-welcome-hi {
|
|
528
|
+
display: flex;
|
|
529
|
+
align-items: center;
|
|
530
|
+
gap: 8px;
|
|
531
|
+
margin: 0;
|
|
532
|
+
font-size: 20px;
|
|
533
|
+
line-height: 26px;
|
|
534
|
+
font-weight: 700;
|
|
535
|
+
letter-spacing: -0.01em;
|
|
536
|
+
color: var(--color-text-primary);
|
|
537
|
+
text-wrap: pretty;
|
|
538
|
+
}
|
|
539
|
+
.boff-welcome-hi > span { min-width: 0; overflow-wrap: anywhere; }
|
|
540
|
+
.boff-welcome-time { flex-shrink: 0; width: 18px; height: 18px; color: var(--color-accent-glow); }
|
|
541
|
+
.boff-welcome-name {
|
|
542
|
+
background: linear-gradient(90deg, var(--color-accent-glow), var(--color-accent-glow-alt));
|
|
543
|
+
-webkit-background-clip: text;
|
|
544
|
+
background-clip: text;
|
|
545
|
+
color: transparent;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/* The line under the greeting: the subline, or (while "Make a change" is open) the approval pill. */
|
|
549
|
+
.boff-welcome-line { display: grid; align-items: center; min-height: 24px; margin-block-start: 4px; }
|
|
550
|
+
.boff-welcome-line > * { grid-area: 1 / 1; min-width: 0; }
|
|
551
|
+
.boff-welcome-sub {
|
|
552
|
+
margin: 0;
|
|
553
|
+
font-size: 13px;
|
|
554
|
+
line-height: 18px;
|
|
555
|
+
color: var(--color-text-secondary);
|
|
556
|
+
text-wrap: pretty;
|
|
557
|
+
transition:
|
|
558
|
+
opacity var(--motion-duration-normal) var(--motion-easing-out) var(--motion-duration-instant),
|
|
559
|
+
transform var(--motion-duration-slow) var(--motion-easing-out) var(--motion-duration-instant);
|
|
560
|
+
}
|
|
561
|
+
.boff-welcome-ok {
|
|
562
|
+
justify-self: start;
|
|
563
|
+
display: inline-flex;
|
|
564
|
+
align-items: center;
|
|
565
|
+
gap: 6px;
|
|
566
|
+
margin: 0;
|
|
567
|
+
min-height: 24px;
|
|
568
|
+
box-sizing: border-box;
|
|
569
|
+
padding-block: 3px;
|
|
570
|
+
padding-inline: 7px 10px;
|
|
571
|
+
border-radius: 999px;
|
|
572
|
+
border: 1px solid color-mix(in oklab, var(--color-status-success-bg) 30%, transparent);
|
|
573
|
+
background: color-mix(in oklab, var(--color-status-success-bg) 11%, var(--color-bg-elevated));
|
|
574
|
+
box-shadow: 0 4px 12px -8px color-mix(in oklab, var(--color-status-success-bg) 70%, transparent);
|
|
575
|
+
color: var(--color-status-success-text);
|
|
576
|
+
font-size: 12px;
|
|
577
|
+
line-height: 16px;
|
|
578
|
+
font-weight: 600;
|
|
579
|
+
opacity: 0;
|
|
580
|
+
transform: translateY(6px) scale(0.96);
|
|
581
|
+
transform-origin: center var(--bw-start);
|
|
582
|
+
transition:
|
|
583
|
+
opacity var(--motion-duration-instant) linear,
|
|
584
|
+
transform var(--motion-duration-fast) var(--motion-easing-standard);
|
|
585
|
+
}
|
|
586
|
+
.boff-welcome-ok svg { flex-shrink: 0; color: var(--color-status-success-bg); }
|
|
587
|
+
:is([data-theme="dark"], .dark) .boff-welcome-ok {
|
|
588
|
+
background: color-mix(in oklab, var(--color-status-success-bg) 16%, var(--color-bg-elevated));
|
|
589
|
+
}
|
|
590
|
+
.boff-welcome[data-approval] .boff-welcome-sub {
|
|
591
|
+
opacity: 0;
|
|
592
|
+
transform: translateY(-6px);
|
|
593
|
+
transition:
|
|
594
|
+
opacity var(--motion-duration-instant) linear,
|
|
595
|
+
transform var(--motion-duration-fast) var(--motion-easing-standard);
|
|
596
|
+
}
|
|
597
|
+
.boff-welcome[data-approval] .boff-welcome-ok {
|
|
598
|
+
opacity: 1;
|
|
599
|
+
transform: none;
|
|
600
|
+
transition:
|
|
601
|
+
opacity var(--motion-duration-slow) var(--motion-easing-out) var(--motion-duration-instant),
|
|
602
|
+
transform var(--motion-duration-slow) var(--motion-easing-out) var(--motion-duration-instant);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/* The row of cards. Capped, so a tall full panel does not stretch them over empty space: the component's fit
|
|
606
|
+
* sets --bw-row-max to the tallest card's content (so short content gives short cards), and --bw-row-min to it
|
|
607
|
+
* when even a card's kept rows need more than the room (the welcome then scrolls; a card never clips). */
|
|
608
|
+
.boff-welcome-row {
|
|
609
|
+
--bw-narrow: 46px;
|
|
610
|
+
--bw-gap: 8px;
|
|
611
|
+
--bw-cpad: 14px;
|
|
612
|
+
--bw-tile: 30px;
|
|
613
|
+
--bw-strips: 2;
|
|
614
|
+
flex: 1 1 auto;
|
|
615
|
+
min-height: var(--bw-row-min, 10rem);
|
|
616
|
+
max-height: var(--bw-row-max, 18rem);
|
|
617
|
+
display: flex;
|
|
618
|
+
gap: var(--bw-gap);
|
|
619
|
+
}
|
|
620
|
+
.boff-welcome[data-strips="1"] .boff-welcome-row { --bw-strips: 1; }
|
|
621
|
+
.boff-welcome[data-strips="0"] .boff-welcome-row { --bw-strips: 0; }
|
|
622
|
+
/* A phone panel (about 320 px): a 10 px gutter in line with the header's tile, 40 px strips. */
|
|
623
|
+
@container boff-welcome (max-width: 330px) {
|
|
624
|
+
.boff-welcome-body { --bw-pad: 10px; }
|
|
625
|
+
.boff-welcome-row { --bw-narrow: 40px; --bw-gap: 6px; }
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/* Hues: the accent family only. */
|
|
629
|
+
.boff-welcome-card--ask {
|
|
630
|
+
--bw-g1: var(--color-accent-glow);
|
|
631
|
+
--bw-g2: color-mix(in oklab, var(--color-accent-glow) 72%, var(--color-accent-glow-alt));
|
|
632
|
+
}
|
|
633
|
+
.boff-welcome-card--change {
|
|
634
|
+
--bw-g1: var(--color-accent-glow-alt);
|
|
635
|
+
--bw-g2: color-mix(in oklab, var(--color-accent-glow-alt) 72%, var(--color-accent-glow));
|
|
636
|
+
}
|
|
637
|
+
.boff-welcome-card--tips {
|
|
638
|
+
--bw-g1: color-mix(in oklab, var(--color-accent-glow) 88%, var(--color-accent-glow-alt));
|
|
639
|
+
--bw-g2: color-mix(in oklab, var(--color-accent-glow-alt) 70%, var(--color-accent-glow));
|
|
640
|
+
--bw-angle: 200deg;
|
|
641
|
+
}
|
|
642
|
+
.boff-welcome-card {
|
|
643
|
+
--bw-on: var(--boff-on-glow);
|
|
644
|
+
--bw-hi: color-mix(in oklab, var(--boff-on-glow) 7%, transparent);
|
|
645
|
+
--bw-sheen: color-mix(in oklab, var(--boff-on-glow) 26%, transparent);
|
|
646
|
+
--bw-glass: var(--boff-on-glow);
|
|
647
|
+
--bw-glass-rim: color-mix(in oklab, var(--boff-on-glow) 60%, transparent);
|
|
648
|
+
--bw-tile-ink: var(--bw-g1);
|
|
649
|
+
--bw-ring: var(--boff-on-glow);
|
|
650
|
+
--bw-bg: linear-gradient(var(--bw-angle, 160deg) in oklch, var(--bw-g1), var(--bw-g2));
|
|
651
|
+
--bw-rim: transparent;
|
|
652
|
+
--bw-tone: color-mix(in oklab, var(--color-text-secondary) 10%, transparent);
|
|
653
|
+
position: relative;
|
|
654
|
+
flex: 0 0 var(--bw-narrow);
|
|
655
|
+
min-width: 0;
|
|
656
|
+
overflow: hidden;
|
|
657
|
+
border-radius: 18px;
|
|
658
|
+
color: var(--bw-on);
|
|
659
|
+
background:
|
|
660
|
+
radial-gradient(130% 55% at var(--bw-hi-at) 0%, var(--bw-hi), transparent 62%),
|
|
661
|
+
var(--bw-bg);
|
|
662
|
+
box-shadow:
|
|
663
|
+
inset 0 0 0 1px var(--bw-rim),
|
|
664
|
+
0 10px 22px -14px color-mix(in oklab, var(--bw-g1) 80%, transparent);
|
|
665
|
+
transition: flex-grow var(--motion-duration-slower) var(--motion-easing-emphasized);
|
|
666
|
+
}
|
|
667
|
+
:is([data-theme="dark"], .dark) .boff-welcome-card {
|
|
668
|
+
--bw-on: var(--color-text-primary);
|
|
669
|
+
--bw-hi: color-mix(in oklab, var(--bw-g1) 14%, transparent);
|
|
670
|
+
--bw-sheen: color-mix(in oklab, var(--bw-g1) 30%, transparent);
|
|
671
|
+
--bw-glass: linear-gradient(135deg, var(--bw-g1), var(--bw-g2));
|
|
672
|
+
--bw-glass-rim: color-mix(in oklab, var(--bw-g1) 50%, transparent);
|
|
673
|
+
--bw-tile-ink: var(--boff-on-glow);
|
|
674
|
+
--bw-ring: var(--color-accent-glow);
|
|
675
|
+
--bw-bg: linear-gradient(var(--bw-angle, 160deg) in oklch, color-mix(in oklab, var(--bw-g1) 40%, var(--color-bg-elevated)), color-mix(in oklab, var(--bw-g2) 20%, var(--color-bg-surface)));
|
|
676
|
+
--bw-rim: color-mix(in oklab, var(--bw-g1) 42%, transparent);
|
|
677
|
+
--bw-tone: transparent;
|
|
678
|
+
}
|
|
679
|
+
.boff-welcome-card[data-open] {
|
|
680
|
+
flex-grow: 100;
|
|
681
|
+
box-shadow:
|
|
682
|
+
inset 0 0 0 1px var(--bw-rim),
|
|
683
|
+
0 14px 26px -18px color-mix(in oklab, var(--bw-g1) 80%, transparent);
|
|
684
|
+
}
|
|
685
|
+
.boff-welcome-card[data-single] { flex: 1 1 auto; }
|
|
686
|
+
.boff-welcome-card:has(.boff-welcome-head:focus-visible) {
|
|
687
|
+
outline: 2px solid var(--color-focus-ring);
|
|
688
|
+
outline-offset: 2px;
|
|
689
|
+
}
|
|
690
|
+
/* Light: the open card is calmer (a soft neutral veil), so the message box stays the loudest thing. */
|
|
691
|
+
.boff-welcome-card::before {
|
|
692
|
+
content: "";
|
|
693
|
+
position: absolute;
|
|
694
|
+
inset: 0;
|
|
695
|
+
pointer-events: none;
|
|
696
|
+
background: var(--bw-tone);
|
|
697
|
+
opacity: 0;
|
|
698
|
+
transition: opacity var(--motion-duration-slower) var(--motion-easing-emphasized);
|
|
699
|
+
}
|
|
700
|
+
.boff-welcome-card[data-open]::before { opacity: 1; }
|
|
701
|
+
/* A one-off sheen after the entrance invites a tap. */
|
|
702
|
+
.boff-welcome-card::after {
|
|
703
|
+
content: "";
|
|
704
|
+
position: absolute;
|
|
705
|
+
inset-block: 0;
|
|
706
|
+
inset-inline-start: 0;
|
|
707
|
+
width: 70%;
|
|
708
|
+
pointer-events: none;
|
|
709
|
+
background: linear-gradient(100deg, transparent 20%, var(--bw-sheen) 50%, transparent 80%);
|
|
710
|
+
transform: translateX(calc(var(--bw-x) * -120%));
|
|
711
|
+
animation: boff-welcome-sheen calc(var(--motion-duration-slower) * 2) var(--motion-easing-standard)
|
|
712
|
+
calc(var(--motion-duration-slower) + var(--motion-duration-normal) + var(--bw-sheen-step, 0) * var(--motion-duration-fast)) 1 both;
|
|
713
|
+
}
|
|
714
|
+
.boff-welcome-card--change { --bw-sheen-step: 1; }
|
|
715
|
+
.boff-welcome-card--tips { --bw-sheen-step: 2; }
|
|
716
|
+
@keyframes boff-welcome-sheen {
|
|
717
|
+
from { transform: translateX(calc(var(--bw-x) * -120%)); }
|
|
718
|
+
to { transform: translateX(calc(var(--bw-x) * 260%)); }
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/* The header button: the whole card is the target while it is a strip. */
|
|
722
|
+
.boff-welcome-h { position: absolute; inset: 0; margin: 0; font: inherit; }
|
|
723
|
+
.boff-welcome-head {
|
|
724
|
+
position: absolute;
|
|
725
|
+
inset: 0;
|
|
726
|
+
width: 100%;
|
|
727
|
+
padding: 0;
|
|
728
|
+
border: 0;
|
|
729
|
+
border-radius: inherit;
|
|
730
|
+
background: transparent;
|
|
731
|
+
color: inherit;
|
|
732
|
+
font-size: 14px;
|
|
733
|
+
line-height: 18px;
|
|
734
|
+
font-weight: 600;
|
|
735
|
+
cursor: pointer;
|
|
736
|
+
}
|
|
737
|
+
.boff-welcome-head:focus-visible { outline: none; }
|
|
738
|
+
.boff-welcome-head[aria-disabled="true"] { cursor: default; }
|
|
739
|
+
|
|
740
|
+
/* The icon tile never fades: it glides from the strip's centre to the open card's corner. */
|
|
741
|
+
.boff-welcome-tile,
|
|
742
|
+
.boff-welcome-dot {
|
|
743
|
+
display: flex;
|
|
744
|
+
align-items: center;
|
|
745
|
+
justify-content: center;
|
|
746
|
+
flex-shrink: 0;
|
|
747
|
+
color: var(--bw-tile-ink);
|
|
748
|
+
background: var(--bw-glass);
|
|
749
|
+
box-shadow: inset 0 0 0 1px var(--bw-glass-rim);
|
|
750
|
+
}
|
|
751
|
+
.boff-welcome-tile {
|
|
752
|
+
position: absolute;
|
|
753
|
+
inset-block-start: 0;
|
|
754
|
+
inset-inline-start: 0;
|
|
755
|
+
z-index: 2;
|
|
756
|
+
width: var(--bw-tile);
|
|
757
|
+
height: var(--bw-tile);
|
|
758
|
+
border-radius: 10px;
|
|
759
|
+
box-shadow:
|
|
760
|
+
inset 0 0 0 1px var(--bw-glass-rim),
|
|
761
|
+
0 6px 14px -6px color-mix(in oklab, var(--bw-g1) 80%, transparent);
|
|
762
|
+
transform-origin: top var(--bw-start);
|
|
763
|
+
transform: translate(calc(var(--bw-x) * (var(--bw-narrow) - var(--bw-tile)) / 2), 10px);
|
|
764
|
+
transition: transform var(--motion-duration-slower) var(--motion-easing-emphasized);
|
|
765
|
+
}
|
|
766
|
+
.boff-welcome-card[data-open] .boff-welcome-tile {
|
|
767
|
+
transform: translate(calc(var(--bw-x) * var(--bw-cpad)), var(--bw-cpad)) scale(1.1334);
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
/* The strip's face: its full name set vertically, and a cue. Both fade, on the strip's own width. */
|
|
771
|
+
.boff-welcome-label,
|
|
772
|
+
.boff-welcome-cue {
|
|
773
|
+
position: absolute;
|
|
774
|
+
inset-inline-start: 0;
|
|
775
|
+
width: var(--bw-narrow);
|
|
776
|
+
display: flex;
|
|
777
|
+
align-items: center;
|
|
778
|
+
justify-content: center;
|
|
779
|
+
transition: opacity var(--motion-duration-normal) var(--motion-easing-standard) calc(var(--motion-duration-instant) * 4 / 3);
|
|
780
|
+
}
|
|
781
|
+
.boff-welcome-label { inset-block: 50px 46px; }
|
|
782
|
+
.boff-welcome-vt {
|
|
783
|
+
display: block;
|
|
784
|
+
max-height: 100%;
|
|
785
|
+
overflow: hidden;
|
|
786
|
+
text-overflow: ellipsis;
|
|
787
|
+
writing-mode: vertical-rl;
|
|
788
|
+
text-orientation: sideways;
|
|
789
|
+
white-space: nowrap;
|
|
790
|
+
letter-spacing: 0.01em;
|
|
791
|
+
}
|
|
792
|
+
.boff-welcome-cue { inset-block-end: 10px; height: 26px; }
|
|
793
|
+
.boff-welcome-cue > span {
|
|
794
|
+
--bw-dir: 1;
|
|
795
|
+
display: flex;
|
|
796
|
+
align-items: center;
|
|
797
|
+
justify-content: center;
|
|
798
|
+
width: 26px;
|
|
799
|
+
height: 26px;
|
|
800
|
+
border-radius: 999px;
|
|
801
|
+
color: var(--bw-tile-ink);
|
|
802
|
+
background: var(--bw-glass);
|
|
803
|
+
box-shadow: inset 0 0 0 1px var(--bw-glass-rim);
|
|
804
|
+
}
|
|
805
|
+
/* Direction-aware: a strip before the open card grows towards the end (»), one after it towards the start («). */
|
|
806
|
+
.boff-welcome-card[data-open] ~ .boff-welcome-card .boff-welcome-cue > span { --bw-dir: -1; }
|
|
807
|
+
.boff-welcome-cue svg {
|
|
808
|
+
transform: scaleX(calc(var(--bw-dir) * var(--bw-x)));
|
|
809
|
+
transition: transform var(--motion-duration-normal) var(--motion-easing-standard);
|
|
810
|
+
}
|
|
811
|
+
.boff-welcome-card:not([data-open]) .boff-welcome-head:hover .boff-welcome-cue svg {
|
|
812
|
+
transform: translateX(calc(var(--bw-dir) * var(--bw-x) * 2px)) scaleX(calc(var(--bw-dir) * var(--bw-x)));
|
|
813
|
+
}
|
|
814
|
+
.boff-welcome-card[data-open] .boff-welcome-label,
|
|
815
|
+
.boff-welcome-card[data-open] .boff-welcome-cue {
|
|
816
|
+
opacity: 0;
|
|
817
|
+
transition: opacity var(--motion-duration-instant) var(--motion-easing-standard) 0ms;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/* The open content: laid out at its FINAL width, so the slide reveals it and never reflows it. */
|
|
821
|
+
.boff-welcome-panel {
|
|
822
|
+
position: absolute;
|
|
823
|
+
inset-block: 0;
|
|
824
|
+
inset-inline-start: 0;
|
|
825
|
+
z-index: 1;
|
|
826
|
+
width: calc(100cqw - 2 * var(--bw-pad) - var(--bw-strips) * (var(--bw-narrow) + var(--bw-gap)));
|
|
827
|
+
pointer-events: none;
|
|
828
|
+
visibility: hidden;
|
|
829
|
+
transition: visibility 0s linear var(--motion-duration-normal);
|
|
830
|
+
}
|
|
831
|
+
.boff-welcome-card[data-open] .boff-welcome-panel { visibility: visible; transition-delay: 0s; }
|
|
832
|
+
.boff-welcome-inner {
|
|
833
|
+
height: 100%;
|
|
834
|
+
box-sizing: border-box;
|
|
835
|
+
display: flex;
|
|
836
|
+
flex-direction: column;
|
|
837
|
+
gap: 10px;
|
|
838
|
+
padding: var(--bw-cpad);
|
|
839
|
+
}
|
|
840
|
+
/* Rows never shrink: content that does not fit OVERFLOWS, which is what the card's fit measures and answers by hiding chips. */
|
|
841
|
+
.boff-welcome-inner > * { flex-shrink: 0; }
|
|
842
|
+
/* Outgoing content leaves in fast (gone before the strip's label is back); incoming arrives from instant, staggered by instant / 2. */
|
|
843
|
+
.boff-welcome-in {
|
|
844
|
+
--bw-i: 0;
|
|
845
|
+
opacity: 0;
|
|
846
|
+
transform: translateX(calc(var(--bw-x) * 12px));
|
|
847
|
+
transition:
|
|
848
|
+
opacity var(--motion-duration-fast) var(--motion-easing-standard),
|
|
849
|
+
transform var(--motion-duration-fast) var(--motion-easing-standard);
|
|
850
|
+
}
|
|
851
|
+
.boff-welcome-in[data-step="1"] { --bw-i: 1; }
|
|
852
|
+
.boff-welcome-in[data-step="2"] { --bw-i: 2; }
|
|
853
|
+
.boff-welcome-in[data-step="3"] { --bw-i: 3; }
|
|
854
|
+
.boff-welcome-in[data-step="4"] { --bw-i: 4; }
|
|
855
|
+
.boff-welcome-in[data-step="5"] { --bw-i: 5; }
|
|
856
|
+
.boff-welcome-card[data-open] .boff-welcome-in {
|
|
857
|
+
opacity: 1;
|
|
858
|
+
transform: none;
|
|
859
|
+
transition:
|
|
860
|
+
opacity var(--motion-duration-slow) var(--motion-easing-out),
|
|
861
|
+
transform var(--motion-duration-slow) var(--motion-easing-out);
|
|
862
|
+
transition-delay: calc(var(--motion-duration-instant) + var(--bw-i) * var(--motion-duration-instant) / 2);
|
|
863
|
+
}
|
|
864
|
+
.boff-welcome-top { display: flex; align-items: center; min-height: 34px; padding-inline-start: 44px; }
|
|
865
|
+
/* At most two lines: a long page name ends in an ellipsis here (the header button, and so the region, keeps it whole). */
|
|
866
|
+
.boff-welcome-title {
|
|
867
|
+
display: -webkit-box;
|
|
868
|
+
-webkit-box-orient: vertical;
|
|
869
|
+
-webkit-line-clamp: 2;
|
|
870
|
+
overflow: hidden;
|
|
871
|
+
margin: 0;
|
|
872
|
+
font-size: 15px;
|
|
873
|
+
line-height: 20px;
|
|
874
|
+
font-weight: 700;
|
|
875
|
+
letter-spacing: -0.005em;
|
|
876
|
+
text-wrap: balance;
|
|
877
|
+
}
|
|
878
|
+
.boff-welcome-list,
|
|
879
|
+
.boff-welcome-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
|
|
880
|
+
|
|
881
|
+
/* Suggestions: gloss chips with a "tap to send" arrow sharing their first line. */
|
|
882
|
+
.boff-welcome-chip {
|
|
883
|
+
pointer-events: auto;
|
|
884
|
+
display: block;
|
|
885
|
+
width: 100%;
|
|
886
|
+
min-height: 40px;
|
|
887
|
+
box-sizing: border-box;
|
|
888
|
+
padding: 10px;
|
|
889
|
+
border: 1px solid transparent;
|
|
890
|
+
border-radius: 12px;
|
|
891
|
+
color: var(--color-text-primary);
|
|
892
|
+
text-align: start;
|
|
893
|
+
font-size: 13px;
|
|
894
|
+
line-height: 18px;
|
|
895
|
+
font-weight: 500;
|
|
896
|
+
text-wrap: pretty;
|
|
897
|
+
box-shadow: var(--shadow-card);
|
|
898
|
+
cursor: pointer;
|
|
899
|
+
}
|
|
900
|
+
.boff-welcome-go {
|
|
901
|
+
float: inline-end;
|
|
902
|
+
width: 14px;
|
|
903
|
+
height: 14px;
|
|
904
|
+
margin-block-start: 2px;
|
|
905
|
+
margin-inline: 6px -4px;
|
|
906
|
+
color: var(--bw-g1);
|
|
907
|
+
transform: scaleX(var(--bw-x));
|
|
908
|
+
transition: transform var(--motion-duration-fast) var(--motion-easing-standard);
|
|
909
|
+
}
|
|
910
|
+
.boff-welcome-chip:hover .boff-welcome-go,
|
|
911
|
+
.boff-welcome-chip:focus-visible .boff-welcome-go {
|
|
912
|
+
transform: translate(calc(var(--bw-x) * 2px), -2px) scaleX(var(--bw-x));
|
|
913
|
+
}
|
|
914
|
+
/* "Connect a source": the same chip, with the link icon leading. */
|
|
915
|
+
.boff-welcome-source { display: flex; align-items: center; gap: 8px; text-decoration: none; }
|
|
916
|
+
.boff-welcome-source-icon { flex-shrink: 0; width: 14px; height: 14px; color: var(--bw-g1); }
|
|
917
|
+
@container boff-welcome (max-width: 330px) {
|
|
918
|
+
.boff-welcome-chip { padding-block: 11px; padding-inline: 10px 6px; font-size: 12px; line-height: 16px; }
|
|
919
|
+
.boff-welcome-go { margin-block-start: 1px; margin-inline: 4px -2px; }
|
|
920
|
+
}
|
|
921
|
+
.boff-welcome-chip:focus-visible { outline: 2px solid var(--bw-ring); outline-offset: 2px; }
|
|
922
|
+
:is([data-theme="dark"], .dark) .boff-welcome-chip {
|
|
923
|
+
background: var(--gradient-gloss-card), color-mix(in oklab, var(--color-bg-canvas) 62%, transparent);
|
|
924
|
+
border-color: color-mix(in oklab, var(--bw-g1) 26%, transparent);
|
|
925
|
+
}
|
|
926
|
+
:is([data-theme="dark"], .dark) .boff-welcome-chip:hover,
|
|
927
|
+
:is([data-theme="dark"], .dark) .boff-welcome-chip:focus-visible {
|
|
928
|
+
border-color: color-mix(in oklab, var(--bw-g1) 60%, transparent);
|
|
929
|
+
}
|
|
930
|
+
.boff-welcome-tips { gap: 8px; }
|
|
931
|
+
.boff-welcome-tips > li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 500; }
|
|
932
|
+
.boff-welcome-tips > li > span:last-child { text-wrap: pretty; }
|
|
933
|
+
.boff-welcome-dot { width: 22px; height: 22px; margin-block-start: -2px; border-radius: 999px; }
|
|
934
|
+
|
|
935
|
+
/* A single card is no accordion: its content is simply shown, the tile already in its corner. */
|
|
936
|
+
.boff-welcome-card[data-single] .boff-welcome-panel { width: 100%; pointer-events: auto; }
|
|
937
|
+
|
|
938
|
+
/* A short window (a 1366x768 laptop leaves the Quick window about 490 px, the welcome about 236): the welcome gives
|
|
939
|
+
* up vertical air before anything scrolls. The hero and the gaps tighten, the cards may be shorter, and their insides
|
|
940
|
+
* tighten so a card's first chip and "Connect a source" still fit together. After the rules it tightens, so it wins. */
|
|
941
|
+
@container boff-welcome (max-height: 300px) {
|
|
942
|
+
.boff-welcome-hero { padding-block-start: 6px; }
|
|
943
|
+
.boff-welcome-body { gap: 8px; padding-block-end: 8px; }
|
|
944
|
+
.boff-welcome-row { --bw-cpad: 12px; min-height: var(--bw-row-min, 8rem); }
|
|
945
|
+
.boff-welcome-inner { gap: 6px; }
|
|
946
|
+
.boff-welcome-list { gap: 4px; }
|
|
947
|
+
}
|
|
948
|
+
/* Shorter still (a 320 px phone with its browser bars, about 460 px: the welcome about 206): the hero and the gaps
|
|
949
|
+
* tighten again, the open title keeps one line (the header button, and so the region, keeps the whole name) and the
|
|
950
|
+
* chips lose a little air, so the first chip and "Connect a source" fit under it. */
|
|
951
|
+
@container boff-welcome (max-height: 220px) {
|
|
952
|
+
.boff-welcome-hero { padding-block-start: 4px; }
|
|
953
|
+
.boff-welcome-hi { line-height: 24px; }
|
|
954
|
+
.boff-welcome-line { margin-block-start: 2px; }
|
|
955
|
+
.boff-welcome-body { gap: 6px; padding-block-end: 6px; }
|
|
956
|
+
.boff-welcome-row { --bw-cpad: 10px; }
|
|
957
|
+
.boff-welcome-inner { gap: 4px; }
|
|
958
|
+
.boff-welcome-title { -webkit-line-clamp: 1; }
|
|
959
|
+
.boff-welcome-chip { min-height: 34px; padding-block: 8px; }
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
/* Still: every change is instant, the sheen is gone. */
|
|
963
|
+
.boff-welcome[data-still] *,
|
|
964
|
+
.boff-welcome[data-still] *::before,
|
|
965
|
+
.boff-welcome[data-still] *::after {
|
|
966
|
+
transition: none !important;
|
|
967
|
+
animation: none !important;
|
|
968
|
+
}
|
|
969
|
+
.boff-welcome[data-still] .boff-welcome-card::after { display: none; }
|
|
970
|
+
@media (prefers-reduced-motion: reduce) {
|
|
971
|
+
.boff-welcome *,
|
|
972
|
+
.boff-welcome *::before,
|
|
973
|
+
.boff-welcome *::after {
|
|
974
|
+
transition: none !important;
|
|
975
|
+
animation: none !important;
|
|
976
|
+
}
|
|
977
|
+
.boff-welcome .boff-welcome-card::after { display: none; }
|
|
978
|
+
}
|