@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
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
export interface GutterActionsProps {
|
|
2
|
-
visible: boolean;
|
|
3
|
-
menuOpen: boolean;
|
|
4
|
-
onMenuToggle: (open: boolean) => void;
|
|
5
|
-
onGraph?: () => void;
|
|
6
|
-
onDetails?: () => void;
|
|
7
|
-
onCustomize?: () => void;
|
|
8
|
-
onRemove?: () => void;
|
|
9
|
-
onWhatsThis?: () => void;
|
|
10
|
-
onExpand?: () => void;
|
|
11
|
-
onShrink?: () => void;
|
|
12
|
-
onMove?: () => void;
|
|
13
|
-
onReplace?: () => void;
|
|
14
|
-
onNavigate?: () => void;
|
|
15
|
-
onRetry?: () => void;
|
|
16
|
-
onRefresh?: () => void;
|
|
17
|
-
onQuickSettings?: () => void;
|
|
18
|
-
onFlipBack?: () => void;
|
|
19
|
-
isFlipped?: boolean;
|
|
20
|
-
onViewAsStack?: () => void;
|
|
21
|
-
onUnstack?: () => void;
|
|
22
|
-
canExpand?: boolean;
|
|
23
|
-
isGraphCard?: boolean;
|
|
24
|
-
colSpan?: 1 | 2 | 3;
|
|
25
|
-
isGraphActive?: boolean;
|
|
26
|
-
isTableActive?: boolean;
|
|
27
|
-
/** Label for graph pill button (injected, no registry dependency). */
|
|
28
|
-
graphLabel?: string;
|
|
29
|
-
/** Label for details pill button (injected, no registry dependency). */
|
|
30
|
-
detailsLabel?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Pill variant:
|
|
33
|
-
* - 'default': standard pill with graph/details/more controls
|
|
34
|
-
* - 'config': replaces 'more' with Save (Check) + Cancel (Close) pills (D-10)
|
|
35
|
-
*/
|
|
36
|
-
variant?: 'default' | 'config';
|
|
37
|
-
/** Called when Save pill is clicked in config variant. */
|
|
38
|
-
onConfigSave?: () => void;
|
|
39
|
-
/** Called when Cancel pill is clicked in config variant. */
|
|
40
|
-
onConfigCancel?: () => void;
|
|
41
|
-
/**
|
|
42
|
-
* Cluster C (quick-260417-ago) — Singleton overflow-menu identifier.
|
|
43
|
-
*
|
|
44
|
-
* When provided, this GutterActions instance cooperates with
|
|
45
|
-
* `overflowMenuRegistry` so only one overflow menu across the whole
|
|
46
|
-
* dashboard may be open at a time. Opening menu N sets the registry's
|
|
47
|
-
* activeId to N; any OTHER instance sees active !== its own id and closes
|
|
48
|
-
* its menu automatically via onMenuToggle(false).
|
|
49
|
-
*
|
|
50
|
-
* If omitted, a useId() fallback is used so each instance still gets a
|
|
51
|
-
* unique registry key — the singleton behavior still works across cards.
|
|
52
|
-
*/
|
|
53
|
-
menuId?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Cluster D (quick-260417-ago) — Horizontal anchor offset in px from the
|
|
56
|
-
* card's left edge. When provided, overrides the pill's default
|
|
57
|
-
* `left: 50%` centered position; drives the per-slot gutter-slide
|
|
58
|
-
* choreography (180ms ease-out) for stack cards whose hovered slot moves
|
|
59
|
-
* horizontally.
|
|
60
|
-
*
|
|
61
|
-
* Undefined (default) preserves the pre-existing centered layout.
|
|
62
|
-
*/
|
|
63
|
-
anchorX?: number;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* GutterActions - Pill + overflow menu interaction system.
|
|
67
|
-
*
|
|
68
|
-
* Pure presentational version: no context, BFF, or dispatch-actions dependencies.
|
|
69
|
-
* Action labels are injected via graphLabel/detailsLabel props.
|
|
70
|
-
*
|
|
71
|
-
* Two-phase reveal animation via useSlideOutReveal hook (slideDirection: 'down').
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```tsx
|
|
75
|
-
* import { GutterActions } from '@mt-gloss/ui';
|
|
76
|
-
*
|
|
77
|
-
* <GutterActions
|
|
78
|
-
* visible={isHovered}
|
|
79
|
-
* menuOpen={menuOpen}
|
|
80
|
-
* onMenuToggle={setMenuOpen}
|
|
81
|
-
* onGraph={() => {}}
|
|
82
|
-
* onDetails={() => {}}
|
|
83
|
-
* />
|
|
84
|
-
* ```
|
|
85
|
-
*/
|
|
86
|
-
export declare const GutterActions: {
|
|
87
|
-
({ visible, menuOpen, onMenuToggle, onGraph, onDetails, onCustomize, onRemove, onWhatsThis, onExpand, onShrink, onMove, onReplace, onNavigate, onRetry, onRefresh, onQuickSettings, onFlipBack, isFlipped, onViewAsStack, onUnstack, canExpand, isGraphCard, colSpan, isGraphActive, isTableActive, graphLabel, detailsLabel, variant, onConfigSave, onConfigCancel, menuId, anchorX, }: GutterActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
88
|
-
displayName: string;
|
|
89
|
-
};
|