@mt-gloss/ui 0.0.15 → 0.0.16

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.
@@ -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
  };
@@ -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 the zone's current items. */
9
- renderZone: (zoneKey: string, items: T[]) => React.ReactNode;
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
- * Falls back to passive rendering if @dnd-kit/core is not installed.
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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mt-gloss/ui",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "restricted"