@mt-gloss/ui 0.0.46 → 0.0.48
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-BdC9RXOI.js → Expandable-CsLVYNv3.js} +4769 -4877
- package/catalog.js +39 -40
- package/index.js +1228 -1223
- package/lib/facade/data-display.d.ts +0 -2
- package/lib/primitives/dashboard/MetricCard/CardShell.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/__tests__/_testSupport/gridHoverListeners.d.ts +29 -0
- package/lib/primitives/dashboard/MetricCard/__tests__/nyquist-10.fixture.d.ts +93 -0
- package/lib/primitives/dashboard/MetricCard/index.d.ts +0 -2
- package/lib/primitives/dashboard/MetricCard/types.d.ts +15 -0
- package/lib/primitives/dashboard/MetricCard/useEdgeHoverResize.d.ts +31 -1
- package/lib/primitives/overlays/ActionStrip/index.d.ts +0 -2
- package/lib/primitives/overlays/ActionStrip/types.d.ts +5 -1
- package/package.json +1 -1
- package/ui.css +1 -1
- package/lib/primitives/dashboard/MetricCard/useSlideOutReveal.d.ts +0 -1
- package/lib/primitives/overlays/ActionStrip/useSlideOutReveal.d.ts +0 -47
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
type SlideDirection = 'down' | 'left';
|
|
2
|
-
type AnimationPhase = 'hidden' | 'entering-behind' | 'entering-front' | 'visible' | 'exiting-front' | 'exiting-behind';
|
|
3
|
-
export interface SlideOutRevealConfig {
|
|
4
|
-
slideDirection?: SlideDirection;
|
|
5
|
-
behindDuration?: number;
|
|
6
|
-
frontDuration?: number;
|
|
7
|
-
easing?: string;
|
|
8
|
-
behindEasing?: string;
|
|
9
|
-
zBehind?: number;
|
|
10
|
-
zFront?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface SlideOutRevealStyle {
|
|
13
|
-
transform: string;
|
|
14
|
-
zIndex: number;
|
|
15
|
-
transition: string;
|
|
16
|
-
pointerEvents: 'auto' | 'none';
|
|
17
|
-
}
|
|
18
|
-
export interface SlideOutRevealReturn {
|
|
19
|
-
phase: AnimationPhase;
|
|
20
|
-
handleTransitionEnd: () => void;
|
|
21
|
-
style: SlideOutRevealStyle;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* useSlideOutReveal -- 6-state slide-out animation hook.
|
|
25
|
-
*
|
|
26
|
-
* MOVED from `primitives/dashboard/MetricCard/useSlideOutReveal.ts` in Phase 16
|
|
27
|
-
* plan 16-01 alongside the GutterActions → ActionStrip rewrite. The legacy path
|
|
28
|
-
* re-exports from this module so existing consumers continue to compile during
|
|
29
|
-
* the multi-plan transition.
|
|
30
|
-
*
|
|
31
|
-
* Two-phase reveal: element slides from behind a parent surface (z-index behind),
|
|
32
|
-
* then once it emerges, z-index switches to front and it settles at resting position.
|
|
33
|
-
* Exit is the reverse sequence.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* import { useSlideOutReveal } from '@mt-gloss/ui';
|
|
38
|
-
*
|
|
39
|
-
* const { phase, handleTransitionEnd, style } = useSlideOutReveal(isVisible, {
|
|
40
|
-
* slideDirection: 'down',
|
|
41
|
-
* zBehind: 1,
|
|
42
|
-
* zFront: 16,
|
|
43
|
-
* });
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
export declare function useSlideOutReveal(visible: boolean, config?: SlideOutRevealConfig): SlideOutRevealReturn;
|
|
47
|
-
export {};
|