@mt-gloss/ui 0.0.22 → 0.0.24
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-BCEAQsJY.js → Expandable-GaZcfHDZ.js} +5040 -4944
- package/catalog.js +92 -91
- package/index.d.ts +4 -0
- package/index.js +974 -848
- package/lib/facade/data-display.d.ts +2 -2
- package/lib/primitives/dashboard/MetricCard/CardShell.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/flipAndStage/types.d.ts +20 -0
- package/lib/primitives/dashboard/MetricCard/index.d.ts +0 -2
- package/lib/primitives/dashboard/MetricCard/overflowMenuRegistry.d.ts +1 -25
- package/lib/primitives/dashboard/MetricCard/types.d.ts +17 -3
- package/lib/primitives/dashboard/MetricCard/useSlideOutReveal.d.ts +1 -42
- package/lib/primitives/dashboard/ReconfigBacksideButtons/ReconfigBacksideButtons.d.ts +13 -0
- package/lib/primitives/dashboard/ReconfigBacksideButtons/__tests__/fixtures/nyquist-10-matrix.d.ts +19 -0
- package/lib/primitives/dashboard/ReconfigBacksideButtons/index.d.ts +5 -0
- package/lib/primitives/dashboard/ReconfigBacksideButtons/types.d.ts +47 -0
- package/lib/primitives/dashboard/index.d.ts +1 -0
- package/lib/primitives/overlays/ActionStrip/ActionStrip.d.ts +9 -0
- package/lib/primitives/overlays/ActionStrip/__tests__/fixtures/nyquist-09-parity-matrix.d.ts +18 -0
- package/lib/primitives/overlays/ActionStrip/defaultActions.d.ts +32 -0
- package/lib/primitives/overlays/ActionStrip/index.d.ts +7 -0
- package/lib/primitives/overlays/ActionStrip/motion.d.ts +148 -0
- package/lib/primitives/overlays/ActionStrip/overflowMenuRegistry.d.ts +30 -0
- package/lib/primitives/overlays/ActionStrip/types.d.ts +115 -0
- package/lib/primitives/overlays/ActionStrip/useActionStripRegistry.d.ts +7 -0
- package/lib/primitives/overlays/ActionStrip/useSlideOutReveal.d.ts +47 -0
- package/lib/primitives/overlays/index.d.ts +1 -0
- package/package.json +1 -1
- package/ui.css +1 -1
- package/lib/primitives/dashboard/MetricCard/GutterActions.d.ts +0 -89
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface UseActionStripRegistryReturn {
|
|
2
|
+
/** Resolved menu id — prop if provided, else the generated useId() value. */
|
|
3
|
+
menuId: string;
|
|
4
|
+
/** Currently-active menu id across the dashboard (null if no menu is open). */
|
|
5
|
+
activeMenuId: string | null;
|
|
6
|
+
}
|
|
7
|
+
export declare function useActionStripRegistry(expanded: boolean, menuId: string | undefined, onExpandedChange: (open: boolean) => void): UseActionStripRegistryReturn;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ActionStrip';
|