@mt-gloss/ui 0.1.66 → 0.1.68
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/{Expandable-TqBH7CTs.js → Expandable-BujNoomx.js} +1335 -1329
- package/catalog.js +2 -2
- package/index.js +970 -952
- package/lib/primitives/dashboard/MetricCard/CardShell.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/index.d.ts +1 -0
- package/lib/primitives/dashboard/MetricCard/types.d.ts +4 -0
- package/lib/primitives/dashboard/MetricCard/useResizeChoreography.d.ts +6 -0
- package/lib/primitives/dashboard/TrackingOutline/TrackingOutline.d.ts +18 -1
- package/package.json +1 -1
- package/ui.css +1 -1
|
@@ -17,6 +17,6 @@ import { CardShellProps } from './types';
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
export declare const CardShell: {
|
|
20
|
-
({ contentSlot, children, colSpan, isStale, isRetrying, beta, disabled, style, accentRing, onGraph, onDetails, onCustomize, onRemove, onWhatsThis, onExpand, onShrink, onMove, onReplace, onNavigate, onRetry, onRefresh, enableQuickSettings, onUpdateTimeframe, instanceTimeframe, cardTitle, quickConfigSlot, onViewAsStack, onUnstack, isStackedGroup, onUpdateStackedTimeframes, instanceStackedTimeframes, isGraphActive, isTableActive, isGraphCard, canExpand, anchorX, extensionOverflow, cardRef: externalCardRef, hovered, forceHide, isFlipped, onFlipChange, }: CardShellProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
({ contentSlot, children, colSpan, isStale, isRetrying, beta, disabled, style, accentRing, onGraph, onDetails, onCustomize, onRemove, onWhatsThis, onExpand, onShrink, onMove, onReplace, onNavigate, onRetry, onRefresh, enableQuickSettings, onUpdateTimeframe, instanceTimeframe, cardTitle, quickConfigSlot, onViewAsStack, onUnstack, isStackedGroup, onUpdateStackedTimeframes, instanceStackedTimeframes, isGraphActive, isTableActive, isGraphCard, canExpand, anchorX, extensionOverflow, cardRef: externalCardRef, hovered, forceHide, resizePhase, outgoingSnapshot, isFlipped, onFlipChange, }: CardShellProps): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
displayName: string;
|
|
22
22
|
};
|
|
@@ -20,6 +20,7 @@ export * from './types';
|
|
|
20
20
|
export type { CardBackProps } from './CardBack';
|
|
21
21
|
export type { StackedGroupCardProps, StackedValueEntry, SlotActionStripConfig, SlotToActionStripConfig, } from './StackedGroupCard';
|
|
22
22
|
export type { ResizeState, ResizeDirection, ResizeMode, ResizeCommit, UseEdgeHoverResizeArgs, UseEdgeHoverResizeReturn, } from './useEdgeHoverResize';
|
|
23
|
+
export type { ChoreographyPhase, UseResizeChoreographyReturn } from './useResizeChoreography';
|
|
23
24
|
export type { EdgeHoverHandleProps } from './EdgeHoverHandle';
|
|
24
25
|
export type { GhostPreviewProps } from './GhostPreview';
|
|
25
26
|
export { SparklineBg } from './visualizations/SparklineBg';
|
|
@@ -265,4 +265,8 @@ export interface CardShellProps {
|
|
|
265
265
|
* @default false
|
|
266
266
|
*/
|
|
267
267
|
forceHide?: boolean;
|
|
268
|
+
/** Phase 11.2 — resize choreography phase. Drives data-resize-phase on front-face BaseBox for B-path overlay. */
|
|
269
|
+
resizePhase?: import('./useResizeChoreography').ChoreographyPhase;
|
|
270
|
+
/** Phase 11.2 — outgoing composition snapshot (B-path). Rendered above live content during 'outgoing'; fades out on 'incoming'. */
|
|
271
|
+
outgoingSnapshot?: React.ReactNode;
|
|
268
272
|
}
|
|
@@ -36,6 +36,8 @@ export interface UseResizeChoreographyArgs {
|
|
|
36
36
|
rowHeight: number;
|
|
37
37
|
gap: number;
|
|
38
38
|
}
|
|
39
|
+
/** B-path: derived from edgeHover.state lifecycle. Drives B-overlay opacity (Plan 03a). */
|
|
40
|
+
export type ChoreographyPhase = 'idle' | 'outgoing' | 'incoming' | 'settled';
|
|
39
41
|
export interface UseResizeChoreographyReturn {
|
|
40
42
|
trackingOutline: {
|
|
41
43
|
cell: Cell;
|
|
@@ -52,6 +54,10 @@ export interface UseResizeChoreographyReturn {
|
|
|
52
54
|
fireKey: number;
|
|
53
55
|
} | null;
|
|
54
56
|
shrinkFreedCells: Cell[];
|
|
57
|
+
/** B-path: derived from edgeHover.state lifecycle. Drives B-overlay opacity. */
|
|
58
|
+
phase: ChoreographyPhase;
|
|
59
|
+
/** A-path fallback: held value of colSpan, flushed at lifecycle exit (CONTEXT D-05). */
|
|
60
|
+
displayColSpan: 1 | 2 | 3;
|
|
55
61
|
}
|
|
56
62
|
export declare function useResizeChoreography(args: UseResizeChoreographyArgs): UseResizeChoreographyReturn;
|
|
57
63
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MotionValue } from 'motion/react';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
export interface TrackingOutlineProps {
|
|
3
4
|
/** D-01 — gesture discriminator. drag stays 2px solid (D-15 #4 parity); resize gets 2.5px + dashed-retreated pattern support. */
|
|
@@ -17,6 +18,22 @@ export interface TrackingOutlineProps {
|
|
|
17
18
|
/** DRAG-06 default 120ms cubic-bezier(0.4, 0, 0.2, 1) on transform. */
|
|
18
19
|
transitionMs?: number;
|
|
19
20
|
className?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Phase 11.2 — continuous spring-driven width for resize gesture.
|
|
23
|
+
*
|
|
24
|
+
* When provided, renders as `motion.div` and binds `width` directly to the
|
|
25
|
+
* MotionValue (zero React re-renders per pointermove). Supersedes the
|
|
26
|
+
* discrete `colSpan`-derived static width so the outline stretches
|
|
27
|
+
* continuously with the cursor instead of snapping at column thresholds.
|
|
28
|
+
*
|
|
29
|
+
* Pass `useEdgeHoverResize().ghostProps.ghostWidth`.
|
|
30
|
+
* The CSS `transition` on transform is omitted when motionWidth is active —
|
|
31
|
+
* the spring on the MotionValue owns all animation.
|
|
32
|
+
*
|
|
33
|
+
* Drag-side callers (gesture='drag') must NOT pass this prop — they preserve
|
|
34
|
+
* D-15 #4 parity (static colSpan width + CSS transition).
|
|
35
|
+
*/
|
|
36
|
+
motionWidth?: MotionValue<number>;
|
|
20
37
|
}
|
|
21
38
|
/**
|
|
22
39
|
* Phase 11 D-01 — Shared tracking-outline base for drag + resize gestures.
|
|
@@ -55,4 +72,4 @@ export interface TrackingOutlineProps {
|
|
|
55
72
|
* - 2px (drag) or 2.5px (resize) border using `var(--gloss-g02-tracking-outline)`.
|
|
56
73
|
* - Rendered INSIDE the grid container, NOT inside `<DragOverlay>`.
|
|
57
74
|
*/
|
|
58
|
-
export declare function TrackingOutline({ gesture, cell, colSpan, colWidth, gap, rowHeight, pattern, transitionMs, className, }: TrackingOutlineProps): React.JSX.Element;
|
|
75
|
+
export declare function TrackingOutline({ gesture, cell, colSpan, colWidth, gap, rowHeight, pattern, transitionMs, className, motionWidth, }: TrackingOutlineProps): React.JSX.Element;
|