@pieai/swimmer-ui-kit 2.8.0 → 2.9.0

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.
@@ -0,0 +1 @@
1
+ .game-ui-liquid-presence{--liquid-presence-from:var(--game-ui-secondary);--liquid-presence-to:var(--game-ui-secondary);vertical-align:middle;pointer-events:none;color:var(--game-ui-secondary);flex:none;line-height:0;display:inline-block;position:relative}.game-ui-liquid-presence>svg{width:100%;height:100%;display:block;overflow:visible}.game-ui-liquid-presence[data-activity=disabled]{opacity:.5}.game-ui-liquid-presence[data-activity=error],.game-ui-liquid-presence[data-activity=unknown]{--liquid-presence-from:var(--game-ui-warning);--liquid-presence-to:var(--game-ui-warning)}.game-ui-liquid-presence-overlay{z-index:95;pointer-events:none;color:var(--game-ui-secondary);position:fixed;inset:0;overflow:visible}.game-ui-liquid-presence-overlay>[hidden]{display:none!important}.game-ui-liquid-presence-flight,.game-ui-liquid-presence-seat{transform-origin:50%;position:absolute;top:0;left:0;overflow:visible}.game-ui-liquid-presence-flight{width:96px;height:72px}.game-ui-liquid-presence-seat{width:112px;height:56px}.game-ui-liquid-presence-label{box-sizing:border-box;border-radius:var(--game-ui-radius-control,12px);background:var(--game-ui-panel-strong);width:max-content;max-width:min(260px,100vw - 32px);color:var(--game-ui-text);box-shadow:var(--game-ui-shadow-button);font:500 13px/1.5 var(--game-ui-font-body);overflow-wrap:anywhere;text-wrap:pretty;padding:9px 14px;position:absolute;top:0;left:0}@media (prefers-reduced-motion:reduce){.game-ui-liquid-presence-flight{display:none}}@media (forced-colors:active){.game-ui-liquid-presence svg g,.game-ui-liquid-presence-overlay svg g,.game-ui-liquid-presence-overlay svg path{filter:none;fill:highlight}.game-ui-liquid-presence-label{color:canvastext;box-shadow:none;background:canvas;border:1px solid canvastext}}
@@ -0,0 +1,44 @@
1
+ import { JSX } from 'react';
2
+
3
+ /** A liquid body and its visual gesture. It never creates a model, acquires
4
+ * media, clicks an app control, or interprets animation as a task receipt. */
5
+ export declare function LiquidPresence(props: LiquidPresenceProps): JSX.Element;
6
+
7
+ /** Presentation observations, not a provider/session/task state machine. */
8
+ export declare type LiquidPresenceActivity = 'idle' | 'connecting' | 'listening' | 'thinking' | 'speaking' | 'working' | 'error' | 'unknown' | 'disabled';
9
+
10
+ export declare interface LiquidPresenceProps {
11
+ activity?: LiquidPresenceActivity;
12
+ size?: number;
13
+ target?: LiquidPresenceTarget | null;
14
+ /** True disables travel but never removes the target explanation. */
15
+ reducedMotion?: boolean;
16
+ /** Actual amplitude only. Null/invalid values mean unavailable, not mock audio. */
17
+ levelRef?: {
18
+ readonly current: number | null;
19
+ };
20
+ colorFrom?: string;
21
+ colorTo?: string;
22
+ className?: string;
23
+ /** Visual dismissal only; never wire this to task cancellation. */
24
+ onDismiss?(reason: 'dismissed' | 'unavailable' | 'expired'): void;
25
+ }
26
+
27
+ /** Geometry only. These rectangles come from the host, never from a model. */
28
+ export declare interface LiquidPresenceRect {
29
+ x: number;
30
+ y: number;
31
+ width: number;
32
+ height: number;
33
+ }
34
+
35
+ export declare interface LiquidPresenceTarget {
36
+ /** A new key means a new gesture, even when the target stays the same. */
37
+ key: string;
38
+ label: string;
39
+ getRect(): LiquidPresenceRect | null;
40
+ /** Supplies clipping/scroll context and the correct native-dialog portal. */
41
+ contextElement?: Element | null;
42
+ }
43
+
44
+ export { }