@burdenoff/fe-libs 2026.1115.10 → 2026.1115.12
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/avatar/live/createLiveAvatarSeam.d.ts +8 -1
- package/dist/shared/assistant/avatar/live/createLiveAvatarSeam.js +126 -123
- package/dist/shared/assistant/avatar/live/liveAvatarController.d.ts +7 -0
- package/dist/shared/assistant/avatar/live/liveAvatarController.js +3 -2
- package/dist/shared/assistant/index.d.ts +1 -0
- package/dist/shared/assistant/ui/AssistantAvatar.js +18 -14
- package/dist/shared/assistant/ui/AssistantChatArea.js +1 -0
- package/dist/shared/assistant/ui/AssistantMessageItem.d.ts +5 -0
- package/dist/shared/assistant/ui/AssistantMessageItem.js +57 -56
- package/dist/shared/assistant/ui/AssistantMessageList.js +57 -44
- package/dist/shared/assistant/ui/AssistantTurnActivity.d.ts +2 -0
- package/dist/shared/assistant/ui/AssistantTurnActivity.js +20 -17
- package/dist/shared/assistant/ui/assistantLiveAvatarSeam.d.ts +26 -0
- package/dist/shared/assistant/ui/assistantLiveAvatarSeam.js +87 -79
- package/dist/shared/assistant/ui/composer/AssistantComposer.d.ts +5 -0
- package/dist/shared/assistant/ui/composer/AssistantComposer.js +348 -343
- package/dist/shared/assistant/ui/composer/AssistantDictation.js +57 -56
- package/dist/shared/assistant/ui/composer/AssistantHandsFreeInterruptToggle.d.ts +4 -0
- package/dist/shared/assistant/ui/composer/AssistantHandsFreeInterruptToggle.js +22 -22
- package/dist/shared/assistant/ui/composer/pageBoxClass.d.ts +13 -0
- package/dist/shared/assistant/ui/composer/pageBoxClass.js +5 -0
- package/dist/shared/assistant/ui/useVoiceSession.js +223 -223
- package/dist/shared/assistant/ui/voice/AssistantPageVoiceBar.js +41 -35
- package/dist/shared/assistant/ui/voice/AssistantVoiceSessionButton.js +13 -12
- package/dist/shared/assistant/ui/voice/LiveWaveform.js +28 -27
- package/dist/shared/assistant/voice/handsfree/handsFreeController.js +79 -79
- package/dist/shared/assistant/voice/handsfree/handsFreeSetting.d.ts +6 -1
- package/dist/shared/assistant/voice/handsfree/handsFreeSetting.js +2 -2
- package/dist/shared/assistant/voice/handsfree/playbackReference.d.ts +45 -3
- package/dist/shared/assistant/voice/handsfree/playbackReference.js +62 -15
- package/dist/shared-assistant.js +371 -370
- package/package.json +1 -1
- package/src/shared/styles/app-shell.css +5 -0
- package/src/shared/tokens/build/semantic.css +12 -0
- package/src/shared/tokens/build/tailwind.preset.js +5 -0
- package/src/shared/tokens/build/themes.css +14 -0
- package/src/shared/tokens/tokens.css +268 -0
package/package.json
CHANGED
|
@@ -107,6 +107,11 @@
|
|
|
107
107
|
|
|
108
108
|
/* Semantic accent aliases */
|
|
109
109
|
--color-accent-primary: var(--color-action-primary-bg);
|
|
110
|
+
/* BOFF-14752: decorative accents (glows, orbs, tints; never body text). */
|
|
111
|
+
--color-accent-glow: var(--color-accent-glow);
|
|
112
|
+
--color-accent-glow-alt: var(--color-accent-glow-alt);
|
|
113
|
+
--color-voice-listening: var(--color-voice-listening);
|
|
114
|
+
--color-voice-speaking: var(--color-voice-speaking);
|
|
110
115
|
--color-accent-hover: var(--color-action-primary-bgHover);
|
|
111
116
|
--color-accent-active: var(--color-action-primary-bgActive);
|
|
112
117
|
--color-accent-muted: var(--color-bg-accent);
|
|
@@ -187,6 +187,13 @@
|
|
|
187
187
|
--color-status-success-text-hover: #047857;
|
|
188
188
|
--color-status-warning-text-hover: #713F12;
|
|
189
189
|
--color-status-error-text-hover: #7F1D1D;
|
|
190
|
+
/* BOFF-14752: decorative accents for depth and voice: glows, borders, orbs and tints.
|
|
191
|
+
* Never body text or a button fill (those keep the action and text tokens). Each
|
|
192
|
+
* clears 3:1 on the canvas and on a card (WCAG 2.2 SC 1.4.11). */
|
|
193
|
+
--color-accent-glow: #0E7490;
|
|
194
|
+
--color-accent-glow-alt: #4F46E5;
|
|
195
|
+
--color-voice-listening: #C2410C;
|
|
196
|
+
--color-voice-speaking: #4F46E5;
|
|
190
197
|
/* Backward compatibility aliases */
|
|
191
198
|
--color-background-base: var(--color-bg-surface);
|
|
192
199
|
--color-border-primary: var(--color-border-default);
|
|
@@ -365,6 +372,11 @@
|
|
|
365
372
|
--color-status-success-text-hover: #34D399;
|
|
366
373
|
--color-status-warning-text-hover: #FDE047;
|
|
367
374
|
--color-status-error-text-hover: #FCA5A5;
|
|
375
|
+
/* BOFF-14752: decorative accents (see the light block). Brighter on the dark canvas. */
|
|
376
|
+
--color-accent-glow: #22D3EE;
|
|
377
|
+
--color-accent-glow-alt: #8AA8FF;
|
|
378
|
+
--color-voice-listening: #FF8F4D;
|
|
379
|
+
--color-voice-speaking: #8AA8FF;
|
|
368
380
|
/* Backward compatibility aliases */
|
|
369
381
|
--color-background-base: var(--color-bg-surface);
|
|
370
382
|
--color-border-primary: var(--color-border-default);
|
|
@@ -67,6 +67,11 @@ export default {
|
|
|
67
67
|
'status-success-border': 'var(--color-status-success-border)',
|
|
68
68
|
|
|
69
69
|
// Status colors - Warning
|
|
70
|
+
// BOFF-14752: decorative accents (glows, orbs, tints; never body text).
|
|
71
|
+
'accent-glow': 'var(--color-accent-glow)',
|
|
72
|
+
'accent-glow-alt': 'var(--color-accent-glow-alt)',
|
|
73
|
+
'voice-listening': 'var(--color-voice-listening)',
|
|
74
|
+
'voice-speaking': 'var(--color-voice-speaking)',
|
|
70
75
|
'status-warning-bg': 'var(--color-status-warning-bg)',
|
|
71
76
|
'status-warning-bg-subtle': 'var(--color-status-warning-bgSubtle)',
|
|
72
77
|
'status-warning-text': 'var(--color-status-warning-text)',
|
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
* text — which reads poorly on the saturated fill). #22C55E stays the chart/
|
|
48
48
|
* accent-icon hue below. */
|
|
49
49
|
--color-action-primary-bg: #15803D;
|
|
50
|
+
/* BOFF-14752: the decorative glows follow this theme's accent. */
|
|
51
|
+
--color-accent-glow: #4ADE80;
|
|
52
|
+
--color-accent-glow-alt: #2DD4BF;
|
|
50
53
|
--color-action-primary-bgHover: #1B9E4B;
|
|
51
54
|
--color-action-primary-bgActive: #0F5C2E;
|
|
52
55
|
--color-action-primary-bgDisabled: #1F3A2C;
|
|
@@ -109,6 +112,9 @@
|
|
|
109
112
|
--color-border-strong: #34465E;
|
|
110
113
|
|
|
111
114
|
--color-action-primary-bg: #2563EB;
|
|
115
|
+
/* BOFF-14752: the decorative glows follow this theme's accent. */
|
|
116
|
+
--color-accent-glow: #60A5FA;
|
|
117
|
+
--color-accent-glow-alt: #A78BFA;
|
|
112
118
|
--color-action-primary-bgHover: #3B82F6;
|
|
113
119
|
--color-action-primary-bgActive: #1D4ED8;
|
|
114
120
|
--color-action-primary-bgDisabled: #1B2D4A;
|
|
@@ -171,6 +177,9 @@
|
|
|
171
177
|
/* Deeper orange so WHITE button text is legible (vivid #F97316 only takes
|
|
172
178
|
* dark text). #F97316 stays the chart/accent-icon hue below. */
|
|
173
179
|
--color-action-primary-bg: #C2410C;
|
|
180
|
+
/* BOFF-14752: the decorative glows follow this theme's accent. */
|
|
181
|
+
--color-accent-glow: #FB923C;
|
|
182
|
+
--color-accent-glow-alt: #F472B6;
|
|
174
183
|
--color-action-primary-bgHover: #EA580C;
|
|
175
184
|
--color-action-primary-bgActive: #9A3412;
|
|
176
185
|
--color-action-primary-bgDisabled: #45301F;
|
|
@@ -233,6 +242,11 @@
|
|
|
233
242
|
--color-border-hover: #9A9A9A;
|
|
234
243
|
|
|
235
244
|
--color-action-primary-bg: #00E676;
|
|
245
|
+
/* BOFF-14752: the decorative glows follow this theme's accent. */
|
|
246
|
+
--color-accent-glow: #00E676;
|
|
247
|
+
--color-accent-glow-alt: #40C4FF;
|
|
248
|
+
--color-voice-listening: #FFB300;
|
|
249
|
+
--color-voice-speaking: #40C4FF;
|
|
236
250
|
--color-action-primary-bgHover: #4DFF9D;
|
|
237
251
|
--color-action-primary-bgActive: #00C853;
|
|
238
252
|
--color-action-primary-bgDisabled: #1A1A1A;
|
|
@@ -179,3 +179,271 @@
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
+
|
|
183
|
+
/* BOFF-14752 / BOFF-14753 — depth and motion for opt-in surfaces (the assistant page).
|
|
184
|
+
*
|
|
185
|
+
* Plain classes, unlayered like the rest of this file, so a surface opts in by adding
|
|
186
|
+
* the class and it wins over the layered Tailwind utilities it sits beside. Colours
|
|
187
|
+
* come only from tokens (the four decorative accents in semantic.css/themes.css and
|
|
188
|
+
* the existing surfaces); motion only from the --motion-* tokens. Every animation is
|
|
189
|
+
* transform/opacity only and stops under prefers-reduced-motion and data-reduce-motion
|
|
190
|
+
* (the rule above finishes them instantly; the rules at the end remove them). */
|
|
191
|
+
:root {
|
|
192
|
+
/* What sits ON a glow (icons, bars): light on the deep light-theme accents, dark
|
|
193
|
+
* on the bright dark-theme and expressive-theme ones, whatever the button text is. */
|
|
194
|
+
--boff-on-glow: var(--color-bg-elevated);
|
|
195
|
+
/* An orb's lit corner (--boff-orb-hi, mixed in at --boff-orb-hi-share) and the rim a
|
|
196
|
+
* voice orb fades to. The light theme draws a white icon on the orb, so the corner
|
|
197
|
+
* takes only a fifth of the highlight and the rim darkens: every stop keeps 3:1. */
|
|
198
|
+
--boff-orb-hi: var(--color-bg-elevated);
|
|
199
|
+
--boff-orb-hi-share: 20%;
|
|
200
|
+
--boff-orb-rim: var(--color-text-primary);
|
|
201
|
+
--boff-mesh-a: 13%;
|
|
202
|
+
--boff-mesh-b: 11%;
|
|
203
|
+
}
|
|
204
|
+
[data-theme="dark"], .dark, :root.dark {
|
|
205
|
+
--boff-on-glow: var(--color-bg-canvas);
|
|
206
|
+
--boff-orb-hi: var(--color-text-primary);
|
|
207
|
+
--boff-orb-hi-share: 68%;
|
|
208
|
+
--boff-orb-rim: var(--color-bg-canvas);
|
|
209
|
+
--boff-mesh-a: 30%;
|
|
210
|
+
--boff-mesh-b: 24%;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@keyframes boff-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
|
|
214
|
+
@keyframes boff-rise-sm { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
|
|
215
|
+
@keyframes boff-breathe { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.24); opacity: 0; } }
|
|
216
|
+
@keyframes boff-ripple { from { transform: scale(1); opacity: 0.6; } to { transform: scale(1.85); opacity: 0; } }
|
|
217
|
+
@keyframes boff-pulse { 0%, 100% { transform: scale(0.94); } 50% { transform: scale(1.06); } }
|
|
218
|
+
@keyframes boff-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
|
|
219
|
+
@keyframes boff-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
|
|
220
|
+
@keyframes boff-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(40px, 24px, 0); } }
|
|
221
|
+
@keyframes boff-twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.14) rotate(10deg); } }
|
|
222
|
+
|
|
223
|
+
/* Entrances (M1, M5): set --boff-delay on the element for a stagger. */
|
|
224
|
+
.boff-rise { animation: boff-rise var(--motion-duration-slow) var(--motion-easing-out) var(--boff-delay, 0ms) both; }
|
|
225
|
+
.boff-rise-sm { animation: boff-rise-sm var(--motion-duration-normal) var(--motion-easing-out) both; }
|
|
226
|
+
/* Stagger steps of 40 ms for .boff-rise. */
|
|
227
|
+
.boff-delay-1 { --boff-delay: 40ms; }
|
|
228
|
+
.boff-delay-2 { --boff-delay: 80ms; }
|
|
229
|
+
.boff-delay-3 { --boff-delay: 120ms; }
|
|
230
|
+
.boff-delay-4 { --boff-delay: 160ms; }
|
|
231
|
+
.boff-delay-5 { --boff-delay: 200ms; }
|
|
232
|
+
.boff-delay-6 { --boff-delay: 240ms; }
|
|
233
|
+
.boff-delay-7 { --boff-delay: 280ms; }
|
|
234
|
+
.boff-twinkle { animation: boff-twinkle 3.2s var(--motion-easing-standard) infinite; }
|
|
235
|
+
.boff-pulse { animation: boff-pulse 1.6s var(--motion-easing-standard) infinite; }
|
|
236
|
+
|
|
237
|
+
/* M8: a two-hue glow behind a hero that drifts slowly. */
|
|
238
|
+
.boff-mesh-duo {
|
|
239
|
+
background:
|
|
240
|
+
radial-gradient(40% 58% at 32% 24%, color-mix(in oklab, var(--color-accent-glow) var(--boff-mesh-a), transparent), transparent 70%),
|
|
241
|
+
radial-gradient(36% 52% at 70% 14%, color-mix(in oklab, var(--color-accent-glow-alt) var(--boff-mesh-b), transparent), transparent 72%);
|
|
242
|
+
animation: boff-drift 24s ease-in-out infinite alternate;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* A glowing pill label (the hero badge). */
|
|
246
|
+
.boff-glow-pill {
|
|
247
|
+
border-color: color-mix(in oklab, var(--color-accent-glow) 40%, transparent);
|
|
248
|
+
background: color-mix(in oklab, var(--color-bg-elevated) 72%, transparent);
|
|
249
|
+
box-shadow: 0 0 24px -6px color-mix(in oklab, var(--color-accent-glow) 60%, transparent);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/* M2: a message box with depth and a soft glow, brighter while typing. No glass (B18). */
|
|
253
|
+
.boff-glow-box {
|
|
254
|
+
background: var(--gradient-gloss-card), var(--color-bg-elevated);
|
|
255
|
+
border-color: color-mix(in oklab, var(--color-accent-glow) 38%, var(--color-border-default));
|
|
256
|
+
box-shadow:
|
|
257
|
+
0 0 0 1px color-mix(in oklab, var(--color-accent-glow) 10%, transparent),
|
|
258
|
+
0 18px 48px -22px color-mix(in oklab, var(--color-accent-glow) 55%, transparent),
|
|
259
|
+
var(--shadow-pop);
|
|
260
|
+
transition:
|
|
261
|
+
box-shadow var(--motion-duration-normal) var(--motion-easing-standard),
|
|
262
|
+
border-color var(--motion-duration-normal) var(--motion-easing-standard);
|
|
263
|
+
}
|
|
264
|
+
.boff-glow-box:focus-within {
|
|
265
|
+
border-color: color-mix(in oklab, var(--color-accent-glow) 78%, transparent);
|
|
266
|
+
box-shadow:
|
|
267
|
+
0 0 0 4px color-mix(in oklab, var(--color-accent-glow) 20%, transparent),
|
|
268
|
+
0 22px 56px -20px color-mix(in oklab, var(--color-accent-glow) 65%, transparent),
|
|
269
|
+
var(--shadow-pop);
|
|
270
|
+
}
|
|
271
|
+
/* The same box while the microphone hears (orange: "we are hearing you"). */
|
|
272
|
+
.boff-hearing-box {
|
|
273
|
+
background: var(--gradient-gloss-card), var(--color-bg-elevated);
|
|
274
|
+
border-color: var(--color-voice-listening);
|
|
275
|
+
box-shadow:
|
|
276
|
+
0 0 0 4px color-mix(in oklab, var(--color-voice-listening) 12%, transparent),
|
|
277
|
+
0 22px 50px -26px color-mix(in oklab, var(--color-voice-listening) 70%, transparent);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/* The voice-chat button: both accents, with a ring that breathes. */
|
|
281
|
+
.boff-voice-start {
|
|
282
|
+
position: relative;
|
|
283
|
+
isolation: isolate;
|
|
284
|
+
background: linear-gradient(135deg, var(--color-accent-glow), var(--color-accent-glow-alt));
|
|
285
|
+
color: var(--boff-on-glow);
|
|
286
|
+
box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--color-accent-glow) 75%, transparent);
|
|
287
|
+
}
|
|
288
|
+
.boff-voice-start:hover { filter: brightness(1.06); }
|
|
289
|
+
.boff-voice-start::before {
|
|
290
|
+
content: "";
|
|
291
|
+
position: absolute;
|
|
292
|
+
inset: 0;
|
|
293
|
+
border-radius: inherit;
|
|
294
|
+
background: inherit;
|
|
295
|
+
z-index: -1;
|
|
296
|
+
animation: boff-breathe 2.4s var(--motion-easing-standard) infinite;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/* M3: a card with a soft sheen that lifts under the pointer. */
|
|
300
|
+
.boff-gloss-card {
|
|
301
|
+
background: var(--gradient-gloss-card), var(--color-bg-elevated);
|
|
302
|
+
transition:
|
|
303
|
+
transform var(--motion-duration-fast) var(--motion-easing-standard),
|
|
304
|
+
box-shadow var(--motion-duration-fast) var(--motion-easing-standard),
|
|
305
|
+
border-color var(--motion-duration-fast) var(--motion-easing-standard);
|
|
306
|
+
}
|
|
307
|
+
.boff-gloss-card:hover,
|
|
308
|
+
.boff-gloss-card:focus-visible {
|
|
309
|
+
transform: translateY(-2px);
|
|
310
|
+
border-color: color-mix(in oklab, var(--color-accent-glow) 45%, transparent);
|
|
311
|
+
box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-accent-glow) 30%, transparent), var(--shadow-pop);
|
|
312
|
+
}
|
|
313
|
+
/* Accent icon tiles on those cards; --alt and --duo pick the other mixes. */
|
|
314
|
+
.boff-accent-tile {
|
|
315
|
+
color: var(--boff-on-glow);
|
|
316
|
+
background: linear-gradient(135deg, var(--color-accent-glow), color-mix(in oklab, var(--color-accent-glow) 55%, var(--color-accent-glow-alt)));
|
|
317
|
+
box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--color-accent-glow) 70%, transparent);
|
|
318
|
+
}
|
|
319
|
+
.boff-accent-tile--alt {
|
|
320
|
+
background: linear-gradient(135deg, var(--color-accent-glow-alt), color-mix(in oklab, var(--color-accent-glow-alt) 60%, var(--color-accent-glow)));
|
|
321
|
+
box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--color-accent-glow-alt) 70%, transparent);
|
|
322
|
+
}
|
|
323
|
+
.boff-accent-tile--duo { background: linear-gradient(135deg, var(--color-accent-glow), var(--color-accent-glow-alt)); }
|
|
324
|
+
/* A suggestion chip that fills with a soft wash under the pointer. */
|
|
325
|
+
.boff-wash-chip {
|
|
326
|
+
background: color-mix(in oklab, var(--color-bg-elevated) 60%, transparent);
|
|
327
|
+
transition:
|
|
328
|
+
background var(--motion-duration-fast) var(--motion-easing-standard),
|
|
329
|
+
border-color var(--motion-duration-fast) var(--motion-easing-standard),
|
|
330
|
+
color var(--motion-duration-fast) var(--motion-easing-standard);
|
|
331
|
+
}
|
|
332
|
+
.boff-wash-chip:hover,
|
|
333
|
+
.boff-wash-chip:focus-visible {
|
|
334
|
+
background: linear-gradient(135deg, color-mix(in oklab, var(--color-accent-glow) 16%, transparent), color-mix(in oklab, var(--color-accent-glow-alt) 8%, transparent));
|
|
335
|
+
border-color: color-mix(in oklab, var(--color-accent-glow) 45%, transparent);
|
|
336
|
+
color: var(--color-text-primary);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/* Chat (M4 to M6): your message tint, the assistant's orb, the caret, "Thinking…". */
|
|
340
|
+
.boff-tint-bubble {
|
|
341
|
+
background: linear-gradient(135deg, color-mix(in oklab, var(--color-accent-glow) 22%, var(--color-bg-elevated)), color-mix(in oklab, var(--color-accent-glow-alt) 17%, var(--color-bg-elevated)));
|
|
342
|
+
box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent-glow) 30%, transparent);
|
|
343
|
+
}
|
|
344
|
+
.boff-orb {
|
|
345
|
+
--boff-orb: var(--color-accent-glow);
|
|
346
|
+
--boff-orb-2: var(--color-accent-glow-alt);
|
|
347
|
+
position: relative;
|
|
348
|
+
isolation: isolate;
|
|
349
|
+
color: var(--boff-on-glow);
|
|
350
|
+
background: radial-gradient(circle at 34% 28%, color-mix(in oklab, var(--boff-orb), var(--boff-orb-hi) var(--boff-orb-hi-share)) 0%, var(--boff-orb) 42%, var(--boff-orb-2) 100%);
|
|
351
|
+
box-shadow: 0 0 16px -2px color-mix(in oklab, var(--boff-orb) 60%, transparent);
|
|
352
|
+
}
|
|
353
|
+
/* The assistant's avatar on the page: a 28 px orb. */
|
|
354
|
+
.boff-orb--avatar { width: 1.75rem; height: 1.75rem; margin-top: 0; }
|
|
355
|
+
.boff-orb--listening { --boff-orb: var(--color-voice-listening); --boff-orb-2: color-mix(in oklab, var(--color-voice-listening) 70%, var(--boff-orb-rim)); }
|
|
356
|
+
.boff-orb--speaking { --boff-orb: var(--color-voice-speaking); --boff-orb-2: color-mix(in oklab, var(--color-voice-speaking) 70%, var(--boff-orb-rim)); }
|
|
357
|
+
.boff-orb--thinking {
|
|
358
|
+
background: conic-gradient(from 0deg, var(--color-accent-glow), var(--color-accent-glow-alt), var(--color-accent-glow));
|
|
359
|
+
box-shadow: 0 0 22px -2px color-mix(in oklab, var(--color-accent-glow) 70%, transparent);
|
|
360
|
+
animation: boff-pulse 1.6s var(--motion-easing-standard) infinite;
|
|
361
|
+
}
|
|
362
|
+
/* Rings: --ring draws outlines (listening, a working avatar), --fill draws soft discs (speaking). */
|
|
363
|
+
.boff-ripple::before,
|
|
364
|
+
.boff-ripple::after {
|
|
365
|
+
content: "";
|
|
366
|
+
position: absolute;
|
|
367
|
+
inset: 0;
|
|
368
|
+
border-radius: 9999px;
|
|
369
|
+
border: 2px solid var(--boff-orb);
|
|
370
|
+
z-index: -1;
|
|
371
|
+
animation: boff-ripple 1.8s var(--motion-easing-out) infinite;
|
|
372
|
+
}
|
|
373
|
+
.boff-ripple::after { animation-delay: 0.9s; }
|
|
374
|
+
.boff-ripple--fill::before,
|
|
375
|
+
.boff-ripple--fill::after {
|
|
376
|
+
border: 0;
|
|
377
|
+
background: color-mix(in oklab, var(--boff-orb) 32%, transparent);
|
|
378
|
+
}
|
|
379
|
+
.boff-caret-glow {
|
|
380
|
+
width: 2px;
|
|
381
|
+
background: var(--color-accent-glow);
|
|
382
|
+
animation: boff-caret 1s steps(1) infinite;
|
|
383
|
+
}
|
|
384
|
+
.boff-shimmer-text {
|
|
385
|
+
background: linear-gradient(90deg, currentColor 0%, currentColor 38%, var(--color-accent-glow) 50%, currentColor 62%, currentColor 100%);
|
|
386
|
+
background-size: 200% 100%;
|
|
387
|
+
-webkit-background-clip: text;
|
|
388
|
+
background-clip: text;
|
|
389
|
+
-webkit-text-fill-color: transparent;
|
|
390
|
+
animation: boff-shimmer 2.2s linear infinite;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/* The voice dock (M7): one colour per turn. Orange: we hear you. Cyan: thinking. Blue: speaking. */
|
|
394
|
+
.boff-dock {
|
|
395
|
+
background: var(--gradient-gloss-card), var(--color-bg-elevated);
|
|
396
|
+
transition:
|
|
397
|
+
border-color var(--motion-duration-normal) var(--motion-easing-standard),
|
|
398
|
+
box-shadow var(--motion-duration-normal) var(--motion-easing-standard);
|
|
399
|
+
}
|
|
400
|
+
.boff-dock--listening {
|
|
401
|
+
border-color: var(--color-voice-listening);
|
|
402
|
+
box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-voice-listening) 12%, transparent), 0 22px 50px -26px color-mix(in oklab, var(--color-voice-listening) 70%, transparent);
|
|
403
|
+
}
|
|
404
|
+
.boff-dock--thinking {
|
|
405
|
+
border-color: color-mix(in oklab, var(--color-accent-glow) 70%, transparent);
|
|
406
|
+
box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-accent-glow) 10%, transparent), 0 22px 50px -26px color-mix(in oklab, var(--color-accent-glow) 60%, transparent);
|
|
407
|
+
}
|
|
408
|
+
.boff-dock--speaking {
|
|
409
|
+
border-color: var(--color-voice-speaking);
|
|
410
|
+
box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-voice-speaking) 12%, transparent), 0 22px 50px -26px color-mix(in oklab, var(--color-voice-speaking) 70%, transparent);
|
|
411
|
+
}
|
|
412
|
+
.boff-text-listening { color: var(--color-voice-listening); }
|
|
413
|
+
.boff-text-thinking { color: var(--color-accent-glow); }
|
|
414
|
+
.boff-text-speaking { color: var(--color-voice-speaking); }
|
|
415
|
+
.boff-bg-listening { background-color: var(--color-voice-listening); }
|
|
416
|
+
.boff-finish-listening {
|
|
417
|
+
border-color: var(--color-voice-listening);
|
|
418
|
+
background-color: color-mix(in oklab, var(--color-voice-listening) 14%, transparent);
|
|
419
|
+
color: var(--color-voice-listening);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/* A component that already knows motion is reduced (usePrefersReducedMotion covers
|
|
423
|
+
* both the OS setting and the app's own) asks for a still element outright. */
|
|
424
|
+
.boff-still { animation: none !important; }
|
|
425
|
+
|
|
426
|
+
/* Reduced motion: nothing moves; every state still reads from its colour and words. */
|
|
427
|
+
@media (prefers-reduced-motion: reduce) {
|
|
428
|
+
.boff-rise, .boff-rise-sm, .boff-twinkle, .boff-pulse, .boff-mesh-duo, .boff-orb--thinking, .boff-caret-glow,
|
|
429
|
+
.boff-voice-start::before, .boff-ripple::before, .boff-ripple::after, .boff-shimmer-text {
|
|
430
|
+
animation: none !important;
|
|
431
|
+
}
|
|
432
|
+
.boff-voice-start::before, .boff-ripple::before, .boff-ripple::after { opacity: 0; }
|
|
433
|
+
.boff-gloss-card:hover, .boff-gloss-card:focus-visible { transform: none; }
|
|
434
|
+
.boff-shimmer-text { background: none; -webkit-text-fill-color: currentColor; }
|
|
435
|
+
}
|
|
436
|
+
:root[data-reduce-motion] .boff-mesh-duo,
|
|
437
|
+
:root[data-reduce-motion] .boff-pulse,
|
|
438
|
+
:root[data-reduce-motion] .boff-twinkle,
|
|
439
|
+
:root[data-reduce-motion] .boff-orb--thinking,
|
|
440
|
+
:root[data-reduce-motion] .boff-caret-glow,
|
|
441
|
+
:root[data-reduce-motion] .boff-voice-start::before,
|
|
442
|
+
:root[data-reduce-motion] .boff-ripple::before,
|
|
443
|
+
:root[data-reduce-motion] .boff-ripple::after { animation: none !important; }
|
|
444
|
+
:root[data-reduce-motion] .boff-voice-start::before,
|
|
445
|
+
:root[data-reduce-motion] .boff-ripple::before,
|
|
446
|
+
:root[data-reduce-motion] .boff-ripple::after { opacity: 0; }
|
|
447
|
+
:root[data-reduce-motion] .boff-gloss-card:hover,
|
|
448
|
+
:root[data-reduce-motion] .boff-gloss-card:focus-visible { transform: none; }
|
|
449
|
+
:root[data-reduce-motion] .boff-shimmer-text { background: none; -webkit-text-fill-color: currentColor; }
|