@mt-gloss/ui 0.1.39 → 0.1.41
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/index.js +1109 -1067
- package/lib/primitives/dashboard/CascadePreview/CascadePreview.d.ts +1 -1
- package/lib/primitives/dashboard/DragGhost/DragGhost.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/flipAndStage/FlipAndStageProvider.d.ts +2 -2
- package/lib/primitives/dashboard/SnapOutline/SnapOutline.d.ts +2 -1
- package/lib/primitives/dashboard/StackedGroupTilePreview/StackedGroupTilePreview.d.ts +23 -0
- package/lib/primitives/dashboard/StackedGroupTilePreview/index.d.ts +2 -0
- package/lib/primitives/dashboard/index.d.ts +1 -0
- package/package.json +1 -1
- package/ui.css +1 -1
|
@@ -52,4 +52,4 @@ export interface CascadePreviewProps {
|
|
|
52
52
|
* - Consumer places this inside a `position: relative` parent so `position:
|
|
53
53
|
* absolute` items stack correctly.
|
|
54
54
|
*/
|
|
55
|
-
export declare function CascadePreview({ items, children, className, }: CascadePreviewProps): JSX.Element | null;
|
|
55
|
+
export declare function CascadePreview({ items, children, className, }: CascadePreviewProps): React.JSX.Element | null;
|
|
@@ -32,4 +32,4 @@ export interface DragGhostProps {
|
|
|
32
32
|
*
|
|
33
33
|
* `aria-hidden="true"` because the dragged card semantics belong to the source, not the ghost.
|
|
34
34
|
*/
|
|
35
|
-
export declare function DragGhost({ tint, colSpan, colWidth, rowHeight, gap, x, y, children, className, }: DragGhostProps): JSX.Element;
|
|
35
|
+
export declare function DragGhost({ tint, colSpan, colWidth, rowHeight, gap, x, y, children, className, }: DragGhostProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { FlipAndStageValue } from './types';
|
|
3
3
|
export interface FlipAndStageProviderProps {
|
|
4
4
|
children: ReactNode;
|
|
@@ -10,7 +10,7 @@ export interface FlipAndStageProviderProps {
|
|
|
10
10
|
* useFlipAndStageContext() share the same state instance, enforcing the
|
|
11
11
|
* one-card-at-a-time invariant automatically.
|
|
12
12
|
*/
|
|
13
|
-
export declare function FlipAndStageProvider({ children }: FlipAndStageProviderProps): JSX.Element;
|
|
13
|
+
export declare function FlipAndStageProvider({ children }: FlipAndStageProviderProps): React.JSX.Element;
|
|
14
14
|
/**
|
|
15
15
|
* Access the flip-and-stage context value.
|
|
16
16
|
*
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
export interface SnapOutlineProps {
|
|
2
3
|
cell: {
|
|
3
4
|
section: 0 | 1 | 2 | 3;
|
|
@@ -45,4 +46,4 @@ export interface SnapOutlineProps {
|
|
|
45
46
|
* on DragOverlay (Plan 00 spike + Plan 01 header) does not apply here — SnapOutline
|
|
46
47
|
* is not a DragOverlay child.
|
|
47
48
|
*/
|
|
48
|
-
export declare function SnapOutline({ cell, colSpan, colWidth, gap, rowHeight, transitionMs, className, }: SnapOutlineProps): JSX.Element;
|
|
49
|
+
export declare function SnapOutline({ cell, colSpan, colWidth, gap, rowHeight, transitionMs, className, }: SnapOutlineProps): React.JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StackedGroupTilePreview — static catalog thumbnail for stacked-group metrics.
|
|
3
|
+
*
|
|
4
|
+
* Renders N stacked timeframe rows (label + value + tiny inline sparkline) at
|
|
5
|
+
* a fixed visual scale. Used by `<CatalogCardPreview>` to depict the three
|
|
6
|
+
* stack-variant tiles (Single value / 3 timeframes / 5 timeframes) without
|
|
7
|
+
* mounting the live `<MetricCard variant="stacked-group" />` (which applies
|
|
8
|
+
* wide-mode visuals at colSpan>1 and would render broken inside a 250px
|
|
9
|
+
* catalog tile).
|
|
10
|
+
*
|
|
11
|
+
* Pattern matches `<LeaderboardTilePreview />` / `<ExceptionListTilePreview />`:
|
|
12
|
+
* static, aria-hidden, scaled to fit catalog tile metrics. Quick task 260427-jf3.
|
|
13
|
+
*/
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
export interface StackedGroupTilePreviewProps {
|
|
16
|
+
/** Number of stacked rows to render (1, 3, or 5). Default 3. */
|
|
17
|
+
slotCount?: 1 | 3 | 5;
|
|
18
|
+
/** Optional override row labels (truncated/padded to slotCount). */
|
|
19
|
+
labels?: readonly string[];
|
|
20
|
+
/** Optional override row values (truncated/padded to slotCount). */
|
|
21
|
+
sampleValues?: readonly string[];
|
|
22
|
+
}
|
|
23
|
+
export declare const StackedGroupTilePreview: React.FC<StackedGroupTilePreviewProps>;
|