@mt-gloss/ui 0.0.15 → 0.0.17
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-BXdTP6Nb.js → Expandable-Bvd-OyRQ.js} +1180 -1179
- package/catalog.js +2 -2
- package/index.js +776 -728
- package/lib/primitives/dashboard/MetricCard/CardShell.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/EdgeHoverHandle.d.ts +9 -0
- package/lib/primitives/dashboard/MetricCard/types.d.ts +11 -0
- package/lib/wrappers/SortableZones/SortableZones.d.ts +5 -3
- 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, onViewAsStack, onUnstack, isStackedGroup, onUpdateStackedTimeframes, instanceStackedTimeframes, isGraphActive, isTableActive, isGraphCard, canExpand, cardRef: externalCardRef, }: 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, cardRef: externalCardRef, }: CardShellProps): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
displayName: string;
|
|
22
22
|
};
|
|
@@ -16,5 +16,14 @@ export interface EdgeHoverHandleProps {
|
|
|
16
16
|
*
|
|
17
17
|
* Motion contract (AN-06): opacity transitions driven by edge-hover.scss
|
|
18
18
|
* using enterMs=180ms (enter) / exitMs=120ms (exit via ghost-preview).
|
|
19
|
+
*
|
|
20
|
+
* Pointer capture (debug 260417-qt00z / D-02+D-03 root cause): the handle is
|
|
21
|
+
* only 10px wide. On pointerdown we call setPointerCapture(pointerId) so all
|
|
22
|
+
* subsequent pointermove/pointerup events route to this element even after
|
|
23
|
+
* the cursor leaves the handle's hit region. Without this, dragging rightward
|
|
24
|
+
* (the natural grow gesture) moves the pointer off the handle within the
|
|
25
|
+
* first few px — pointerup then fires on whatever is underneath, the handle's
|
|
26
|
+
* React onPointerUp never runs, and the state machine stays stuck at
|
|
27
|
+
* 'dragging' (so onResize is never called and the card never commits).
|
|
19
28
|
*/
|
|
20
29
|
export declare const EdgeHoverHandle: import('react').ForwardRefExoticComponent<EdgeHoverHandleProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -157,6 +157,17 @@ export interface CardShellProps {
|
|
|
157
157
|
onUpdateTimeframe?: (presetId: string) => void;
|
|
158
158
|
instanceTimeframe?: string;
|
|
159
159
|
cardTitle?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Custom content rendered inside the flip-back face, replacing the default
|
|
162
|
+
* <CardBack> timeframe preset grid. Use for consumer-specific quick-config
|
|
163
|
+
* panels (e.g. sparkline/status-mode toggles). When provided, fully replaces
|
|
164
|
+
* the default CardBack render. Flip mechanics (isFlipped, handleFlip,
|
|
165
|
+
* onQuickSettings wiring) are unchanged.
|
|
166
|
+
*
|
|
167
|
+
* Added FG-1 / D-01, D-02 (Phase 10.5 UAT defect sweep): eliminates
|
|
168
|
+
* sibling-peer QuickConfig mount that broke drag-ghost layout.
|
|
169
|
+
*/
|
|
170
|
+
quickConfigSlot?: ReactNode;
|
|
160
171
|
onViewAsStack?: () => void;
|
|
161
172
|
onUnstack?: () => void;
|
|
162
173
|
isStackedGroup?: boolean;
|
|
@@ -5,8 +5,10 @@ export interface SortableZonesProps<T extends {
|
|
|
5
5
|
}> {
|
|
6
6
|
zones: ZoneConfig<T>[];
|
|
7
7
|
onZoneChange?: (zones: ZoneConfig<T>[]) => void;
|
|
8
|
-
/** Render the zone container. Receives zone key and
|
|
9
|
-
|
|
8
|
+
/** Render the zone container. Receives zone key, items, and a pre-rendered
|
|
9
|
+
* `children` slot (each item wrapped for drag when @dnd-kit is loaded,
|
|
10
|
+
* plain when passive). Place `{children}` where items should appear. */
|
|
11
|
+
renderZone: (zoneKey: string, items: T[], children: React.ReactNode) => React.ReactNode;
|
|
10
12
|
/** Render a single item inside a zone. */
|
|
11
13
|
renderItem: (item: T) => React.ReactNode;
|
|
12
14
|
/** Render the drag overlay (floating item while dragging). Falls back to renderItem if omitted. */
|
|
@@ -17,7 +19,7 @@ export interface SortableZonesProps<T extends {
|
|
|
17
19
|
*
|
|
18
20
|
* Supports within-zone reorder and cross-zone drag with optional maxItems cap per zone.
|
|
19
21
|
* Uses useSortableZones hook for state management.
|
|
20
|
-
*
|
|
22
|
+
* Renders statically (no drag) if @dnd-kit is not installed — items still render.
|
|
21
23
|
*
|
|
22
24
|
* Generic over T extends { id: string }. No reptime-specific types. D-04, D-06, D-11 compliant.
|
|
23
25
|
*/
|